Require a read of high or low of 34 22v AC leads.
I thought Melanie had posted one for high voltage AC including a LED but can't find other than this: AC Signal...
Norm
Require a read of high or low of 34 22v AC leads.
I thought Melanie had posted one for high voltage AC including a LED but can't find other than this: AC Signal...
Norm
Here are two threads that might be of help.
http://www.picbasic.co.uk/forum/show...hlight=voltage
http://www.picbasic.co.uk/forum/show...hlight=voltage
But... if all you are wanting to do is see if the signal is HIGH or LOW-- ON or OFF--and the voltage IS only 22 VAC. A rectifier to change to DC and a voltage divider to bring it down to 5 volts should do the trick.
If the high voltage was greater than 32 to 48 volts I would recommend a transformer for the voltage drop along with a page full of safety precautions.
Dave
Always wear safety glasses while programming.
A problem can occur when power to PIC is off, the 5 volts from the divider can power the PIC.Originally Posted by mackrackit
Perhaps a simple transistor, 22vAC to 10k resistor to gate, collector pulls PIC input pin low?
Is this acceptable configuration?
Norm
If the PIC you are using has clamping diodes on the inputs, all you need is a current limiting resistor in each circuit. There is a Microchip app note that covers this.
This App? Interfacing to AC Power LinesOriginally Posted by dhouston
Norm
You are correct. But you did not say that the PIC was going to be turned on and off. The voltage monitors that I have made are never shut off and equipped with backup power just incase.
Now that you know two ways to solve your first question and one way for the second. (this is a productive thread) The most, I think, reliable way to isolate the PIC is an opto isolator. Nothing fancy, LED and a photo diode with a piece of heat shrink between them.
Dave
Always wear safety glasses while programming.
Bookmarks