Students will
- Distinguish motor power, logic power, enable, and direction pins
- Reverse a motor by changing H-bridge input states
- Stop before reversing direction
Arduino Uno R3
Use the kit L293D H-bridge to start, stop, and reverse a DC motor through explicit enable and direction signals.
Reviewed connection map
Read before uploading
const int ENABLE_PIN = 9;
const int INPUT_1 = 4;
const int INPUT_2 = 5;
void driveMotor(bool first, bool second, int speedValue) {
digitalWrite(INPUT_1, first);
digitalWrite(INPUT_2, second);
analogWrite(ENABLE_PIN, speedValue);
}
void setup() {
pinMode(ENABLE_PIN, OUTPUT);
pinMode(INPUT_1, OUTPUT);
pinMode(INPUT_2, OUTPUT);
}
void loop() {
driveMotor(HIGH, LOW, 160);
delay(1000);
driveMotor(LOW, LOW, 0);
delay(500);
driveMotor(LOW, HIGH, 160);
delay(1000);
driveMotor(LOW, LOW, 0);
delay(1000);
}Optional engineering record
Choose the prompts that help students explain predictions, evidence, debugging, and transfer. Saving creates a new entry in this browser’s Rudi notebook.
Use these prompts if they help students capture evidence, decisions, or questions. You do not need to complete every prompt or create an entry at every step.
Verify both direction-input connections and print or observe their commanded states.
Disconnect power immediately and review pinout, shorts, motor stall current, supply voltage, and mechanical load.
2026 middle school standards
These are evidence-based crosswalk candidates for curriculum review—not a claim of official alignment.
Students examine how an H-bridge changes the computing system needed to meet a bidirectional-motion requirement.
Lesson evidence: Direction truth tableStudents isolate variables, compare observed behavior with the intended purpose, and document a revision.
Lesson evidence: Stop and direction sequence testmotor-types · motor-control · motor-drivers · power-and-signals
Starting point, not verified curriculum. Review the actual hardware, circuit, code, power requirements, and classroom conditions.
After teaching this lesson