Preview

Pic Based Digital Voltmeter

Good Essays
Open Document
Open Document
717 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Pic Based Digital Voltmeter
PIC based digital voltmeter

author: Rajendra Bhatt - rajbex[pic]yahoo.com

Introduction

This project describes how to make a digital voltmeter using a PIC microcontroller. A HD44780 based character LCD is used to display the measured voltage. The PIC microconotroller used in this project is PIC16F688 that has 12 I/O pins out of which 8 can serve as analog input channels for the in-built 10-bit ADC. The voltage to be measured is fed to one of the 8 analog channels. The reference voltage for AD conversion is chosen to be the supply voltage Vdd (+5 V). A resistor divider network is used at the input end to map the range of input voltage to the ADC input voltage range (0-5 V). The technique is demonstrated for input voltage ranging from 0-20 V, but it can be extended further with proper selection of resistors and doing the math described below.
Circuit Diagram

Since the PIC port cannot take 20V input directly, the input voltage is scaled down using a simple resistor divider network. The resistors R1 and R2 scale down the input voltage ranging from 0-20V to 0-5V, before it is applied to PIC16F688’s analog input channel, AN2. A 5.1V zener diode connected in parallel between the port pin AN2 and the ground provides protection to the PIC pin in case the input voltage accidentally goes beyond 20V. The LCD display is connected in 4-bit mode, and the ICSP header makes the firmware development easier as you can reprogram and test the PIC while it is in circuit. When you are satisfied and want to transfer the circuit from the breadboard to a PCB or general-purpose prototyping board, you don’t need the ICSP header. The circuit diagram and the prototype built on a breadboard are shown below.
[pic]

Important: You need a regulated +5V supply for accuracy of the output. The ADC uses Vdd as the reference for conversion, and all computations are done with Vdd = 5V. You can get a regulated +5V using a LM7805 linear regulator IC.

Circuit made on breadboard

You May Also Find These Documents Helpful

  • Satisfactory Essays

    ECT122 W3 ILab 2

    • 279 Words
    • 2 Pages

    3. Use the breadboard to construct the circuit above. Measure and record the value of each resistor with the handheld DMM. Remember that you should remove the resistor from the circuit to obtain an accurate reading. Connect the input of the circuit to the variable positive supply connections on the power supply. Set the DC power supply to +10 volts. Use the handheld DMM to verify the input voltage is +10 V. Measure and record each voltage listed below with the handheld DMM. Measure the current last. Have the professor verify the connections before applying power.…

    • 279 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Lab 18

    • 846 Words
    • 3 Pages

    6. Set your DMM to measure voltage by moving its function switch to V---, and turning its range dial to a voltage equal to or higher than that of the 1.5V battery.…

    • 846 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Part B Experiment

    • 1210 Words
    • 5 Pages

    Once this first circuit was correctly constructed and a teaching assistant double checked it, the power supply, represented by VTin the schematic, was turned on and set to 4 Volt DC. The RTin the schematic represents the placement of the linear displacement sensor. V2represents the output measured by the connected multimeter. Initially, slider of the linear displacement sensor was all the way to the side and the multimeter displayed a reading zero. As the student pushed the slider along its track from 0 cm to 6 cm at 1 cm increments, using a metric ruler, the reading given through the multimeter was recorded.…

    • 1210 Words
    • 5 Pages
    Powerful Essays
  • Powerful Essays

    CTR 212 Assignment 2

    • 818 Words
    • 5 Pages

    Digital circuits can easily distinguish between two voltage levels, which can be related to the binary digits 1 and 0. Therefore, the binary system can easily be applied to PLCs and computer systems.…

    • 818 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    PICOT Question

    • 834 Words
    • 3 Pages

    Only a few studies in nursing research provide some kind of study that looks into experiences of patients who choose to undergo bariatric surgical procedures or investigation. Within the growth of science in bariatric nursing, there is that need of information to support both the patient that is receiving the care and the physician that is providing the care and the support. In this time of continues growth in this bariatric procedures, it is a most that all healthcare providers initiate and Evaluate necessary changes in practice that will enhance the well-being and health of patients that undergo this procedure. With the current increase in the rate of obesity, people have now turned to bariatric surgery because they have tried all the other methods and find it not that helpful. Statistic shows that adults are obese or overweight with a percentage of 68.8%; 35.7% are obese. 31.8% of children and adolescents are obese of overweight; 16.9 are obese. (Olden et al.,2012). Death is a risk factor for patient undergoing this surgery and also co-morbidities like hypertension, diabetes, sleep apnea and heart problems that can affect the outcome of the surgery. After the surgical procedures, some of the problems that were identified were the lack of adequate pain management and social support system. This study shows that education of nurses on the continues need of assessment, implementation and evaluation on both the physical and psychosocial outcome of this patient is imperative to fully meet their needs.…

    • 834 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    will then change voltage and transmit the information to another device such as a thermometer. After much…

    • 3851 Words
    • 23 Pages
    Powerful Essays
  • Good Essays

    Potato Battery

    • 797 Words
    • 4 Pages

    Materials:  fresh potatoes  Direct Coupled Amplifier DC Voltmeter in a Digital Multimeter  Copper Coins and Zinc-Galvanized Nails Procedure: 1. Set the multimeter to the “2V” (direct current) range. Turn it on. 2. To measure its voltage, insert the black and red probe to the potato. To increase the voltage, inject a coin and a zinc-galvanized nail to the said fruit, and connect it to the multimeter using the alligator clips, have the black probe to the zinc-galvanized nail while the red probe to the copper coin. 3. Read the value.…

    • 797 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Output device - uses electric energy to do work. Examples are motor, lamp, or display.…

    • 3670 Words
    • 15 Pages
    Powerful Essays
  • Good Essays

    Truss Report

    • 908 Words
    • 4 Pages

    will show the reading in terms of volts, where every 1 mili Volt of voltage is…

    • 908 Words
    • 4 Pages
    Good Essays
  • Best Essays

    Electronics 1 Lab

    • 1322 Words
    • 6 Pages

    This experiment is intended to introduce the basic concepts of the operational amplifiers and to help us better understand the relationship between the resistances and the amplifier gain.…

    • 1322 Words
    • 6 Pages
    Best Essays
  • Good Essays

    This Electrical Measurements Lab is designed to give students an introduction to talking measurements from a breadboard. Students have two available methods for taking voltage, current, and resistor measurements. One of which, is to use a standard multimeter to take measurements. However, all measurements in this lab report come from the digital NI ElVIS board.…

    • 803 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Once the piezo sensor is installed, the circuit obtained by wiring the sensor to an Arduino board as shown in Figure 10 is implemented. Upon successful implementation of the circuit, the program shown in pages 9 through 11 should be coded to the Arduino IDE for the calibration of the piezo sensor.…

    • 961 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    logic gate

    • 900 Words
    • 4 Pages

    Note 1: Not more than one output should be shorted at a time, nor for more than 1 second.…

    • 900 Words
    • 4 Pages
    Powerful Essays
  • Good Essays

    this chapter will give an insight into the meaning microcontroller based dot matrix advert display system, ways by which it could be achieved, here some discrete components such as resistors, capacitors and transistors with integrated circuits (IC) were used to make this work and it’s wiring easier to understand. By the end of this chapter, one would stand a better chance of having an understanding of what microcontroller based dot matrix advert display system is all about, taking all the components used one after the other.…

    • 774 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Embedded Systems

    • 1955 Words
    • 8 Pages

    A new revolutionary microwave life detection system. Which is used to locate human beings buried (or) trapped under earthquake rubble has been designed. This system operating at certain frequency can remotely detect the breathing and heart beat signals of human beings buried under earthquake rubble. By proper processing of these signals, the status of the person under trap can be easily judged. The entire process takes place within a few seconds as the system is controlled by a PIC Microcontroller unit.…

    • 1955 Words
    • 8 Pages
    Powerful Essays