SlideShare a Scribd company logo
DIGITAL VOLTMETER USING
89C51 MICROCONTROLLER
Guide,
Prof. S. A. Karmude
By,
Saylee S. Joshi
INTRODUCTION
• Voltmeter is a voltage measuring instrument.
• We can measure the potential difference between any
two points in an electrical network using voltmeter.
• There are two types of voltmeter as analog voltmeter
and digital voltmeter.
• Analog voltmeter moves pointer on a scale but it has
some limitations like accuracy of few percent of full
scale.
• Digital voltmeter can display numerical value of voltage
on a display by use of analog to digital converter (ADC).
• All the data processing and manipulating is in digital
form, so it is very essential to use ADC.
Cont….
• We have used ADC0804 analog-to-digital
converter IC. The range of input voltage is 0-
15V. Here the input voltage should be DC
voltage so as to get the steady output on the
LCD display.
• If you give the AC voltage as an input, it will
display continuously running numbers as the
nature of AC voltage.
Block Diagram
Components Required For Digital
Voltmeter Using 89c51 Microcontroller
• Microcontroller, AT89C51
• Analog‐to‐Digital Converter, ADC0804
• 16×1 LCD
• Oscillator circuit for the microcontroller
– 12MHz Crystal Capacitor
– 33pF Capacitors
• Voltage divider circuit/ Input terminals
– 200k, 100k Resistors
– 100nF Capacitor
• ADC Clock Circuit 100k Potentiometer (to adjust the back‐light of
the LCD)
– 10k Resistor
– 150pF Capacitor
• 100k Potentiometer (to adjust the back‐light of the LCD)
Circuit Diagram Of Digital Voltmeter
Using 89c51 Microcontroller
Lcd Pin Diagram
Pin no. Name Description
1 Vss Ground
2 Vdd +5V
3 Vee Contrast Adjustment ‐2V to ‐5V
4 RS Register Select
5 RW 1 ‐Read , 0‐ Write
6 E Enable Strobe
7 D0 Data Line
8 D1 Data Line
9 D2 Data Line
10 D3 Data Line
11 D4 Data Line
12 D5 Data Line
13 D6 Data Line
14 D7 Data Line
15 LED+ Backlit LED +V Vdd (Optional signal)
16 LED‐ Backlit LED –V Vss (Optional signal)
Components
1. 8051 Based Controller: 1
2. ADC0804: 1
3. LCD 16x1: 1
4. Potentiometer 10K: 1
5. Resistor 10K: 2
6. Resistor 200K: 1
7. Resistor 100K: 1
8. Capacitor 33pF: 2
9. Capacitor 10uF: 1
10. Capacitor 150pF: 1
11. Capacitor 100nF: 1
12. Crystal 12Mhz: 1
C Program For Digital Voltmeter Using
89c51 Microcontroller
#include <REGX51.H>
#include "lcd.h"
#define adc_port P1 //ADC Port
#define rd P3_7 //Read signal P3.7
#define wr P3_6 //Write signal P3.6
#define cs P3_5 //Chip Select P3.5
#define intr P3_4 //INTR signal P3.4
void conv(); //Start of conversion
function
void read(); //Read ADC function
unsigned int adc_avg,adc;
void main(){
char i;
LCD_INI();
while(1){
//Forever loop
adc_avg = 0;
for(i=0;i<10;i++){
conv(); //Start conversion
read(); //Read ADC
adc_avg += adc;
}
adc_avg = adc_avg/10;
wrt_cmd(0x80);
wrt_string("V(DC): ");
adc = adc_avg * 59;
hex2lcd((unsigned char)(adc/1000));
Cont….
wrt_data('.');
adc = adc%1000;
hex2lcd((unsigned char)(adc/10));
wrt_data('V');
}
}
void conv(){
cs = 0; //Make CS low
wr = 0; //Make WR low
wr = 1; //Make WR high
cs = 1; //Make CS high
while(intr); //Wait for INTR to
go low
}
void read()
{
cs = 0; //Make CS low
rd = 0; //Make RD low
adc = adc_port; //Read ADC
port
rd = 1; //Make RD high
cs = 1; //Make CS high
}
Advantages
• This system is used to measure the voltage in
low voltage applications.
• Used to measure the toy batteries.
• We can measure the physical quantities like
temperature, humidity, gas etc. using this
system with a little modification.
disadvantages
• The input analog voltage range should be 0 to
5V.
• Using this system we can measure only one
analog input value at a time.
Digital voltmeter using 89c51 microcontroller

More Related Content

What's hot

Analog vs digital
Analog vs digitalAnalog vs digital
Analog vs digital
Rojoni Akter
 
Energy Meters
Energy Meters Energy Meters
Energy Meters
Dr Ashok Tiwari
 
Switching regulators
Switching regulatorsSwitching regulators
Switching regulators
vishalgohel12195
 
ADC & DAC
ADC & DACADC & DAC
ADC & DAC
wewe mahir
 
Voltmeter
VoltmeterVoltmeter
Voltmeter
vaibhav jindal
 
Physiological transducers
Physiological transducersPhysiological transducers
Abstract--Smart meter
Abstract--Smart meterAbstract--Smart meter
Abstract--Smart meterArjun .M.M.
 
Digital voltmeter project
Digital voltmeter projectDigital voltmeter project
Digital voltmeter project
kaushikbandopadhyay
 
interfacing of temperature sensor LM 35 with 8051.pdf
interfacing of temperature sensor LM 35 with 8051.pdfinterfacing of temperature sensor LM 35 with 8051.pdf
interfacing of temperature sensor LM 35 with 8051.pdf
Srikrishna Thota
 
ADC and DAC Best Ever Pers
ADC and DAC Best Ever PersADC and DAC Best Ever Pers
ADC and DAC Best Ever Pers
Eng Ahmed Salad Osman
 
(D/A) and (A/D)conversion
(D/A) and (A/D)conversion(D/A) and (A/D)conversion
(D/A) and (A/D)conversion
Praveen Kumar
 
Digital energy meter
Digital energy meter Digital energy meter
Digital energy meter
preeti naga
 
Ac voltage
Ac voltageAc voltage
Ac voltage
sarunkutti
 
function generator
function generatorfunction generator
function generator
Himanshu Singh
 
Induction type measuring instrument (energy meter)
Induction type measuring instrument (energy meter)Induction type measuring instrument (energy meter)
Induction type measuring instrument (energy meter)Rahul Kumar Meena
 
L5-DC to DC CONVERTER.ppt
L5-DC to DC CONVERTER.pptL5-DC to DC CONVERTER.ppt
L5-DC to DC CONVERTER.ppt
antexnebyu
 
Fundamentals of electrical engineering
Fundamentals of electrical engineeringFundamentals of electrical engineering
Fundamentals of electrical engineering
Satish Kansal
 
Power System Modeling Presentation
Power System Modeling PresentationPower System Modeling Presentation
Power System Modeling Presentation
Chaitra Panat
 
Three level inverter
Three level inverterThree level inverter
Three level inverter
Vinay Singh
 
Digital frequency meter
Digital frequency meterDigital frequency meter
Digital frequency meter
amit parcha
 

What's hot (20)

Analog vs digital
Analog vs digitalAnalog vs digital
Analog vs digital
 
Energy Meters
Energy Meters Energy Meters
Energy Meters
 
Switching regulators
Switching regulatorsSwitching regulators
Switching regulators
 
ADC & DAC
ADC & DACADC & DAC
ADC & DAC
 
Voltmeter
VoltmeterVoltmeter
Voltmeter
 
Physiological transducers
Physiological transducersPhysiological transducers
Physiological transducers
 
Abstract--Smart meter
Abstract--Smart meterAbstract--Smart meter
Abstract--Smart meter
 
Digital voltmeter project
Digital voltmeter projectDigital voltmeter project
Digital voltmeter project
 
interfacing of temperature sensor LM 35 with 8051.pdf
interfacing of temperature sensor LM 35 with 8051.pdfinterfacing of temperature sensor LM 35 with 8051.pdf
interfacing of temperature sensor LM 35 with 8051.pdf
 
ADC and DAC Best Ever Pers
ADC and DAC Best Ever PersADC and DAC Best Ever Pers
ADC and DAC Best Ever Pers
 
(D/A) and (A/D)conversion
(D/A) and (A/D)conversion(D/A) and (A/D)conversion
(D/A) and (A/D)conversion
 
Digital energy meter
Digital energy meter Digital energy meter
Digital energy meter
 
Ac voltage
Ac voltageAc voltage
Ac voltage
 
function generator
function generatorfunction generator
function generator
 
Induction type measuring instrument (energy meter)
Induction type measuring instrument (energy meter)Induction type measuring instrument (energy meter)
Induction type measuring instrument (energy meter)
 
L5-DC to DC CONVERTER.ppt
L5-DC to DC CONVERTER.pptL5-DC to DC CONVERTER.ppt
L5-DC to DC CONVERTER.ppt
 
Fundamentals of electrical engineering
Fundamentals of electrical engineeringFundamentals of electrical engineering
Fundamentals of electrical engineering
 
Power System Modeling Presentation
Power System Modeling PresentationPower System Modeling Presentation
Power System Modeling Presentation
 
Three level inverter
Three level inverterThree level inverter
Three level inverter
 
Digital frequency meter
Digital frequency meterDigital frequency meter
Digital frequency meter
 

Similar to Digital voltmeter using 89c51 microcontroller

analog to digital converter and dac final
analog to digital converter and dac finalanalog to digital converter and dac final
analog to digital converter and dac final
DrVikasMahor
 
Mc module5 lcd_interface_ppt_msj
Mc module5 lcd_interface_ppt_msjMc module5 lcd_interface_ppt_msj
Mc module5 lcd_interface_ppt_msj
mangala jolad
 
Digital Alarm Clock (IC-TMS-8560)
Digital Alarm Clock (IC-TMS-8560)Digital Alarm Clock (IC-TMS-8560)
Digital Alarm Clock (IC-TMS-8560)Chintan Patel
 
digitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdfdigitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdf
satyamsinha37
 
ADC and DAC interfacing.pdf
ADC and DAC interfacing.pdfADC and DAC interfacing.pdf
ADC and DAC interfacing.pdf
VikasMahor3
 
UNIT 4 & 5 - I nterfacing_Lecture7.pptx
UNIT 4 & 5 - I         nterfacing_Lecture7.pptxUNIT 4 & 5 - I         nterfacing_Lecture7.pptx
UNIT 4 & 5 - I nterfacing_Lecture7.pptx
naveen088888
 
Construction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar DasConstruction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar Das
B.k. Das
 
Analog To Digital Conversion (ADC) Programming in LPC2148
Analog To Digital Conversion (ADC) Programming in LPC2148Analog To Digital Conversion (ADC) Programming in LPC2148
Analog To Digital Conversion (ADC) Programming in LPC2148
Omkar Rane
 
8051 interfacing
8051 interfacing8051 interfacing
8051 interfacing
KanchanPatil34
 
8051interfacing 190425062221
8051interfacing 1904250622218051interfacing 190425062221
8051interfacing 190425062221
Indranil Hatai
 
Electronic code lock device
Electronic code lock deviceElectronic code lock device
Electronic code lock deviceAmitoj Kaur
 
Unit iv microcontrollers final
Unit iv microcontrollers finalUnit iv microcontrollers final
Unit iv microcontrollers final
SARITHA REDDY
 
Industrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsIndustrial training report of embedded system and robotics
Industrial training report of embedded system and robotics
Pallavi Bharti
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...
NimeshSingh27
 
project - Copy
project - Copyproject - Copy
project - Copypiedaholic
 
Digitalvoltmeterppt 120914
Digitalvoltmeterppt 120914Digitalvoltmeterppt 120914
Digitalvoltmeterppt 120914
sparkle786
 
MPC of TWT based Transmitter
MPC of TWT based TransmitterMPC of TWT based Transmitter
MPC of TWT based TransmitterAbhishek Sutrave
 

Similar to Digital voltmeter using 89c51 microcontroller (20)

analog to digital converter and dac final
analog to digital converter and dac finalanalog to digital converter and dac final
analog to digital converter and dac final
 
Mc module5 lcd_interface_ppt_msj
Mc module5 lcd_interface_ppt_msjMc module5 lcd_interface_ppt_msj
Mc module5 lcd_interface_ppt_msj
 
Anup2
Anup2Anup2
Anup2
 
Digital Alarm Clock (IC-TMS-8560)
Digital Alarm Clock (IC-TMS-8560)Digital Alarm Clock (IC-TMS-8560)
Digital Alarm Clock (IC-TMS-8560)
 
Módulo adc 18f4550
Módulo adc   18f4550Módulo adc   18f4550
Módulo adc 18f4550
 
digitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdfdigitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdf
 
ADC and DAC interfacing.pdf
ADC and DAC interfacing.pdfADC and DAC interfacing.pdf
ADC and DAC interfacing.pdf
 
UNIT 4 & 5 - I nterfacing_Lecture7.pptx
UNIT 4 & 5 - I         nterfacing_Lecture7.pptxUNIT 4 & 5 - I         nterfacing_Lecture7.pptx
UNIT 4 & 5 - I nterfacing_Lecture7.pptx
 
Construction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar DasConstruction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar Das
 
Analog To Digital Conversion (ADC) Programming in LPC2148
Analog To Digital Conversion (ADC) Programming in LPC2148Analog To Digital Conversion (ADC) Programming in LPC2148
Analog To Digital Conversion (ADC) Programming in LPC2148
 
8051 interfacing
8051 interfacing8051 interfacing
8051 interfacing
 
8051interfacing 190425062221
8051interfacing 1904250622218051interfacing 190425062221
8051interfacing 190425062221
 
Electronic code lock device
Electronic code lock deviceElectronic code lock device
Electronic code lock device
 
Unit iv microcontrollers final
Unit iv microcontrollers finalUnit iv microcontrollers final
Unit iv microcontrollers final
 
Industrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsIndustrial training report of embedded system and robotics
Industrial training report of embedded system and robotics
 
8051 FINIAL
8051 FINIAL8051 FINIAL
8051 FINIAL
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...
 
project - Copy
project - Copyproject - Copy
project - Copy
 
Digitalvoltmeterppt 120914
Digitalvoltmeterppt 120914Digitalvoltmeterppt 120914
Digitalvoltmeterppt 120914
 
MPC of TWT based Transmitter
MPC of TWT based TransmitterMPC of TWT based Transmitter
MPC of TWT based Transmitter
 

Recently uploaded

A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
nooriasukmaningtyas
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
Kamal Acharya
 
digital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdfdigital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdf
drwaing
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
jpsjournal1
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
symbo111
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
PauloRodrigues104553
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
Mukeshwaran Balu
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
ChristineTorrepenida1
 
Ethernet Routing and switching chapter 1.ppt
Ethernet Routing and switching chapter 1.pptEthernet Routing and switching chapter 1.ppt
Ethernet Routing and switching chapter 1.ppt
azkamurat
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Soumen Santra
 
PROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.ppt
PROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.pptPROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.ppt
PROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.ppt
bhadouriyakaku
 

Recently uploaded (20)

A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
 
digital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdfdigital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdf
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
 
Ethernet Routing and switching chapter 1.ppt
Ethernet Routing and switching chapter 1.pptEthernet Routing and switching chapter 1.ppt
Ethernet Routing and switching chapter 1.ppt
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
 
PROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.ppt
PROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.pptPROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.ppt
PROJECT FORMAT FOR EVS AMITY UNIVERSITY GWALIOR.ppt
 

Digital voltmeter using 89c51 microcontroller

  • 1. DIGITAL VOLTMETER USING 89C51 MICROCONTROLLER Guide, Prof. S. A. Karmude By, Saylee S. Joshi
  • 2. INTRODUCTION • Voltmeter is a voltage measuring instrument. • We can measure the potential difference between any two points in an electrical network using voltmeter. • There are two types of voltmeter as analog voltmeter and digital voltmeter. • Analog voltmeter moves pointer on a scale but it has some limitations like accuracy of few percent of full scale. • Digital voltmeter can display numerical value of voltage on a display by use of analog to digital converter (ADC). • All the data processing and manipulating is in digital form, so it is very essential to use ADC.
  • 3. Cont…. • We have used ADC0804 analog-to-digital converter IC. The range of input voltage is 0- 15V. Here the input voltage should be DC voltage so as to get the steady output on the LCD display. • If you give the AC voltage as an input, it will display continuously running numbers as the nature of AC voltage.
  • 5. Components Required For Digital Voltmeter Using 89c51 Microcontroller • Microcontroller, AT89C51 • Analog‐to‐Digital Converter, ADC0804 • 16×1 LCD • Oscillator circuit for the microcontroller – 12MHz Crystal Capacitor – 33pF Capacitors • Voltage divider circuit/ Input terminals – 200k, 100k Resistors – 100nF Capacitor • ADC Clock Circuit 100k Potentiometer (to adjust the back‐light of the LCD) – 10k Resistor – 150pF Capacitor • 100k Potentiometer (to adjust the back‐light of the LCD)
  • 6. Circuit Diagram Of Digital Voltmeter Using 89c51 Microcontroller
  • 7. Lcd Pin Diagram Pin no. Name Description 1 Vss Ground 2 Vdd +5V 3 Vee Contrast Adjustment ‐2V to ‐5V 4 RS Register Select 5 RW 1 ‐Read , 0‐ Write 6 E Enable Strobe 7 D0 Data Line 8 D1 Data Line 9 D2 Data Line 10 D3 Data Line 11 D4 Data Line 12 D5 Data Line 13 D6 Data Line 14 D7 Data Line 15 LED+ Backlit LED +V Vdd (Optional signal) 16 LED‐ Backlit LED –V Vss (Optional signal)
  • 8. Components 1. 8051 Based Controller: 1 2. ADC0804: 1 3. LCD 16x1: 1 4. Potentiometer 10K: 1 5. Resistor 10K: 2 6. Resistor 200K: 1 7. Resistor 100K: 1 8. Capacitor 33pF: 2 9. Capacitor 10uF: 1 10. Capacitor 150pF: 1 11. Capacitor 100nF: 1 12. Crystal 12Mhz: 1
  • 9. C Program For Digital Voltmeter Using 89c51 Microcontroller #include <REGX51.H> #include "lcd.h" #define adc_port P1 //ADC Port #define rd P3_7 //Read signal P3.7 #define wr P3_6 //Write signal P3.6 #define cs P3_5 //Chip Select P3.5 #define intr P3_4 //INTR signal P3.4 void conv(); //Start of conversion function void read(); //Read ADC function unsigned int adc_avg,adc; void main(){ char i; LCD_INI(); while(1){ //Forever loop adc_avg = 0; for(i=0;i<10;i++){ conv(); //Start conversion read(); //Read ADC adc_avg += adc; } adc_avg = adc_avg/10; wrt_cmd(0x80); wrt_string("V(DC): "); adc = adc_avg * 59; hex2lcd((unsigned char)(adc/1000));
  • 10. Cont…. wrt_data('.'); adc = adc%1000; hex2lcd((unsigned char)(adc/10)); wrt_data('V'); } } void conv(){ cs = 0; //Make CS low wr = 0; //Make WR low wr = 1; //Make WR high cs = 1; //Make CS high while(intr); //Wait for INTR to go low } void read() { cs = 0; //Make CS low rd = 0; //Make RD low adc = adc_port; //Read ADC port rd = 1; //Make RD high cs = 1; //Make CS high }
  • 11. Advantages • This system is used to measure the voltage in low voltage applications. • Used to measure the toy batteries. • We can measure the physical quantities like temperature, humidity, gas etc. using this system with a little modification.
  • 12. disadvantages • The input analog voltage range should be 0 to 5V. • Using this system we can measure only one analog input value at a time.