Arduino Wi-Fi AC Energy Meter

by Poldo in Circuits > Arduino

4246 Views, 39 Favorites, 0 Comments

Arduino Wi-Fi AC Energy Meter

Energy Meter Basic.jpg

Introducing an accurate AC energy meter that is Wi-Fi enabled. The meter has a power range of 5W to 3.2kW and measures True RMS volts, True RMS current, Real power, Power factor, kilowatt-hours and includes a scrolling plot of AC voltage variation over time. All data is sent once every second via Wi-Fi to a free Android App called "RoboRemo". For this project we will utilize an Arduino Nano, an 8266-01 Wi-Fi module and an ACS712 current sensing module. This instructable will explore the theory behind AC power measurements , explain how the circuit works and show how to download and customize the RoboRemo application.

All the pertinent files will be accessible via my GoogleDrive

https://drive.google.com/drive/folders/1NvK4f2d-y5f26P7TWCwK2i0CpFPwBIqd?usp=share_link

Supplies

Arduino Nano - Note: an Arduino UNO or MEGA can be substituted

ESP8266-01 module

ACS712-20 - Current sense module

5V Power Supply (500mA min) - I used a small 5V USB Charger

LMC7111 - Op-Amp rail to rail Note: LM321,LM324 or M358 can be substituted limiting the dynamic range of ACS712

LM78M33 - 3.3V regulator SOT-223 package Note: Any suitable 3.3V regulator can be substituted

220k resistor 1Watt

10K resistor (x5)

2.7k resistor (x2)

1k resistor (x3)

1uF electrolytic capacitor (x2) 10 volts or greater

100nF ceramic capacitor (x3)

Pin Header strip - Female

Terminal block 5mm 2 pin (x4)

AC lamp cord wire

small guage hook-up wire

Board Assembly

FreePCB Layout.png

I etched my own PCB but initially I built and tested it on a solderless breadboard

Introduction and Project Topics

AC Energy Meter Intro

Please watch this short video to see what we will be discussing as part of this instructable

AC Measurement Theory

AC Measurement Theory

Please watch this short video for a detailed explanation of how we go about measuring AC voltage and power.

Below are some additional resources to checkout;

RMS Voltage Tutorial - https://www.electronics-tutorials.ws/accircuits/rms-voltage.html

Power Triangle and Power Factor Tutorial - https://www.electronics-tutorials.ws/accircuits/power-triangle.html

Voltage and current Measurement of Non-Sinusoidal AC Power https://www.pge.com/includes/docs/pdfs/mybusiness/customerservice/energystatus/powerquality/nonsinusoidal_power.pdf


Simplified Block Diagram

Simplified Block Diagram.png
Simplified Block Diagram

Please watch this short video for a detailed explanation of how the AC Meter is implemented.

Schematic

AC Energy Meter Schematic.png
Schematic

Please watch this short video to understand the schematic

Arduino Nano Code

Nano Code

Please watch this short video to understand how the code was written.

Dont forget to visit my google drive in order to get the "send_robo_remo" library folder

Simply place the folder in your Documents\Arduino\libraries folder

https://drive.google.com/drive/folders/1NvK4f2d-y5f26P7TWCwK2i0CpFPwBIqd?usp=share_link

RoboRemo Install and Setup

RoboRemo Install

Please watch this video to be able to download and set up the graphical user interface called RoboRemo

Wi-Fi Setup

Wi-Fi Setup

Please watch this video to learn how to program and setup the Wi-Fi connection in order to connect the ESP8266 to your Wi-Fi network

You will need to be able to program the 8266-01 module. You can use your Arduino board to accomplish this. To find out how watch my tutorial. https://youtu.be/S-nAHeIHXCk

Final Setup and Demo

RoboRemo Final Demo

Finally, we complete the RoboRemo Wi-Fi connection and can send real time AC measuement data to the RoboRemo Application.