The simplest digital voltmeter with AVR using atmega

OLYMPUS DIGITAL CAMERA

This is probably the simplest possible digital voltmeter with Atmel AVR microcontroller. The circuit is controlled by a microprocessor IO1 – Atmel AVR ATmega8 (ATmega8, ATmega8L), a program to download and configuration bits setting is below. (ATmega8 may seem too “big”, but was chosen because it is one of the most frequently used AVR and is often can be found in a drawer.) The three-digit seven-segment LED display is used to display the value.

OLYMPUS DIGITAL CAMERA
OLYMPUS DIGITAL CAMERA

Cathodes are connected to port D, anodes to the lowest 3 bits of port B. Using the suberbright display allows to omit the current amplifying transistors. The display is controlled by multiplexing (matrix) and connected the usual multiplex way. I used three-digit yellow display T-5631BUY-11 with 150-200mcd luminosity. The resistors R1 to R8 determine current into display and thus its brightness. They are chosen not to exceeded the maximum output current (40 mA) even when all 8 LEDs lit at once. The circuit uses single ended 10-bit ADC (analog-digital converter) in AVR. The output values range from 0 to 1023, but because is not worth adding a fourth digit for the narrow range of 1000 – 1023 the range is limited to 0 – 999. A higher value will appear the symbol “—“. The range of the voltmeter corresponds to input voltage of 2.5 V. The input is connected via a divider of 1/4 consisting of R9, R10 and P1, providing 10V range with resolution to 0.01 V.

simplest digital voltmeter

Read More: The simplest digital voltmeter with AVR 

Leave a Comment

Your email address will not be published. Required fields are marked *