H-bridge from discrete transistors
Build it step by step
0 of 7 donePlace the four transistors
Check TIP120 and TIP127 pin orders.
Add flyback diodes
One across each transistor.
Wire the motor
Between the two midpoints.
Test forward
Press the first button.
Test reverse
Press the second button.
Check for shoot-through
Measure supply current with both buttons up.
Compare with a driver chip
See what the chip adds.
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
Wiring
| From | To | Why |
|---|---|---|
| 12 V adapter plus | Fuse (1 A), then both TIP127 emitters | Supply |
| 12 V adapter minus | Both TIP120 emitters | Ground |
| TIP127 A collector and TIP120 A collector | Motor terminal A | One side of the bridge |
| TIP127 B collector and TIP120 B collector | Motor terminal B | Other side |
| Diodes | Across each transistor, cathode to supply side | Flyback protection |
| Forward button | 1 kΩ to TIP127 A and TIP120 B bases, with pull-ups | Direction one |
| Reverse button | 1 kΩ to TIP127 B and TIP120 A bases | Direction 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.
| Check | Expected |
|---|---|
| Forward button | Motor runs one way |
| Reverse button | Motor runs the other way |
| No button | Motor stops with no current drawn |
| Heat | Transistors 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 →
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.
