Emergency stop on a motor
A TT motor on four AA cells behind a rocker switch and a latching emergency stop: the rocker runs it, the red button cuts it. There is no microcontroller in it: the simulator solves the 4 parts as a circuit, so it runs the moment you press Run, and nothing needs compiling.
Teaching? Assign it to your class in one click.
Beginner Runs in your browser. Free, and no account needed.
The parts retail for about $8.50. On Mokxi they're free.
How it works
There is no microcontroller in this one, so nothing is compiled: the simulator solves the circuit itself. The file in the editor is the notes that come with it.
// A motor behind a rocker switch and an emergency stop.
//
// Four AA cells (6 V) through the rocker, then the e-stop's normally closed
// contact, then the motor. Click the rocker to I and the motor runs. Click
// the red button and it latches down, opening the circuit whatever the
// rocker says; click it again to twist it back out. That is why an e-stop is
// normally closed: a broken wire stops the machine instead of hiding.
Parts list
4 parts, plus the jumper wires. They retail for about $8.50; on Mokxi they're free.
- 1 × Battery: AA, coin cell, LiPo
- 1 × Rocker switch, SPST
- 1 × Emergency stop button
- 1 × DC motor
How it is wired
4 connections, pin by pin, read from the circuit itself. Each line is one set of pins joined together, by a jumper wire or a breadboard strip.
- Battery: AA, coin cell, LiPo pin V+; Rocker switch, SPST pin 1
- Ground: Battery: AA, coin cell, LiPo pin V-; DC motor pin 2
- Rocker switch, SPST pin 2; Emergency stop button pin 1
- Emergency stop button pin 2; DC motor pin 1
Change it and keep it
Open it in the editor, change the circuit or the code, and keep your version in a free account.