Thanks Alan, Now were talking, just what I need. alan smith wrote: >HCPL3700 > >Lee McLaren wrote:Hi, >Can anyone suggest a way of building a opto isolated input to feed a PIC. >I would like to be able to feed in say 5 to 250 volts ac or dc, >frequency response is not important as the pins are only sampled every 10mS. > >I was considering feeding an opto coupler with a bridge rectifier and a >small filter cap (i don't want 50Hz ac to appear as if its going off and >on) but the wide voltage range has me wondering if there is a better >way, maybe some sort of constant current. > >I am just thinking I may be over designing this a bit. > >regards > >Lee McLaren > > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist