I need to activate a 5V relay with the 3V3 GPIO of an ESP8266.
However the GPIO pin to be used has an additional function as a boot mode select pin for which it must be high at startup, therefore the signal controlling the relay should be high when not activated, and low to activate it.
I was thinking about a P-Channel MOSFET acting as a switch, but any solution with minimum components is welcome.
Best Answer
A PNP with the right resistor divider driving the base should work. But again, you have to design this carefully.
#1 is really the best choice. Just invert the signal in the firmware or logic definition.