Projects / H-bridge from discrete transistors

H-bridge from discrete transistors

Intermediate2 hGuided buildReviewed

Build it step by step

0 of 7 done
  1. TIP120TIP127

    Place the four transistors

    Check TIP120 and TIP127 pin orders.

  2. TIP120

    Add flyback diodes

    One across each transistor.

  3. Wire the motor

    Between the two midpoints.

  4. Test forward

    Press the first button.

  5. Test reverse

    Press the second button.

  6. Check for shoot-through

    Measure supply current with both buttons up.

  7. Compare with a driver chip

    See what the chip adds.

In short

How do you build a h-bridge from discrete transistors?

Four transistors drive a DC motor forwards and backwards, showing how motor driver chips work. You need TIP120 Darlington transistor × 2, TIP127 PNP Darlington × 2, Rectifier Diode 1N4007 × 4, Resistor 1 kΩ × 4, Tactile push button 6 mm × 2, DC motor 130 size (toy motor), 12 V 2 A DC adapter and Breadboard 830 Tie Points. It takes 7 steps and about 120 minutes.

Level
Intermediate
Time
About 120 min
Parts
8
See the electronics first. This build uses transistor switch. Try a transistor switch in the circuit builder and watch the voltages and currents before you wire it.

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
12 V adapter plusFuse (1 A), then both TIP127 emittersSupply
12 V adapter minusBoth TIP120 emittersGround
TIP127 A collector and TIP120 A collectorMotor terminal AOne side of the bridge
TIP127 B collector and TIP120 B collectorMotor terminal BOther side
DiodesAcross each transistor, cathode to supply sideFlyback protection
Forward button1 kΩ to TIP127 A and TIP120 B bases, with pull-upsDirection one
Reverse button1 kΩ to TIP127 B and TIP120 A basesDirection two

No code needed

A motor needs current to flow in both directions, which two transistors per side make possible: a PNP to the supply and an NPN to ground. Turning on the PNP of side A and the NPN of side B sends current one way; swapping reverses it. Turning on both transistors on the same side connects the supply straight to ground, called shoot-through, and burns both transistors, so the buttons must never allow it; wire it so each button drives its two diagonal transistors together and neither button can press at the same time. Each diode catches the motor's back-voltage spike when the current stops. Use a 12 V adapter with a 1 A fuse and a small toy motor, and keep fingers away from the shaft.

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
Forward buttonMotor runs one way
Reverse buttonMotor runs the other way
No buttonMotor stops with no current drawn
HeatTransistors stay cool with a small motor

If it does not work

Motor does not run

Check the pin order and the base resistors.

Transistors hot

Check for shoot-through.

Weak speed

Darlingtons drop about 1.5 V on each side.

Spikes

Check diode direction.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the h-bridge from discrete transistors?

TIP120 Darlington transistor × 2, TIP127 PNP Darlington × 2, Rectifier Diode 1N4007 × 4, Resistor 1 kΩ × 4, Tactile push button 6 mm × 2, DC motor 130 size (toy motor), 12 V 2 A DC adapter and Breadboard 830 Tie Points.

How long does the h-bridge from discrete transistors take to build?

About 120 minutes for a intermediate maker, in 7 steps.

How do I know the h-bridge from discrete transistors works?

Forward button: Motor runs one way. Reverse button: Motor runs the other way. No button: Motor stops with no current drawn.

Motor does not run: what should I check?

Check the pin order and the base resistors.

Transistors hot: what should I check?

Check for shoot-through.

Weak speed: what should I check?

Darlingtons drop about 1.5 V on each side.

Spikes: what should I check?

Check diode direction.