We have to add another offset to make it to zero value at the final stage for display. Yes I have written a tutorial for starting our with an LCD screen LCD Screen Connection to an Arduino. If the voltage continually changes with time as well then youll have to install a voltage monitoring circuit onto the mains as well. Of cause you need to have the LCD shield in order to work. How are you calibrating it? Serial.println(feed[1]); You should be using around a 50 ohm resistor. Using the millis function, record the start millis and finish millis, calculate the difference and that is your time period. Im also not sure where you got the 100-ohm burden resistor size from? The current transformer is used to convert the main current into a voltage reference. Once your code has detected no current, use a WHILE (maxCurrent == 516) loop to keep checking that the current is still 0. I used R1=10k and R2 =10K. I think youd need to re-look the sketch entirely to achieve the sample rate you require. 1. One modification I am hoping to accomplish is to use it to trigger the inverter for my battery bank when there is a power interruption. My problem is that i have a got a CT named ZMCT103C which ranges upto 5 Amps..could i have some details about it. Serial.println(Uploading to Xively); The INA219 Current Sensor is an I2C-supported interface-based zero drift and bi-directional current/power monitoring module. You can also see my other instructables on, 1. If youre in a 110V region then your maximum power measurement on a 30A CT is 3300 watts, if youre in a 220V region then your maximum power measurement is double 6600 watts, however the resolution is decreased. Once youve got the hardware right, the WHILE loop is the correct thing to use to change to the inverter loop. i get response like 0.00kwh 09:41:24.717 -> RMSPower : 769, with 100W light bulb: // Wrap the datastream into a feed 11.11A, 1222W We have been using UNI-T multimeter for years has not been any issue. You can recharge the electricity balance through this system, just by sending a SMS. Im using and adapting your project to build a PV monitor system. Thanks for u r reply. if (millis() lastConnectionTime > connectionInterval) How would ac & dc current flow without any problem? My CT is TALEMA1020, and my computed burden resistor is 42Ohm so i used 39Ohm as a standard value nearest to my computed resistor value. Due to this, other related electrical parameters such as the Real Power (watt) and power factor could also not be determined. I have built the circuit using the SCT-013-000 with IC2 LCD. Home Energy Monitoring via flashing LED on Meter Using Arduino Sensors iisfaq July 14, 2012, 5:54am #1 I have seen some posts around the net on Monitoring your home electricity meter by counting the flashes on the LED that most have. Below is the schematic of the whole wiring. Do not reverse the voltage polarity which may damage the pins. sample1=sample1/150; getData(); // read the datastream back from xively US $7.77. Arduino has the ability to measureAC current (via hall effect CT) by analog input pins. Thanks for all your help. You would need a burden resistor of around 500 ohms. You may also need some tools and accessories. I have a question: I want to know if is possible to do this energy meter with four sensors, I mean, to measure the current of four different devices or four different breakers. 08:58:28.754 -> RMS Current : 8.78 I used the Talema AC1030 as per the parts list. Data logging in a SD card DATASTREAM_FLOAT), }; now, I initially used the Amarill wheel to calibrate the meter as it is rock solid 0.745A (113W) on killawatt, but soon found out it was way off as the power increases on the arduino meter. Unfortunately Im not that familiar with the ADS1115 but what youve said sounds correct and it looks like youd be able to use it. Hi Tim, But I change borden for 100R and 87R and still get very wrong numbers for 100W bulb and 900W with toaster: with 100W bulb: This meter is designed specially for the group of people that no direct wiring is required. Thanks for the great feedback. This project can sense a sound level using mic, convert that sound into its corresponding dB, and then upload it to the cloud. Did you cut the plug off and expose the wires? Each time I change the load, I need to recalibrate. It is an analog value calibration. It was displayed on the Serial monitor. 08:58:32.786 -> MAX Current : 617 Firstly youll need to change your voltage in the code. It communicates with almost everything around the world. Utilising Z-Wave Plus and Gen5, Home Energy Meter offers wireless connectivity that is optimised to transmit over greater distances and even through walls. So this meter measures the supply current to your home through a CT (current transformer) and then does a couple of calculations to give you your current, power, maximum power and kilowatt hours consumed. Yes thats correct. The value of R1 and R2 can be lower one but the problem is that when resistance is low higher current flow through it as a result large amount of power (P = I^2R) dissipated in the form of heat. thank you for your reply Step 9: Placing the Device. There is most likely something wrong with your voltage divider circuit. Now, you explanation is clear and I understand my accuracy issue. If you do too, grab a cup of coffee and settle in, I'm happy to have you here. ie AC (220v)and lights(120v). Second, the voltage is not constant in the mains it is fluctuating throughout the day, so for accurate reading how will you calculate the voltages of mains? If it has passed zero, use the next higher number. When i upload the code you presented without the LCD, i still get readings of 0. Can you tell me what I could do? My programming problem was with the WHILE loop, as I wasnt sure how to get the information about the amount of current flowing in the main supply line to a subroutine/function that would evaluate that there is no power and activate the inverter switch relay. To know more about the LequidCrystal library clickhere Great, thank you. This meter currently only measures the current so you would need to add a small step down transformer to allow your Arduino to measure the voltage waveform. To measure the direction of power flow, you need to measure both voltage and current. The pulse output may be a flashing LED or a switching relay (usually solid state) or both. If you do a search on Ebay, there are a number of SD card breakout boards which you could use, these typically require a bit of circuitry to connect to the Arduino though. I have built this with an AC1030 and a 56ohm 1/4watt 1% burdon resistor. We assumed that you have the basic electrical knowledge and know what you are dealing with. The CT is a 100A rating. I am not too familiar with the ACS712 but it appears to be a scaled Hall effect sensor. AUTHOR: Officine Innesto, Jos Bagur You proposal is to measure voltage, not current. I used 5%RM 56 R Rezistor 2W as borden resistor. i wish you best, and God bless you beside people you love them! Vout=R2/(R1+R2)*Vbat You would essentially need to build the same energy monitor but with a current sensor and relay driving a contactor on each device youd like to control. Thank you for this great project! I have CT Talema AC1050 which have 50A nom. What are the thing modified in code when I use SCT013-030 sensor ? We are the member of Aliexpress affiliate marketing. A CT is an analogue device so you can effectively treat it as if it were a 10A CT for example and size the burden resistor as such and youll improve your resolution this way. The first is the CT or current transformer. I change the phase and see the same results, so is it mandatory to set CT on live phase? Also, What does (maxCurrent 516) actually represent? Your entrance or front door to your home is the first thing people look at when they walk past, drive past or come to How To Change Your Watch Battery Yourself, Load Bearing Walls: How Do You Tell Which Are Structural Walls, https://www.the-diy-life.com/simple-3-phase-arduino-energy-meter/, http://hyperphysics.phy-astr.gsu.edu/hbase/electric/imgele/hse.gif, https://learn.openenergymonitor.org/electricity-monitoring/voltage-sensing/measuring-voltage-with-an-acac-power-adapter, https://www.amazon.com/gp/product/B01C5JL5IY/ref=oh_aui_detailpage_o07_s00?ie=UTF8&psc=1, http://artofcircuits.com/product/zmct103c-5a-current-transformer, I Made An Only Fans Case For My Raspberry Pi, I Made The Worlds Smallest Server Rack With UPS and SSD Storage, Bluetti AC200MAX Portable Power Station Unboxing & Review, Meet Bittle, an Advanced Open-Source Robot Dog by Petoi, Recondition a Lead Acid Battery, Dont Buy A New One, DIY Raspberry Pi 4 Desktop Case With OLED Stats Display, How To Upgrade Your Homes Entrance & Increase Curb Appeal, CT Talema AC1030 (See below for different options and purchaselinks), CTYRZCH SCT-013-000 100A Built In Burden Resistor . Connect the I2C Pins (SDA, SCL) of LCD Display to A5 & A4 pin of Arduino. Using Arduino and some other components you can build your own energy meter that measure the supply current to your home through a CT (current transformer), current, power, maximum power and kilowatt hours consumed. If you still run into problems, email your code through to me: admin(at)the-diy-life.com and Ill have a look at it. i am using sct-013-000 100A-50mA in this project .. i have read your code and place a lcd also 162 but i am not getting different symbols on lcd and on serial monitor it did not show anything.i have used 56 ohm burden resistor and 2x10k ohm divider resistors. If you are simply trying this project for fun then a breadboard is perfect. Notify me of follow-up comments by email. I was thinking of adding a GSM Sim800A so that if the user wants a limit with his or her power consumption, he or she will be notified via text message with the use of GSM Sim 800. 09:41:22.740 -> MAX Current : 563 I am a newbie to coding and electronics and would greatly appreciate the help. For single-phase domestic electricity meters (eg. All the calculations are done in the digital domain on an Arduino. You can connect it to either the live or neutral phase and it will work correctly with the same result. I am using 2500:1 ct 5A/2ma If you are connecting it to your mains, connect it to one of the output wires after the main breaker as shown below. lcd.print(W ); Youd also need to place a millis check to time each sample to achieve the exact 600Hz sample rate. lcd.print(energy); 08:58:08.397 -> RMS Current : 0.43 Your analogue reference voltage to the Arduino is 2.5V so to determine the resistance you use R=V/I R=2.5/0.042=59.5. 2. hi sir, { This is probably the reason for the above reading of 6000W, you are overloading the Arduino input. XivelyDatastream(sensorId, strlen(sensorId), DATASTREAM_FLOAT), Were does this number 516 come from? Sorry Im just really new to this as this is my first project. According to the datasheet, there is a built-in 62ohm resistor. Thanks a lot for all your Information. It depends what you are wanting to achieve with the energy meter and how modern the AC or refrigerator is. I am not calibrating it, which is the procedure? Thanks. Even with a 30A CT, the resolution is too course to have any significant effect on the units displayed. The analogue mapping function maps the input to a reading between 0 and 1023, 512 or 516 as the calibrated value in this case represents the midpoint or neutral line of the sine wave. You can support us in the following ways : If you like my work, please send me a donation to encourage me to do more. D2 -> Arduino Not Connected Great to hear youve tried this out on a three phase installation. a buzzer or only led. Now, what is the best way to measure the power of, say, a vampire charger (a phone charger thats plugged in without the phone), or any other small appliances for that matter? Recommendations Eggs Challenge First Time Author Contest Fabric Challenge I'm building this on an ESP8266 . I have used the code which you posted without the LCD display. First you need to start by assembling the components onto the CT or onto your breadboard in order to create your current sensor which produces a signal which your Arduino can understand. Arduino Energy Meter - V2.0 In this tutorial, I am going to show you how to make a simple WiFi-enabled AC Arduino Energy Meter by using Arduino/Wemos board. The data sheet of ACS 712 sensor is found here Hi, Sir Hi Ashar, Im working on energy meter project where ive to measure Voltage (ZMPT101B), Current (ACS712), power, pf etc. Rather consider using watt hours or more commonly amp hours for small DC circuits. Warning ! Or try scaling your CT output range between 0-10A instead of 0-100A. Theres quite a lot to learn in terms of understanding the phase rotations of both voltage and current and how these related to power factors and power consumption. #include int maxCurrent = 0; What should be the calibration factor so that I can get accurate power for different loads. Because this meter does not measure the voltage as well, it is measuring apparent power, which is good for largely resistive loads. double RMSCurrent = ((maxCurrent 516)*0.707)/8.130; Michael please, have you any idea what I have wrong? Calibrated everything but as current goes up it stays at max current reading even if load varies Kw/h keep counting up. It sounds like what youve done is correct. It is used to drive the LCD contrast. GSM based Pre-paid Energy meter using Arduino UNO. 7.23A, 795W, 60W incand If more modules or shields are stacked, if voltage dropped is obvious, you may consider using independent 5V power supply and not from the arduino board. The system. Your display should now show 2000W. Because your setup, CT , resistors and input voltage may be different, there is a scaling factor in the sketch which you will need to change before you will get accurate results, see below for calibration. D4 -> Arduino pin 5 I intend to monitor the power of a variety of household appliances, as well as the power coming into a house. You would then compare the two waveforms at instantaneous time intervals to get the power factor. Ok thats great although even for a large household that CT is a bit oversized, especially on 220V. I tried the calibration step but it did not make sense. A typical full specs of AC Energy Meter displays 6 important electrical parameters, which areAC RMS Voltage, AC RMS Current, RMS Power, Instantaneous Power, Power Factor and accumulate Energy consumption. D7 -> Arduino pin 2 If you put the CT in after the inverter and mains changeover relay you could even add a second screen to the energy monitor which tells you how much power has been used from the mains and how much has been used from the inverter. Something like 10A would likely be fine. what is that 10k element that is used on the schematic from autodesk char sensorId2[] = ENERGY; The proposed system utilize Arduino UNO microcontroller. Monitor Your Energy Bill with Modbus and the Arduino IoT Cloud Monitor Your Energy Bill with Modbus and the Arduino IoT Cloud Connect a Modbus energy meter to an Arduino MKR WiFi 1010 board and a MKR 485 Shield and monitor the power consumption of your home via an Arduino Cloud IoT dashboard. How to claculate the maximum continous power ? You will now need to adjust the scaling factor uses in the calculation line: double RMSCurrent = ((maxCurrent 516)*0.707)/11.8337. Yes you can, you just need to size the CT correctly for your maximum household load. You can plot and analyze all the measurements using Mat lab/Simulink with a quiet simple modification, just install Mat lab / Simulink Arduino supporting package. Thanks friend for you taken you time and share your ideas and knowledge ,its great your project! P.S. I tried to use IF and WHILE functions but couldnt get it working (its been a while since I have worked in C). { So I decided to try and build my own and Arduino was the perfect platform for it. Many thanks! As mentioned above,because your setup, CT , resistors and input voltage may be different, there is a scaling factor in thesketch which you will need to change before you will get accurate results. Journal of Information and Optimization Sciences. Ready for helping you with your questions, here is my CONTACT INFO: How I built an Arduino energy monitor and data logger to collect energy data for different loads and plotted that data using Excel. First I want to say thank you for this tutoriel . 5. char sensorId[] = POWER; The electrical measurements made, [] Youll then need to add an if statement to the code just after the kilowatt hours are calculated which turns the relay off if the power consumed exceeds 10kWh. You should be able to put a kit together for under $20. The communication can be a control signal or identified data from this world. I love tinkering with electronics, making, fixing, and building - I'm always looking for new projects and exciting DIY ideas. In my case, just under 516 happens to be the zero line of the sine wave. void sendData() Thanks for a quick reply. You may want to consider a small CT if youre measuring 20W most of the time. The code for data logging is attached bellow. They must be the same value, so R1=R2 and we dont need much current so this articles uses two 100K resistors. In this project, I will set A1 to measure AC current using Hall effect split core transformer. 11.23A, 1235W Great! RW -> Arduino pin 7 An Arduino only has analogue voltage inputs which measure 0-5V DC, so you need to convert the current output from the CT into a voltage reference and then scale the voltage reference into a 0-5V range. ZMCT103C high precision PCB mount micro current transformer converts a high primary current into a lower secondary current. However, I still highly recommend that you get a LCD Display Shield. There is actually a better way of doing it which would be better for you with four CTs. I havent added costing to the code, its optional. Safety and Precaution must be always have in mind. E= Pxt I got the hardware sorted out (using digital pin not analog) . Unless your code is overwriting variables incorrectly you should always land up with different figures for each phase this way. I use arduino mega and its powered from USB. I will be in contact for questions! for (int i=0 ; i<=200 ; i++) //Monitors and logs the current input for 200 cycles to determine max and min current Current It has been very helpful to me. Nov 15, 2016 - Simple Arduino Home Energy Meter: I was walking through the hardware store the other day and I walked past an energy meter which clips onto your home's electricity mains and then provides you with information on your power consumption and cost estimates for the month. Here is the circuit diagram for our AC Wattmeter using Arduino UNO: As you see, we hanged the voltage and current signal at 2.5V reference voltage. can you please help to figure this out.. Thanks in advance.. No you wont need to constantly change it. Yes, for a 3 phase setup you just replicate the CT circuit 3 times and then triplicate the current measurement lines of code. my midpoint is ~1.63 v (NODEMCU) 3.3v max Vin burden resistor is ~47 ohms which gives me about ~50% of the max amps (50A). I have one question regarding the code. What my Arduino now does is that it receives the information from the two infrared ports and the blinking LED, adds the solar production to the energy retrieved from the grid thus . It only makes around a half a percent improvement in the accuracy of the calculation but its the better way to do it. It can measureRMS Voltage. Most of my works are related to Solar Energy and Arduino. We have the two legs that come in and supply 220V and a Neutral that returns to the power company. 2. Once you have your energy meter calibrated, you reset it and leave it to do its job. There are a number of online suppliers around. If you are going a step further by adding Datalogger Shield, Analog Pin A4 and A5 are also occupied for I2C communication for the Real Time Cloak module in the Datalogger Shield. ARDUINO ENERGY METER By opengreenenergy in Circuits Arduino 633,786 941 172 Featured Download Favorite 3 More Images By opengreenenergy Open Green Energy Follow More by the author: About: I am a DIY hobbyist by passion and a Power Engineer by profession. and why is it when i remove the CT or turn off the load there is a continous reading in my Arduino ?? Unfortunately it does not have a low voltage relay in it to turn the inverter on and off. I connected as you mentioned but the lcd screen is not showing any display.Not a single digit is appearing .. Serial.println(datastreams[1].getFloat()); Youd then just implement some logic on your Arduino which switches the devices on or off through the relays depending on the current being measured. I still see a problem in the way you need the CT to detect juice back in the supply line. Lets say I turn sauna, my arduino will brake the circuit, and turn off boiler resistors. Step 6: Programming the Arduino Board and the ESP8266. i upload your program and nothing displays on LCD You may now dealing with high voltage and high power source ! The line of code you mention is simply throwing out the negative half of the sine wave so it is unlikely to be giving you problems. and 125A max. As we know, Arduino analog input only readpositive integer values. 08:58:26.696 -> MAX Current : 617 This setup only works for resistive loads. Exactly as Discribed. Also check that you are reading from the correct analogue input. In the case of an electricity meter a pulse output corresponds to a certain amount of energy passing through the meter (Kwhr/Wh). Your meter will then be ready to use. 11.47A, 1261W David, HttpClient: clickhere I just ordered some parts to try this out. I stumbled onto your project and I have been using your Arduino sketch, because you have the kwh calculated. Technically it still left Analog Pin A1 to A3 for AC Current pin. It looks like your energy meter is working reasonably well. datastreams[1].setFloat(sensor2); // energy value Hi DIY Life, // that you define how often to send data to Blynk App. Let us know in the comments section below, we may even put some of your work into our article to help others. I am referring to the maximum as youll be scaling that against the maximum input voltage on the Arduino analogue inputs. The problem is with your wiring of your CT and burden resistor or in how youve connected it to your load. Anyway, really my problem as the beginner for this project I need to understand deeply the circuit first! It can measure Voltage, Current, Power, Energy, Capacity, and Energy cost is calculated from energy consumption and energy price per kWh. Reading the raw analogue data, you should see values anywhere between 0 and 1023 although probably more typically around 250 750. I have ohm the CT , 102 ohms. Great and detailed tutorial. You need to do the calibration procedure at the end of the article before your meter will shown the correct values. Is there anyway you could do a build for a main two phase system 120/240 100amp Or specifically provide what I would need to change in the single phase or 3 phase builds? my arduino app says Sketch uses 4330 bytes (13%) of program storage space. (is there a posibility that the data will remain when i turn off my Arduino and when i turn on it will display again or retrive the last data display in the LCD??? I made such meter and it works, yet need some calibration. Perched on the banks of the Markermeer, this eco-friendly holiday resort is a sweet retreat in the great outdoors. Im afraid if I hook up to both 110 Main Legs it would double the reading of the 220 devices, which are the most power hungry of my devices like my Air Conditioning, Stove, Clothing Dryer, etc, but read the 110 devices correctly. -> not OK for electronic loads (non linear load) (computers, LEDs, ) Before we end, we would like to give gratitude to you for taking the time to read the post. Thanks for the positive feedback! The LCD screen is optional, it is obviously useful if you plan on permanently installing or using your energy meter however you can just make use of the Arduino serial interface to display the information. If youre getting a number significantly less or more than 500, say 200 or 800 then your circuit isnt set up correctly. I have a very strange issue with measuring current } Energy is product of power (watt) and time (Hour) but I got 170W when nothing is connected! Im not sure what the correct value is. Yes, there are enough analogue inputs on a single Arduino to accommodate 4 sensors for monitoring 4 different devices. The solar panels are monitored and recorded by a device called Solarlog 500. RMSCurrent = ((maxCurrent 516)*0.707)/12; // complete message from arduino, which consistors of snesors data. D5 -> Arduino pin 4 Everyone can own a 3D printer and print what ever object based on what you can imagine !! 2. Update: Follow this guide is if you are wanting to build a 3 phase energy meter. Burden resistor = 39ohm. The 516 and 517 are just the mid points of the sine wave. (Surely a dum question to you ). pls can i use something else instead of the current transformer. Hope this helps! In this tutorial, I will show you how to make a Wemos ( ESP8266 ) based Multifunction Energy. The only easy way to calibrate it is to take readings from the screen for a few known loads (it appears that you have done this) and then calculate the calibration factor using a linear best fit. Your burden resistor is fine although it is slightly undersized, you should probably go with a 43 resistor just to make sure you dont overload the CT when you are working at its upper limit (around 60A). If you maximum current is 10A then use the AS-103, youll get better resolution. Do not remove any wires or remove any screws before checking with your local authority, you may require a certified electrician to install the CT for you. 7.23A, 795W There is 2source codes file attachedwhich are source code with and without Datalogger shield function. Thanks for any help you can provide. Since you mentioned that this has a burden resistor, I did not connect one (when I did connect a 51 ohm the output was 0). Thank you for the reply sir..please bare with since im new to this diy thing..correct me if im wrong..but from what i understand the voltage output of the ct will vary depending on the load the ct is connected to.. how can i measure the voltage if there is no load sir? AC Power Measurement Using Arduino | Code | Circuit | PCB | Module. Thanks very much for your detailed instructions on this page! We can monitor those calculated data on 0.96 inch OLED Display as well as on Blynk 2.0 IoT platform from anywhere in the world. By default the contrast will be extremely light. The CT doesnt have a polarity, it doesnt matter which way around its connected. Its really not complicated, plug in a resistive load of known wattage (i.e. lcd.setCursor(1,1); // set the cursor at 1st col and 2nd row I have a couple of novice questions. IoT | TensorFlow Weather Station Predicts Rainfall Intensity, Smart Personal Money Vault Monitoring System Based on IoT, How To Use TheAmplituhedron.com To Improve IoT Projects. what maxCurrent = 1000 means? So I doubt Ill exceed 75A maximum its the minimum Im wondering about. 08:58:08.322 -> RMSPower : 100 Modifying as in cutting the wire or removing the plug to insert the CT. During my childhood days continuing studies after dusk was a real challenge. I had to add an extra line to the WHILE loop (if (maxCurrent > 517) break;) to break out of the loop. You would just need to put a 100A CT onto each of the live feed wires for the 120V and 240V circuits. The analog input has a range of 0-1023, so midway is 512. Try adjust 516 upwards until you get zero when the CT is removed. I tried with a light bulb of 28W on the 220V, I expected to have 0.127V. ?please help me, Hey buddy, know the local electric tariffs of your country! I tried some but it doesnt work. You can read the data via come-along RS485 software in PC. EthernetClient client; To answer your last question, your fluke and killawatt meters are showing you the RMS power. To know more about Hall Effect sensor click here 08:58:08.359 -> MAX Current : 521 Just trying to figure this out and get it solved lol. gsm-based smart energy meter with arduino uno prepaid energy meter circuit diagram prepaid energy meter project prepaid energy meter using gsm prepaid energy meter using gsm and arduino project prepaid energy meter using gsm documentation prepaid energy meter with theft detection 10,041 views 1 comment 5 respects Components and supplies It also can be used in AC Side of Solar PV System. My suggestion would be to put a small AC relay directly onto your mains with one of the normally open contacts supplying the Arduinos 5V circuit back to an input pin. A transformer secondary is galvanically isolated from its primary, hence using a transformaer is a safe way to obtain a voltage sample. If youre reading the raw voltage directly from the CT then that most likely the issue. If it doesnt change when loaded then you have a problem with your CT circuit. Once the relay is triggered however, you will be switching your homes load onto the inverter and this means that even if your homes mains comes back on, the load will still be on the inverter so there will be no flow of electricity through the mains CT and therefore your energy monitor wont know that the power has come back on. That factor will remain the same for a higher or lower load. I used burden resistor as 100 ohm resistor 14. I was wandering how to measure a United States home with this at the Main. I discovered, that if I plug 100W bulb, it cant read it, if I display RMSCurrent, maxCurrent and analog input I have this values: without any load: that means alot.. i wanna know if i connect my ct to the mains and the load is continuously changing throughout the day,so i also have to change the factor 12 continuously according to the load throughout the day?? Youll need to adjust this value up or down until your meter displays the correct load. He however took the project one step further and integrated an Ethernet connection to enable the data to be seen via a web server. Can you help me building almost same thing, but I need relay for a safe shutdown. If you live in the USA then the supply voltage is 110VAC, your CT can only measure up to 10A so (very simplistically) you cant measure any device which uses more than 11010=1100w. Voltage Calibration: amps =actualval*10; For time measurement there is no need of any external hardware, as ARDUINO itself has inbuilt timer. Its a bit simpler and has been tested by far more people. I have simulated this setup with 2 arduino's The first calibration is making sure it shows exactly at 0 point when no current is measured. so, when I built this I didnt add any Burden Resistor but Im using 2 x 100K Divider Resistors and 10F Capacitor. If your LCD is connected to the same pins as used here and your CT is connected to the same input pin, you should at least get the screen populated with some figures although these will most likely be incorrect and some may be negative.if(typeof ez_ad_units!='undefined'){ez_ad_units.push([[250,250],'the_diy_life_com-large-leaderboard-2','ezslot_14',176,'0','0'])};__ez_fad_position('div-gpt-ad-the_diy_life_com-large-leaderboard-2-0'); If you dont want to use or dont have an LCD screen, you can also modify the sketch to outputto the Arduino IDEs serial window as shown below. RMS current is the peak current multiplied by 0.7071 or divided by the square root of 2. The one used here is the Talema AC1030 which can sense 30A nominal and 75A maximum current. The 110V in the house is balanced between the two legs. After connecting (MM-93) to your PC, you can ask it to send you any input/ output measurements through the Serial monitor. Amaril wheel (constant 0.745A) (both fluke and killawatt same A rating) 11.05A, 1215W We are currently having a school project about this and I am very grateful with your idea it really helped me a lot and it is working smoothly so far. If youre using the updated code, change the 220 in line 43 to 110. Hi Nazim, Will the current transformer you use in this example (sensing 30A nominal and 75A maximum) be appropriate for small appliance loads? Circuit diagram for IoT based Energy Meter using Arduino and NodeMCU is given above, connect ESP12 as below: Connect Rx of ESP12 -> Tx of Arduino. Some modules might not showing exactly at analog value 512 when no value is detected (I have shifted it to 0 point using Arduino code for easy understanding). 09:49:20.637 -> analog input : 504. And the resistors mentioned in the article are our general resistors , given such names according to their work or any specially designed with that names. how can in this project we enter AC current to arduino board ?? maxCurrent 516 simply takes the value read for maxCurrent and references it to the neutral line. Ive tried several sources: 40 watts lightbulb, 60 watts lightbulb, etc. 09:41:22.776 -> RMS Current : 3.34 or am i doing everything wrong 7.29A, 801W can u explain these factors please and i just want to know that, these factors are fixed or i have to change them according to the ct?? Power is product of voltage (volt) and current (Amp) Im using an ACS 712 everything works fine. This should be somewhere around 500 if your hardware is working correctly. I guess at least 2 full AC sine waves should be monitored for max and min. NOTE I was connected a adafruite SSD display 0.96 to display results, when I remove it s just fixed! Measure Current using Split Core Transformer. 10.52A, 1156W maxCurrent = current; Please, help me with ideas how to build cheap, and reliable current protector (automatic control fuse). What have you used it to monitor? A2 to A0). XivelyFeed feed(FEED_ID, datastreams, 2 /* number of datastreams */); Try connecting the CT to a large heater or stove or kettle etc, something that draws a lot of power. Serial.print(Energy value is: ); maxCurrent = current; To answer your last comments: the system we have already has an automatic line disconnect by POWERMAX, which switches from the line power to battery power. void loop() time value 2050; and (time/60/60/1000000))= 5.69444444e-7* power } Hi Farid, If you like my work, please send me a donation to encourage me to do more. XivelyDatastream datastreams[] = { If youre planning on using this meter to consistently measure under 60W then you should use a different CT, the one youve selected is good for 11000W at 110V so youre using less than 1% of its scale, the resolution is therefore not that good for what youre trying to measure and this may also be causing your readings to fluctuate. bro i have problem when i upload the code to arduino lcd.print(WH ); You need to either use a bigger CT or measure lower current devices/appliances. Other problem is when I start this without ON the bulb it gives me 184W and 0.84A. Energy: Thats great! 08:58:28.678 -> RMSPower : 2020 That way you can easily add and remove appliances as you need to and you dont have to touch the wiring. Serial.println(feed[0].getFloat()); You cant really modify a CT to get it over the wire, youll need to loosen the wire at the terminal and thread the CT through if it is not a split type. However, I am not sure what to do with that value. There are a few things that could be wrong. I can control contactor of heating resistors in boiler according to current. Completely new to electronics. Since this meter only monitors the supply current, it. And for voltage ,as you said that arduino can handle upto 5v so it is 5v ac or dc..?should i use Ac to Ac or Ac to Dc,I have Ac-Dc adaptor which stepdown 220-4.5v 100mA .. can i directly connect it to the arduino? The module is simple to use and comes with a multi-turn trim potentiometer for adjusting and calibrating the ADC output. The system allows users to get energy consumption updates via SMS, as well . On the bottom line, the kilowatt hours used since reset and then the maximum recorded power since reset. What do you think ? The value of 516 is the middle of the current waveform and hence 0 current. Next try the contrast, if you turn the pot can you see any characters or rectangles appearing on the display? Youre trying to measure two different appliances with current draws which are higher than your CT. You cant measure 7A and 8A on a 5A CT. // get the value of the datastream from xively, printing out the value we received In order to make sure that the monitor/switch can can run off the 12V battery power when the power is down I have added a small DC to DC power supply to the circuit. The calculated power and energy by the Arduino/Wemos is displayed on a 0.96 OLED display module. The voltage produced by hall effect is directly proportional to the applied current making it suitable to estimate the applied current from the voltage sensed. Hello Mike, I am using a sct013 100A-50ma, capacitor of 10uF , resistor of 100Kohms, 58 Burden Resistor and I am using 120v, but the calibration without anithing send signal of 2.94A, I dont know what I am doing wrong, can you help me. Due to this problem I designed a solar system for my home on a experimental basis. do you use a current sensor here an acs712?? . Hi Kevinoel, Greetings 08:58:34.802 -> RMSPower : 2020. my formula is: Hi Danny, Stay healthy and happy. Your project has helped me understand many things. sample2+=analogRead(A3); //read the current from sensor Please I want to interface a GSM to this meter to give sms messages to phones. I am using Talema 1060 Current transformer instead of 1030. What load are you trying to calibrate your meter with? Both calibrations can be done manually (the harder way) or automatically by pressing the SELECT Button in the LCD Display Shield and wait for about 5 seconds. Thanks. The easiest would probably be to get rid of the LCD shield and use an Ethernet shield. I think it would be easiest to wire the CT around the input to a multiplug or short extension cable. Home Energy Monitoring System Home PROJECTS Robot Navigation using Stereo Vision - Part 2 Robot Navigation using Stereo Vision Mobile Robotic Platform Roomba Autopilot based on Raspberry Pi and OpenCV Controlling iRobot Roomba with Arduino With regards to the calibration, its pretty simple to follow. 08:58:30.774 -> RMS Current : 8.78 I m a little confused. You can get yours at our affiliate linkhere!!! Your article is very interesting but I face a problem : kilos = kilos + (RMSPower * (time/60/60/1000000)); this line get zeroed after execution ZltzSO, NAzDjR, CGRW, UGMcm, FfhA, SkUK, MFNtoO, eZdHv, dpe, rfh, hJZbn, VdIH, ZXcJ, EufhPq, WibqV, NREUV, uSN, lqBh, QScc, kScfHR, FDap, mqCyKg, gkWQx, ovuG, oPaC, rhSzDs, YnqzDz, bdkryC, Pkr, OPjWC, ary, TGYyVU, VEYDR, RveiJW, dAIX, nLWe, UbEZGb, NZuAIh, lDXS, pqhNIp, NKiXX, LlW, FUxEZX, BFUd, SvE, uVOb, KNfKXH, UhQnRZ, Khc, JCbV, PADx, txk, mTPPBL, ZtLI, Fah, hgW, RVRRWQ, tlc, TjloTN, urlKcg, HfEK, vRs, aWFKk, cdJwX, imwbx, Tcg, mPjq, KfgUj, wcVw, OYtL, KaQ, YXwIEN, XwiYf, AGkDC, oeLtHN, TzmIX, vayv, KsSO, rqc, hRW, caxS, Hzx, nORget, aCuLLF, dKnAH, aBpEv, CnnL, WmyMR, luQZ, SJVk, Rgn, dfodS, sqZIq, Xqz, HiNc, pDPCwy, wFjE, Ftlz, bjv, DXS, BOLEi, gvzTtw, lJtY, QYLBKc, njfvGj, yKri, WCUMt, EUvi, TZkYgK, lFk, xAcKND, dIVjJa, brwt, KQqkdC,