Це відео не доступне.
Перепрошуємо.
🔶 High Precision Digital AC Energy Meter Circuit [Voltage, Current, Power, KWh]
Вставка
- Опубліковано 14 сер 2024
- A Digital AC Energy Meter Circuit [AC Voltage, AC RMS Current, AC Active Power, AC Energy, AC Power Factor, AC Apparent Power, KWh] using Arduino Nano and HLW8032
======================================
Altium Designer + License (Free): www.altium.com...
OctoPart: octopart.com
======================================
Article: www.pcbway.com...
======================================
Disclaimer: Some parts of this circuit carry 220V Mains voltage. Be careful with your experiments. If you are a beginner, ask some experienced users to guide you.
======================================
Dealing with the 220V-AC mains voltage and measuring the AC loads' true power, voltage, and current parameters are always considered a big challenge for electronic designers, both in circuit design and calculations. The situation gets more complex when we deal with the inductive loads because inductive loads alter the sine-wave shape of the AC signal (resistive loads don’t).
In this article/video, I introduced a circuit that can measure the AC voltage, RMS current, active power, apparent power, power factor, and energy consumption (KWh) of the loads. I used an Arduino-Nano board as a processor to make this more educational-friendly and attractive even for beginners. The device independently measures the aforementioned parameters and displays the results on a 4*20 LCD. The measurement error rate is around 0.5% or even lower.
To design the schematic and PCB, I used Altium designer 22 and installed the missing component libraries using Altium’s manufacturer part search tool. Besides, the Octopart website allowed me to quickly gather information about the components and build a BOM for the project. To get high-quality fabricated boards, I sent the Gerber files to PCBWay and used the Siglent SDM3045X benchtop multimeter for calibrating the device.
It's a cool device to be used in everyday electronics, so let’s get started :-)
Thanks for the great content!
My pleasure!
Solid work!!!very informative
Glad it helped!
Thanks for sharing very interesting topic
as the above board shows the energy meter design for 220 nominal voltage what will happen if the voltage level below 220 V or 100V
nothing. it calculates based on the input voltage and current, however, I'm thinking about the capacitor-based supply for the chip (not the chip itself), that might cause issues if the voltage drops too low
I have another design as well, V2. check my videos you will find it
@@MyVanitar yes most of our meter lost stored energy on voltage drop areas , due to what reason happen or which electronic component causes
This is not the problem of the meter, it can be easily solved to handle even as low as 85V-AC
Great stuff, thanks for sharing
Glad you enjoyed it
will you please suggest any other values of 0.004 ohm resistor because I didn't get it from online
you should create a 1miliohm resistor, at least 6W. so you can use two 0.002 (2 milliohms) in parallel also
if you could not find one, at least use a single 1milliohm 3W one to make your experiments
Be a lot safer using a CT-based design with temp comp opto isolators for voltage ( you can do it using one on the input voltage and one in the feedback loop of an opamp on the low side) This provides a totally isolated solution. This is what the commercial one's we design use . Another option is to use something like the Allegro current sensors instead of CT's.
Yes, CT can be also used with this design, but the direct measurement (like what I did) is more linear and accurate. CT is more convenient for non-invasive measurements, not because of the safety or similar. for when we use this in an enclosure, nobody is afraid of touching the circuit. Anything connected to the main should be considered for safety. For Allegros, you have to make the calculations yourself.
Any energy metering chip is available that support CT instead of shunt resistor?
Hi, nice project, thanks for sharing. 🙂 What I miss is the Power Factor. What's the reason not adding that?
You have the code, just add it :-)
😄 I wish I could. I'm not able (yet?) to read/understand the code and to change it. But is it possible by only adapting the software or are HW changes also necessary?
just remove a line (on the LCD output) that you don't want (for example KWh) and add the PF. The library has its functions.
Ah, that easy. 😃 Thanks for guiding me. Got it!
Thanks for the great video!
I am using your library, and reading is ok but the values I am getting are not accurate, PF is always around 0.35 and Current at no load is reading 0.7-0.9A. Voltage on the other hand is accurate. Any suggestion what might be the cause? in regards to schematics it is pretty much the same as yours and the datasheet.
You should calibrate the device using a linear AC load (such as a classic light bulb) and an accurate true rms multimeter in AC current mode. however this is not the case with you, calibration fixes some drifts, not the thing you experience. make sure you only use my library from my Github, also clean the board for any flux residue. I can not help you more because you don't use my PCB and I don't know what you did in that level. by the way, watch my upgraded version and the calibration phase here: ua-cam.com/video/GDTPgqovTlw/v-deo.html
@@MyVanitar Noted.
There is something off as you mentioned, it is not just the calibration as my readings for PF is way off with a resistive load (100w blub). I will try to clean the board as you suggested, alternatively I will try to change the current sensing resistor to another type, but I wonder could that cause the PF to be so inaccurate?
it's weird indeed, the current is also weird without any load
Hello Mr my name is kassahun Tamiru from Ethiopia Africa as you explain digital energy meter measure Active energy reactive energy ,apparent energy , active ,reactive ,and Apparent power and also digital energy meter measure instant current , instant voltage ,power factor and display any tamper event on meter LCD like Battery status , reverse connection ,ground , terminal open and Etc ,
my county single phase system voltage standard is 220 V and we use digital energy meter but our meter canceled the previous stored cumulative energy when our voltage decrement to 170V and below what will be the Reason for meter canceled registered kwh
I don't know, but a voltage glitch (on/off) probably caused this, because they calculate until their power is connected. to avoid this, you have to store the latest data on an EEPROM or something, every 1-2 minutes for example
Hi! Can this energy chip indicate the direction of energy too? For example, if I have a solar system. I'd like to see, whether I consume energy or I feed energy into the grid. Is it positive power or negative power? Is this circuit capable of indicating the direction of power? Thank you for your video.
This is for AC loads; for example, you can put it at the voltage entrance of your home or measure the power consumption of the individual AC loads to see how much they consume the power. In your case, I think you are dealing with DC voltage at the first stage, DC is way easier than AC
Hello, congratulations for your impressive work. In order to use this system in 3 phase, can't we connect the shunt resistor before the load?
For 3 phases, you need 3 of these, each for one phase. the shunt is before the load always. here is also like this. Check my latest video also. I have introduced V2 of this circuit
thank you for your excellent work@@MyVanitar
Very nice sir
Keep watching
For use with 120V North American systems, is it as simple as halving the shunt resistors and modifying some Arduino code?
I don't think you would need to modify anything, use it as it is with 120V, however, I think about the non-isolated supply side. The output voltage of that section "might" not be sufficient with 120V. I have not worked with 110V/120VAC to confirm this or not. I don't know
I have published another version of this also, as of today, it is my latest video
Fantastic :-)
Thank you! Cheers!
How much volts and amps can the circuit handle?
This is for the AC line (220V). maximum current depends on the power of the shunt resistor
Hi Sir great project... Thanks for sharing... I need to clarify on think about frequency if possible to add displayed in frequency please 🙏🙏🙏
This is for the Mains power (home appliances), so the frequency in most cases is 50Hz
@@MyVanitar sir if possible to add in lcd display frequency also please
I think you had asked this question somewhere else also. What is your question, just want to display "50Hz" somewhere on the screen or you want to measure the frequency?
@@MyVanitar Sir Please help us i need to measure exact frequency value in LCD Display using arduino .... so many videos not display frequency in the LCD screen
because the frequency is always 50Hz, why somebody should measure it?!!
Please thanks so much for this wonderful video. Please how can I get one of this board for my project?
Check the article link in the UA-cam video description. This time it was some delay in that. There is a possibility for you to order the board or even order it fully assembled
How Bring back the index finger of an electric meter ?
I did not get your question
Please what is the name of the LCD connector, input and out put connector please I need it for my project
I publish an article (a blog post) with every project. Please check the video description tomorrow or the next day, by the way, you should watch the video completely. unfortunately some beginners are just hurry and impatient
Hey, is it possible to modify the circuit with HLW8032 ic to be powered from 12v car system and to measure car amplifier output to speaker? (voltage, current, power)? Thank you
Your case is different because the frequency and output wave are different. by the way, you can put a high power resistor instead of the speaker, with the same resistance as your speaker, for example 4-ohm or 8-ohm, then measure the RMS voltage and RMS current using your oscilloscope and multiply these two
@@MyVanitar But speaker is inductive load and impedance is constantly changing. I want to measure true power that speaker is receieving from 10 to 100hz (sub frequency range)
The power of what you hear and what the board can handle is different. To measure the power of your amplifier, this technique is applicable. for the input, you can apply a small sine wave using a generator
if this does not satisfy you, you can build a load using some copper wire (to simulate the speaker) and make this experiment using that load. but you would need an oscilloscope in either case or even a current probe to measure the RMS current. I may do a video around this
@@MyVanitar I already designed the circuit to measure rms voltage and current but I am not sure how to calculate power factor. I done testing with frequency generator.
can you a make a DC energy meter?
DC is way easier than AC, difficult is AC
Hi whats the common mode choke that you used?? part number?????
Check the article and the Bill of materials
I've been wanting to design an AC measurement circuit for my solar heater system, so this is very handy. My existing sense circuit has similarities to yours, with large cut-outs. I control around 1kW and measure using large, external shunts. I haven't looked at AC measuring chips yet, but I'm concerned whether they provide pure RMS? You've put a lot of work into this design, so I'm curious what it's for? I'm also surprised that you're using an Arduino.
Check the article, Christie. This time it was published with a few hours of delay. of course, it measures the RMS voltage and current. and also many other complex parameters. if it does not, then what's the benefit. I did that with Arduino to make it more educational-friendly. for a commercial product, I would make some changes
@@MyVanitar Great, I'll have a look at the article. I specifically meant true RMS power (not just RMS V x I), but it sounds like it does that too. How do you sell your products? I design quadrature motor controllers and other things, but have had poor luck selling things.
Yes, of course, V*I is the apparent power, not the active power. I don't sell products, however, you can collaborate with big shops and send your items for them to sell. companies do this most of the time.
@@MyVanitar That's what I tried to do without success. May I ask which companies buy from you and how one should contact them? I really don't want to keep doing the individual selling and posting.
As I mentioned in the previous comment, I don't sell products, however, that was my suggestion. You may try Amazon and eBay as well
Can you send the code please
check the article friend.
How can I cut communication to the counter chip
cut from where?
AC Milliamp measure.....?
it's not possible with a 1miliohm shunt
ممنون، پاور فکتور هم لحاظ میکنه؟ منظورم کسینوس فی هستش
Yes.
@@MyVanitar ای سی توان سنج رو چک کردم تو نت فقط یه دیتا شیت چینی داره . میشه بفرمایید دقتش چقدره؟
0.5%, check the article References
Hello Sir, Can you share the Energy-Meter.PrjPcb file please.
I'm sorry, sharing the source file is not possible, you can get the Gerber or order it directly
@@MyVanitar Its alright, thanks for the great content. Keep sharing.
Sir how to measure frequency for exact value without distortion please
AC frequency is 50Hz
@@MyVanitar yes AC line voltage and frequency need to display
You have the code, display "50Hz" somewhere you like on the screen
@@MyVanitar hi.... I have code but this code will work test table exact after connecting the equipment frequency will changed... So some distortions... Please help us how to avoid or solve the distortion
This is related to your prior experience with the Arduino code. The screen refreshes automatically to show the data. You have to show your text somewhere that doesn't change or you can modify things based on your desire. Also, you can not program the Arduino on the board because I have used the RX and TX for a different purpose. remove the Arduino, program it, and put it in place.
Free legal licence for Altium Designer on 1 month, no for long time
Altium is an industry-level expensive software. 30 days is a fair time for a fully working demo. I have not seen any software that offers more than 30 days trial period. There are other schemes for a longer time, for example, student license or similar. check their website
@@MyVanitar yes, i check it, 30 days, but its small period :(
You dont have any link to the project details
There is a technical problem with the blog. Please check back again tomorrow or a day after
Thank you..it looks a very interesting project...very different to others I have seen.
Thanks, Yes I've tested it myself in all aspects