This idea could be practical if the OP weren't planning to design a dedicat= ef board. It is much simpler, more compact and reliable (and lesss wasteful of energy= ) to use a dedicated circuito. David Bearrow escreveu: >I think I would just use a small 5VDC power supply. Then you could >detect 5V >or 0V depending on if it was on or off. There are lots of off the shelf >supplies or you could build one. > >David Bearrow > >-----Original Message----- >From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On >Behalf Of >Carl Denk >Sent: Monday, September 16, 2013 7:34 AM >To: PICLIST >Subject: [PIC} AC inputs to a PIC > >I have a home project coming down the road mainly HVAC stuff of digital > >inputs to a PIC probably a 18F??. THe inputs would be only to sense=20 >on/off. The voltages would be 24 VAC, 120 VAC, and 240 VAC. I'm >thinking=20 >through an Opto isolator with a resistor and capacitor on the AC side.=20 >Values ? Configuration? or something else? > >This is a low priority at the moment, but thought I would generate some > >traffic for Bob. :) > >Thanks again. >--=20 >http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive >View/change your membership options at >http://mailman.mit.edu/mailman/listinfo/piclist > >--=20 >http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive >View/change your membership options at >http://mailman.mit.edu/mailman/listinfo/piclist --=20 E-mail enviado do meu celular Android usando K-9 Mail. Por favor, desculpe = minha brevidade. --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .