🔶 High Precision Digital AC Energy Meter Circuit [Voltage, Current, Power, KWh]

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 มิ.ย. 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/yt/myvanitar
    OctoPart: octopart.com
    ======================================
    Article: www.pcbway.com/blog/technolog...
    ======================================
    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 :-)
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 96

  • @ScottSenkeresty
    @ScottSenkeresty ปีที่แล้ว +2

    Thanks for the great content!

  • @bluefire5291
    @bluefire5291 3 หลายเดือนก่อน

    Solid work!!!very informative

    • @MyVanitar
      @MyVanitar  3 หลายเดือนก่อน

      Glad it helped!

  • @rick_er2481
    @rick_er2481 ปีที่แล้ว

    Great stuff, thanks for sharing

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว

      Glad you enjoyed it

  • @hp2073
    @hp2073 ปีที่แล้ว

    Fantastic :-)

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว

      Thank you! Cheers!

  • @lixtvofficial9008
    @lixtvofficial9008 ปีที่แล้ว

    Very nice sir

  • @acanbal3854
    @acanbal3854 8 หลายเดือนก่อน

    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?

    • @MyVanitar
      @MyVanitar  8 หลายเดือนก่อน

      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

    • @acanbal3854
      @acanbal3854 8 หลายเดือนก่อน

      thank you for your excellent work@@MyVanitar

  • @ChristieNel
    @ChristieNel ปีที่แล้ว

    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.

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว

      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

    • @ChristieNel
      @ChristieNel ปีที่แล้ว

      @@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.

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว

      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.

    • @ChristieNel
      @ChristieNel ปีที่แล้ว

      ​@@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.

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว

      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

  • @mutaharalshami7671
    @mutaharalshami7671 3 หลายเดือนก่อน

    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.

    • @MyVanitar
      @MyVanitar  3 หลายเดือนก่อน +1

      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: th-cam.com/video/GDTPgqovTlw/w-d-xo.html

    • @mutaharalshami7671
      @mutaharalshami7671 3 หลายเดือนก่อน

      @@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?

    • @MyVanitar
      @MyVanitar  3 หลายเดือนก่อน

      it's weird indeed, the current is also weird without any load

  • @szucspower
    @szucspower 5 หลายเดือนก่อน

    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.

    • @MyVanitar
      @MyVanitar  5 หลายเดือนก่อน +1

      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

  • @psoridian
    @psoridian 7 หลายเดือนก่อน

    For use with 120V North American systems, is it as simple as halving the shunt resistors and modifying some Arduino code?

    • @MyVanitar
      @MyVanitar  7 หลายเดือนก่อน

      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

    • @MyVanitar
      @MyVanitar  7 หลายเดือนก่อน +1

      I have published another version of this also, as of today, it is my latest video

  • @Nii_Nashville
    @Nii_Nashville ปีที่แล้ว

    Please thanks so much for this wonderful video. Please how can I get one of this board for my project?

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว +1

      Check the article link in the TH-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

  • @anandkishore945
    @anandkishore945 3 หลายเดือนก่อน +1

    will you please suggest any other values of 0.004 ohm resistor because I didn't get it from online

    • @MyVanitar
      @MyVanitar  3 หลายเดือนก่อน

      you should create a 1miliohm resistor, at least 6W. so you can use two 0.002 (2 milliohms) in parallel also

    • @MyVanitar
      @MyVanitar  3 หลายเดือนก่อน

      if you could not find one, at least use a single 1milliohm 3W one to make your experiments

  • @rob040
    @rob040 7 หลายเดือนก่อน

    Hi, nice project, thanks for sharing. 🙂 What I miss is the Power Factor. What's the reason not adding that?

    • @MyVanitar
      @MyVanitar  7 หลายเดือนก่อน +1

      You have the code, just add it :-)

    • @rob040
      @rob040 7 หลายเดือนก่อน

      😄 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?

    • @MyVanitar
      @MyVanitar  7 หลายเดือนก่อน

      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.

    • @rob040
      @rob040 7 หลายเดือนก่อน

      Ah, that easy. 😃 Thanks for guiding me. Got it!

  • @freakysuwin
    @freakysuwin ปีที่แล้ว

    Hi whats the common mode choke that you used?? part number?????

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว

      Check the article and the Bill of materials

  • @Encyanix
    @Encyanix 9 หลายเดือนก่อน

    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

    • @MyVanitar
      @MyVanitar  9 หลายเดือนก่อน

      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

    • @Encyanix
      @Encyanix 9 หลายเดือนก่อน

      @@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)

    • @MyVanitar
      @MyVanitar  9 หลายเดือนก่อน

      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

    • @MyVanitar
      @MyVanitar  9 หลายเดือนก่อน

      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

    • @Encyanix
      @Encyanix 9 หลายเดือนก่อน

      @@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.

  • @paulpixzy5297
    @paulpixzy5297 ปีที่แล้ว

    Please what is the name of the LCD connector, input and out put connector please I need it for my project

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว +1

      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

  • @vengug7303
    @vengug7303 ปีที่แล้ว

    Hi Sir great project... Thanks for sharing... I need to clarify on think about frequency if possible to add displayed in frequency please 🙏🙏🙏

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว

      This is for the Mains power (home appliances), so the frequency in most cases is 50Hz

    • @vengug7303
      @vengug7303 ปีที่แล้ว

      @@MyVanitar sir if possible to add in lcd display frequency also please

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว

      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?

    • @vengug7303
      @vengug7303 ปีที่แล้ว

      @@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

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว

      because the frequency is always 50Hz, why somebody should measure it?!!

  • @mohamedashraf3789
    @mohamedashraf3789 2 หลายเดือนก่อน

    How much volts and amps can the circuit handle?

    • @MyVanitar
      @MyVanitar  2 หลายเดือนก่อน

      This is for the AC line (220V). maximum current depends on the power of the shunt resistor

  • @arvinbaba
    @arvinbaba ปีที่แล้ว

    ممنون، پاور فکتور هم لحاظ میکنه؟ منظورم کسینوس فی هستش

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว

      Yes.

    • @arvinbaba
      @arvinbaba ปีที่แล้ว

      @@MyVanitar ای سی توان سنج رو چک کردم تو نت فقط یه دیتا شیت چینی داره . میشه بفرمایید دقتش چقدره؟

    • @MyVanitar
      @MyVanitar  11 หลายเดือนก่อน

      0.5%, check the article References

  • @googlesucks1376
    @googlesucks1376 ปีที่แล้ว +1

    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.

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว +2

      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.

    • @sijo2084
      @sijo2084 ปีที่แล้ว

      Any energy metering chip is available that support CT instead of shunt resistor?

  • @mrsouleymane73
    @mrsouleymane73 ปีที่แล้ว

    How Bring back the index finger of an electric meter ?

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว

      I did not get your question

  • @ruebenforkpah5868
    @ruebenforkpah5868 ปีที่แล้ว

    How can I cut communication to the counter chip

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว

      cut from where?

  • @SimjetAU
    @SimjetAU ปีที่แล้ว

    You dont have any link to the project details

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว

      There is a technical problem with the blog. Please check back again tomorrow or a day after

    • @SimjetAU
      @SimjetAU ปีที่แล้ว +1

      Thank you..it looks a very interesting project...very different to others I have seen.

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว +1

      Thanks, Yes I've tested it myself in all aspects

  • @jigneshgol344
    @jigneshgol344 ปีที่แล้ว

    AC Milliamp measure.....?

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว

      it's not possible with a 1miliohm shunt

  • @pritamrokade87
    @pritamrokade87 ปีที่แล้ว

    Hello Sir, Can you share the Energy-Meter.PrjPcb file please.

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว

      I'm sorry, sharing the source file is not possible, you can get the Gerber or order it directly

    • @pritamrokade87
      @pritamrokade87 ปีที่แล้ว +1

      @@MyVanitar Its alright, thanks for the great content. Keep sharing.

  • @unknownblueblue
    @unknownblueblue 4 หลายเดือนก่อน

    can you a make a DC energy meter?

    • @MyVanitar
      @MyVanitar  4 หลายเดือนก่อน

      DC is way easier than AC, difficult is AC

  • @vengug7303
    @vengug7303 ปีที่แล้ว

    Sir how to measure frequency for exact value without distortion please

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว +1

      AC frequency is 50Hz

    • @vengug7303
      @vengug7303 ปีที่แล้ว

      @@MyVanitar yes AC line voltage and frequency need to display

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว

      You have the code, display "50Hz" somewhere you like on the screen

    • @vengug7303
      @vengug7303 ปีที่แล้ว

      @@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

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว

      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.

  • @Techn0man1ac
    @Techn0man1ac ปีที่แล้ว

    Free legal licence for Altium Designer on 1 month, no for long time

    • @MyVanitar
      @MyVanitar  ปีที่แล้ว

      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

    • @Techn0man1ac
      @Techn0man1ac ปีที่แล้ว

      @@MyVanitar yes, i check it, 30 days, but its small period :(

  • @user-vh2ze4jx4h
    @user-vh2ze4jx4h 2 หลายเดือนก่อน +1

    Can you send the code please

    • @MyVanitar
      @MyVanitar  2 หลายเดือนก่อน +1

      check the article friend.