H-bridge
Polish version is here |
What Is It?
An H-bridge is an electrical circuit that allows control of the direction of current flow in systems powered by a single voltage source.H-bridges are commonly used in robotics to reverse the rotation of DC commutator motors (including typical DC micro motors and higher-power variants). H-bridges are available as integrated circuits, but they can also be built using discrete components.
How Does It Work?
The term "H-bridge" comes from the schematic representation of the circuit. It consists of four switches arranged in an H-shaped circuit, as shown below:

The switches can be electromechanical, such as relays. However, modern circuits typically use electronic switches—transistors.
Let’s analyze how this circuit operates. If we close switches 1 and 4, the current will flow as shown in the diagram:

Closing switches 2 and 3 reverses the current flow:

Notice that in both cases, current flows through the motor (denoted by the letter M) in opposite directions.
Building Our Own H-Bridge
To build a simple H-bridge suitable for amateur robotics applications, you will need the following components:
- BD135 transistor (2 pcs)
- BD136 transistor (2 pcs)
- 100kΩ resistor (4 pcs)
- 100Ω resistor (2 pcs)
- 330Ω resistor (2 pcs)
These components are readily available at any electronics supply store.
Assemble the components according to the simple schematic shown below:

The mechanical switches have been replaced by transistors. The transistor bases are biased and driven in such a way that when a voltage signal is applied to one of the Dir inputs, two transistors located diagonally on the schematic begin to conduct. As a result, the motor's rotation direction can be controlled via the Dir terminals: if both terminals are at ground potential, the motor remains stationary; if approximately 5V is applied to either terminal, the motor will rotate in the corresponding direction. The resistors in the control circuit provide protection. Avoid a state where both control terminals receive the supply voltage simultaneously. The transistors have sufficient power capacity to drive low-power DC motors (a heatsink may be required).
The fully assembled H-bridge should look as follows:
A large-value electrolytic capacitor ensures power supply filtering.
Enjoy experimenting with this educational project! :)
Further readings:
- Bennett S., A History of Control Engineering 1930-1955, Peter Peregrinus Ltd. On behalf of the Institution of Electrical Engineers, Londyn, 1993
- Younkin G.W., Industrial Servo Control Systems - Fundamentals and Applications, 2nd Ed., Taylor and Francis, 2007
Marek Ples