Toy Elevator Controller
Limit switches and motor control — the basics of elevator design
Elevator
Limit switch
Motor
Engineering
What you will learn
- How limit switches work — they trigger when something physically pushes them
- The H-bridge concept — how to make a DC motor spin both directions
- The engineering safety principle of "fail-safe": limit switches prevent the motor from over-driving
- How to use state machines to model multi-step processes (idle → moving up → arrived → idle)
What you will need
| Component |
|---|
| 1× Arduino |
| 1× DC motor (with gearbox, low RPM) |
| 1× L298N motor driver (or 1× relay for single-direction) |
| 2× limit switches (or pushbuttons mounted at the top and bottom) |
| 2× 220Ω resistors |
| 2× LEDs (red for UP, green for DOWN) |
| 1× 9V battery + 1× 4×AA pack (for motor) |
| String, cardboard, tape (to build the elevator car) |
| Breadboard |
| 8× jumper wires |
Step by step
Take it further
- Add a 3rd floor — another limit switch and a 3rd button.
- Add a small display showing the current floor (use an LCD or 7-segment).
- Add safety features: a "door open" sensor that won't let the elevator move until the door is closed.
- Try the TryEngineering "Build an Elevator" lesson: design the elevator car, the shaft, the counterweight, and the safety brake.
Practise it before you build it
Wire this circuit in the ThinkEdge Learn simulator first. The simulator runs a real Arduino sketch against a modified-nodal-analysis solver, so the LED on screen actually lights when the current is right — no hardware, no burnt components, and a class can try it in a browser.
Related projects
Insulation Test ChamberWhich material keeps heat in best?
Smart SundialA light sensor that tells the time of day
Police SirenAlternating red + blue LEDs with a wailing 600–1500 Hz buzzer
LDR — Light-Following Robot (Solar Tracker)It always faces the brightest spot
DHT11 — Auto Fan ControllerHot day, fan on. Cool day, fan off.
Ultrasonic — Reverse Parking SensorBeep faster as you get closer
Guides that use this project
3 guides on the site build this project as part of a longer explanation. The guide says why the circuit works; this page says how to wire it.
Window Cleaning Robots: How They Stick to GlassHow a window cleaning robot grips glass with a vacuum fan, why the squeegee matters as much as the suction, and how to build the winch logic.
3D Print Files and STLsWhere to find 3D print files, what an STL file actually is, how to check one before you print, and how to design your own from scratch.
Best 3D Printers for StudentsHow to choose a 3D printer for a classroom: FDM versus resin, enclosed or not, what a Snapmaker, P2S or Bambu Lab does for schools, and what to skip.
Where this project sits
It is also part of these lists, which is how a class usually finds it.
Arduino LED projects for beginners36 projects in this list
Arduino push button projects for beginners14 projects in this list
Engineering projects for school students12 projects in this list
Try the full simulator with your class
103 guided circuit projects, 21 lessons and an in-browser Arduino simulator. The first 15 projects are free, no account needed. One licence covers a whole school.