Hello,
I am trying to use an optoisolator (MOC3031M) and a TRIAC (BT136-600D) to switch a light on using the ESP-01.
The load doesn't seem to want to come on and I can't work out why as far as I can tell I have the circuit correct so I'm a bit stumped.
GPIO on the Fritzing is connected to a pin of the ESP-01 and GND is connected to a 3.3V ground. What I haven't put on the Fritzing is that there is an IRM-02-3.3 PSU linking the 240V to the 3.3V side.
The LED comes on and off as it should do with the GPIO going HIGH/LOW so I can only assume that means the optoisolator is turning on too however no light connected to the load lights up. When I first put 240V to the circuit, the load flashes on and then off so this suggests to me that the load wiring should be correct and maybe that the TRIAC isn't working?
MOC3031M Datasheet: http://www.mouser.com/ds/2/149/MOC3031M-195882.pdf
BT136-600D Datasheet: https://docs-emea.rs-online.com/webdocs/13d1/0900766b813d1a05.pdf