Nah, be careful there. In that case you'll need an external diode across the LED in the isolator since the LED can only take a couple of volts (6V for the PC817) in the reverse direction and then the current going thru that diode will have to go thru the resistor(s) as well. That's the main reason I suggested the dual LED isolator.And, if you use an opto with just one diode, your series resistor would heat up even less
If the PIC is isolated you could live with a voltage divider and a zener and then direct to the PIC input.
/Henrik.
Bookmarks