8/9/2017
AC Voltage Measurement using Arduino | Circuits4you.com
AC Voltage Measurement using Arduino May 13, 2016
Ardu duin ino o Tut Tutor oria ials ls Ar
ac,, ac ac vol volta tage ge,, ac ac vol voltm tmet eter er,, ard ardui uino no,, cod code, e, hi high gh,, ac
voltage, voltmeter AC voltage measurement can be carried out by converting AC voltage into proportional DC Voltage using rectifier and filter circuits. For low AC voltage (mili volts) measurement precision rectifier is used as diode knee voltage is 0.7 Volt. Similar to DC voltage measurement Voltage divider is constructed using 47K Ohm variable resistor R1. 5V zener diode is used to protect Arduino from accidental excess voltages. Adjust the resistor R1 (47K) to calibrate the voltage. Here the AC voltage that we can give to transformer is from 50V to 230V depending on its ratings. Rectified DC is fed to the voltage divider circuit.
Components Used for AC Voltage Measurement 1. 1N4007 Diodes – Qty. 4 2. Arduino Uno 3. Connecting Wires 4. Step down transformer 230V to 6V 5. Variable resistor 47K Ohm 6. Capacitor 1uF 25V 7. 5V Zener Diode
Arduino AC Voltage Measurement Circuit
AC Voltage Me Measurement C ir ir cuit cuit Connect Arduino as per circuit shown in figure 2.5, make ground common for Arduino and circuit shown in figure. Adjust the resistor R1 to get proper reading. When AC Voltage is 250V we get 5V output. So calibration formula is AC Voltage Voltage = (250/1024) * ADC_Value
In case if the voltage reading is fluctuating then increase the value of C1 from 1uF to 10uF. 10uF.
Arduino Code for AC Voltage Measurement http://circuits4you.com/2016/05/13/arduino-ac-voltage/
1/4
8/9/2017
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
AC Voltage Measurement using Arduino | Circuits4you.com
/*
Read AC Voltage 50 to 250 Volts - www.circuits4you.com Reads an analog input on pin 0, converts it to voltage, and print result to the serial monitor. Graphical representation is available using serial plotter (Too Serial Plotter menu)
*/ // the setup routine runs once when you press reset: void setup() { // initialize serial communication at 9600 bits per second: Serial .begin(9600); } // the loop routine runs over and over again forever: void loop() { // read the input on analog pin 0: int sensorValue = analogRead(A0); // Convert the analog reading (which goes from 0 - 1023) to a volta float voltage = sensorValue * (250.0 / 1024.0); // print out the value you read: Serial .print("AC Voltage: "); Serial .print(voltage); Serial .println(" Volts"); delay(1000); }
Results of AC Voltage Measurement Open the Serial Monitor from (Tools>>Serial Monitor), Set Baud rate to 9600, See the AC voltage reading in serial monitor.
AC Voltage Measurement Result
Related
http://circuits4you.com/2016/05/13/arduino-ac-voltage/
2/4
8/9/2017
AC Voltage Measurement using Arduino | Circuits4you.com
4 thoughts on “AC Voltage Measurement using Arduino” May 9, 2017 at 10:51 am
Pretty! This was an incredibly wonderful article. Many thanks for supplying this information.
Dallas Malcolm
May 22, 2017 at 12:13 pm
Its AC Current that’s why Manoj R.
Thakur
March 16, 2017 at 6:32 pm
Is this circuit works lpc2148 microcontroller ? If yes,then how its programed.
imtiaj
November 9, 2016 at 3:31 am
Hello, will this circuit read as low as 10mv?
Dustin
http://circuits4you.com/2016/05/13/arduino-ac-voltage/
3/4
8/9/2017
http://circuits4you.com/2016/05/13/arduino-ac-voltage/
AC Voltage Measurement using Arduino | Circuits4you.com
4/4