Anarduino and HopeRF Community Forum
Search
Recent Topics
Hottest Topics
Back to home page
Register
/
Login
Messages posted by: srusha
Forum Index
»
Profile for srusha
»
Messages posted by srusha
Author
Message
Anarduino
»
MiniWireless sleep mode power consumption
»
Go to message
Anything?
Anarduino
»
MiniWireless sleep mode power consumption
»
Go to message
Hello, I'm also trying to lower my power consumption with no success so far,
I followed this entire thread, but I only get 6.8ma, I have the miniwireless with rfm92w.
this is my code:
any help would be greatly appreciated.
Thanks!
const int wakeUpPin = 2; RH_RF95 driver; void wakeUp() { // Just a handler for the pin interrupt. } void setup() { pinMode(wakeUpPin, INPUT); pinMode(led, OUTPUT); if(!manager.init()) { digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level) } Serial.begin(9600); // Defaults after init are 434.0MHz, 13dBm, Bw = 125 kHz, Cr = 4/5, Sf = 128chips/symbol, CRC on SPIFlash flash(5); // flash(SPI_CS, MANUFACTURER_ID) if (flash.initialize()) { Serial.print("OK"); flash.sleep(); // put flash (if it exists) into low power mode } else Serial.print("flash failed"); Serial.end(); driver.sleep(); attachInterrupt(0, wakeUp, LOW); // Enter power down state with ADC and BOD module disabled. // Wake up when wake up pin is low. LowPower.powerDown(SLEEP_FOREVER, ADC_OFF, BOD_OFF); while(1); }
Forum Index
»
Profile for srusha
»
Messages posted by srusha
Go to:
Select a forum
Anarduino
HopeRF
Projects
Powered by
JForum 2.1.9
©
JForum Team