**Arduino Based Voltmeter**

**Arduino Based Voltmeter**

__Architecture of the project__

The entire project can be divided into three basic blocks;

1)Â Â Â Â Â AC/DC Voltage Sensor Unit

2)Â Â Â Â Â Processor Unit

3)Â Â Â Â Â Display Unit

The Sensor Unit takes two inputs, DC voltage and AC voltage. The Sensor Unit scales down the input DC and AC voltages into a DC voltage in the range of 0 to 5 V and provides the same as output.

The Processor Unit takes input voltage in the range of 0 to 5V. This unit takes the Sensor Unitâ€™s output as input voltage and uses the ADC to read this voltage. An Algorithm is then applied tocalculate the voltage. The unit then sends a 4bit data to the Display Unit which includes the AC and DC voltage values.

The Display Unit takes the 4bit data from the Processor Unit and produces a 16×2 display for AC and DV voltages.

**1) Â Â AC/DC Voltage Sensor Unit**

A basicÂ voltage divider circuit is used as the AC/DC Sensing Unit to scale down the input DC and AC voltages into a DC voltage in the range of 0 to 5 V. The Processor Unit can read this scaled down voltage and calculate the actual AC/DC voltages.

**Design the value of R1:**

Let us first select a maximum voltage that could be measured as 500V. When we apply 500V as â€˜Vâ€™, the â€˜V2â€™ should not be more than 5V and hence â€˜V1â€™ will be 500 â€“ 5 = 495V. At very high voltages like 495, the first thing to be taken care of is the power rating of the resistor. We are using resistors with the power rating 0.25W, and the power consumed by the resistor â€˜R1â€™ should be less than this, otherwise the resistors get heated up and catch fire.

The equation for power is, P = V1^{2} / R1.

Where;

P Â Â Â Â Â Â Â Â Â Â Â Power rating of the resistor

VÂ Â Â Â Â Â Â Â Â Â Â Â Voltage across the resistor

RÂ Â Â Â Â Â Â Â Â Â Â Â Resistance of the resistor

For the resistor R1 with power rating 0.25 W and 495 V across it,

0.25 = 495 * 495 / R1

Or, R1 = 980100 ohms, take 1 M ohm standard resistor.

**Design the value of R2:**

Now the value of R2 can be calculated using the previous equation, V = V2 * (1 + R1 / R2) as follows;

R2 = R1 / ((V / V2) â€“ 1)

R2 = 1000000 / ((500 / 5) â€“ 1)

R2 = 10101 ohms, take 10K ohm standard resistor.

The voltage â€˜V2â€™ is a fraction of the actual applied voltage â€˜Vâ€™. The applied voltage â€˜Vâ€™ can be calculated from the fraction of applied voltage â€˜V2â€™ with the help of the following equation.

DC voltage, Vdc = V2 * (1 + (R1 / R2))

**AC voltage as input:**

When we are applying an AC voltage we use a rectifier diode in series with the Voltage divider circuit to prevent the negative cycles from entering the circuitry. No need for step down transformers because we are already getting a voltage â€˜V2â€™ in the range of 0 to 5 V only, across R2.

**Requirement for Range selector:**

We require multiple ranges in avoltmeter due to the error appears in readings because of Resistance Tolerance.

a)Â Â Â Â Â Decrease in the ratio of R1/R2 decreases the error

b)Â Â Â Â Â There is a limit beyond which the R1/R2 cannot decrease further:

To measure different values of V with minimum error we need different set of R1 with a common R2. The voltage V whose value need to be measured is connected with an R1 which gives the least ratio of R1/R2, taking care of the fact that V2 should not go above 5V range.

(R1 / R2) > (V / 5) â€“ 1

For example to measure V = 500V, R1 / R2 > 99, hence we can use the set R1 = 1M and R2 = 10K which gives R1 / R2 = 100.

## Leave a Reply