Це відео не доступне.
Перепрошуємо.

🔶 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 :-)

КОМЕНТАРІ • 103

  • @ScottSenkeresty
    @ScottSenkeresty 2 роки тому +2

    Thanks for the great content!

  • @bluefire5291
    @bluefire5291 5 місяців тому

    Solid work!!!very informative

  • @EthioElectric-Technology
    @EthioElectric-Technology Місяць тому

    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

    • @MyVanitar
      @MyVanitar  Місяць тому

      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

    • @MyVanitar
      @MyVanitar  Місяць тому

      I have another design as well, V2. check my videos you will find it

    • @EthioElectric-Technology
      @EthioElectric-Technology Місяць тому

      @@MyVanitar yes most of our meter lost stored energy on voltage drop areas , due to what reason happen or which electronic component causes

    • @MyVanitar
      @MyVanitar  Місяць тому

      This is not the problem of the meter, it can be easily solved to handle even as low as 85V-AC

  • @rick_er2481
    @rick_er2481 Рік тому

    Great stuff, thanks for sharing

  • @anandkishore945
    @anandkishore945 5 місяців тому +1

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

    • @MyVanitar
      @MyVanitar  5 місяців тому

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

    • @MyVanitar
      @MyVanitar  5 місяців тому

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

  • @googlesucks1376
    @googlesucks1376 2 роки тому +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 роки тому +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?

  • @rob040
    @rob040 9 місяців тому +1

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

    • @MyVanitar
      @MyVanitar  9 місяців тому +1

      You have the code, just add it :-)

    • @rob040
      @rob040 9 місяців тому

      😄 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  9 місяців тому

      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 9 місяців тому

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

  • @mutaharalshami7671
    @mutaharalshami7671 5 місяців тому

    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  5 місяців тому +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: ua-cam.com/video/GDTPgqovTlw/v-deo.html

    • @mutaharalshami7671
      @mutaharalshami7671 5 місяців тому

      @@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  5 місяців тому

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

  • @EthioElectric-Technology
    @EthioElectric-Technology Місяць тому

    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

    • @MyVanitar
      @MyVanitar  Місяць тому +1

      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

  • @szucspower
    @szucspower 7 місяців тому

    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  7 місяців тому +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

  • @acanbal3854
    @acanbal3854 10 місяців тому

    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  10 місяців тому

      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 10 місяців тому

      thank you for your excellent work@@MyVanitar

  • @lixtvofficial9008
    @lixtvofficial9008 2 роки тому

    Very nice sir

  • @psoridian
    @psoridian 10 місяців тому

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

    • @MyVanitar
      @MyVanitar  10 місяців тому

      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  10 місяців тому +1

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

  • @hp2073
    @hp2073 2 роки тому

    Fantastic :-)

  • @mohamedashraf3789
    @mohamedashraf3789 4 місяці тому

    How much volts and amps can the circuit handle?

    • @MyVanitar
      @MyVanitar  4 місяці тому

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

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

  • @Nii_Nashville
    @Nii_Nashville 2 роки тому

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

    • @MyVanitar
      @MyVanitar  2 роки тому +1

      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

  • @mrsouleymane73
    @mrsouleymane73 Рік тому

    How Bring back the index finger of an electric meter ?

    • @MyVanitar
      @MyVanitar  Рік тому

      I did not get your question

  • @paulpixzy5297
    @paulpixzy5297 2 роки тому

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

    • @MyVanitar
      @MyVanitar  2 роки тому +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

  • @Encyanix
    @Encyanix 11 місяців тому

    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  11 місяців тому

      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 11 місяців тому

      @@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  11 місяців тому

      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  11 місяців тому

      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 11 місяців тому

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

  • @unknownblueblue
    @unknownblueblue 6 місяців тому

    can you a make a DC energy meter?

    • @MyVanitar
      @MyVanitar  6 місяців тому

      DC is way easier than AC, difficult is AC

  • @freakysuwin
    @freakysuwin 2 роки тому

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

    • @MyVanitar
      @MyVanitar  2 роки тому

      Check the article and the Bill of materials

  • @ChristieNel
    @ChristieNel 2 роки тому

    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  2 роки тому

      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 2 роки тому

      @@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  2 роки тому

      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 2 роки тому

      ​@@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  2 роки тому

      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

  • @user-vh2ze4jx4h
    @user-vh2ze4jx4h 4 місяці тому +1

    Can you send the code please

    • @MyVanitar
      @MyVanitar  4 місяці тому +1

      check the article friend.

  • @ruebenforkpah5868
    @ruebenforkpah5868 Рік тому

    How can I cut communication to the counter chip

  • @jigneshgol344
    @jigneshgol344 Рік тому

    AC Milliamp measure.....?

    • @MyVanitar
      @MyVanitar  Рік тому

      it's not possible with a 1miliohm shunt

  • @arvinbaba
    @arvinbaba Рік тому

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

    • @MyVanitar
      @MyVanitar  Рік тому

      Yes.

    • @arvinbaba
      @arvinbaba Рік тому

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

    • @MyVanitar
      @MyVanitar  Рік тому

      0.5%, check the article References

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

  • @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 2 роки тому

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

    • @MyVanitar
      @MyVanitar  2 роки тому

      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 2 роки тому

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

  • @SimjetAU
    @SimjetAU 2 роки тому

    You dont have any link to the project details

    • @MyVanitar
      @MyVanitar  2 роки тому

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

    • @SimjetAU
      @SimjetAU 2 роки тому +1

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

    • @MyVanitar
      @MyVanitar  2 роки тому +1

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