Source: https://mokxi.com/teachers/plans/h-bridge-design
Updated: 2026-11-19

Lesson plan

# Design an H-bridge lesson plan

Build the motor driver a chip hides from four discrete MOSFETs: choose the parts, drive the high-side gates, set dead time, survive shoot-through, sense the current and brake. Ends with a working driver you characterize.

7 chapters, 7 lessons, about 6 hours, no board. Every lesson runs in the browser, with nothing to install.

Start a class from this course

The unit

## Objectives and materials

### By the end, students can

- On-resistance, logic level and the current rating that matters.
- A P-channel high side, a level shifter, and why bootstraps exist.
- A gap where both switches are off, measured on an ammeter.
- Forward, reverse, and the short a current limit catches.
- An ACS712: running current, start surge, sign and resolution.
- Coast, brake low, brake high and plugging, on the sensor.
- Wire the sensor, prove every state, fit your own motor.

### Materials for the whole unit

- Bench power supply
- Current sensor, ACS712
- DC motor
- Function generator
- MOSFET x 4
- Multimeter
- Op-amp x 2
- Oscilloscope
- Potentiometer x 2
- Resistor x 8
- Slide switch x 4
- Transistor (NPN or PNP) x 2

Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.

Chapter 1. About 55 min

## MOSFET choice

On-resistance, logic level and the current rating that matters.

Lesson | Time | What students do

MOSFET choice One N-channel MOSFET switching a 12 V motor from a logic pin. Read its on-resistance off a meter, and see why "logic level" and the current rating decide the part, not the price. | 55 min

- Run it: one switch
- Read the on-resistance
- Not every MOSFET is logic level
- On a 3.3 V board
- A logic-level part on 3.3 V
- Too small for the job

### Materials

- Bench power supply
- DC motor
- MOSFET
- Multimeter
- Resistor x 2
- Slide switch

### Check for understanding

Each student finishes "MOSFET choice" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Too small for the job".

Chapter 2. About 55 min

## Gate drive

A P-channel high side, a level shifter, and why bootstraps exist.

Lesson | Time | What students do

Gate drive A P-channel MOSFET on the high side will not turn off from a 5 V pin. Find out why from its gate voltage, fix it with an NPN level shifter, and see why N-channel high sides need a bootstrap. | 55 min

- Run it: it will not stop
- Logic high is not off
- Add a level shifter
- Off really is off
- And fully on
- N-channel high sides and gate drivers

### Materials

- Bench power supply
- DC motor
- MOSFET
- Multimeter
- Resistor x 2
- Slide switch
- Transistor (NPN or PNP)

### Check for understanding

Each student finishes "Gate drive" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "N-channel high sides and gate drivers".

Chapter 3. About 45 min

## Dead time

A gap where both switches are off, measured on an ammeter.

Lesson | Time | What students do

Dead time One leg of an H-bridge switched by two comparators on a triangle wave. Open a gap where both MOSFETs are off and the supply current is only the load's; close it and watch the leg start burning current for nothing. | 45 min

- Run it: one leg, two thresholds
- Narrow the gap
- Overlap them: shoot-through
- A big overlap
- Set it right

### Materials

- Bench power supply
- Function generator
- MOSFET x 2
- Multimeter
- Op-amp x 2
- Oscilloscope
- Potentiometer x 2
- Resistor x 2

### Check for understanding

Each student finishes "Dead time" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Set it right".

Chapter 4. About 45 min

## Shoot-through

Forward, reverse, and the short a current limit catches.

Lesson | Time | What students do

Shoot-through The whole bridge: four MOSFETs, four gate switches. Forward, reverse, and the one combination that shorts the supply, caught here by the bench supply's current limit. | 45 min

- Run it: forward
- Reverse
- Short it
- The supply gives up
- Limit it, then prevent it

### Materials

- Bench power supply
- Current sensor, ACS712
- DC motor
- MOSFET x 4
- Resistor x 8
- Slide switch x 4
- Transistor (NPN or PNP) x 2

### Check for understanding

Each student finishes "Shoot-through" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Limit it, then prevent it".

Chapter 5. About 40 min

## Current sensing

An ACS712: running current, start surge, sign and resolution.

Lesson | Time | What students do

Current sensing An ACS712 Hall-effect sensor in the motor lead: the running current, the surge at every start, the sign that says which way it flows, and a bigger motor that would trip a real driver's limit. | 40 min

- Run it: the running current
- The start surge
- Current has a sign
- Resolution

### Materials

- Bench power supply
- Current sensor, ACS712
- DC motor
- MOSFET x 4
- Resistor x 8
- Slide switch x 4
- Transistor (NPN or PNP) x 2

### Check for understanding

Each student finishes "Current sensing" on their own, without opening the hints. The simulator checks 4 of its 4 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Resolution".

Chapter 6. About 45 min

## Braking

Coast, brake low, brake high and plugging, on the sensor.

Lesson | Time | What students do

Braking Three ways to stop a spinning motor: let it coast, short it through the low sides or the high sides, or plug it into reverse. The current sensor shows the motor turning into a generator. | 45 min

- Run it, then coast
- Brake on the low sides
- Brake on the high sides
- Plugging
- Where the energy goes

### Materials

- Bench power supply
- Current sensor, ACS712
- DC motor
- MOSFET x 4
- Resistor x 8
- Slide switch x 4
- Transistor (NPN or PNP) x 2

### Check for understanding

Each student finishes "Braking" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Where the energy goes".

Chapter 7. About 1 h 5 min

## Boss: a discrete motor driver

Wire the sensor, prove every state, fit your own motor.

Lesson | Time | What students do

Boss: a discrete motor driver Finish a discrete H-bridge: wire in its current sensor, prove forward, reverse and braking against the readings, show the current limit catching a shoot-through, then fit your own motor and characterize it. | 65 min

- The brief
- Wire in the sensor
- Forward, measured
- Reverse, measured
- A hard stop
- The net that catches mistakes
- Make it yours: your own motor

### Materials

- Bench power supply
- Current sensor, ACS712
- DC motor
- MOSFET x 4
- Resistor x 8
- Slide switch x 4
- Transistor (NPN or PNP) x 2

### Check for understanding

Each student finishes "Boss: a discrete motor driver" on their own, without opening the hints. The simulator checks 7 of its 7 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Make it yours: your own motor".

Your class

## Teach this unit as a class

Start a class from this course and its 7 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.

The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.

Start a class from this course See the demo class

More units

## Other lesson plans

Electronics basics 20 lessons, about 10 h. Embedded on the Arduino Uno 16 lessons, about 12 h. Embedded on the ESP32-C3 13 lessons, about 11 h. Embedded on the Raspberry Pi Pico 7 lessons, about 6 h. Build your own fight stick 5 lessons, about 4 h. Embedded on the STM32F411 6 lessons, about 6 h. C++ on a board 13 lessons, about 10 h. Digital logic and memory 4 lessons, about 4 h. Interactive devices on the Uno 9 lessons, about 8 h. From gates to a computer 23 lessons, about 16 h. Build a claw machine 8 lessons, about 6 h. Every unit All the courses as ready-made units, on the teachers page.
