Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 10

Build and test a basic voltmeter with the following specifications: o Voltage to be measured: 0V 5V o Display: One seven segment

t display without a display driver. Use a lookup table to display the correct value on the seven segment display. o Output Response Time: Voltage measured should be displayed real time. o The circuit must be constructed on Veroboard. o Measuring leads must be fixed onto the board

Input Probes
y y y y

ADC

PIC

Display

The input probes relegate the measured voltage. The ADC converts the voltage into a binary number The PIC decodes the number The display relays the converted and decoded number in recognizable format

y y y y y y y y y y y y y y y y

Veroboard 7805CT 5V Voltage regulator PIC16F628A ADC0804LCN ELS-505 Common cathode Display LM336Z25 2.5 volt Zener Diode Multi-meter Probes 10k Resistor x 1 330Ohm Resistor x 8 100pF Capacitor 3 channels SPST switch 2 Channel Cable junction Block IC Sockets x 2 Ethernet Cable Cores 9V Duracell Battery 9V Battery Connector

RB0 E 0 1 2 3 4 5 6 7 8 9 1 0 1 0 0 0 1 0 1 0

RB1 D 1 0 1 1 0 1 1 0 1 1

RB2 C

Lookup-Table For converting Binary Values RB3 RB4 RB5 RB6 DP B A F 1 0 1 1 1 0 1 0 0 0 1 1 1 0 1 1 1 0 1 0 1 0 0 1 1 0 0 1 1 0 1 1 1 0 1 1 1 0 1 1

RB7 G 1 0 0 0 1 1 1 0 1 1 0 0 1 1 1 1 1 0 1 1

HEX 77h 14h B3h B6h D4h E6h E7h 34h F7h F6h

For 1 Hz         

       

Circuit operates in the following manner 1. ADC is given a reference voltage of 5 volts full scale = 255 Binary Output 2. Comparative voltage is then connected via the probes from an external source 3. This voltage is measured against the reference voltage and a scale output of 5V vs. Input voltage is displayed on the D0-D7 Output pins 4. This binary number is relayed to the PIC16F628A Microprocessor 5. The processor decodes the binary input numbers connected to PORT-A and relegates a decoded signal to PORT-B. 6. Port B sends the signals to a 7-segment display via 330 resistors 7. The measured voltage is displayed on the seven-segment display.

Start

Disable Comparator

Set I/O

Move Port A value to storage Register

Load d'51" to decrement register

Subtract 51 from storage-register

Increment Voltage-Main File Yes

Remainde Positive ?

No
Load d'5' to decrement register

Subtract 5 from storage-register

Increment VoltageDecimal File Yes

Remainde Positive ?

No
Next Page

Compare Volt -Main file to lookup table Return Lookup Table number to Port B

Display number

1 Second Delay

Compare Volt -Decimal file to lookup table Return Lookup Table number to Port B

Display number

1 Second Delay

Goto: Move Port A value to storage Register

End

Circuit operates in the following manner 1. ADC is given a reference voltage of 5 volts full scale = 255 Binary Output 2. Comparative voltage is then connected via the probes from an external source 3. This voltage is measured against the reference voltage and a scale output of 5V vs. Input voltage is displayed on the D0-D7 Output pins 4. This binary number is relayed to the PIC16F628A Microprocessor 5. The processor decodes the binary input numbers connected to PORT-A and relegates a decoded signal to PORT-B. 6. Port B sends the signals to a 7-segment display via 330 resistors 7. The measured voltage is displayed on the seven-segment display.

Shortcomings. 1. 2. 3. 4. 5. Shelf Volt-meters can measure AC+DC voltage we can only measure DC Voltage. This meter can t measure current or resistance. This meter can only measure up to 5-volts. This meter has only one-digit display. This meter is not isolated from measured supply.

Improvements. 1. 2. 3. 4. 5. LCD-interface instead of 7-segment display. Larger voltage measuring range. Place control board in an enclosure. Use printed circuit board instead of Veroboard. Incorporate a logic probe option.

You might also like