Wykres commitów

44 Commity (0ec6771cf7ccbbb3769fdcf286fb848904a68dcc)

Autor SHA1 Wiadomość Data
Sacha Weatherstone 0ec6771cf7
Fix build when BATTERY_PIN is set 2022-05-07 20:47:52 +10:00
Sacha Weatherstone 6b0ce6b729
Finish config transition 2022-05-07 20:31:21 +10:00
Ben Meadors cf64da21fb Move adc multiplier code into battery pin region to surpress warning 2022-05-01 14:21:30 -05:00
Ben Meadors c867af8522
Adjusted adc_multiplier for heltec2.1 and added adc_mulitplier_override (#1183) 2022-02-09 13:37:48 -06:00
Mike Kinney 7c362af3de more warning fixes 2022-01-24 18:39:17 +00:00
Mike Kinney caaa235c5d more cppcheck warnings fixes 2022-01-24 17:24:40 +00:00
Mike Kinney b3210f6c2c fix some cppcheck warnings 2022-01-24 07:00:14 +00:00
claes 28e851c3fd Low battery level counter for NRF52
Added a counter that counts low battery level detections.
If there are 4 in a row we go to deep sleep.
The battery sense on the RAK4631 seems to be a bit unstable and may
generate  'false' low voltage readings.
My RAK4631 has been running for 7 days now with this fix.
It did 3 days without it.
I still do not have a T-Echo so on that board IT IS NOT TESTED.
(But I hope it will improve things there too)
2021-09-19 16:00:10 +02:00
claes 04c5ac0d7c Voltage and sleep fix for NRF52
Dont let the NRF52 go to SDS Super Deep Sleep
Show bat percentage on NRF52 when above 4210 mV
2021-08-10 09:23:26 +02:00
claes 32fea4cbd7 Fix for reading battery level on RAK-4631
Build tested on RAK4631 with battery and their solar panel box.
This is from the log:
17:40:30 102 [Power] Battery: usbPower=0, isCharging=0, batMv=4164, batPct=96
Note that mV reading and Pct is ok.
It does not detect being connected to USB and charging.

Also tested on TBEAM where it seems to be ok.

There still seems to be a problem with the FW for this board that it goes to
sleep for ever after running for a few hours.
2021-07-25 18:25:11 +02:00
Kevin Hester 17a1262382 pull in new epaper lib (which required importing configuration.h everywhere
for dumb reasons)
2021-06-27 10:56:28 -07:00
Kevin Hester 7f51517961 better support for heltec 2021-05-11 09:44:41 +08:00
Kevin Hester 7475e3c105 give more margin for heltec no battery voltage 2021-05-09 10:31:42 +08:00
Kevin Hester b95baadb9a fix USB power detection for analog battery sensors (t-echo and possibly heltec/t-lora32) 2021-04-28 15:30:02 +08:00
Vadim Furman c62863b1dc Merge from origin 2021-03-14 19:42:57 -07:00
Vadim Furman 8505a0f260 Chargeing... 2021-03-14 19:17:28 -07:00
Vadim Furman 98d878cdfe Port to lora_isp4520 board 2021-03-14 19:00:20 -07:00
Kevin Hester 3ac5b045c4 Merge remote-tracking branch 'root/master' into eink 2021-01-28 10:31:56 +08:00
Jm c0711fde69 #615 Allow rate for tbeam battery charger to be configurable 2021-01-16 23:10:08 -08:00
Kevin Hester fd9ffbbb88 fix charging indication for dumb battery sensors 2021-01-16 13:05:33 +08:00
Jm 997ed283bf #601 - tbeam draws too much power from USB port 2020-12-28 01:12:42 -08:00
Jm Casler 817c99e09c trying to fix it again 2020-11-22 19:12:11 -08:00
Jm Casler 9801a62d2d Fix for CI on other boards. 2020-11-22 19:01:48 -08:00
Jm Casler 2bd40b7053 Add support for the power button #528 2020-11-22 18:50:14 -08:00
Kevin Hester 8fd3cb1aac add crude charging detection for 'dumb' voltage based battery sensors 2020-10-18 09:44:29 +08:00
Kevin Hester 485c476f17 cleaner battery debug messages 2020-10-18 09:32:12 +08:00
Kevin Hester f3b93d55fb oops fix for esp32 2020-10-16 17:03:04 +08:00
Kevin Hester 2b373048c6 fix battery voltage sensing on NRF52 boards 2020-10-16 17:00:27 +08:00
Kevin Hester a9de8b9bb3 oops - only read axp on boards that have it 2020-10-12 09:33:15 +08:00
Kevin Hester 45a36f5571 fix POWER state entry/exit based on loss of USB power (tx @mc-hamster) 2020-10-12 09:27:07 +08:00
Kevin Hester 49b4ed2a89 coroutine: kinda works now 2020-10-10 18:03:45 +08:00
Kevin Hester 2044427e97 coroutines: wip compiles but does not link 2020-10-09 14:16:51 +08:00
Kevin Hester 7854a22fbf bug #376 - stop using pmu IRQ - we don't need it and it causes LS wakes 2020-10-06 12:45:19 +08:00
Kevin Hester 736642455f bug #376 wip - we now respect the new gps_operating_mode pref. 2020-10-06 05:34:56 +08:00
geeksville 28ec0e310d make bat voltage sensing work on eink 2020-09-26 18:13:16 -07:00
geeksville 3352fae64c fix #371 allow button while using API. also don't let tbeams sleep if they have USB power 2020-09-21 12:41:39 -07:00
geeksville 79498580b1 If LORA32 battery voltage is super low, assume no battery installed 2020-08-27 14:46:59 -07:00
geeksville 780b7e3628 don't show battery status on boards that can't sense that #336 2020-08-25 12:48:47 -07:00
geeksville 3de1607cea bug #279 change battery voltage to millivolts 2020-08-13 11:23:27 -07:00
geeksville 6a402b13fa Add battery sensing (mostly) for TBEAM0.7
However, disabled until someone with suitable hardware can test and report
back.

@slavino and @tschundler would you be willing to try it with your boards?

You'll need to uncomment the following line in configuration.h

// #define BATTERY_PIN 35 // A battery voltage measurement pin, voltage divider connected here to measure battery voltage
2020-08-12 17:03:36 -07:00
grcasanova 9803141fe7 merged with master 2020-07-06 21:53:10 +02:00
Professr f2e6c6de58 Fixed filename case sensitivity 2020-06-28 19:03:39 -07:00
Professr f5b7c33d4e Refactored status handlers and merged 2020-06-28 18:17:52 -07:00
Professr 542b8b26ce Abstracted statuses, made display event-driven 2020-06-27 21:19:49 -07:00