GraveYard_Killer
New Member
how do I measure high voltage like 220V as well as the current running through it using PIC? I would like to build one with 2X16LCD as its display.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
GraveYard_Killer said:how do I measure high voltage like 220V as well as the current running through it using PIC? I would like to build one with 2X16LCD as its display.
Exo said:To add a degree of safety to the pic you could always look for a current transformer, and use a small, normal transformer to bring the 220V into the pic's range...
Exo said:A small transfo seams the safest option to me... It doesn't have to drive any load, so it can be a really small one.
rectify the output, put a fairly big cap on it, and keep in mind you then have a RMS value and you're off
BartSimpson said:Nigel, did that use an inductive clamp ?
I'd be a little nervous about telling someone to just use a voltage divider on mains potential when they dont know what they are doing...
I couldn't quickly find a link to something (clamp based) that may have worked and decided it was better to stay away.
Being new here, I wasn't sure what the protocol was when death is a possibility
BTW, not meaning to imply that you have given any potentialy dangerous info.
how do I measure high voltage like 220V as well as the current running through it using PIC?
you have to use voltage divider to minimize the peak to 5 volts or less
then use this valu to enter it the the ADC.
the values of the ADC must be stored in array eg. 50 values
divide this values by 50 you will get the RMS value of the volt
I use the Allegro current sensors in my projects. Easy to use, fully isolated, accurate, and can measure both AC and DC currents. Specifically this one...
**broken link removed**
Gives you 0 to 5V out based on the current. Can hook it right up to a uC without any other external circuitry.