Where does an IN5408 diode go in a hobby motor, on/off switch and AA battery holder setup?
The diode will conduct when the switch opens allowing the magnetic energy stored in the motor to be dissipated and not cause a damaging arc across the switch.