So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By mk05406
#60345 Hi All,

I'm posting out of desperation trying to decipher the inner workings of a 5V relay module which comes bundled with an ESP-01 that I bought on AliExpess. This relay module is manufactured by LC Technology in China (http://www.chinalctech.com/index.php?_m ... &p_id=1204) They have some high-res photos of the module for the curious.

I tested the ESP-01 in isolation using both the stock AT firmware and NodeMCU and I can confirm it works perfectly fine (writing HIGH and LOW to GPIO0 & GPIO2 work as expected). I also tested the Songle 5VDC component in isolation by giving it a direct 5V feed and it clicks fine. However, when I assemble the ESP-01 on the module and toggle the state of the two GPIO ports, the relay does not click.

What would be a possible way to activate the relay other than toggling the state of the GPIO ports? Any combination (L/L, H/L, L/H, H/H) do not cause the relay to respond. I'm completely stumped and I'm desperate for some clues on how to troubleshoot this darned thing.

I have been unable to get any help from the seller or manufacturer with regards to how to actually control the relay component from the ESP-01 module.

Many thanks!
User avatar
By Vishal dhayalan
#60631 Yes, i believe Jeffas is right, what I'd do is ground one terminal connected to the coil and connect the other via an NPN transistor with the base connected to the GPIO of the ESP, this allows the esp to activate the transistor and hence activate the relay!