Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FireBeetle/LoRaWAN Node] Sleep mode is entered if battery voltage is low, but supply voltage is good #114

Closed
matthias-bs opened this issue Nov 25, 2024 · 1 comment · Fixed by #116
Assignees
Labels
bug Something isn't working

Comments

@matthias-bs
Copy link
Owner

LoRaWAN_Node

Sleep mode is entered, if the battery voltage is below 'Battery low', even if an external power supply (e.g. USB) is connected. Additionally long sleep interval is applied.

Expected: If the supply voltage is good, the device operates normally and uses normal sleep interval.

See also: #112

@matthias-bs matthias-bs added the bug Something isn't working label Nov 25, 2024
@matthias-bs matthias-bs self-assigned this Nov 25, 2024
@matthias-bs
Copy link
Owner Author

matthias-bs commented Dec 3, 2024

LoRaWAN_Node uses a DFRobot FireBeetle ESP32 (Schematic) supplied by an Adafruit Universal USB / DC / Solar Lithium Ion/Polymer charger.

  • The battery is connected to the Adafruit charger.
  • The battery voltage is measured via ADC input A3 using getBatteryVoltage().
  • If no battery is connected, getBatteryVoltage() returns close to 0V (due to the voltage divider's lower resistor connected to GND)
  • The Adafruit charger's output is connected to the FireBeetle's battery connector (J1/BAT) feeding VB.
  • The supply voltage can be measured via ADC input A0 using getSupplyVoltage() if R10 and R11 have been assembled on the FireBeetle PCB.
  • If R10 and R11 have not been assembled, A0 is floating, which leads to totally unpredictable ADC values.

Software change:

  • If battery voltage is low, measure supply voltage.
  • If supply voltage is low, too (no external supply connected), enter sleep mode to prevent deep-discharging the battery.
  • This only works if R10 and R11 have been assembled!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant