voltmeter ammeter pic

Posted on Feb 6, 2014

Voltmeter and Ammeter can be easily made using PIC Microcontroller having ADC (Analog to Digital Converter). I am using PIC16F877A and the result is displayed on an LCD Display. PIC16F877A is enough if you do this project only for testing purposes. I suggest to use PIC with low pin numbers and multiplexed 7 segment display if you wish to use

voltmeter ammeter pic
Click here to download the full size of the above Circuit.

thisas your measuring instrument. ADC module of PIC Microcontroller converts the Signals on its analog pin to 10 bit binary data and it hasG‚software selectable high and low voltage reference input to some combination of VDD, VSS, RA2 and RA3. The analog input to PIC is limited to VSS and VDD voltages (0 5V) of PIC. This circuit is designed to measure 0 to 30V. So we will map 0 to 30V to 0 to 5V by using a voltage divider. Current through a circuit can be measured by introducing G‚a 1 ohm resistor and measuring the voltageG‚acrossG‚it. To minimize the path resistance we will use. 47 ohm special resistor with fuse (shown in figure) and current is calculated. Voltage and Current Sampling circuit is shown below. The voltage across. 47 ohm resistor is also feedback to the analog pin RA3 via 100K ohm resistor. 5. 1V Zener Diode is added in parallel to these analog input pins to protect PIC from over voltages. v = ADC_Read(2); // ADC value of channel 2 (voltage) i = ADC_Read(3); // ADC value of channel 3 (current) V = v*4. 89; // Converting ADC value to mV I = i*4. 89; // Converting ADC value to mV To display the results in LCD Display we need to convert these readings into string, we use the user defined function look() for it. It converts eachG‚digitG‚in the reading to corresponding character (see the source code). Yes it is possible Apply a known voltage to the unknown resistor and find the current through that resistor ....

Leave Comment

characters left:

Related Circuits

  • New Circuits



    Popular Circuits

    Overvoltage protection circuit
    Pulse-Width Modulator
    DIY Audio Function Generator Part 1
    remote control circuit through radio
    2 Transistor FM Voice Transmitter
    Boss MT-2 Metal Zone distortion pedal schematic diagram
    Servomotor Control Program
    Single Span HF Test Oscillator
    Integrated operational amplifier drives the power amplifier OCL