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.

Troubleshooting AC Current Reading Issues

So far this is what I have, I reduced the rate at which the duty cycle updates, to carry out some test, still having some issues with my AC current readings, for some reason I don’t even know at this point why it’s not working, the code looks ok, hardware looks ok, but no idea why its not working I don’t even know where to start troubleshooting from 😂 I will have to spend more hours with it

  1. Afuevu#0000

    While working on this project, I observed some things with my bench power supply, my st link, and my usart to ttl converter. The bench power supply i am using needs to be changed, the display may be showing 14v but when I measure the voltage at the connected wire, I get around 13v and also it does shock a little occasionally. Then for my st link when it’s connected to my laptop and connected to the board, I’m working on, when I send data from my board via usart to ttl converter to my laptop, the majority of the data is garbage, but once I remove the st link from my laptop, the data is readable and accurate. I decided to power the board directly with a battery, and all the issues above disappeared. I think the power supply has worked its money. Can anyone suggest a good affordable power supply for me, please?

  2. Afuevu#0000

    I have finally fixed the issue as to why I could not get a current reading from my ac appliances. There was supposed to be a pull up resistor used to pull up my non-inverting pin of my op amp to 3.3v. I used a smaller value of 5.1k instead of the 22k then I also failed to multiply my value by my op amp gain on my firmware. I fixed it and I am finally able to measure my current, next thing to do is to fine tune it, to get a more accurate value. I had to use another board to try and figure out where the issue was coming from
    0VID_20250424_072128.mp4

  3. afuevu_#0000

    False alarm 😤😤. I tested the current measurement with Grid supply and everything worked well. So I then decided to assemble the board completely and power the high frequency inverter. And it’s back to the drawing board. The system does not measure the current once the inverter is working. I don’t know if it has to do with noise or something, without load I am seeing about 8amps AC. From where? I do not know, I intend to use a separate op amp to measure the current and see if that’s the problem, check out the two videos. It is going to be a long weekend .At this rate my head may fall out😮‍💨 😤
    VID_20250426_173004.mp4VID_20250426_173054.mp4

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