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.

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.

LessonTimeWhat students do
MOSFET choiceOne 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
  1. Run it: one switch
  2. Read the on-resistance
  3. Not every MOSFET is logic level
  4. On a 3.3 V board
  5. A logic-level part on 3.3 V
  6. 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.

LessonTimeWhat students do
Gate driveA 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
  1. Run it: it will not stop
  2. Logic high is not off
  3. Add a level shifter
  4. Off really is off
  5. And fully on
  6. 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.

LessonTimeWhat students do
Dead timeOne 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
  1. Run it: one leg, two thresholds
  2. Narrow the gap
  3. Overlap them: shoot-through
  4. A big overlap
  5. 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.

LessonTimeWhat students do
Shoot-throughThe 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
  1. Run it: forward
  2. Reverse
  3. Short it
  4. The supply gives up
  5. 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.

LessonTimeWhat students do
Current sensingAn 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
  1. Run it: the running current
  2. The start surge
  3. Current has a sign
  4. 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.

LessonTimeWhat students do
BrakingThree 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
  1. Run it, then coast
  2. Brake on the low sides
  3. Brake on the high sides
  4. Plugging
  5. 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.

LessonTimeWhat students do
Boss: a discrete motor driverFinish 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
  1. The brief
  2. Wire in the sensor
  3. Forward, measured
  4. Reverse, measured
  5. A hard stop
  6. The net that catches mistakes
  7. 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.