LilyGO-T-SIM7000G icon indicating copy to clipboard operation
LilyGO-T-SIM7000G copied to clipboard

Auto-restart device when using 18650 and solar panel.

Open Eckaard opened this issue 3 years ago • 7 comments

Hi all,

So I've written a piece of code, in micropython, that measures distance using an ultra sonic sensor and then sends the reading to a influxdb instance. My issue is as follows: Once the battery has drained to completion, the device needs to be hard reset in order to work once the battery has been charged up again. The device is powered using an 18650 and charged using a 5V 750mA solar panel.

I've tried using a "try" "except", however, the device seems to be hanging in deepsleep.

This does, however, not occur when charging the device using an usb-c cable. The device resets itself and starts posting data straight away without a hard reset.

Any advice would be highly appreciated.

Eckaard avatar Nov 22 '21 13:11 Eckaard

Hello, did you find a solution?

Best regards

RafBois avatar Mar 16 '22 21:03 RafBois

Evening,

Unfortunately I did not. I haven't worked on this project in quite some time. What you could maybe look at doing is using a powerbank. This way the solar panel will charge the powerbank which will only supply power, via USB C, to the t-sim 7000 once it's been charged to a sufficient amount. This, however, isn't really a proper solution. Please let me know if you do figure something out

Hello, did you find a solution?

Best regards

Eckaard avatar Mar 16 '22 21:03 Eckaard

I don't have the material yet but I will try to reproduce this problem which seems to me major for my project. I will try to find a solution.

Thanks for your feedback

RafBois avatar Mar 17 '22 22:03 RafBois

Hello, does this happen with the example?

LilyGO avatar Mar 21 '22 02:03 LilyGO

I have experienced similar power instability issues. In particular in GSM mode the SIM module temporarily draws a large current. This then causes voltage to drop on the battery pins by a fairly substantial level (around 0.6V). Depending on the state of charge, the ESP32 can then fall into an unstable operating mode. My solution has been to avoid GSM whenever possible and operate the device in LTE-only mode. Also I charge the battery with an external solar charger module only, as that a) allows optimized charging at the proper power point (pseudo - MPPT) for a 6V module and b) can handle the power from a 6W module without overheating.

nepat avatar Jun 28 '22 18:06 nepat

buy a hardware watchdog and use that. Or desolder the battery socket and attach an external battery pack with an inline BMS that has a slightly higher cut-off voltage

I've done both

My best way of fixing this was to design an expansion board that these sockets into and the expansion board is essentially a hardware watchdog.


a snippet of my fix

image image

Mr-HaleYa avatar Jul 29 '22 06:07 Mr-HaleYa

I have experienced similar power instability issues. In particular in GSM mode the SIM module temporarily draws a large current. This then causes voltage to drop on the battery pins by a fairly substantial level (around 0.6V). Depending on the state of charge, the ESP32 can then fall into an unstable operating mode. My solution has been to avoid GSM whenever possible and operate the device in LTE-only mode. Also I charge the battery with an external solar charger module only, as that a) allows optimized charging at the proper power point (pseudo - MPPT) for a 6V module and b) can handle the power from a 6W module without overheating.

a capacitor in parallel should take care of the spikes in current drawn: https://github.com/Xinyuan-LilyGO/LilyGO-T-SIM7000G/issues/227#issuecomment-1508438887

fgnievinski avatar Dec 17 '22 02:12 fgnievinski