RMS Voltage Measurement Using Arduino UNO

Motivation

Voltage Sensor and Signal Conditioning

The ac voltage measured by the sensor has to be conditioned to the analog input range of the microcontroller as presented in Fig. 1.

Fig.1 - Signal Conditioning for the analog input range

Pros and Cons of Different Voltage Sensors

Hall Efect (LV20-P) Current transformer (ZMPT101B) Differential Amplifier
  • Detects the dc component
  • High bandwidth
  • Galvanic isolation
  • High Cost
  • Low cost
  • Galvanic isolation
  • Does not detect the dc component
  • Restricted bandwidth
  • Low cost
  • Detects the dc component
  • Suitable bandwidth for grid voltage measurements
  • No galvanic isolation (high impedance)
Some Measurements: Dimmer load voltage (trigger angle ~=65°)

Voltage Sensor Used in This Proposal (Differential Amplifier)

Fig.2 - Voltage sensor and signal conditioning scheme

Warning

The scheme presented in Fig. 2 is for laboratory use only. This has not been tested to verify its compliance with the standards relating to equipment for measuring voltage in electrical network circuits. Users shall use the scheme at their own risk and responsibility.

Multi-Point Calibration (Curve Fitting)

Fig. 3 presents the result of the multi-point calibration process. Each point on the curve corresponds to average value of 1024 samples, considering a dc voltage applied to analog input, measured by a standard voltmeter. The gain and offset are determined by linear regression.

Fig.3 - Calibration result

Recommendations

Links