VOOZH about

URL: https://www.geeksforgeeks.org/electronics-engineering/how-to-make-digital-voltmeter-using-arduino/

⇱ How to make digital voltmeter using Arduino? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to make digital voltmeter using Arduino?

Last Updated : 23 Jul, 2025

Digital Voltmeter

Voltmeter is an instrument used to measure the potential difference or voltage (V) between two points of an electric circuit. Voltage is the potential difference between two points. It pushes charged electrons through conducting loop. It is also known as electric pressure, electromotive force or potential difference, etc. The voltage is indicated by a unit known as a volt (V). 

In this article, we will learn how to make a digital voltmeter using Arduino Uno R3.

Arduino

Arduino is an open-source electronics platform. It consists ATmega328P 8-bit Microcontroller. It can be able to read inputs from different sensors & we can send instructions to the microcontroller in the Arduino. It provides Arduino IDE to write code & connect the hardware devices like Arduino boards & sensors.

Voltmeter using Arduino

Arduino has analog pins to read analog input voltage and it can be converted into a digital value. For more information about Analog Read and Analog channels in Arduino, refer to this article.

The digital value is in the resolution of 2^N, for Arduino Uno R3 the resolution is 2^10 = 1024. Whereas Arduino Uno R3 has a 10-bit of Analog Digital Converter.

The digital value is in the range of 0 to 1023 for the voltage range of 0 to 5 Volts. 

Analog to Digital Conversion Formula

Digital value = ( Input Voltage / Reference voltage) * Resolution

For Arduino Uno R3,

Digital value = ( Input Voltage / 5) * 1023

If the input voltage to the analog channel is 2 Volts, The digital value can be calculated as follows.

Digital value = ( Input Voltage / 5) * 1023

                     = ( 2 / 5) * 1023

Digital value = 409

Digital value to Voltage Conversion

Input Voltage = ( Digital value / Resolution) * Reference voltage

For Arduino Uno R3,

Input Voltage = ( Digital value / 1023 ) * 5

If the digital value is 409, The input voltage can be calculated as follows.

Input voltage = ( Digital value / 1023 ) * 5

                      = ( 409 / 1023) *5

Input voltage = 1.999 = 2 volts (Approximately)

Components Required

  1. Arduino Uno R3
  2. Input voltage source ( 0 to 5 volts)
  3. Jumper wires

Circuit Setup

  1. Connect the positive terminal of the input voltage source to any of the analog pins of Arduino.
  2. Connect the negative terminal of input to the GND of the Arduino.

Note: Arduino can measure only in the range of 0 to 5 volts. If the input voltage is greater than 5 volts, the components of Arduino may be damaged.

Circuit Diagram

👁 Image
Voltmeter using Arduino

Arduino Code

Output


Comment
Article Tags: