Hello,
For a project i'm trying to switch a 24V pump. The pump needs to be switched by an ESP32 micrcontroller which can output 3.3v on its digital pins. The ground of the ESP32 and de 24 volt source are shared. Somebody suggested me this circuit:
"VCCsolar" is the 24v source. "Relay" is the digital pin of the microcontroller. The pump gets connected to J4. Q1 is an NPN transistor. Q2 is a MOSFET.
Would this ciruit work? Are there any better ways of doing this?
Thanks!
For a project i'm trying to switch a 24V pump. The pump needs to be switched by an ESP32 micrcontroller which can output 3.3v on its digital pins. The ground of the ESP32 and de 24 volt source are shared. Somebody suggested me this circuit:
"VCCsolar" is the 24v source. "Relay" is the digital pin of the microcontroller. The pump gets connected to J4. Q1 is an NPN transistor. Q2 is a MOSFET.
Would this ciruit work? Are there any better ways of doing this?
Thanks!