rocketscream / Low-Power

Low Power Library for Arduino
www.rocketscream.com
1.26k stars 345 forks source link

328PB sleep issues with Canique lib #95

Open exiledyorkie opened 4 years ago

exiledyorkie commented 4 years ago

Hello,

I know that the Canique lib is a fork of the Rocketscream lib but just wondering if anybody can help? First off, thank you for the libs, both have made my life easier, as code isn't my strong point.

Using Rocketscream I got the current consumption reduced to 150uA in sleep mode. Using the following code; LowPower.idle(SLEEP_8S, ADC_OFF, TIMER2_OFF, TIMER1_OFF, TIMER0_OFF, SPI_OFF, USART0_OFF, TWI_OFF);

Using a 328PB during powerdown mode, the consumption is reduced to 5mA. I tried to use the idlewake example but when compiled, I get an error. Using code below;

LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);  

I'm using a Minicore bootloader, 328PB, 8MHz external clock, BOD 1.8V. Any ideas would be greatly appreciated.