I'm making a small project with my girlfriend. It's a very small animation played on a 8*8 led display. I made the program and it's work like a charm except the power part.
I would like to "turn off" the arduino after an amount of the time. The animation will start agin with the reset button. I saw few code example with WatchDog Timer, Enerlib or LowPower library by Rocket Scream but it seems quite too powerfull for what I need.
I've used before for testing and external USB battery who have the ability to turn off automaticly when usb doesn't request power after few seconds. That's perfect for me. If I can do something similiar into my program it will be really cool.
I've tried something with LowPower Library but the led 13 I turn on, doesn't turn off...
Galouzeau:
I've tried something with LowPower Library but the led 13 I turn on, doesn't turn off...
This is expected behavior. Pins are designed to stay in whatever state you left them in when you go to sleep. So, just turn off all pins (a 'for' loop works great if you have more than one) just before you go to sleep and you should be good.
Galouzeau:
I've tried something with LowPower Library but the led 13 I turn on, doesn't turn off...
This is expected behavior. Pins are designed to stay in whatever state you left them in when you go to sleep. So, just turn off all pins (a 'for' loop works great if you have more than one) just before you go to sleep and you should be good.
Ok thanks. Maybe you now how I can monitor this LowPower.powerDown(SLEEP_FOREVER, ADC_OFF, BOD_OFF); because the led was only for that.