Ways to wake up Moteino M0

Started by Tirititelu, August 04, 2018, 06:11:27 AM

Tirititelu

Hi guys, I need to know another way to wake up my Moteino M0 different from using an interruption (attachInterrupt(pinInterrup, wakeupISR, LOW)) when I sleep it using the "standby()" function of the "LowPower" library. I want my Moteino M0 to fall asleep and after "x" seconds he wakes up. In other models I used the "LowPower.powerdown()" function inside a "for" loop but with the "standby()" function it is not possible or I do not know how to do it.Can you help me ?.

Thanks!


Felix

Very good question!
I posted a new example in the guide to illustrate how to sleep the Moteino M0 periodically using the RTCZero library.


Tirititelu

I have been doing tests with other libraries and I think that "ArduinoLowPower" is the best option since it is simpler than using "RTCZero" because the functions "Sleep" and "DeepSleep" can be temporized. You do not need to create any alarm or anything like that.

Anyway I can not get down 0.6 mA even when I'm sleeping on the radio. What else should I do to lower consumption ?. I have run out of ideas.

Thanks!

Felix

Tirititelu,
Please use the sample sketch here to get to sub 10uA low power (assuming you have a bare Moteino M0, or are sleeping anything else attached to it). That sketch also takes care of the RFM69 radio module and the FLASH-MEM if any is present.
I have also posted an update to my own fork of the RocketScream LowPower library, which includes the ability to sleep the SAMD21 based Moteino M0.
If you're needing more discussion about sleeping the M0 please start a separate thread, thanks!