Thanks Clayton, There are however some ethernet shields which come with an SD card reader/writer built into them. delay(15000); This videos explain a lot of details about the project fabrications: Command U: (MM-93) will send you all the measurements of the Utility Input. Ok, I understand why youve used a larger CT. Its probably still a bit large for a 30A application but you could make it work. 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). There are quite some commercial AC energy meter uses this principle. 4. ?.please answer. The shield can be mounted directly on top of the Arduino Uno board or in between the shields which made it very convenient to use. I poorly modified the scketch but I didnt get any results. In the attachments section , you will find a technical eBook explains the Project processes from Zero to Hero. The calibration factor cannot be calculated beforehand, it depends on a number of factors and is different for each setup. These Smart Blinds automatically open and close according to ambient light levels, and also close in response to heat. Automatic Blind Opener - Used in Automatic Blind Opener - Works With A Remote & Alexa If youre getting a number significantly less or more than 500, say 200 or 800 then your circuit isnt set up correctly. Currently there isnt any significant progress as I am facing many problems in drawing the accurate schematics of the project. or still Im confused about my borden resistor. { The value of 516 is the middle of the current waveform and hence 0 current. what maxCurrent = 1000 means? To store the data youll need to use an SD card shield or provide a battery backed up power source so that the Arduino never loses power. WORKING PRINCIPLE : I use arduino mega and its powered from USB. int minCurrent = 1000; for (int i=0 ; i= maxCurrent) 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. Thanks for u r reply. The data sheet of ACS 712 sensor is found here Hi great job on the post 512 is therefore the middle/zero line of the sine wave in an ideal environment, in my case 516 was the calibrated zero line. Home Shop Energy Meter using Arduino. Journal of Information and Optimization Sciences. AUTHOR: Officine Innesto, Jos Bagur He however took the project one step further and integrated an Ethernet connection to enable the data to be seen via a web server. Hi Marius, Remote access energy data from web. Peacefair has a lot of model to measure different current requirement from 20A up to 100A. Hi. 11.71A, 1288W Monitoring the electricity consumption of your home or business is an increasingly topical issue. In this project I'll show you how to make a IOT based power and energy meter which can measure current, power, energy consumption using INA219 current sensor and shows it on OLED display and to blynk app through internet. We were actually looking for projects like this to integrate into our own project. Kilowatt hours is a unit of measurement, it is updated every 2 seconds so the reading is already available after 10 minutes if you need it. Start by checking that your communication to the Serial monitor is working correctly. 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. The energy meter is installed in the homes or offices. The main objective of this project is to develop a smart home automation system with a button key fob transmitter by using RF. Are all of the other three fields on your display showing the correct values? Great article, very informative and well thought out. Root-Mean Square (RMS) current value is the square rooted averaged value that is derived from summation of squared of each raw values. SPI: Import from arduino IDE (sketch -> Import library..) So here is the circuit diagram we have assembled on the breadboard. XivelyDatastream datastreams[] = { Step 5: 3D Base for the Circuit. It also can be used in AC Side of Solar PV System. The first number displayed is the instantaneous current followed by the instantaneous power. Thank you very much for any help. We were all there once so keep trying and youll come right! EthernetClient client; Its also really easy to add your local tariff and display the cost of electricity used to date. They are reliable and some versions come with the burden resistor built in already. Vbat=6.5 when fully charged Thank you and its great to hear that youve managed to build the energy meter. That is my Main questions. As youve said, its best to get the smallest possible CT for the largest load you expect to measure. Modifying as in cutting the wire or removing the plug to insert the CT. I tried to change capacitor, or use without, but still same, is possible I have wrong arduino? Thanks for the reply. In order to measure 2 direction, the zero point should be at half the total voltage range (0 to 5V) which is 2.5V. It transmits the reading of voltage . Thanks in advanced. 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. Build a system to monitor and record home energy consumption. I intend to monitor the power of a variety of household appliances, as well as the power coming into a house. 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? I used the Talema AC1030 as per the parts list. 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. Youll need to add the internet connectivity somehow, but yes you should be able to. I cant figure out what the 2.05 is on line 43. Reverse current will not damage the sensor but the voltage produced will be in reduced. First I want to say thank you for this tutoriel . Yes, you can connect all of the CTs to the 5V output. And if is posible to do it using only one Arduino and show the measurements of each sensor in diffent LCDs? XivelyDatastream(sensorId, strlen(sensorId), DATASTREAM_FLOAT), PZEM-014 or PZEM-016 AC Energy Meter. Get thefast connectorat our affiliate linkhere!!! Once your code has detected no current, use a WHILE (maxCurrent == 516) loop to keep checking that the current is still 0. Everyone can own a 3D printer and print what ever object based on what you can imagine !! Unit of Energy is Watt Hour or Kilowatt Hour (kWh) // Analog pin which were monitoring (0 and 1 are used by the Ethernet shield) int sensorPin = 2; Hi. 09:49:14.568 -> MAX Current : 624 } { But I am trying to improve the beta version code so that a single code can contain all the features(LCD display,Xively data uploading and data storing in a SD card). Youll get better accuracy from a smaller CT. On 220V the laptop charger definitely wont even register as the current halves again. Its all Zeros. The CT doesnt have a polarity, it doesnt matter which way around its connected. I am a newbie to coding and electronics and would greatly appreciate the help. 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. D1 -> Arduino Not Connected A -> Arduino Pin 13 + Resistor (Backlight power) A 72 w light doesnt register on the LCD. 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. Just one Question, This needs to be done with a load of around 2000-4000W for a 30A CT. lcd.print(A); Good luck! I have looked at the data sheet from the supplier that supplied my CT sensor and i see that is has a built in burden resistor of 33 ohms. This device has an S0 input port for the own power consumption monitoring and recording. Thanks very much for your detailed instructions on this page! Start by opening up the Serial monitor and then adding a line of code after the analog read function to print what is being read on the analog input connected to your CT. Quick cost breakdown Measurement Board: 12.68 Xbee link: 54.32 Xbee link cable: 0.57 DataLogger: 15.44 Display: 19.56 Display cable: 1.53 Ethernet shield: 29.00 2 Arduino's: 41.16 Total: 174.25 !!! All of your values are based on your current measurement from your CT. The capacitor youve used should be fine and sounds like its connected correctly. It can also disconnect the home power supply . This shield provides a lot of convenient terminals for each of the input and output pins. It is very unlikely to read correctly initially so youll need to change the calibration number in line 42 11.8337. You would just need to put a 100A CT onto each of the live feed wires for the 120V and 240V circuits. Step 9: Placing the Device. Hello I have an arduino one and the SCT-013 will be able to send me ohotos of how i made the connection in the arduino and the code used thanks [emailprotected]. Its great to see people getting engaged in building Arduino projects, Im always happy to help! The time taken to read the data is around 50ms depending on the Arduinos processing speed. Step 3: Circuit Diagram. We use 220V for power hungry appliances and 110V for the smaller stuff. My estimation is that this should be 10 times higher than this. Calibration: but I got 170W when nothing is connected! Hi Kyle, Max current is the peak of the sampled values being measured in the time interval, 516 is the mid point of the sine wave (1023/2 with a slight offset), 0.707 is sqrt(2)/2, 11.8337 is the calibration factor detailed later in the post. I have a very strange issue with measuring current which explains the Project processes from Zero to Hero. The line in the code you are referring to is doing the unit conversions, from seconds to hours and into kilowatts, as described above and the 2.05 is the time period (in seconds) I am referring to. Thanks for the positive feedback! Serial.println(Error getting IP address via DHCP, trying again); Actual battery voltage = (2*Vout) volt 09:49:16.598 -> RMS Current : 7.68 Serial.print(PUT return code: ); The figure maxCurrent = 516 is used to filter out only the top half of the sine wave. You should be using around a 2-5A CT. Ive followed the instructions. You could however just rewire/jumper the 10 and 4 pins to free pins (0,1,2,3) and this would solve the problem. You can measure all electrical parameters for Utility input and do the same for Renewable Source like solar or wind turbine at the same time. If you arent really measuring anything close to 60A then its not a problem and 39 is fine. Utilising Z-Wave Plus and Gen5, Home Energy Meter offers wireless connectivity that is optimised to transmit over greater distances and even through walls. Wonderful project. Plug in a small light bulb (100W or so) and see what load is displayed. 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. Because this meter does not measure the voltage as well, it is measuring apparent power, which is good for largely resistive loads. Yes, for a 3 phase setup you just replicate the CT circuit 3 times and then triplicate the current measurement lines of code. This is the normal supply in the United States. 11.47A, 1261W 08:58:32.824 -> RMS Current : 8.78 That being said, there is nothing wrong with the values youve given. I really like your work and the way you did it. The contrast issue you are referring to can be adjusted by turning the pot outlined in our guide, this adjusts the contrast. Also, would it be wise for me to edit the code to have the meter display units more appropriate for small loads? When the battery voltage is 6.5v I got 3.25v from the voltage divider and sample1 = 696 in serial monitor ,where sample1 is ADC value corresponds to 3.25v. This article worked on 42A with a turns ratio 0f 1000:1 giving a secondary current of 0.042A or 42mA. More About opengreenenergy Older ones, especially refrigerators have really bad power factors so the reading wont be that accurate. Also check that you are reading from the correct analogue input. If youre getting a reading with your CT removed then you havent set your calibration factors correctly. I'm building this on an ESP8266 . Hi all, int backLight = 9; lcd.print(watt); I have: CK 10uF 50V 105C which is electrolyte, and connected negative pole to GND, positive to resistors (100K). This setup only works for resistive loads. Arduino UNO Adafruit INA219 sensor Adafruit 12864 OLED screen 330 Ohm resistor Red LED Breadboard Jumper wires On the software side, you will need the latest version of the Arduino IDE, that you can get from: https://www.arduino.cc/en/Main/Software You will also need two libraries, that you can install from the Arduino library manager: 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. To calculate how many amps yours needs to sense, take the maximum continuous power your are expecting to sense and divide that by your voltage (usually 110V or 220V depending on your country). AEDUINO ADC convert Analog signal to corresponding digital approximation . Step 1: What You Will Need for a Home Energy Meter Here is a list of the items which you need in order to complete this project. This is a IOT based Power and Energy Meter with Blynk iot platform. These are not easy to come by in a normal household so you will need to find something which uses an established and consistent amount of power. You have writing talent. I stumbled onto your project and I have been using your Arduino sketch, because you have the kwh calculated. // MAC address for your Ethernet shield lcd.print(W ); In blynk app you can see the graphically representation of your voltage, current, power and energy data. Best & Fast Prototype ($2 for 10 PCBs): https://www.jlcpcb.comThanks to JLCPCB for supporting this video.Months back we have build a current meter. I start this project for a my high school but then now Im really stuck with these thing plz help me . // This function sends Arduino's up time every second to Virtual Pin (1). Netherlands. It communicates with almost everything around the world. Just to clarify, when you say measures 30A are you referring to the nominal value or maximum? Thank you so much for the tutorial. 09:49:14.568 -> RMS Current : 7.68 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: avgamps=totamps/time; // average amps Please note that TinkerCAD doesnt support a current transformer. But I change borden for 100R and 87R and still get very wrong numbers for 100W bulb and 900W with toaster: with 100W bulb: Remember that there is a time delay on the kWh and this field will take some time to start increasing depending on your load. Im not really familiar with that brand of current transformer but it is possible that if it was designed for a frequency of 20kHz then it would not work properly at a much lower frequency of 50Hz. If you still not yet own an Arduino Micro-controller Board, you can get it cheap at our affiliate linkhere!!! Thank you for your article. 08:58:32.786 -> analog input : 616 It compares the varying load to this factor in order to determine the actual power being used. I am using an Arduino Uno Rev 2, and four SCT-013-030 CTs. { Prepaid Electricity Energy Meter is a good concept in which you can recharge its balance, like we do in our mobile phones. 08:58:06.310 -> analog input : 498 If both of those are working but nothing is displayed then you most likely have a wiring problem, check the connections to your Arduino again and make sure they are connected to the correct pins. Hi Karthik, Thanks for your suggestions Michael. Now for the display i have the IIC / I2C 1602 lcd and it needs the 5v on the arduino Connect LCD with ARDUINO as given bellow : LCD -> Arduino 138 /avg nightly. and why is it when i remove the CT or turn off the load there is a continous reading in my Arduino ?? Just want to make sure before i blow something up :p. Hi Marius, I m a little confused. First things to do, is get approximately 2.5V DC ( for +5V power source ) level at the output, tweaking another 50 k pot, which is in parallel to optocouplers photo-diode. 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 . Some people are concern about safety and do not want to do any wiring on the existing electrical system. Hi Aadil, And for Ac voltage calculation,can i use Ac-Ac 9v adaptor with some resistor and capacitor then connect it with the arduino? 09:46:13.560 -> MAX Current : 571 Simple Arduino Energy Meter | Volt -Amp meter 20 Amp 11,797 views Apr 6, 2022 431 Dislike Share Tech Ideas 431K subscribers Hello friends, today in this video I've shown how to make an. Voltage Calibration: XivelyFeed feed(FEED_ID, datastreams, 2 /* number of datastreams */); 08:58:04.279 -> analog input : 505 The process started by registering the mobile number of the user with the help of GSM. In this case it was 11.8337, it may be higher or lower depending on your application. They must be the same value, so R1=R2 and we dont need much current so this articles uses two 100K resistors. I completed the calibration, everything seems fine. Have double checked program Sorted by: 1. There is most likely something wrong with your voltage divider circuit. The current transformer is used to convert the main current into a voltage reference. I would like to ask you how can I put a 4kw power alarm? It should go up to a number around 1000 when you apply the maximum load your CT and circuit is designed for. So youve traded off accuracy for an increased range. 11.53A, 1268W Thank you for the great feedback. it doesnt look like a CT, is there something else im missing? To answer your last question, your fluke and killawatt meters are showing you the RMS power. Then I decided to monitor the voltage, current, power & energy involved in the system. kilos = kilos + (RMSPower * (time/60/60/1000000)); this line get zeroed after execution }. 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). In his case, he used a YHDC SCT-013-030 sensor that can measure up to 30 amps and costs. Safety and Precaution must be always have in mind. Recommendations Eggs Challenge First Time Author Contest Fabric Challenge The module is simple to use and comes with a multi-turn trim potentiometer for adjusting and calibrating the ADC output. I am not to sure what you are asking about the resistors? 08:58:06.345 -> MAX Current : 521 The acs712 is a hall effect transducer, so it works a bit differently and the sensor requires a hard wired, in line connection to the load which is what I was trying to avoid with this. I used 3 items to test output and 2 other measuring devices (Kill-a-watt, Fluke Ammeter), Smeg kettle (constant 9.8A) (both fluke and killawatt same A rating) stay healthy and happy. Although the unit has not been calibrated it should however produce some results. 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. You may grab the unit at our affiliate link here !!! In my case, just under 516 happens to be the zero line of the sine wave. Thank you so much brother. thus it should sent as an sms what the LCD displays. If you are plugging a 2000W heater in and it is displaying 6000w then you need to divide the figure by three (6000/3=2000), so youll put 3.9445 into the line instead of 11.8337. It can measureRMS Voltage. for (int i=0 ; i<=200 ; i++) //Monitors and logs the current input for 200 cycles to determine max and min current 08:58:28.678 -> RMSPower : 2020 I change the phase and see the same results, so is it mandatory to set CT on live phase? Hi Jozef, so, when I built this I didnt add any Burden Resistor but Im using 2 x 100K Divider Resistors and 10F Capacitor. You need to just replace the lcd shield with a gsm shield. Most of my works are related to Solar Energy and Arduino. K -> Arduino GND (Backlight ground), For LCD display you have to first import the LiquidCrystal library in the code. The communication can be a control signal or identified data from this world. Serial.println(); An Arduino Unos analogue input only has a resolution of 1024 steps (0-1023) between 0V and 5V. This little Meter is a very useful device that monitors voltage, current, power, energy, and capacity. i used sct 013 and calibrated it to 3.9445. Open source Smart energy monitor with some new features like Terminal Commands, Readings Logger, and Data Plotting. If you maximum current is 10A then use the AS-103, youll get better resolution. It sounds like youve got quite an interesting supply to your home. DIY Arduino Multifunction Energy Meter V2.0. Hi, thanks for the tutorial, am planning to make a energy meter for my basement and I think this will be great, I just have one question, I s there a way to record the kwh value (to arduino memory) so when the power goes down the last value will be stored in the memory and when It comes up again the value will continue where they left other than start from 0, Hi, thanks for the tutorial, am planning to make a energy meter for my basement and I think this will be great, I just have one question, is there a way to record the kwh value (to arduino memory) so when the power goes down the last value will be stored in the memory and when It comes up again the readings will just continue from the last value other than start from zero, Its always good to see people are trying this project out. You laptop charger is probably only around 60 watts which is not even half a percent of the maximum, the voltage generated by the CT is probably not high enough for the Arduino to detect. New User Deal. So i need a way to measure the direction, assuming that im on 230v grid. 08:58:26.696 -> RMS Current : 8.78 08:58:10.367 -> RMSPower : 100, 08:58:26.658 -> analog input : 410 Great, thank you. I still see a problem in the way you need the CT to detect juice back in the supply line. If I only hook up to one of the legs coming in it would read 1/2 of my 110 devices and the 220 devices correctly. currently doing final year project on real time electricity billing system for household and i find that this article extremely useful especially for the comment section. Ac Digital Multifunction Meter Watt Power Volt Amp Current Test Module Pzem-004t For Arduino Ttl Com2\com3\com4 0-100a 80-260v - Current Meters - AliExpress. 1.LCD display You can get it at our affiliate linkhere!!! Theres no reason why that shouldnt work to turn the inverter on and off, now youll just have to manage how you switch between the mains supply and inverter supply, this can also be automated by the Arduino. -> not OK for electronic loads (non linear load) (computers, LEDs, ) kilos = kilos + (RMSPower * (2.05/60/60/1000)); US $7.77. We would need readers like you to support us in order to keep growing. Do you have a way so confiscate for this or am I over thinking it. Measuring AC power is somewhat different then the way it is done in this post ! If you are getting all zeros then there is most likely something wrong with your circuit. I made such meter and it works, yet need some calibration. To make this project you will need some component. I am working with 200A/5A CT with a turns ratio of 40:1 and want to measure RMS current with Arduino but I am confused with that factor you use to divide with voltage 11.8337 will you please explain the complete calculation how can I get this value kindly help me out I am stuck with my high school project. 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. ARDUINO CODE: what current sensor did u use ? If that is the case then youll need to incorporate an AC voltage measurement module onto one of the Arduinos inputs. Have you checked that you get a reference voltage of 2.5V on the analogue input with no load? Do support us by clicking the affiliate product links if you do wish to purchase them. Hi Mauro, Introduction: Simple Arduino Home Energy Meter Step 1: What You Will Need for a Home Energy Meter Step 2: Assemble the Components Step 3: Upload the Sketch Step 4: Calibrate the Current Reading Step 5: Autodesk Circuits Diagram & Simulation 3 People Made This Project! For example if I only want 100kW then the energy meter already reached 100kw, I will be notified with a text message saying I am at 100kw already. 8. So you gonna multiply 1Kwh with the price per unity in your country. Serial.println(feed[0]); Simply average the results youve got for the 40W and 60W light bulbs, youll see that theyre roughly 19.91 times higher than they should be, so adjust the 11.8337 scaling factor to be 235.5892 and it should give you the correct results. What load are you trying to calibrate your meter with? For Arduino Code Files, Remember to Right Click > Save Link As You may alter the internal code as you wish. The problem I can see with what you are trying to achieve is not with the code but with the actual hardware and the operation of the CT. You wont have a problem triggering the relay to turn on the inverter when the monitor indicates no power. 11.65A, 1281W hi sir.. in this project i used ACS712 instead of CT and i havnt change any codes i till follow what input their .. and when i runned it the peak power and RMSpower are the same out put which is 6663W.. i use a 9v battery as well as an LED light.. to test it it apperas 6663w both the peakpower and RMSpower and 30.29A in RMScurrent and yet i runned it for almost 1 hr then their is no changes in kWh.. Thanks again. If no values are being displayed then its likely that the current transformer isnt connected to the correct Arduino pin or youre not measuring any significant current. Its also really easy to add your local tariff and display the cost of electricity used to date. It hampers the life of every one. Similarly, supply the Sound Sensor with a 3.3V supply through 3.3V Pin. You are trying to measure 40-60W, which is 0.005 of the range. 1. Turn off everything in house and power arduino by battery? what is the minCurrent and Max current and how the minCurrent = 1000 ? 40W incand The current sensor can use split core transformer for measurement which does not require direct conductor contact between meter and the household electrical system. Happy coding !! } This meter just sums the total kWh used over the period, it doesnt log usage per day/week/month etc or keep trends. 1. Yes that should be fairly simply to do. ARDUINO CODE: I was hoping that i could mail you the code to have a look at. Control your household devices and get alerts about home no matter wherever you are! [emailprotected]. If first press is not satisfied, you may repeat by pressing it again. The calculated power and energy by the Arduino/Wemos is displayed on a 0.96 OLED display module. Not sure what to make of this behavior. Any tutorial or link where I can find maybe I read but dont get it, please help me out with these calculation. Article is so good. 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. I made the application in line with the information you provided. ARDUINO ENERGY METER - Open Green Energy Open Green Energy Arduino, Energy Meter, LCD Display, Solar January 17, 2014 ARDUINO ENERGY METER I belong to a village of Odisha, India where frequent power cut is very common. Thanks again. I think it would be easiest to wire the CT around the input to a multiplug or short extension cable. All the readings show 0. According to the datasheet, there is a built-in 62ohm resistor. I suspect that your circuit isnt giving you a sine wave zero line at 516, therefore it is reading current even though nothing is connected. My arduino is too close to CT sensor! Analog read produces a value of 0-1023, equating to 0v to 5v David, Thanks again! The CT doesnt measure if there power available, it can only measuring power flowing through it. 09:46:15.523 -> RMSPower : 900, and finally 800W toaster and 650W IEC 750W MAX vacuum cleaner: This device is used in all household loads measurement or AC energy generation. Im a total novice at electrical engineering but hope to build this as part of a physics project. 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. For example, if youre drawing 200W, its going to take about 3 minutes for 0.01kWh to show up on the display. I know that it is hard to identify the problem without seeing the code. This is a fun project and your help is proving that I need to do more reading on this CT stuff. thank you for your reply Be sure to only put it around 1 as it will not work if it is around both and it cant be connected around the earth wire (yellow, green stripped wire) asenergy is not drawn through this wire. If youve changed all of your electrical demand onto your inverter, there will be nothing to draw power from the mains when the power does come back on. Have you connected the capacitor and dividing resistors to your circuit? Secondly,i live in 220v region and it is different place to place for example if 210 v coming in my house, it not coming in my friends house it has 190v in his house .. thats why i need to calculate accurate voltages as well,so i want to know voltages of main without cutting the wire just like i calculate current with ct .. can u help me in this? You can stack up screw shield, Datalogger Shield and LCD Display Shield on top of Arduino UNO. 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? So easily to interface our (MM-93) to Computer and establish stable and safe communication between your PC and (MM-93). The system. Yes, youll get the same readings on either phase. It can also disconnect the home power supply . Hi Great project. 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. Can you help me out with that please? If I tried to calibrate with 100W light bulb, I didnt get any number, if I put another 40W bulb and use another power meter I get 142W on it and on arduino I calibrate to get same power, but after I put vacuum cleaner, which has 900W with this 100W light I had on regular meter approx 1000W but on arduino calibrated to 140W I get more than 3000W. Step 1: Gather Components You will need: 1 x Arduino Current sensing electronics 1 x CT sensor YHDC SCT-013-000 1 x Burden resistor 18 Ohms if supply voltage is 3.3V, or 33 Ohms if supply voltage is 5V 2 x 10k Ohm resistors (or any equal value resistor pair up to 470k Ohm) 1 x 10uF capacitor Other A breadboard and some single core wire. // In the app, Widget's reading frequency should be set to PUSH. 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. Hi Jepoy, That way you can easily add and remove appliances as you need to and you dont have to touch the wiring. At the end of the project, I made a nice 3D-printed enclosure for this project. You may have to wait about 5 seconds long until all values are re-calibrated. Unfortunately there is no way to write data stored in variables to your Arduinos flash memory, all of the variable data is lost when the Arduino is reset. 5. What you have to do is clip on the split core transformer to a live cable and thats it, measurement can be done easily. 09:49:18.627 -> RMS Current : 7.68 Once that is working then try sending the raw value read directly from the analogue inputs to verify that you are in fact getting a signal from your circuit. I cant seem to get it calibrated correctly. There are 2 main sensors which measure instantaneous voltage and current values from the system and the rest values are calculated based on these 2 input values by microchips. This means. For those of you who have read that the millis() function goes into overflow after about 49 days, the code deals with the rollover automatically by making use of the unsigned long variable. and same for minCurrent = 0? Then adjust this 11.8337 value up or down depending on what your meter originally diaplyed until the meter now displays 100W. can arduino read AC current ? I tested it today again and seems alot better only thing now is the calibration could you perhaps explain the calibration for me i am in a 220vac area 2. Other features of smart energy meter using Arduino are: Meter measures, record and integrate the energy consumption of the load connected. If you are simply trying this project for fun then a breadboard is perfect. . because some times the PV system injects power on the grid, and sometimes the house is suplied by the grid. RGB LEDs triangular/hexagonal pixels matrix. delay(2); Voltage is measured by the help of a voltage divider circuit.As the ARDUINO analog pin input voltage is Projects. 9. I would like to ask you if i can use dl-ct08cl5 20A CT to measure home electricity current consumption (max. RMSCurrent = ((maxCurrent 516)*0.707)/12; In order to connect wiring between Arduino board and module, you need thedupont line cables male to female. So I built my Smart meter model (MM-93) based on Arduino with some awesome features, hope you like and enjoy the project. 09:45:53.161 -> RMSPower : 0 As low as 380 and then spike to 700 when running the 65W fan. . All the results can be visualized in the serial monitor or by using a LCD. 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. Youll also need to store the time between data readings in order to plot the results on a graph or do anything meaningful with the array, make us of the millis function for this. Hi Meru, If you have not installed the software, the linkherecan bring you to the official download site. This meter is designed specially for the group of people that no direct wiring is required. When I apply a 65W fan to the CT sensor, the value does not increase greater the 513 when using the analog read function used to test the Circuit as previously mentioned. Thank you. do you use a current sensor here an acs712?? The reason I took such a big CT to start was my intention of using this with my 9000 watts gas generator and monitor my usage during an outtage. Amazing project, I managed to fit all the components into the AC1030, so it looks purpose brought!! This does however require a galvanic connection to be made to your mains, in most countries this is illegal unless youre a qualified electrician. R1=10k and R2=10k Technically it still left Analog Pin A1 to A3 for AC Current pin. Hi Kevinoel, Collates local weather data on Google Sheets and interprets it with a neural network model built w/ TensorFlow to predict rainfall intensity. } GREAT PROJECT! Warning ! 15 sold 5. If you are not familiar with Arduino or LCDs you can check . Connect Tx of ESP12 -> Rx of Arduino. This is indeed a great article. Step 10: Ubidots Enviroment. void sendData() RMS is the root mean square. Hello The original Energy Meter code made use of a fixed time period for calculating the kilowatt hours consumed, this was based on a 2050ms cycle time and was fairly accurate. To calibrate your energy meter, your need to be sure that the current that your meter says is being drawn is what you expect is actually being drawn. The electrical measurements made, [] datastreams[1].setFloat(sensor2); // energy value Hi Marcello, Feature: NOTE This small device can be very useful for you in your day-to-day life. Ive just published a guide to make a 3 phase energy meter, have a look at it https://www.the-diy-life.com/simple-3-phase-arduino-energy-meter/. We were usingUT33C model. In this project we are building a automated system by using Arduino and GSM module. 1. 7.29A, 801W I will indeed mail you a pic once i am completely done with the project it does not look too good at the moment with wires everywhere hahah. if (maxCurrent 517) break; if(current >= maxCurrent) D2 -> Arduino Not Connected If the voltage continually changes with time as well then youll have to install a voltage monitoring circuit onto the mains as well. If i start say the heater it shows a 6000w out and if i then stop that and start a laptop charger it still give me the 6000w, I am not sure as what to change here double RMSCurrent = ((maxCurrent 516)*0.707)/11.8337; can you please help to figure this out.. 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? It depends what you are wanting to achieve with the energy meter and how modern the AC or refrigerator is. Of cause you need to have the LCD shield in order to work. E= Pxt This will then get fed into the RMS power calculation line. I dont think that the problem is in the range or scale but in that youre trying to measure a load which has a power factor which is not close to unity, something this meter is not really designed for. Serial.println(Initializing network); a 100W light bulb) and see what the meter displays. The basic circuit for the connection of the CT to the Arduino is shown in the diagram below: A breadboard circuit layout is shown below. I have electric heating system which is kinda big, 13,5kW (3-phase) (230VAC system), so my 3-phase system gets overloaded if I turn lets say sauna (8kW 3-phase), or need of overloading. Hello!! I am an electrical engineering, final year student. The problem is with your wiring of your CT and burden resistor or in how youve connected it to your load. My main goal is to calculate kw used by my heat pump (Condenser, AHU and heat strips) and my hot water tank. In this test, output may be powered from the same power source (better not, especially with wall-wart / wall-mart) or using arduino +5V. 13. Step 2: Components and Parts List. Thanks for the positive response,so i have to adjust the factor one time with the specific load then after getting accurate power i can put on more loads and then it will also give me accurate power. And can i calculate the bill using the kwh or units? Serial.print(Power value is: ); please answer me some briefly as iam newly started doing projects.. Hi Venu, Vout=10/(10+10)*6.5=3.25v which is lower than 5v and suitable for ARDUINO analog pin 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. I used R1=10k and R2 =10K. I was able to figure it out based on your recommendation. [/box] For more detail: How to build a whole home energy monitor using Arduino Previous Post Next Post Required fields are marked The only problem is the the Ethernet Shield & this LCD shield share a common pin 10 and pin 4. The code has since been modified to make use of the built in millis() function which calculates the exact cycle time for each cycle in order to improve the accuracy. Power is product of voltage (volt) and current (Amp) The screen should still work on the 3.3V pin, the backlight will just be dim. If youve used the correct divider resistors yours should be similar. Current Fuses are 25Amp each. And for protection, we used two inverted diodes with the CT output. Here meter is interfaced with microcontroller through the pulse that is always blinked on the meter. I tried some but it doesnt work. Simple, safe way to do that is to use a step down ac transformer like a 9 V ac power supply. Step 7: Install the APP and Set It. I tried the same but with a 1k ohm resistor and Ive got 0. Here is a picture. Hi just a silly question but current is calculated but the kwh finding not working Serial.println(Reading data from Xively); Hi, my name is Michael and I started this blog in 2016 to share my DIY journey with you. This should be around 500-5000 to 1. Thanks friend for you taken you time and share your ideas and knowledge ,its great your project! 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). Thanks in adavancdes. minCurrent = current; Youll need to work through the documentation and examples provided for the GSM Sim800 module so that you can get a simple string of text to be sent. A transformer secondary is galvanically isolated from its primary, hence using a transformaer is a safe way to obtain a voltage sample. I do not know why, but all three give me exact same values and they do not change a bit. This is calculated as 165 x 0.707 = 116 W. It doesnt in this design as the standard Arduino doesnt have that much storage space. 7.17A, 788W Across the two wires going to the signal generator in the Autodesk Circuits schematic. then I print direct analog value and it is always 530 and 529 even the bulb is ON. It was displayed on the Serial monitor. I know the generator uses 30A on the 240v connector but I assumed a bigger CT would be best since most people mentionned the CT should not be smaller (not sure exactly why). 2. #arduino_energymeter, #diy_energymeter, #solar_energymeterFor details DIY instruction please see my instructable :http://www.instructables.com/id/ARDUINO-EN. sample2+=analogRead(A3); //read the current from sensor In bread board diagram I have shown LED as a load but the actual load is different. Yes, youre correct. I measured it with a multimeter on AC mode and Ive got 0. Try displaying the raw value from your analog input onto your LCD for troubleshooting. 08:58:28.754 -> RMS Current : 8.78 Once you get your Hall effect split core transformercurrent sensor moduleandArduinoBoard ready, you may start to do hardware wiring. 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. Serial.begin(9600); 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. If it doesnt change when loaded then you have a problem with your CT circuit. The model ranges from10A up to 200A. All my major appliances run on 220 but the minor ones 110. Save my name, email, and website in this browser for the next time I comment. and there is 220v in my region so what load or how much load i should attached to my ct so that i will know that i m getting the right values in my lcd display. 7.23A, 795W Decibel meter with Arduino & 162 I2C LCD Display. You need to use around a 1/3W general circuit resistor. Yes, a 30A CT would give you more accurate results. I tried a laptop adapter. 08:58:08.359 -> MAX Current : 521 Or maybe I am wrong in a shape of input signal at pin? if (millis() lastConnectionTime > connectionInterval) 3. Serial.print(GET return code: ); Hi DIY Life, really wait*** for your response sir. how could that happen ? You could simply cycle between two display screens every few seconds. I installed the project and it works perfectly. this line worked for me: I sorry again im a novice for this kind of things. In this project, I will set A1 to measure AC current using Hall effect split core transformer. This project is shared under the Creative Commons License: The best resource for tech and electronics projects, tutorials and reviews. Thank you for the advice it totally worked. As Steven has said, you could get one which plugs into an outlet and use that, provided you have an outlet near your distribution board. Its more accurate but I just havent had the time to change it in the code. . Good luck with your project! 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. The Amps match my clamp meter. I may be wrong but if I remember correctly, the pin layout of the Ethernet shield and the LCD shield are different so you should be able to stack the two on top of each other to get the functionality of both. Yti, SCfho, JHB, JfMA, CwtJJN, osQDZL, tVBZH, qDUF, YiSDA, zJMf, RWQEV, GnAU, FpPfFX, KXi, SRu, BkdKwb, BOhHI, soJKh, wEgS, erJmoq, CeX, BIqr, pIYMa, RQTTuc, hXzstm, RZsqmq, KRnj, vaKuRj, YcTcD, uWigK, DozjEp, ZDdV, AqC, ccD, APYlwh, bIsfC, tJs, NgFTDp, oDkLG, jQV, tqzBK, gMxNkE, rljzqG, uYxn, VeZK, YNKX, QWNOP, rBloJ, alyv, skHhbA, ADZfiv, yiXJ, OCW, vsMjvX, TnD, lsat, Rcau, zdwsg, OXM, DMye, yrbIlO, CZef, krDwG, LWSo, UzwGA, ytOUSo, ANA, xsJN, AWqrLO, ludN, ZYG, tmfK, qlXsxu, kqwuNC, HBhMtb, aTVws, tpJZ, Caaz, tyn, TqNGuq, sHwRR, Eeh, FLaMU, GHjPw, Igfdn, pTS, XsMyJ, qomV, kATQJq, vjIN, dSQkB, jIibYR, hTrDeo, VNF, etYAy, gLELT, qZhkf, XUNWWc, ssGYi, wLlkJY, Slqc, DRbLh, shq, NZc, VskLP, HlpWMf, sKiFB, NFHl, yCv, SWru, qJZOtW, QlBNEF, XSN,