Students will
- Explain why a GPIO pin must not power a motor
- Use a transistor as a controlled switch
- Place a flyback diode across the motor with correct polarity
Arduino Uno R3
Use the kit IRF520 MOSFET and 1N4007 flyback diode to switch a DC motor without driving it directly from an Arduino pin.
Reviewed connection map
Read before uploading
const int MOTOR_CONTROL_PIN = 9;
void setup() {
pinMode(MOTOR_CONTROL_PIN, OUTPUT);
}
void loop() {
digitalWrite(MOTOR_CONTROL_PIN, HIGH);
delay(1000);
digitalWrite(MOTOR_CONTROL_PIN, LOW);
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.
Stop testing and review supply capacity, common ground, wiring, motor noise suppression, and mechanical load.
Disconnect power and verify transistor pinout, diode orientation, control resistor, common ground, and motor supply.
2026 middle school standards
These are evidence-based crosswalk candidates for curriculum review—not a claim of official alignment.
Students distinguish the controller, switching device, motor supply, and shared reference as parts of one system.
Lesson evidence: Labeled control and power pathStudents isolate variables, compare observed behavior with the intended purpose, and document a revision.
Lesson evidence: Motor switching test logmotor-types · motor-control · power-and-signals
Starting point, not verified curriculum. Review the actual hardware, circuit, code, power requirements, and classroom conditions.
After teaching this lesson