TIP120 connection

Hi,

I want to use an ESP 8266 to trigger on/off a water pump.
The pins on the ESP 8266 output only 3.3v, but I need 5V for the pump.

I want to use the same power source for the pump and the ESP 8266 so I was thinking to use a transistor to toggle the 5V, but I never used it before and I am not sure how to wire it.
I'm using a TIP120

I have something similar to this at the moment.

At the moment I always get ~5V no matter if the pin is high or low.
I tested the voltage at the pin and I get the correct 3.3 or 0v if high or low.

What is wrong?

Thanks!

The link does not work!

  • The TIP120 emitter must also be connected to the ESP32 GND.

  • Place a kickback diode across the motor.

  • You really should use a logic level MOSFET for this.

2200Ω base resistor seems too high, try 750 ~ 1K, the TIP120 will drop 1.2 ~ 2V depending on current draw. What is the pump's current rating?

1 Like

Sorry, updated the link.

The emitter is connected to the common ground (missing the connection in my screen shot, but it's there)
I added a diode indeed.
I figured it is not the best mosfet for the application, but that was the only one I had on hand.

I'm not sure what I changed, but it's working fine now.

yeah I noticed the voltage drop, will definitely replace to a lower value resistor, thanks

The TIP120 is not a mosfet, its a power darlington transistor.

2200Ω base resistor will give around 2mA into the base, which with a quoted gain of 1000 will control a current of up to 2A. But for switching you need to saturate the device so I'd go for about 10mA of base curent and a resisitro of say 270 ohm.

Even in saturation you should not expect to get much less than a 1V drop across the transistor.

Hi, @yverde

Did you read and act apon this statement?

You will not get it working unless the motor power supply gnd and the controller gnd are connected together.
That way you will have a path for the base current to flow from 8266 through the TIP120 and BACK to the 8266, to complete a circuit.

Tom.. :grinning: :+1: :coffee: :australia:

yes, thanks, the connection was indeed missing from the screenshot.

ah. well it's not optimal, but at least it's working for now. I will replace the resistor though.
Would you have a suggestion for a Mosfet replacement ?

Thanks!

Nice chart however many of them will not work very well with any 3V3 processor. Look at the Vgs and use the ones that show 2.5 or less for your ESP devices. If this were a 5V micro they all would be OK. The output of the ESP port will probably 3V3, to far away from 5V to properly enhance them. Note: you can derate them as they will partially turn on. I suggest you mark the 3V3 compatible ones with a different color.

Yes, the OP needs to match the 3V3 controller output to the Vgs voltage where the MOSFET is ON, see the yellow highlighting on each MOSFET.

The IRF3708 is a reasonable part for this.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.