Introduction

Author: Marcus Young, Amund Aune, Microchip Technology Inc.

This application note shows how to perform current measurements and monitor a battery in an electronic circuit using a 12-bit Analog-to-Digital Converter (ADC) with a Programmable Gain Amplifier (PGA). Both the current measurements and battery management are, on a theoretical level, explained, followed by a presentation of the advantages of using this ADC.

An application demo using the ATtiny1627 Curiosity Nano is presented. In this demo, multiple voltages are measured, and the corresponding currents are calculated. Then all the metrics are sent over USART to the MPLAB® Data Visualizer, where they are graphed in real-time.