How can I interface a pic micro to 230 volts ?

Status
Not open for further replies.

rizzy_dascal

Member level 2
Joined
Apr 9, 2012
Messages
47
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,613
High,

Could somebody help me do this please,

Basically I want to be able to tell when a wire is live with 230 volts and print on an LCD "ON",

I can program this when a port on the microcontroller goes high, but I need an interface between the port and 230 volts.

Hope this makes sense

Thanks In Advance
Rizzy
 

You can use an optocoupler that gives low pulses in the output and read them from the mcu.
If you want to get pulses only when the voltage is high enough (for example not with 100v AC) then you can use a zener (I have used 200v zener)



D2 protects the optocoupler from reverse voltage
 
Thank you for your replies, I think optocoupler is way to go


Rizzy
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…