Become a leader in the IoT community!

Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.

Step 1 of 5

CREATE YOUR PROFILE *Required

OR
Step 2 of 5

WHAT BRINGS YOU TO DEVHEADS? *Choose 1 or more

Connect & collaborate 🤝with other tech professionals
Learn & Grow 📚
Contribute Experience & Expertise 🔧
Step 3 of 5

WHAT'S YOUR INTEREST OR EXPERTISE? *Choose 1 or more

Hardware Design 💡
Embedded Software 💻
Edge Networking
Step 4 of 5

Personalize your profile

Step 5 of 5

Read & agree to our COMMUNITY RULES

  1. We want this server to be a welcoming space! Treat everyone with respect. Absolutely no harassment, witch hunting, sexism, racism, or hate speech will be tolerated.
  2. If you see something against the rules or something that makes you feel unsafe, let staff know by messaging @admin in the "support-tickets" tab in the Live DevChat menu.
  3. No age-restricted, obscene or NSFW content. This includes text, images, or links featuring nudity, sex, hard violence, or other graphically disturbing content.
  4. No spam. This includes DMing fellow members.
  5. You must be over the age of 18 years old to participate in our community.
  6. You agree to our Terms of Service (https://www.devheads.io/terms-of-service/) and Privacy Policy (https://www.devheads.io/privacy-policy)
By clicking "Finish", you have read and agreed to the our Terms of Service and Privacy Policy.

How does R41 affect AC measurement accuracy in my energy meter?

Hello everyone, Good day. While working on my energy meter project, i noticed that the accuarcy of measurement ( AC and AC voltage) increases or decreases with a change in the feedback resistor R41 as seen in the images above. The image above is for AC reading, i used the ZMCT103 current transformer with a turns ratio of 1000:1, I observed the following:
1) While using frame 2 and R41 as 5.1k ohms, getting an accurate current reading for loads as small as 60 watts was difficult. For a 60-watt load, the current at 220v will be 0.2727A, flowing through the primary, and with a turns ratio of 1000:1, the current at the secondary will be 0.2727mA. With the burden resistor R35 set to 150 ohms, the voltage across will be 40.9mV. The gain of the amplifier will be gain = Rf(R41)/ Rin(R37) in this case will be 5.1/22 = 0.2318. Now Vin = Vout/ gain, which makes Vout = Vin * gain = 40.9mV * 0.2318 = 9.48mV. R40 which is 22k gives the voltage an offset of 3.3v, which now makes Vout = 3.3v + 9.48mV = 3.30948v at the output of the op-amp which is further divided by 2 since there is a voltage divider at the output which now gives my voltage going to my adc to be 1.65v.
file0.jpgfile1.jpg

  1. Afuevu#0000

    2) While using frame 1 and R41 as 15k ohms, getting an accurate current reading for loads as small as 60 watts was really precise. For a 60-watt load, the current at 220v will be 0.2727A, flowing through the primary, and with a turns ratio of 1000:1, the current at the secondary will be 0.2727mA. With the burden resistor R35 set to 150 ohms, the voltage across will be 40.9mV. The gain of the amplifier will be gain = Rf(R41)/ Rin(R37) in this case will be 15/22 = 0.681. Now Vin = Vout/ gain, which now makes Vout = Vin * gain = 40.9mV * 0.681 = 0.027v. R40 which is 22k gives the voltage an offset of 3.3v, which now makes Vout = 3.3v + 0.027 = 3.327v at the output of the op-amp which is further divided by 2 since there is a voltage divider at the output which now gives my voltage going to my adc to be 1.66v.
    The microcontroller Adc is 12bit which is 4096 meaning a step will be 3.3/4096 = 0.8mv. The output voltage of both is well above 0.8mV, but why is it that the frame 2 value was difficult to get an accurate reading, but frame 1 was really accurate.
    Is it my calculation that is wrong? Is it the op-amp i used the issue? Will a rail-to-rail op-amp with lower offset voltage be better? I will like to hear our thoughts please

CONTRIBUTE TO THIS THREAD

Browse other questions tagged 

Leaderboard

RANKED BY XP

All time
  • 1.
    Avatar
    @Nayel115
    1620 XP
  • 2.
    Avatar
    @UcGee
    650 XP
  • 3.
    Avatar
    @melta101
    600 XP
  • 4.
    Avatar
    @chitour
    600 XP
  • 5.
    Avatar
    @lifegochi
    250 XP
  • 6.
    Avatar
    @Youuce
    180 XP