Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By martinayotte
#23869 No, a solid state relay is like connecting a simple LED, except if yours is special, it should work by simply applying voltage to its input.
I've explained the source/sink differences in viewtopic.php?f=13&t=3119&p=22812 for a LED, but samething apply to SSR.
You need to hook it up as "sink" (except VCC will be 3V, not the 5V shown) :
Image
User avatar
By martinayotte
#23873 Resistor maybe not needed since it has probably an internal one.
Did you try the SSR in stand-alone ? Maybe the SSR itself is defective.
If it is working, can you measure how much current is it taking ?
(Although ESP specs mentionned 12mA max current, this is enough to drive it)
Are you really connected to GPIO2 ?
Are you sure that your software is working (maybe try a LED instead of SSR to debug) ?