Arduino For Your AC Current Monitor

Obtaining AC current readings from an AC wire helps us to know the amount of power that electrical appliances consume, promoting effective maintenance of the required load and supply.

So today you will make a current meter that performs current measurement and gives real-time data regarding the current consumed by various electrical appliances. The device also gives real-time power consumption data.

Arduino, DIY Electronic Projects, DIY Projects, Electronics Project, Arduino Project, Arduino Circuit Diagram, Circuit diagram, Arduino Diagram

Bill Of Material

Arduino, DIY Electronic Projects, DIY Projects, Electronics Project, Arduino Project, Arduino Circuit Diagram, Circuit diagram, Arduino Diagram

Coding

First, install the u8g2 library for OLED and sensors using the library manager in Arduino IDE. While the u8g2lib enables data display on the OLED, the emonLib facilitates obtaining the current reading from the sensor. So include these libraries in the setup function of the code.

Begin by defining the pin number and calibration factor for the current sensor. Then create a loop function for reading the analogue value from the current sensor. After doing this, convert the obtained value into IRMS, that is, Ipeak divided by the square root of two.

Next, calculate the apparent power. It is given by:

Apparent power = Reactive power + True power

                                                      Or

                                          P = ErmsIrms

where P is apparent power

Here the voltage is 230 V and IRMS is the current reading from the electronic sensor

Therefore, Apparent Power (P) = IRMS x 230V

In the code, multiply the IRMS value (that is extracted by the sensor) with 230V.

After calculating the apparent voltage and apparent power, update the OLED display so that the detected value is shown on the screen.

 

 

Arduino, DIY Electronic Projects, DIY Projects, Electronics Project, Arduino Project, Arduino Circuit Diagram, Circuit diagram, Arduino Diagram Arduino, DIY Electronic Projects, DIY Projects, Electronics Project, Arduino Project, Arduino Circuit Diagram, Circuit diagram, Arduino Diagram

Connection

Join the components as shown in the circuit diagram. Also, connect the electrical wire to the sensor.

Arduino, DIY Electronic Projects, DIY Projects, Electronics Project, Arduino Project, Arduino Circuit Diagram, Circuit diagram, Arduino Diagram

Testing

After connecting the electrical wire to the sensor and uploading the code, power the Arduino with 5V. Now the current meter is ready to check the power consumption and present the current reading on the OLED display. Whichever appliances you connect with the wire passing through the sensor, you will get the electrical reading relating to the current and power consumption.

Arduino, DIY Electronic Projects, DIY Projects, Electronics Project, Arduino Project, Arduino Circuit Diagram, Circuit diagram, Arduino Diagram

Leave a Reply

Your email address will not be published.