Surya 'S Report
Surya 'S Report
Surya 'S Report
On
DIGITAL VOLTMETER
Submitted in partial fulfillment of the requirements for award of the degree of
DIPLOMA
in
ELECTRICAL&ELECTRONICSENGINEERING
Submitted By
K.B V S D SIVAMANI
(21243-EE-022)
Assistant Professor
DEPARTMENTOFELECTRICAL&ELECTRONICSENGINEERING
SRI VASAVI ENGINEERING COLLEGE (Polytechnic)
(Approved by AICTE, New Delhi & Affiliated to SBTET-A.P)
Pedatadepalli, Tadepalligudem, W.G. Dt., AP- 534101
2020-2023
i
SRI VASAVI ENGINEERING COLLEGE (Polytechnic)
(Approved by AICTE, New Delhi & Affiliated to SBTET-A.P) Pedatadepalli,
Tadepalligudem, W.G. Dt., AP- 534101
CERTIFICATE
This is to certify that the project entitled “DIGITAL VOLTMETER”
is being submitted for partial fulfillment of the requirement for the award of the degree of
Diploma in Electrical & Electronics Engineering from is a bonafide work done by
B.VSURYA NARAYANA(2124-EE-005), M.JITHENDRA SRINIVAS(21243-EE-032),
K.TEJA SRI LAKSHMI (21243-EE025) S.SUNITHA DEVI(21243-EE-052),
M.PURNAKUMAR(21243-EE-34), K.VINAYSURYAKUMAR(21243-EE-024)
K.B V S D SIVAMANI(21243-EE-022) under my super vision and UUIA it has been
verified and found satisfactory for acceptance
According to requirement of the APSBTET.
IN-CHARGEOFPOLYTECHNIC EXTERNALEXAMINER
G. Rama Prasad,M.Tech
ii
DECLARATION
This is a record of work carried out by us and the work module of the project
presented in this report have not been submitted to any other institution/university
for the award of any degree.
PROJECTASSOCIATES
iii
ACKNOWLEDGEMENT
We express our deep sense of gratitude and in dabtedness to our
supervisor, M.MADHUSUDHAN REDDY Assistant Professor, EEE
Department in Sri Vasavi Engineering College for her valuable guidance
during the course of this project work. We are much indebted to him for
suggesting a challenging and interactive project and her valuable advice at
every state of this work. We are much thankful to him for her coordination in
this regard.
We convey our heartfelt thanks to Dr. D. Sudha Rani, Professor and
Head of the Department of Electrical & Electronics Engineering for
motivating us in successful completion of the project.
iii
iii
iii
iii
iii
iii
iii
iii
iii
CHAPTER -1
GENERAL INTRODUCTION
1-1 Introduction
iii
Figure (1-1)basic DVM diagram
2
Highlight
Add Note
Share Quote
1-2 Objecve
1-To design digital voltmeter by using arduino
.
iii
2-Measure the input voltage range between 0 to 50 by usingvoltage divider.3-
Know how arduino works and how easy it is to use it.
iii
1-4 Voltage measurementIs one of the most basic measurements in the
electronicmeasurement. Generally, an electronic measuring instrument
isclassified roughly by voltage measurement, current (or charge)measurement,
and measurement of both (electric power andimpedance). For example, the
oscilloscope is a measuring instrumentthat displays the voltage value sensed by
the tip of the probe on thescreen as a time waveform, and it can be called a
voltmeter in a broadsense because the physical value of the target measurement is
thevoltage. However, at present this is a measuring device focused on thehigh-
speed response and sampling rate exceeding several GHz or more,and generally
the precision and resolution of the voltage measurementis not high. The digital
multi meter is the most basic ammeter andvoltmeter, and various lineups like the
hand-held type, bench top typeetc. are available. It is most widely used for
general voltagemeasurement because high accuracy and high resolution
voltagemeasurement devices are available, though it does not match
theoscilloscope with respect to speed. The electrometer has the functionof current
and voltage measurement similar to the digital multi meter.When focusing
attention on the voltage measurement, it can bepositioned with the voltmeter
characterized by the high inputresistance at the measuring terminal by comparing
with the digitalmulti meter. The advantage of the voltage measurement using
theelectrometer is described in this document
.
iii
a sequence ofsampled values it is usually called an analog-to-digital converter
(ADC
)
Chapter Two
iii
ADDownload to read ad-free.
2.1 Introduction
In this project we can use arduino's analog to digital converter (ADC)pins to convert analog
voltage values into number representation thatyou can work with. The accuracy of an ADC is
determined by theresolution. In the case of the arduino uno, there is a 10-bit ADC fordoing
your analog conversions. 10-bit means that the ADC cansubdivide (or quanze) analog signal
into 2^10 different values. If youdo the math, you'll find that 2^10 = 1024. Hence, the arduino
can assigna value from to 1023 for any analog value that you give it. Although it ispossible to
change the reference voltage, you'll be using the default 5vreference for the analog work. The
reference voltage determines themax voltage that you are expecting, and therefore, the value
that willbe mapped to 1023. So, with a 5v reference voltage, pu ng 0v on anADC pin returns
a value of 2.5v returns a value of 512(half of 1023) ,and5v returns a value of 1023. [2]
A digital voltmeter (DVM) attains the required measurement byconverting the analog input
signal into digital and when necessary bydiscrete-time processing of the converted values. The
measurementresult is presented in a digital form that can be coded as a decimal BCDcode or a
binary code the main factors that characterize DVMs arespeed automatic operation and
programmability in particular theypresently offer the best combination of speed and accuracy
lfcompared with other available voltage-measuring instrumentsmoreover capability of
automatic operations and program-mabilitymake DVMs very useful in application where
flexibility high speed
andcomputer controllability are requied A typical application field istherefore that of
automatically operated systems when a DVM isdirectly interfaced to a digital signal processing
(DSP) and used toconvert the analog input voltage into a sequence of sampled values it
isusually called an analog-to-digital converter (ADC)
10
Microcontroller5VOperating Voltage
7-12VInput Voltage(recommended)
iii
6-20VInput Voltage (limit)
14 (of which 6 provide PWMoutput)Digital I/O Pins6PWM Digital I/O Pins6 Analog Input
Pins20 mADC Current per I/O Pins50 mADC Current for 3.3V Pin32 KB (ATmega328P) of
which 0.5KB used by boot loaderFlash Memory2 KB (ATmega328P)
SRAM1 KB (ATmega328P)EEPROM
13
iii
ADDownload to read ad-free.
The Uno 328p can be powered vin the USB connection or withan DC supply of 6 to 20 volts.
Figure (2-2) USB and DC input
iii
If supplied with less than 7V however, the 5V pin may supplyless than five volts and the board
may become unstable. If usingmore than 12V, the voltage regulator may overheat and
damagethe board. The recommended range is 7 to 12 volts.[6]The digital pins are as follows:
External Interrupts: 2 and 3. These pins can be conigured totrigger an interrupt on a low
value, a rising or falling edge, or achange in value. See the attach Interrupt() function for
details.PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with theanalog Write()
function. On boards with an ATmega8, PWMoutput is available only on pins 9, 10, and 11.BT
Reset: 7. (Arduino BT-only) Connected to the reset line of thebluetooth module.SPI: 10 (SS),
iii
11 (MOSI), 12 (MISO), 13 (SCK). These pinssupport SPI communication, which, although
provided by theunderlying hardware, is not currently included in the Arduinolanguage.LED:
13. On the Diecimila and LilyPad, there is a built-in LEDconnected to digital pin 13. When the
pin is HIGH value, the LEDis on, when the pin is LOW, it's off.[7]
Figure (2-3) digital pins
15
Analog Pins
In addition to the specific functions listed below, the analoginput pins support 10-bit analog-to-
digital conversion (ADC)using the analog Read() function. Most of the analog inputs canalso
be used as digital pins: analog input 0 as digital pin 14through analog input 5 as digital pin 19.
Analog inputs 6 and 7(present on the Mini and BT) cannot be used as digital pins.I2C: 4 (SDA)
and 5 (SCL). Support I2C (TWI)communication using the Wire library (documentation on
theWiring website.[7]
Figure (2-4) analog pins
Power Pins
16
VIN (sometimes labelled "9V"). The input voltage to the Arduinoboard when it's using an
external power source (as opposed to 5volts from the USB connection or other regulated power
source).You can supply voltage through this pin, or, if supplying voltagevia the power jack,
access it through this pin. Note that differentboards accept different input voltages ranges,
please see thedocumentation for your board. Also note that the LilyPad has noVIN pin and
accepts only a regulated input.The regulated power supply used to power themicrocontroller
5V and other components on the board. This cancome either from VIN via an on-board
regulator, or be suppliedby USB or another regulated 5V supply.V3: (Diecimila-only) A 3.3
volt supply generated by the on-board FTDI chip.GND: Ground pins.[7]
Figure (2-5) power pins
iii
17
Other Pins:
AREF: Reference voltage for the analog inputs. Used withanalog Reference.Reset: (Diecimila-
only) Bring this line LOW to reset themicrocontroller. Typically used to add a reset button to
shieldswhich block the one on the board.[7]
18
LCD (Liquid Crystal Display) screen is an electronic displaymodule and ind a wide range of
application. A 16x2 LCD displayis very basic module and is very commonly used in
iii
variousdevices and circuits. These modules are preferred over sevensegments and other multi
segment LEDs. The reasons being:LCDs are economical; easily programmable; have no
limitationof displaying special & even custom characters (unlike in sevensegments),
animations and so on. A 16x2 LCD means it can display 16 characters per line andthere are 2
such lines. In this LCD each character is displayed in5x7 pixel matrix. This LCD has two
registers, namely, commandand Data shown in igure (2-6).The LCDs have a parallel
interface, meaning that themicrocontroller has to manipulate several interface pins at onceto
control the display. The interface consists of the
followingpins: A register select (RS) pin that controls where in the LCD'smemory you're
writing data to. You can select either the dataregister, which holds what goes on the screen, or
an instructionregister, which is where the LCD's controller looks forinstructions on what to do
next. A read/write R/W pin that select reading mode or writing mode. An Enable pin that
enables writing to the register
19
8data pins (D0 -D7). The states of these pins (high or low) arethe bits that you're writing to a
register when you write, or thevalues you're reading when you read.There's also a display
constrast pin (Vo), power supply pins(+5V and Gnd) and LED Backlight (Bklt+ and BKlt-)
pins that youcan use to power the LCD, control the display contrast, and turnon and off the
LED backlight, respectively.
Figure (2-6) LCD
The process of controlling the display involves putting thedata that form the image of what you
want to display into thedata registers, then putting instructions in the instructionregister. The
LiquidCrystal Library simplifies this for you so youdon't need to know the low-level
instructions.[8]
20
2.3.3 Potentiometer
iii
A potentiometer is a manually adjustable variable resistorwith 3 terminals. Two terminals are
connected to both ends of aresistive element, and the third terminal connects to a
slidingcontact, called a wiper, moving over the resistive element. Theposition of the wiper
determines the output voltage of thepotentiometer. The potentiometer essentially functions as
avariable voltage divider. The resistive element can be seen astwo resistors in
series(potentiometer resistance), where thewiper position determines the resistance ratio of the
firstresistor to the second resistor A potentiometer is also commonly known as a potmeter
orpot most common form of potmeter is the single turn rotarypotmeter. This type of pot is often
used in audio volume control(logarithmic taper) as well as many other applications.
Differentmaterials are used to construct potentiometers, includingcarbon composition, cermet,
wirewound, conductive plastic ormetal film.[9]
Figure (2-7) potentiometer
21
iii
CHAPTER THREE DESIGN AND IMPLEMEMENTATION
22
23
un
o
In this project we implement an arduino for digital voltmeterusing a related technology. For
measuring voltage less than orequal to 50.Pin 1 and 2 (Vss and Vdd) of the LCD power supply
pins fordisplay. They are connected to ground and +5V supplyrespectively. Pin 3 (Vee) of the
LCD is the contrast adjust pin ofthe display. It is connected to the wiper terminal of the 5KΩ
POTwhile the other terminals of the POT are connected to +5Vsupply and ground
respectively.The next three pins of the LCD are control pins. Pins 4 and 6 (RSand E) of the
LCD are connected to digital input/output pins 8and 9 of Arduino respectively. Pin 5 (RW) of
the LCD isconnected to ground.
The next connections are with respect to data pins. The LCD isused in 4-bit data mode and
hence data pins D4 to D7 are used.Connect pins 11 to 14 (D4 to D7) of the LCD are connected
todigital input/output pins 4 to 7 of the Arduino. Pins 15 and 16are the supply pins of the
iii
backlight LEDs. Pin 15 (LED+) of theLCD is connected to +5V supply . Pin 16 (LED-) of the
LCD isconnected to ground.
24
The output of the voltage divider circuit consisting of 100KΩresistor and 10KΩ resistor is
connected to the analog input
pin A0 of the Arduino UNO with other end of the 100KΩ resistorconnected to the voltage to be
measured and the other end of the10KΩ resistor connected to the ground.The ground terminal
of the input voltage to be measured and Arduino UNO must be common.[10]
In a digital voltmeter, the voltages to be measured, which arein analog form, are converted to
digital form with the help of Analog to Digital Converters (ADC). Hence, the ADC feature of
the Arduino UNO is utilized in this
project. In the circuit, which is used to measure a maximum voltage of50V, the input voltage is
given to the analog input pin of the Arduino. The reference voltage of the ADC is 5V. The
ADC in Arduino UNO is of 10-bit resolution. Hence, the input voltage iscalculated by
multiplying the analog value at the analog pin with5 and dividing the value
with 1024. The range of voltages for Arduino UNOs analog input is 0V to5V. Hence, in order
to increase this range, a voltage dividercircuit must be
used. The range of the analog input of Arduino UNO is increased upto 50V by using a voltage
divider consisting of 100KΩ resistorand 10KΩ resistor. With the help of the voltage divider
circuit,the input voltage being measured is brought down to the rangeof Arduino UNOs analog
input.The rest of the calculations are made in the programming part ofthe Arduino UNO.[10]
iii
26
3-4 Probleme
In this project we encountered many problems building theproject of most of these problems.1-
The difficulty of using caustic welding for the first time.2-The difficulty of the work and write
the code compiler becauseof us doesn't have knowingly about processing of program.3-We
encountered some difficulty in programming the LCDdisplay.4-There is a small difference in
measured volvulity and this isdue to the use of voltage divider.5- The battery connected to
arduino is low on power and notdischarge.
27
3-5 Programming
Programming code LCD with arduino:
Include<Liquidcrystal . h>
#
Liquidcrystal lcd (7,8,9,10,11,12) ;Void setup(){Lcd. Begin(16,2) ;Lcd. Print ("Hello
world") ;}Void loop(){Lcd. Setcursor(0,1) ;Lcd. Print(millisc)/1000) ;}
28
pinMode(analogInput, INPUT);
Serial.begin(9600); //BaudRate
;
)
lcd.begin(16, 2
Vout = (val * 4.99) / 1024.00; // formula for calculating voltageout i.e. V+, here 5.00
Vin = Vout / (R2 / (R1 + R2)); // formula for calculating voltagein i.e. GND
30
iii
ADDownload to read ad-free.
;
=" )
Serial.print("\t Voltage of the given source
;
)
Serial.println(Vi
lcd.setCursor(0, 1);;
) "=
lcd.print("Voltage;
)
lcd.print(Vin
delay(100);
31
ﻨﻨ ﻧ
32
Start Assemble the tools that need inproject a n d c o n n e c t t o e t h e r We made a box for the
circuit Fix the control tools on the boxProgram the arduino and build thecircuit Program the LCD by
arduinoEnd
iii
iii
iii
ADDownload to read ad-free.
33
34
35
iii
4-1 Conclusion
The versatility, accuracy, precision, robustness of digitalelectronic devices. Can not be matched
with that of analogdevices as the former ones are far more superior.
Digitalvoltmeter is a very simple example of a digital electronicdevice.
The disadvantage of using voltage divider based voltmeter isthe error of measurement
hence, we need multiple ranges ofvoltmeter. In order to reduce the error , the ratio of R1 and
R2 inthe voltage divider must be minimum. We choose R1 as100kohm and R2 10kohm then it
is possible to measure thevoltages up to 50v .
36
The circuit can be extended to measure even Ac voltages with slightmodification circuit and
code. Now a days digital voltmeter are alsoreplaced by digital miltimeters due to its
multitasking feature i.e. It canbe used for measuring current, voltage and resistance. But still
there aresome fields where separated digital voltmeters are being used.
Figure (4-1) digital multimeter device
37
References
[1] Book electronic instrumentation and measurement. Page142[2] Book exploring
arduino : tools and techniques forengineering wizardy,2013,Jeremy blum, page 170. -digital-
nanoprojects /-www.codrey.com/arduino[3] https://voltmeter.rev3.–uno–. Arduino.cc/usa/
arduinohttps://store[4]. Arduino. cc/en/products/compare.https://www[5]. Arduino
.cc/en/main/arduinoboarduno 328p.https://www[6]. Arduino
.cc/en/reference/board.https://www[7]. Arduino .cc/en/tutorial/hello
world.https://www[8].www.resistorguide.com/potentiometer/[9]–arduino–. Electronics
hub.org/digitalhttps://www[10]voltmeter/.
Abstract
It's easy to make a simple digital voltmeter using an Arduino and 16x2 liquid crystal display (
LCD). It's relativelysimple to use an Arduino to measure voltages. The Arduino hasseveral
analog input pins that connect to an analog-to-digitalconverter (ADC) inside the Arduino. The
Arduino ADC is a ten-bitconverter, meaning that the output value will range from 0 to1023.
We will obtain this value by using the analog Read()function. If you know the reference
voltage--in this case we willuse 5 V--you can easily calculate the voltage present at theanalog
input.
To display the measured voltage, we will use a liquid crystaldisplay (LCD) that has two lines
of 16characters. LCDs are widelyused to display data by devices and
it has a lot of electricalappliancesThis project will also show you how to measure
voltagesabove the reference voltage by using a voltage divider
iii