Hi,
I'm using the LowPower library with my moteino R4 with RFM69H and i'm not getting the results expected in terms of power consumption.
It's drawing 0.99 mAmps from the battery when using
radio.Sleep();
LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);
which is driving me nuts since according to the rocketscream webpage and according to the first post on this thread, the consumption should be way lower than that.
I even tried disabling the wdt but that wasn't useful.
Any hints?
Hi, I had exactly the same problem. I think it was caused by the flash memory.
If you have flash on your Moteino you can try the following
#include <RFM69.h>
#include <SPI.h>
#include <SPIFlash.h>
#include <LowPower.h>
#define NODEID 1 //unique for each node on same network
#define NETWORKID 100 //the same on all nodes that talk to each other
#define FREQUENCY RF69_868MHZ
#define FLASH_SS 8 // and FLASH SS on D8
RFM69 radio;
SPIFlash flash(FLASH_SS, 0xEF30); //EF30 for 4mbit Windbond chip (W25X40CL)
void setup()
{
radio.initialize(FREQUENCY, NODEID, NETWORKID);
radio.sleep();
flash.sleep(); // put flash (if it exists) into low power mode
}
void loop()
{
LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);
}