Electrical – Using a TIP120 Darlington transistor to control a 12V fan from an ESP32 board

esp8266transistors

I plan on making a version of this circuit to control a 12V PC fan using an ESP32. The ESP32 GPIO pins are 3.3v logic level.

https://imgur.com/a/iqOfcME
enter image description here

You can ignore the lower part of the circuit in that diagram. That part is stepping down 5.5V to 3.3V because he wants to use only one 5.5V power supply to power both his board and his LED strip. I don't have that problem, my board has its own power supply, and I plan to use a separate 12V wall wart to power the fan via the TIP120

Here are my questions:

  • Will the 3.3V logic level at point (1) from my ESP32 board be sufficient to switch the TIP120?
  • What is the purpose of the resistor at point (2)?
  • Is combining the grounds of the 3.3V and 5.5V sides of the circuit at point (3) intentional, and is that a best practice? If so, why is that done? Should I also do that with my 3.3V/12V circuit?

Best Answer

  1. Bipolar transistors switch on from a current, not a voltage. As this is a NPN darlington, any positive voltage more than a few hundred millivolt will lead to a positive current into the base and a voltage higher than it's VCE will make the transistor turn on fully.
  2. It's there so the transistor base doesn't burn out from overcurrent.
  3. Yes. Yes. You have to connect the grounds so the current can flow back to its source.