how to use pic for measuring voltage

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

how to use pic for measuring voltage

Postby emeleen08 » Thu Sep 03, 2009 1:42 pm

hi,
i need to make a project for monitor supply voltage(240vac)
but i dont know make connection between voltage supply-ADC-pic.
pleasee help me?
emeleen08
Fledgling
 
Posts: 1
Joined: Mon Aug 31, 2009 7:54 am

Re: how to use pic for measuring voltage

Postby sich » Thu Sep 03, 2009 3:03 pm

Hi emeleen08,

I've never try it before but I guess using a transformer to convert the AC240V to a voltage less than your microcontroller's ADC input limit (let say 4V) will do. Then, rectify the AC to DC and connect it to PIC's ADC pin.

The converted and rectified voltage must be lower than the ADC's voltage limit so that it won't spoil the chip when the AC supply is not stable and sometimes higher than AC240V. A voltage clamp circuit (zener diode and resistor) to protect the ADC pin from voltage higher than its limit maybe needed for additional protection.

Since this involves high voltage, please be careful and take all precautions while working on it :!:
~> How to ask QUESTIONS the SMART way in FORUM? <~
User avatar
sich
Moderator
 
Posts: 603
Joined: Tue Apr 21, 2009 2:15 pm

Re: how to use pic for measuring voltage

Postby shahrul » Mon Oct 12, 2009 10:38 am

sich WROTE:using a transformer to convert the AC240V to a voltage less than your microcontroller's ADC input limit (let say 4V) will do. Then, rectify the AC to DC and connect it to PIC's ADC pin.

Yes, that will be working.
Other option, you can use Voltage Transducer and ofcourse you still need to rectifies the output from transducer.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 24 guests

cron