I am using an ESP8266-01S that only works with 3.3 V power. I want to control a 5 V relay.
I gave each component its own power source and got an NPN transistor and wired it like in the diagram, but for some reason, it's not working when I power the transistor from the GPIO2 pin.
When I plug the middle pin of the transistor to the 3.3 V the relay works fine. I don't want to use a logic convertor and I want the solution to be small and simple.
