Look at the datasheet for your optoisolator - there's an Absolute Maximum Ratings section with an entry for Continuous Forward Current. Ignoring the forward voltage drop of the LED, you need about 4000 ohms total for 60mA @ 240V. The lower values in the example probably factor in the forward voltage drop. In this case, you want the current to be near the max to improve the coupling. If using the PIC pin directly you can limit the current to much lower levels, hence the larger resistor I recommended.
I would stay with the example or use an optoisolator designed for AC.I take it the diode is just to stop reverse voltage going into the optoisolator. Would it work the same if it was in series with it?
I don't see it either.I think im missing some of the document. skimask mentioned page 77 but all i see is a single page with a short writeup and a link to a PDF file. I dont see any kind of navigation for multiple pages either
Bookmarks