-
AuthorPosts
-
January 19, 2018 at 10:52 PM #7624DonpKParticipant
I am using a voltage divider from Vcc to measure the battery voltage supplying an Arduino Uno-type device. The divider is used to reduced the ca. 5 volt Vcc value so the internal 1.1 volt reference can be used. This divided voltage is connected to an analog input.
Using the LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF) function, the device current is slightly higher during the sleep mode with the analog input left connected to the voltage divider. The additional current with the ADC connected depends on the size of the resistors in the divider. It can range from 1µA with high-value resistors to 7 or 8 µAs with lower value resistors.
What is the actual status of the analog inputs during the sleep mode? It would appear that it is not entirely an open circuit, but has some high impedance drawing current through the resistor divider.
January 20, 2018 at 11:29 AM #7626LIM PHANG MOHKeymasterHi,
I think you might have already found your answer in the forum.
But, as I have been using the same resistor divider and a capacitor to measure the battery voltage using the internal 1.1V reference all this while but it is always on pin ADC6 or ADC7. So, if you look at section 23.9.5 of the datasheet (register DIDR0), that might be answer. I have yet to dig the Arduino core on whether they does this when using the pin as an analog pin. Chances is they don’t as this is granular detail in power optimization but I could be wrong.January 20, 2018 at 11:46 AM #7631DonpKParticipantThanks for your answer. “section 23.9.5 of the datasheet (register DIDR0”. What datasheet are you referring to? Do you have a link or more details?
January 20, 2018 at 11:52 AM #7633LIM PHANG MOHKeymasterI’m referring to the ATMega328P datasheet. I think I was referring to the older datasheet. On the latest datasheet it is on section 28.9.8 at page 326.
January 20, 2018 at 9:38 PM #7636DonpKParticipantThanks, I found the section you were talking about. As author of the Low Power Library, I think you are perhaps the best person to answer your own question.
The low power consumption rates I am getting seem reasonable. I’m sure you’ve seen the other articles on the internet using your library. My results seem in line with them.
March 17, 2018 at 2:04 AM #8187CoraDiasParticipantHi…i am a new user here. I was also working for same kind of project and have been using the same resistor divider and a capacitor to measure the battery voltage using the internal 1.1V reference all this while but it is always on pin ADC6 or ADC7. So, if you look at section 23.9.5 of the datasheet , that might be answer. I have yet to dig the Arduino core on whether they does this when using the pin as an analog pin.
-
AuthorPosts
- You must be logged in to reply to this topic.