-
Notifications
You must be signed in to change notification settings - Fork 7
battery check and System.sleep #1
Description
i can only tell for Argon since Xenon is deprecated
Battery check doesnt work:
if(BATT > 1) gives always 33, no matter if LiPo or USB power is supplied
i could not find any way to check if battery or USB is connected, yet
System.sleep(D1,RISING,12h) alone does not help, its still draws about 60-80mA
thats because wifi-module does not get disabled.
so change the code to:
WiFi.off();
delay(250);
System.sleep(D1,RISING,8h);
https://community.particle.io/t/high-power-use-during-system-sleep-for-argon/48785/6
(and yes 12h is correct, since fw 1.5.0 you can use the usual chrono literals)
further more you might want to explore the new sleep API:
https://docs.particle.io/reference/device-os/firmware/argon/#sleep-sleep-
havnt got around doing it myself since the classical API is still working,
and for Argon/Xenon i thing it might not really be helpful or increase battery life, but
i havnt tried it yet
but really nice work, i enjoyed making them. i made three so far and a cover
to slide over to protect it form the elements, a bit at least ...
inPlant-cover_v2.stl.zip