Classroom Voting Machine
Three buttons, three options, instant democracy
Voting
Buttons
State machine
Engineering
What you will learn
- How digital inputs from multiple buttons can be combined to track a state
- Why we need "debouncing" — buttons can bounce and register as multiple presses
- The engineering design trade-off between simplicity (3 buttons) and security (preventing double-voting)
- How a state machine can model real-world processes (idle → voting → showing results)
What you will need
| Component |
|---|
| 1× 9V battery |
| 3× pushbuttons (one per candidate) |
| 3× 220Ω resistors |
| 3× LEDs (red, green, blue — one per candidate) |
| 1× "Result" button (to display the winner) |
| 1× buzzer (beep on each vote) |
| Breadboard |
| 10× jumper wires |
Step by step
Take it further
- Add a 7-segment display or LCD to show running vote totals.
- Add a 4th button to reset the vote count (for the next question).
- Try the TryEngineering "Cast Your Vote" lesson plan: design a tamper-proof enclosure so voters can't reach the wiring.
- Make it a WiFi-connected voting app with two ESP32 boards — one in each classroom.
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
Conveyor Belt CounterCount objects on a moving line — like a real factory sensor
Mini Ferris WheelA continuous rotation — the engineering of big wheels
LDR — Automatic Night LightThe room gets dark, the LED turns on
DHT11 — Digital ThermometerRead the room temperature on your laptop
Ultrasonic — Distance SensorMeasure how far away an object is
Servo — The Hello World of MotorsSweep back and forth forever
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
Arduino buzzer and tone projects19 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.