LowPowerLab Forum

Hardware support => Low Power Techniques => Topic started by: lilpint97 on February 02, 2014, 10:37:05 AM

Title: LowPower.h help
Post by: lilpint97 on February 02, 2014, 10:37:05 AM
OK, I am being dense or just half asleep take your pick, but can someone explain in the lowerpower.h when I make the call
LowPower.powerDown(SENSORREADPERIOD, ADC_OFF, BOD_OFF); what ADC and BOD stand for/mean to the configuration? And what ADC_ON/BOD_ON would give me? I tried reading the libraries but they are light on exactly what this is doing but must not be understanding the underlying hardware.

Title: Re: LowPower.h help
Post by: Felix on February 02, 2014, 03:46:35 PM
ADC = Analog to Digital Converter
BOD = Brown Out Detector

Both hardware modules inside the mega chip. Therefore they eat power. Therefore you want them asleep unless you're doing something special. Like monitoring battery level while you're sleeping...?

I've once read all about how much power each of them needs and putting them to sleep saves something like a few micro amps. That makes a difference when you run on coin cells or very small batteries. If you care to read more about this or find the exact figures check the Atmega328 DS (... maybe not :P) or see these links where the info is more summarized:

Title: Re: LowPower.h help
Post by: lilpint97 on February 02, 2014, 04:48:46 PM
Felix as always thanks for the information, the links were very informative, I might just focus on the radio.sleep() function which looks to be my larger savings.