0
\$\begingroup\$

I'm trying to drive MOSFETs with 3.3V PWM signal. Here is a (probably bad) circuit:

enter image description here

I know that a darlington is not the best thing to drive a mosfet with. But actually I need to drive many of them and the ULN2003A is very comfortable: 7 darlingtons in a single package, and it is cheap. I can buy them for $0.1/piece, whereas a dedicated MOSFET driver IC costs much more and can only drive a single MOSFET. In the above circuit, I have used R2=100 Ohm. I noticed that most circuits use at least 1K for pulling up the gate of the FET. But I want to be able to switch the FET relatively fast, at least 500Hz. The threshold voltage of the FET is about 2V, and the input capacitance is 1800pF. That is documented in its datasheet. What I don't see in the datasheet is the gate saturation voltage (maybe I'm looking at the wrong place). But I guess it is fully open at about 10V.

I may be totally wrong, but I tried to calculate the time needed to fully charge that capacitance through a 100 Ohm resistor:

http://mustcalculate.com/electronics/capacitorchargeanddischarge.php?vfrom=0&vto=10&vs=12&c=0.000001800&r=100

It seems that it reaches 10V in 320uS. That gives me 1.6KHz max. switch frequency. The charge/discharge peak current is 120mA. It is way below what an ULN2003 can handle. Peak power on the resistor is 1.44W. Which is quite high, but I want to switch at 500Hz only, and it easy to get a 1W resistor. I guess the extra power discipation on the resistor pays of because it opens the FET much quicker. The ULN2003A collector-emitter saturation voltage is below 3V, input current is less than 1mA and it can sink 500mA - more than needed.

But I still feel that I'm missing something. Usually I do not see others driving FETs with darlingtons. That must not be by coincidence.

Am I missing something? Would this circuit work?

And once again: I know that a dedicated MOSFET driver IC would work better, but using 20 MOSFET drivers for $100 vs. using 7 darlingtons for less than $1 makes a big difference...

\$\endgroup\$
4
  • \$\begingroup\$ 100ohm resistor!? That's some current there. Probably 1k would be better. But then... switching speed. \$\endgroup\$
    – Bradman175
    Commented Nov 18, 2016 at 14:48
  • 1
    \$\begingroup\$ Redo your calculation, adding another 3 zeroes into your capacitance. What you show is 1.8 uF, or 1,800,000 pf, not 1800 pF. Plus, consider that when active, your 100 ohm resistor will dissipate about 1 watt, so any pcb with multiple ULN2003s will get very hot, very fast. This is why you don't see your approach very often. \$\endgroup\$ Commented Nov 18, 2016 at 15:31
  • \$\begingroup\$ Okay so the charge up time is 1000 times lower. If i stick to 500Hz then the average discipation will also be 1000 times smaller. That is 0.001W. Right? \$\endgroup\$
    – nagylzs
    Commented Nov 18, 2016 at 15:46
  • 1
    \$\begingroup\$ My wrong. When the uln is open then it will still be 1w. Well it seems that for 500Hz switching i can use 1k easily. 100ohm could do 1MHz. \$\endgroup\$
    – nagylzs
    Commented Nov 18, 2016 at 15:50

1 Answer 1

2
\$\begingroup\$

A 100 ohm resistor has a CR time of 180 ns when charging a 1.8 nF capacitor (the gate). 5 CR gets you easily to within about 99% of fully charged hence your rise time will be about 0.9 us.

I'd be a little concerned about the ULN2003A not properly turning the MOSFET off. According to the data sheet it will get down to about 1 volt with a 100 mA load and some MOSFETs might still be partially turned on even with 1 volt on the gate. I think you'll be OK with the IRF540 though.

If in doubt, you can always try the TPIC2701. It has 7 outputs and the same pin-out as the ULN200x but, importantly, the output switches on to near 0V because it uses a MOSFET with 0.5 ohms on resistance: -

enter image description here

In some applications you may not even need to use the IRF540.

\$\endgroup\$
4
  • \$\begingroup\$ A single tpic2701 costs az least $10 on ebay. But after I realized my miscalculation, I could use 1k pull up, 0.1w discipation and have 500Hz frequency at the same time. I'm accepting this solution. (And will come up with a new one tomorrow.) \$\endgroup\$
    – nagylzs
    Commented Nov 18, 2016 at 21:45
  • \$\begingroup\$ @nagylzs BTW, what's the load on the IRF540? \$\endgroup\$
    – Andy aka
    Commented Nov 18, 2016 at 22:33
  • \$\begingroup\$ 60W about 5Amps \$\endgroup\$
    – nagylzs
    Commented Nov 19, 2016 at 8:27
  • \$\begingroup\$ TPIC2701 is obsolete; I'm trying to find a replacement. \$\endgroup\$ Commented Aug 4, 2018 at 23:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.