-->
Page 1 of 3

220v relay 5v io pins to esp8266 gpio

PostPosted: Tue Jan 20, 2015 6:25 am
by mickey
Hi
I have this module:
Image
It works perfectly fine with arduino but when I attach the esp8266 gpio pin 0 to one of its input pins it doesn't change the state (the relay module built-in led flicker a little but failed to change the relay state.) the relay is attached to 5v vcc and the esp to 3.3v with at least 400ma.

do I need something more to drive the 5v input with 3.3 esp output? isn't 3.3 counts as 5v ~?
I herd once the the esp gpio out is only few ma and maybe insufficient when driving 5v signal, is this true? what do I need to add(and if I can get schema it will be much better) between esp gpio to relay module io pin to drive it?

Re: 220v relay 5v io pins to esp8266 gpio

PostPosted: Tue Jan 20, 2015 6:32 am
by amatron

Re: 220v relay 5v io pins to esp8266 gpio

PostPosted: Tue Jan 20, 2015 6:41 am
by SpenZerX
Have you tested it with connecting it to 3,3V direct? (wihout GPIO).

I think it is possible to measure the current in ma with a standard multimeter. Should be below limits.

Re: 220v relay 5v io pins to esp8266 gpio

PostPosted: Tue Jan 20, 2015 7:11 am
by reaper7
For me the same module (2 relays) works OK connected directly to ESP (GPIO2, GPIO1)
but of course relays board VCC pin is connected to +5V and only IN1, IN2 are connected to ESP gpio pins