Superb! I use a DC version of that with a high current shunt. I've been wanting to design an AC version and remember saving the IC datasheet from your previous design. Those little OLED screens are superb for the price. I use them everywhere. Though, I2C is really terrible.
Thanks. The IC does a nice job for the majority of applications. Here the data rate is low to demonstrate some characters (using I2C), otherwise, the SPI version should be used
@@MyVanitar I have not found a version with the SPI pinout, but that would be my preference. I'm running mine at 400kHz so I get a decent refresh rate and my driver is now pretty robust and does auto-recovery on lockup, but it does consume a lot of MCU processing compared to SPI.
This is professional work. High quality. Time is well spent to watch this video if the topic is of interest to the viewer. If I had suppliers who could provide this quality analysis and implementation, I would be a most loyal customer. Better yet, if I had employees who could do work like this then I would be both happy and proud. Question: I need to replace a commercial panel-mount meter that has 0.1% accuracy because the meter is physically too big. This posting quotes the accuracy of this design around 0.5 percent. Can the accuracy be improved by changing components or is a new design required?
Thank you very much. Regarding your question, the accuracy depends on the chip or ADC. For this chip, the accuracy is around 0.5%, but 0.1% is possible with a different design. You are welcome to send me an Email (you can find it in the CZcams "About" section) and discuss it.
Hi Again. 🙂 Just saw your second version and I'm impressed. Found the HEX file, but not the code. One small remark, this and the previous version has a cosmetic error: kilo isn't with a capital K, it's kWh. Capital K is Kelvin. 😉
I can not publish the code for this one because I wrote it myself and spent a fat amount of time on it. for the first version, yes, you should look at the function name in the library, otherwise, names and letters might be different in the text.
Changing KWh into kWh as it should be. I can't do it myself. I understood the PF is already available, correct? I read all the content and watched the video, but the meaning of the four TACT switches is not entirely clear. Can you please explain?
two tacts are to calibrate the voltage and the other two to calibrate the current. if you want to have the PF, let me know to give you a different HEX file
When I saw the Hackaday headline, I thought this was for measuring the entire house. I may have been biased because I need an entire-house measuring solution. But with 6W it's not gonna fly.
Why not, You can use it for your entire house. if we assume the maximum current consumption of your house is 20A, then the power dissipation on the shunt is only 0.4W (20*20*0.001R)
What a useful and interesting little IC to measure AC power! I´d like to learn how to program this microcontroller as well. I like it because it is powerful and extremely cheap. Can you give some guidance on how to start with it? What software did you use to develop the firmware? Thank you!
Thanks. The MCU is STM32 so I used the STM32 IDE. if you want to build one for yourself, you can order the PCB or assembled board and use the HEX file to program the MCU using an STM32 programmer. if you want to go commercially and need the code or PCB to make modifications for your brand, we should make other steps
Thank you for your quick reply! I liked your project very much, but my focus right now is to learn how to program these small STM32 micros. I have some cool projects that the STM32G030F6P6 would fit perfectly.@@MyVanitar
if the load is removed, the screen shows zero consumption. for overcurrent detection yes is possible, but it needs some modifications, on this PCB is not possible
Nice build! How does it measure voltage? Have you considered a galvanic isolation transformer for measuring current? I have used the LEM HX 10P/S2 in one of my projects it uses hall effect and it goes up to 10A + 300% surge current without shunt resistors... its a bit expensive but it allowed me to keep the low voltage components completely isolated from the high voltage side.
👍👍👍👍👍👍👍
Nice video. Thanks bro...❤
Are u from Iran?
Superb! I use a DC version of that with a high current shunt. I've been wanting to design an AC version and remember saving the IC datasheet from your previous design. Those little OLED screens are superb for the price. I use them everywhere. Though, I2C is really terrible.
Thanks. The IC does a nice job for the majority of applications. Here the data rate is low to demonstrate some characters (using I2C), otherwise, the SPI version should be used
@@MyVanitar I have not found a version with the SPI pinout, but that would be my preference. I'm running mine at 400kHz so I get a decent refresh rate and my driver is now pretty robust and does auto-recovery on lockup, but it does consume a lot of MCU processing compared to SPI.
I posted the article
This is professional work. High quality. Time is well spent to watch this video if the topic is of interest to the viewer. If I had suppliers who could provide this quality analysis and implementation, I would be a most loyal customer. Better yet, if I had employees who could do work like this then I would be both happy and proud. Question: I need to replace a commercial panel-mount meter that has 0.1% accuracy because the meter is physically too big. This posting quotes the accuracy of this design around 0.5 percent. Can the accuracy be improved by changing components or is a new design required?
Thank you very much. Regarding your question, the accuracy depends on the chip or ADC. For this chip, the accuracy is around 0.5%, but 0.1% is possible with a different design. You are welcome to send me an Email (you can find it in the CZcams "About" section) and discuss it.
Hi Again. 🙂 Just saw your second version and I'm impressed. Found the HEX file, but not the code. One small remark, this and the previous version has a cosmetic error: kilo isn't with a capital K, it's kWh. Capital K is Kelvin. 😉
I can not publish the code for this one because I wrote it myself and spent a fat amount of time on it. for the first version, yes, you should look at the function name in the library, otherwise, names and letters might be different in the text.
Understood, but are you going to adapt it in this version?
adapting what? Do you mean adding PF?
Changing KWh into kWh as it should be. I can't do it myself.
I understood the PF is already available, correct?
I read all the content and watched the video, but the meaning of the four TACT switches is not entirely clear. Can you please explain?
two tacts are to calibrate the voltage and the other two to calibrate the current. if you want to have the PF, let me know to give you a different HEX file
When I saw the Hackaday headline, I thought this was for measuring the entire house. I may have been biased because I need an entire-house measuring solution. But with 6W it's not gonna fly.
Why not, You can use it for your entire house. if we assume the maximum current consumption of your house is 20A, then the power dissipation on the shunt is only 0.4W (20*20*0.001R)
if you use four 4 milliohm resistors (=1milliohm), you can increase it even to 12W. please watch the video completely and read the article
This project is very nice 😊
Thank you! Cheers!
What a useful and interesting little IC to measure AC power! I´d like to learn how to program this microcontroller as well. I like it because it is powerful and extremely cheap. Can you give some guidance on how to start with it? What software did you use to develop the firmware? Thank you!
Thanks. The MCU is STM32 so I used the STM32 IDE. if you want to build one for yourself, you can order the PCB or assembled board and use the HEX file to program the MCU using an STM32 programmer. if you want to go commercially and need the code or PCB to make modifications for your brand, we should make other steps
Thank you for your quick reply! I liked your project very much, but my focus right now is to learn how to program these small STM32 micros. I have some cool projects that the STM32G030F6P6 would fit perfectly.@@MyVanitar
Nice and neat circuit . Can you add over load cut off and when load is remove it will restore back?
if the load is removed, the screen shows zero consumption. for overcurrent detection yes is possible, but it needs some modifications, on this PCB is not possible
Very cool, thank you... I'm excited for the next project
sure!
Nice build! How does it measure voltage? Have you considered a galvanic isolation transformer for measuring current? I have used the LEM HX 10P/S2 in one of my projects it uses hall effect and it goes up to 10A + 300% surge current without shunt resistors... its a bit expensive but it allowed me to keep the low voltage components completely isolated from the high voltage side.
Check the article for full details. it's published now
You don't support the code, why can't you find the code related to the kernel button?
for someone who wants to build this for himself, the HEX file is enough.
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
Volts? Amps? Watts? Can it handle a split 240 system like in the US/Canada?
This design does the measurements, it's not like UPS. Check the article for full details
I'm, but I could not get, where I can see schema of this device?
Check the article for full details. it's published now
Helllo sir, i have also done one project in that i am also measure vrms Irms and pf but in inductive load pf not shoing correct
I don't know about your circuit, but how do you know the true PF value
Can you share contact details I will contact you personally. Thank you for response.
before that, I just want to know what was your reference tool to measure the PF for comparison
I want to communicate with you
if you have a question, the best place is to ask is the CZcams comments. for business talks please send me an Email
where the Code ?
Did you check the article? You can download the complied HEX