-->
Page 2 of 5

Re: ESP8266-01 and Solid State Relay

PostPosted: Tue Jul 21, 2015 4:10 pm
by roccomuso
I've tried to switch the connection but it doesn't work!

Maybe because it is a Solid State Relay?

:| what to do?

Re: ESP8266-01 and Solid State Relay

PostPosted: Tue Jul 21, 2015 5:14 pm
by martinayotte
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

Re: ESP8266-01 and Solid State Relay

PostPosted: Tue Jul 21, 2015 5:21 pm
by roccomuso
I'm not using any resistor.
Just switched positive and GND as you suggested.

This is my SSR model: http://www.amazon.it/COLEMETER-STATICO- ... B00CGWU8N4

why is not working? :/

Re: ESP8266-01 and Solid State Relay

PostPosted: Tue Jul 21, 2015 5:49 pm
by martinayotte
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) ?