This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to measure Lithium battery voltage

How to measure Lithium battery voltage with the nRF51 ADC

Parents
  • The ADC samples the voltage on the ADC input pin and outputs the result in the ADC->RESULT register. The example outputs the result to pins 8-15 as an 8-bit binary number. If you have the nRF51822/nRF51422 development kit and the nRFgo motherboard, and you have the default setup of the motherboard where PORT1 pins are connected to LEDS pins, then you should see the 8 bit number on the 8 leds on the motherboard. You can also put a breakpoint in the ADC interrupt handler in the example to see the number in the ADC->RESULT register.

Reply
  • The ADC samples the voltage on the ADC input pin and outputs the result in the ADC->RESULT register. The example outputs the result to pins 8-15 as an 8-bit binary number. If you have the nRF51822/nRF51422 development kit and the nRFgo motherboard, and you have the default setup of the motherboard where PORT1 pins are connected to LEDS pins, then you should see the 8 bit number on the 8 leds on the motherboard. You can also put a breakpoint in the ADC interrupt handler in the example to see the number in the ADC->RESULT register.

Children
No Data
Related