LilyGO / LILYGO-T-Energy

35 stars 6 forks source link

T18_V3.0 Board doesn't wake up from timer deep sleep #12

Open sle118 opened 1 year ago

sle118 commented 1 year ago

The schematics for this board show what seems to be a FET which can be used to shut down the 3.3V power, hooked to GPIO26. Can anyone confirm? The lack of component identification on this board is just aggravating the issue as it makes troubleshooting with a scope very difficult.

I'm scratching my head over deep sleep, since the board never actually comes back up as it should.

edit: the board actually wakes up when plugged into a USB port.

sle118 commented 1 year ago

well... nevermind this, there was possibly a software issue with my code. It works now so I'll just go ahead and close this issue

sle118 commented 12 months ago

I just wanted to comment on this as, for some obscure reason that I haven't figured out yet, the board will wake up several times and all of a sudden just decide to stop waking up. It doesn't look like the issue comes from the battery, as hard resetting the device with the power switch revives it for more sleep cycles with the battery voltage continuing its drop to 3.7V (last time I revived the board).

I'm puzzled with this one, in case anyone has some advice. For what it's worth, I am running a firmware under ESPHOME with a custom particle sensor header file that implements a state machine which controls when the device goes to sleep.

sle118 commented 12 months ago

ok. for anyone interested, here's the catch for this. I had a variable sleep duration that came from the homeassistant platform (through the API) and the value wasn't always updated after a reboot from deep sleep. So I turned to storing the value to flash when it changes (global variable in ESPHOME with persistance) and the wakeup issue is vanished.

now this freaking board is just killing batteries and a 18650 cell won't make much more than 30 hours at best. The starting idea was good, but the design is poor and disapointing.

Why is no one from @LilyGO even responding to any of the issues in this repository?