I am trying to make sure I have the right schematic for driving my 12 V relays using ESP32 GPIOs.
I am using a 1 kΩ resistor between transistor collector and GPIO. Then taking the transistor base to relay with a diode between relay coils. I have 12 V going to other relay coil label is VCC for that.
I have been trying to test on a breadboard and can't seem to identify what is the right path. I have 2 schematics I believe 1 is correct. Possible to let me know if 1 or 2 is correct or if they are both wrong.