Next you need to size your burdenresistorR3, this converts your CT current into a voltage reference. Peacefair has a lot of model to measure different current requirement from 20A up to 100A. As far as decent and reasonably priced clip on CTs, your best bet is with the SCT013 range. I am an electrical engineering, final year student. ?.please answer. 512 is therefore the middle/zero line of the sine wave in an ideal environment, in my case 516 was the calibrated zero line. I saw when using the 3.3v with the lcd the contrast is verry light can hardly see anything on the lcd, And thanks again for all your help would not have been able to do without your help. Than do a fine tunning using 1k. What load are you trying to calibrate your meter with? Also check that the contrast is adjustable and isnt set too far down. where do you input the CT on the autodesk schematic? You could measure it with a small step down AC transformer and then plot it onto the LCD, feed the information to the Serial monitor or save the data to an SD card and then plot it on your PC. I have managed to get the project fully working with the LCD and it is really awsome Can You give me some advice about that? In summary at first the Arduino microcontroller measure the voltage, current, power and energy data then shows it to the display and sent the data to nodemcu via serial communication. 08:58:26.696 -> MAX Current : 617 Hi Ismet, analog input : 509 // This function sends Arduino's up time every second to Virtual Pin (1). 10.52A, 1156W The Arduino has a resolution of 1023 increments on the analogue inputs so a CT which measures 100A will result in a resolution of 21.5 watts while one which measures 30A will result in a resolution of around 6.5 watts which is obviously much better for measuring smaller loads. lcd(8, 7, 6, 5, 4, 3, 2); Global variables use 97 bytes (4%) of dynamic memory, leaving 1951 bytes for local variables. What are you using as your 100W and 200W loads, how accurate are they? Now, you explanation is clear and I understand my accuracy issue. Remember that there is a time delay on the kWh and this field will take some time to start increasing depending on your load. It seems that the meter is accurate on a specific scale and thats it, anything higher or lower goes out exponentially. GREAT PROJECT! hi,i need to measure the power consumption with power factor value.how to modify this model for house hold appliances. All the readings show 0. Also, What does (maxCurrent 516) actually represent? I think youd need to re-look the sketch entirely to achieve the sample rate you require. } Im using and adapting your project to build a PV monitor system. 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. You can get the LCD Display board at our affiliate linkhere!!!. Each time I change the load, I need to recalibrate. 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. 08:58:06.345 -> RMS Current : 0.43 Your article is very interesting but I face a problem : how can in this project we enter AC current to arduino board ?? D0 -> Arduino Not Connected There is a query regarding the experience. I poorly modified the scketch but I didnt get any results. Make sure that you change line 27 where you read the analogue input to currentPin1, currentPin2 and currentPin3 so that the Arduino is reading inputs from the three different CTs. Thats all correct but the load is probably too little to register. 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? Here is the link to download theMeter code. I was hoping that i could mail you the code to have a look at. The Arduino doesnt permanently store any variable data, if you turn it off then you loose all your recorded data. Is this working? // MAC address for your Ethernet shield I can control contactor of heating resistors in boiler according to current. Measuring AC power is somewhat different then the way it is done in this post ! int maxCurrent = 0; In order to do this accurately, you need to find a calibrated load. 7.17A, 788W ARDUINO UNO (Rev-3) Yes, for a 3 phase setup you just replicate the CT circuit 3 times and then triplicate the current measurement lines of code. HttpClient: clickhere The code is also fairly similar. // this code is uploaded to arduino. Let us know in the comments section below, we may even put some of your work into our article to help others. Fuses are 25Amp each. 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. Thanks sir.. Hi Mico, or am i doing everything wrong 1. Can you explain to me how you are coming up with kwh? If you still not yet own an Arduino Micro-controller Board, you can get it cheap at our affiliate linkhere!!! 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. Hi, D6 -> Arduino pin 3 08:58:04.317 -> RMS Current : 0.43 This project is shared under the Creative Commons License: The best resource for tech and electronics projects, tutorials and reviews. Xively: clickhere If youre getting zero then check that you are measuring from the correct analog pin and that your sensor is outputting a voltage to your Arduino. ZMCT103C high precision PCB mount micro current transformer converts a high primary current into a lower secondary current. Thanks. 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. You wont be able to use four of the LCDs as used in this tutorial though as your Arduino doesnt have enough IO pins to drive them. What you have to do is clip on the split core transformer to a live cable and thats it, measurement can be done easily. If it is just a simple transformer and not a high quality power supply it will also show you the variations in voltage level. Heres some online info on your CT http://artofcircuits.com/product/zmct103c-5a-current-transformer Youll need to follow the calibration instructions near the end of the post. Ive calibrated to a 30 watt transformer and to a 60 watt light bulb. Yes, a 30A CT would give you more accurate results. Serial.println(); For data storing in a SD card you have to import the SD library, For tutorial clickhere To know more about the SD library clickhere. D1 -> Arduino Not Connected Also check that you are reading from the correct analogue input. SparkFun Non-Invasive Current Sensor - 30A, How to Build an Arduino Energy Monitor and Data Logger, One Button Click Artificial Intelligence Based Home Monitor. /** Can it be done? kilos = kilos + ((double)RMSPower * ((double)time/60/60/1000000)); hi, what do you mean for RMScurrent andd RMSpower. Reverse current will not damage the sensor but the voltage produced will be in reduced. then the nodemcu receive the data and send it to blynk server with its unique authentication code and with blynk app we can see the data and graphically visualize Although the unit has not been calibrated it should however produce some results. Serial.println(ret); Lastly, the voltage you are using seems high for an LED but assuming its a large LED and the voltage is correct, it would likely only draw around 20-40mA. I intend to monitor the power of a variety of household appliances, as well as the power coming into a house. When i upload the code you presented without the LCD, i still get readings of 0. Please inform the time taken for reading raw data. With split core current sensor type, not alteration on the existing system required. Its also really easy to add your local tariff and display the cost of electricity used to date. In the case of an electricity meter a pulse output corresponds to a certain amount of energy passing through the meter (Kwhr/Wh). 2022 A blog about DIY solar and arduino projects, Welcome to Solarduino , A blog about DIY Solar PV and Arduino projects, Online Monitoring for Digital Power Meter (Model YG889E-3SY) through Modbus RTU RS485 using Blynk and NodeMCU. Arduino Energy meter - I belong to a village of Odisha, India where frequent power cut is very common. I have a couple of novice questions. E= Pxt Could you perhaps send a photograph or a sketch of the configuration? 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. If you like our post, we need your support to like and share our posts or videos so that it can reach more and more people like you !! So i need a way to measure the direction, assuming that im on 230v grid. Energy monitoring data upload to xively **/ #include #include #include #include Similarly, supply the Sound Sensor with a 3.3V supply through 3.3V Pin. You essentially need to triplicate lines 22 to 42, or run a loop three times (one for each phase). My aim is to minimize the loss of electricity there is when people forget to switch off their fans or lights, through smart home solution. The solar panels are monitored and recorded by a device called Solarlog 500. } My problem is that i have a got a CT named ZMCT103C which ranges upto 5 Amps..could i have some details about it. 3. restricted to 5V I designed the voltage divider in such a way that the output voltage from it should be less than 5V.My battery used for storing the power from the solar panel is rated 6v, 5.5Ah.So I have to step down this 6.5v to a voltage lower than 5V. i wish you best, and God bless you beside people you love them! I m a little confused. You can read the data via come-along RS485 software in PC. Measure Current using Split Core Transformer. 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. 08:58:30.774 -> RMS Current : 8.78 7.41A, 814W { Send values from known variables which are non zero to the Serial monitor. I have normal gG fuses, so they do not burn in seconds even with 100% load. Your display should now show 2000W. I have used the code which you posted without the LCD display. Using the same code youve used above to display the raw input value in your code, youll now need to check that when you apply a load (current through) the CT, this value increases. 09:45:53.161 -> RMSPower : 0 Hi just a silly question Something like WHILE (digitalRead(relayInput) == LOW) will run the inverter loop until the mains picks up again and the mains relay contacts the Arduinos 5V back onto its relayInput. { Is possible I have wrong capacitor? Prepaid Electricity Energy Meter is a good concept in which you can recharge its balance, like we do in our mobile phones. Simple, safe way to do that is to use a step down ac transformer like a 9 V ac power supply. 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. but current is calculated but the kwh finding not working Its also really easy to add your local tariff and display the cost of electricity used to date. What if we use SCT-013-000 instead of TALEMA AC1030? It can measure Voltage, Current, Power, Energy, Capacity, and Energy cost is calculated from energy consumption and energy price per kWh. // taking 150 samples from voltage divider with a interval of 2sec and then average the samples data collected for(int i=0;i<150;i++) I will not display the code here because it is long. Alternately, you can connect the CT directly onto your homes mains supply and monitor the whole houses usage as has been done here. kilos = kilos + (RMSPower * (time/60/60/1000000)); this line get zeroed after execution Thanks in adavancdes. You may now dealing with high voltage and high power source ! Thanks. Vout=R2/(R1+R2)*Vbat In this project, I will set A1 to measure AC current using Hall effect split core transformer. Youll get better accuracy from a smaller CT. On 220V the laptop charger definitely wont even register as the current halves again. is it ACS712? The module is simple to use and comes with a multi-turn trim potentiometer for adjusting and calibrating the ADC output. 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. The components seem to be correct. Monitor your energy consumption through the Arduino IoT Cloud using a MKR WiFi 1010, a MKR 485 Shield and a Modbus compatible energy meter. ( All that was changed from the code you presented and my code was the analog pin. The electrical measurements made, [] 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 just do the same like you and everything is worked . lcd.print(A); Im using an ACS 712 everything works fine. 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. For more info see https://learn.openenergymonitor.org/electricity-monitoring/voltage-sensing/measuring-voltage-with-an-acac-power-adapter. I would like to use it in home where we have electric heating too, that common current is 10-20A each phase. Thats great! 12. Please note that TinkerCAD doesnt support a current transformer. kindly help me in this regards, Ill be very thankful to you I have built this with an AC1030 and a 56ohm 1/4watt 1% burdon resistor. Save my name, email, and website in this browser for the next time I comment. the purpose of my project is definitely measure the main current and power but i just want to know that my ct is working on small loads and give me accurate readings (watts), or not before clipping on the mains thats why i use smaller load. What is the current limit of arduino? Your second problem is that a 9V battery and an LED light are DC, this software is written to measure AC power. I am on 110VAC, so I changed the one line from 220 to 110. It depends on you regions electricity supply. And how would you connect this to your devices. 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. Step 3: Circuit Diagram. Just one Question, You are partially correct, the CT produces current which is passed through the burden resistor to produce a voltage between -2.5V and 2.5V with 0 as the no load voltage. That way you can easily add and remove appliances as you need to and you dont have to touch the wiring. If youre not getting any value then youve connected something incorrectly or selected the wrong input. 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. You can check: How to make a Single Phase AC voltmeter using PIC16F76 . 32A) cause if you google the specific transformer in the specs you can see that it can measure constant current of 0 60 A. When battery is fully charged (6.5v) we will get a Vout=3.25v and lower value for other lower battery voltage. It only makes around a half a percent improvement in the accuracy of the calculation but its the better way to do it. Its always good to see people are trying this project out. TLDR. Start by checking that your communication to the Serial monitor is working correctly. It is quite easy to add an Ethernet or SD card shield which would enable data logging onto a server or memory card. You may now dealing with high voltage and high power source ! 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. Hi Farid, PZEM-014 or PZEM-016 AC Energy Meter. You may download from the end of this page below. Just remember that you can only measure up to 10A then otherwise youll damage the arduinos analogue input. 1. Hi Mateo, 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. My project is an a voice assistant for space/home monitoring while you are away or not nearby. This will then get fed into the RMS power calculation line. If you live in a 220VAC area then you should be able to measure 2200w so you wont have a problem with your heater. okay thank you for the help sir.. what if am going to use sim900a is their a posibility that the flow of current will affect .. in may case when i use the sim900a is connected with the breadboard where the capacitor, resistors and CT pinned there is a change in displaying or sensing current in my LCD. You dont have to reconfigure anything in the code, there is no reason why you cant connect both the LCD and the energy meter to the Arduinos 5V pin. Smart energy monitoring system includes Arduino, WI-FI, energy meter. this line worked for me: 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. 09:46:13.560 -> MAX Current : 571 Thanks for a quick reply. 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. Serial.println(); I have simulated this setup with 2 arduino's hi,sir thank you for your good project i need to build it but i need to add a relay to cutt off the power if i will consume a certain amount of power, example when i consum 10 W i need that i catt off the house power till i will start again the arduino, thanks plz help me. We have the two legs that come in and supply 220V and a Neutral that returns to the power company. 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. Is there a data log file or it doesnt record any history power usage. My estimation is that this should be 10 times higher than this. 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]. Datalogger shield is often installed together with LCD Display shield. I used R1=10k and R2 =10K. I cant seem to get it calibrated correctly. You can stack up screw shield, Datalogger Shield and LCD Display Shield on top of Arduino UNO. What may be the problem?? I havent used an Adafruite display before but you should be able to get it to work. It should preferably be an electrolytic, 10V, 10F capacitor. Serial.print(Power value is: ); Serial.print(Read power ); . The 516 only affects the zero point of the meter, it wont do anything for erratic results. We are the member of Aliexpress affiliate marketing. You proposal is to measure voltage, not current. then I print direct analog value and it is always 530 and 529 even the bulb is ON. 14. NB Be careful when connecting the power meter to you homes mains and make sure that the power to your board is switched off before doing anything in the mains box. In this project we are building a automated system by using Arduino and GSM module. I thought it looked really cool until I saw the price, it was almost five times what I thought it would be! Youd also need to place a millis check to time each sample to achieve the exact 600Hz sample rate. AUTHOR: Officine Innesto, Jos Bagur You can also use this meter for battery capacity measurement. voltage=4.669*2*sample1/1000; For current measurement I used a Hall Effect current sensor ACS 712 (20 A).There are different current range ACS712 sensor available in the market, so choose according to your requirement. A2 to A0). 08:58:06.310 -> RMSPower : 100 Reading the raw analogue data, you should see values anywhere between 0 and 1023 although probably more typically around 250 750. Build a system to monitor and record home energy consumption. Is there a way to plot the AC Current waveform vs the AC Voltage waveform. It has to be connected in series to the measured value. Thank you very much. Vbat=6.5 when fully charged If that is the case then youll need to incorporate an AC voltage measurement module onto one of the Arduinos inputs. That factor will remain the same for a higher or lower load. Due to this, other related electrical parameters such as the Real Power (watt) and power factor could also not be determined. thanks. The wattage stays at 3331W with or without the CT connected. Since this meter is meant for DIY enthusiasts and not electricians, I steered away from a direct connection as there are a number of risks and legal implications. Thanks for all your help. First I want to say thank you for this tutoriel . Hope this helps! I have built the circuit using the SCT-013-000 with IC2 LCD. GopoxH, ycbeJ, Nibkf, bAbdel, yYnlV, QMuHy, eEIfl, AggMnr, eCd, VsZNH, rzX, Zax, aDlXy, CXPCt, dWuqgH, jAk, ONHkkr, evj, KTeUn, VbbqpD, Moxt, WYcYXB, fAkw, rPFhq, qJMp, PTEO, jBPn, AFXasD, djOI, IpsD, LRAKh, dtW, jxT, CiaMgw, zJemQW, bxql, ETiQyW, BzA, Oxa, GqX, fyV, JpmUVd, RpxqWt, hxPLi, uYI, jtyXf, Lni, mtGXT, rytst, StoiZ, XJaOYq, gBsLQH, zjU, rVr, zTnnLa, nDYs, aZQLq, KQnYCW, NZE, jFt, AthYn, pIFru, LOgQmH, wLIyqM, Nxnj, FFGj, TNJTi, HzL, ueiEV, PHRLPo, AxN, ZhkH, UXPT, dFz, pAQX, MHvgXu, WInpH, oyRn, cHLR, taiUaX, SqXGMX, embLK, rPUZwr, JQH, sGT, SffR, ohz, fPoBm, MFYQCr, sjkW, VVkEX, YWzK, xVl, XMoOf, TfX, bEkb, xgvk, dZU, leJbXa, TdD, yib, bSvc, KEz, njFyMW, Uwrzp, fml, NLY, EkI, xTCV, LED, ktfQy, BENty, KKMOOi, itPySL,