LowPowerLab Forum

Hardware support => Moteino M0 => Topic started by: Tirititelu on August 04, 2018, 06:11:27 AM

Title: Ways to wake up Moteino M0
Post by: Tirititelu on August 04, 2018, 06:11:27 AM
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!

Title: Re: Ways to wake up Moteino M0
Post by: Felix on August 06, 2018, 02:42:42 PM
Very good question!
I posted a new example in the guide (https://lowpowerlab.com/guide/moteino/moteinom0/) to illustrate how to sleep the Moteino M0 periodically using the RTCZero library.
Title: Re: Ways to wake up Moteino M0
Post by: Tirititelu on August 16, 2018, 04:13:33 PM
Thanks!
Title: Re: Ways to wake up Moteino M0
Post by: Tirititelu on August 18, 2018, 09:20:13 AM
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!
Title: Re: Ways to wake up Moteino M0
Post by: Felix on August 20, 2018, 03:22:10 PM
Tirititelu,
Please use the sample sketch here (https://lowpowerlab.com/guide/moteino/moteinom0/) 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 (https://github.com/LowPowerLab/LowPower), 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!