LowPowerLab Forum

Hardware support => General topics => Topic started by: mtfisher on March 26, 2015, 05:53:15 PM

Title: Interupt driven
Post by: mtfisher on March 26, 2015, 05:53:15 PM
id like to do a project using the RFM69 libary for the Arduino. What will happen is a gateway device will send a packet to a remote unit and then the remote unit will read data and then send a packet back with the results. What I would like is to run the remote unit on battery so I would like to run the ardrino and radio in low power mode until transmission.

I am wondering if the RFM69 has an interrupt mode where I can wake up the remote unit on packet reception instead of running the Arduino loop polling the radio?
Title: Re: Interupt driven
Post by: EloyP on March 31, 2015, 07:28:25 PM
The RFM69 driver is interrupt-driven. I haven't put the ATmega to sleep and confirmed that a received packet will wake it up via the interrupt generated by the RFM69 (i.e. I don't have first-hand experience to share), but in theory is should work like that. This should be easy to test, though; give it a try.

http://playground.arduino.cc/Learning/arduinoSleepCode seems like good reading on this topic.

Cheers,

Eloy Paris.-