Hi, im doing some initial tests for this years halloween circuits (a little early yes but also well prepared). There were some good ideas in the previous thread but i found something on the net that looks like it should do the job perfectly. Mains LED.
My plan is to use the capacitor circuit with an optoisolator. Ive already tested the circuit with an LED and it works. Ive switched to an optoisolator and for some reason my PIC chip isnt seeing an input. I think this is likely to be a problem with the opto.
The opto im using is a MOC3020X. Im pretty sure the input side is fine. I think the opto might need some kind of a load (like a triac) to turn on. If im looking at the right part of the datasheet then that load is 30mA. I know a PIC probably doesnt take that much so i connected up a 60mA LED and it still doesnt work. Driving the opto from a normal 5V PSU doesnt seem to help either.
Where should i start looking for problems? Am i just using the wrong type of opto? Do i need more load?
Bookmarks