Part 09 / 10

Driving Bigger Things

Motors, relays and metres of LED strip want far more current than a small transistor can pass, so this part hands the job to a MOSFET and adds the one diode that stops a motor from kicking back.

7 sections 2 interactives
§ 9.1

When a small transistor is not enough

A small hobby motor, the kind with a shiny can and two tabs, takes a couple of hundred milliamps when it spins freely from 4.5 volts. As it starts, or if something stops the shaft, it can take an amp or more. A BC547 is rated for 100 mA at most. It would get hot and fail.

A bigger bipolar transistor such as the 2N2222 handles 600 mA, but it needs a generous base current, 10 to 50 mA, to be fully on at those currents, and even fully on it leaves a few tenths of a volt across itself, turning power into heat. For anything that takes more than a few hundred milliamps there is a better kind of transistor.

§ 9.2

The MOSFET, a switch worked by voltage

A also has three legs: the gate, the drain and the source. They do the same jobs as the base, collector and emitter. The big difference is the gate. It is separated from the rest by a layer of glass, silicon dioxide, so thin it is measured in billionths of a metre. No current flows into the gate at all. A voltage on the gate attracts a thin layer of charge on the other side of the glass, and that layer opens a path from drain to source.

So a MOSFET needs no base resistor and no steady control current. Charge the gate, and it is on; empty it, and it is off. Fully on, a good one is almost a piece of wire: the IRLZ44N used in this part has about 0.025 ohms between drain and source with 5 volts on its gate, and can handle tens of amps.

The catch is the word “fully”. Many popular MOSFETs, such as the IRF520 found on many hobby modules, need about 10 volts on the gate to switch fully on. With 4.5 or 5 volts they are only partly on, and they get hot. For battery circuits and microcontrollers, choose a MOSFET, one whose datasheet promises a low resistance at 4 or 5 volts. The IRLZ44N is one: the L in its name stands for logic.

The MOSFET was invented at Bell Labs in 1959 by Mohamed Atalla and Dawon Kahng, who demonstrated a working one the next year. Power MOSFETs, built to carry large currents, followed: Hitachi made the first vertical power MOSFET in 1969, and International Rectifier began selling its HEXFET in 1978. The power MOSFET is now the most widely used power semiconductor device in the world, in everything from phone chargers to electric cars.

§ 9.3

The kick from a coil

A motor, a relay or a solenoid is a coil of wire, and coils have a property part 6 mentioned: . A coil resists any change in the current through it. Switch the current on, and it builds up gradually. Switch it off, and the coil does everything it can to keep it flowing, including making whatever voltage it takes.

With the transistor suddenly open, the current has nowhere to go, so the voltage across the coil shoots up until something gives: a spark across a switch’s contacts, or a breakdown inside the transistor. The spike lasts only microseconds but can be enormous. In one test with a 24 volt solenoid, it reached about 300 volts. A small transistor hit by that every time the motor stops will not last long.

The cure is a , a plain 1N4001 or 1N4007, connected across the coil the “wrong” way: its stripe to the + side, its other end to the transistor. While the coil is switched on, the diode faces backwards and does nothing. At the moment of switch-off, the coil’s current turns round through the diode, and circles between the two until it dies away. The voltage at the transistor rises only a diode’s 0.7 volts above the supply.

§ 9.4 · interactive

Try it: catch the kick

Try it

Catch the kick

Switch the coil off and watch the voltage at the transistor on the oscilloscope. Then fit a flyback diode and try again.

4.5 Vcoilon 4.5012collector, 12 ms →

Current flows through the coil and the transistor. Now switch it off.

A small coil switched by a transistor from 4.5 V. Without the diode, the spike is drawn off the top of the screen: the real peak depends on the coil and on how fast the switch opens.

§ 9.5

Experiment: a motor on a push button

Now the real thing. You need the IRLZ44N, a 1N4001 or 1N4007, a push button, a 10 kΩ resistor, a 100 nF ceramic capacitor and the small motor.

  1. Connect the motor between the + rail and the MOSFET’s drain, its middle leg.
  2. Connect the source, the right-hand leg, to the − rail.
  3. Put the diode across the motor’s two terminals, stripe to the + side.
  4. If your motor has no capacitor on its terminals already, add the 100 nF across them too. As part 6 explained, it soaks up the electrical noise from the motor’s sparking brushes.
  5. Connect the push button from the + rail to the gate, the left-hand leg.
  6. Connect the 10 kΩ resistor from the gate to the − rail.

Press the button and the motor spins. Let go and it stops. The meter, on the 10 A socket, shows a surge as it starts and a couple of hundred milliamps while it runs.

The 10 kΩ resistor is called a pull-down, and it matters more than it looks. When the button is up, it holds the gate firmly at 0 volts and empties any charge left on it. Take it out and the gate is connected to nothing at all. A MOSFET’s gate holds its charge, so the motor carries on after you let go, and touching the gate wire, or even waving a hand near it, can start or stop it at random. Never leave a gate floating.

§ 9.6 · interactive

Try it: button, gate and motor

Try it

Button, gate and motor

Hold the button down, then let go. Then remove the pull-down resistor and try again, and touch the gate wire.

4.5 VD1button10 kΩMOSFETgate
0.0 Vgate
0 mAmotor

Press and hold the button. Then try it without the pull-down resistor.

A logic-level MOSFET with a small 4.5 V motor and a flyback diode. The gate is modelled as switching on between about 1.5 and 3 V.

§ 9.7

LED strips and other big loads

The same circuit drives almost anything that runs on direct current, provided the MOSFET is rated for it. A metre of typical 12 volt LED strip draws a few hundred milliamps to an amp, depending on its type, and a five-metre reel several amps. That is no problem for the IRLZ44N: at 5 amps it turns only about 0.6 watts into heat, warm but fine without a heat sink.

A 12 volt strip needs its own 12 volt supply, from a plug-in adapter. The battery circuit only drives the gate. The rule that makes it work is a common ground: the − of the strip’s supply, the MOSFET’s source and the − of the control circuit must all be connected together. The gate voltage is measured against the source, and without that shared reference it means nothing.

Remember the flyback diode whenever the load is a coil, such as a motor, relay, solenoid, pump or fan, and leave it out for LEDs and heaters, which have no coil to kick back. With a resistor, a capacitor, a few transistors and a diode, you now know every part needed for the last two projects. The final part builds them.

Sources for this part

MOSFETs

Coils and flyback diodes

Series Resistors, Capacitors and Transistors
Menu

Gears & Signals · Static site · No trackers