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

User avatar
By martinayotte
#49717 Try your circuit separately without ESP connected.
By default, the relay should be OFF, and then placing the gate of the first MOSFET to GND (the one that will be connected to GPIO) should turn ON the relay.
If this circuit works, then re-attach the ESP, and make sure your software is properly written.
User avatar
By Joe Job
#49718 I will try that now, the software is fine this was previously working with the same software only sending serial from an ATMEGA328 instead of MQTT. Will try now and get back to you thanks for helping so far.
User avatar
By Joe Job
#49719 Thanks for sticking with me so far, I appreciate the help but still no.

Left hand of first mosfet to ground (5v)
Middle of first mosfet not connected
Right of first mosfet to 5v (with 10k resistor)
Right of first mosfet to each of the 3 legs of second mosfet

Left hand of second mosfet to ground
Right to IN of the relay
VCC of relay to 5v
Ground of relay to 5v

Plug in and the relay is on, connecting the middle leg of first mosfet to ground has no effect