Feather 32u4 SleepyDog Question

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
kampto
 
Posts: 100
Joined: Sun Feb 21, 2016 12:51 pm

Feather 32u4 SleepyDog Question

Post by kampto »

I have a Feather 32u4 Lora board and see the max sleep time is 8sec. It will be battery/solar so i want it to sleep for a few minutes in between RF transmits to conserve power. Would this method be a ridiculous use of the SleepyDog library? I tested it seems to work on an LED i set up for testing purposes, I assume there's a current spike when waking each time in the "for" bracket.

Code: Select all

rf95.sleep(); // Put Radio to Sleep
    int i; 
    for (i = 0; i <23; i++) 
    {int sleepMS = Watchdog.sleep(8000); }  // 8sec is max for 32u4, 8*i = 184sec
And when it wakes up will it continue in the loop where it left of, not as a sketch restart like the esp DeepSleep?
Its hard to troubleshoot when the USB serial monitor never comes back up. The USBDevice.attach(); after Watchdog.sleep doesnt seem to help that.

User avatar
kampto
 
Posts: 100
Joined: Sun Feb 21, 2016 12:51 pm

Re: Feather 32u4 SleepyDog Question

Post by kampto »

I see 10 replies but they are not showing up in the thread, weird...

Locked
Please be positive and constructive with your questions and comments.

Return to “Feather - Adafruit's lightweight platform”