Idea
In short
How do you build a colour-code lock box?
A small box opens only when you press four colour buttons in the right order, driving a servo latch. You need Arduino Uno R3, Tactile push button 6 mm × 4, SG90 Micro Servo, LED 5 mm red, LED 5 mm green, Resistor 220 Ω × 2, Resistor 10 kΩ × 4, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).
- Level
- Intermediate
- Time
- About 150 min
- Parts
- 9
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal
Compare a stored sequence and open a latch.
Parts list
- Development Boards
- Switches
- Motors & Actuators
- Semiconductors
- Semiconductors
- PassivesResistor 220 Ω × 2
- PassivesResistor 10 kΩ × 4
- Prototyping
- Prototyping
How to build it
- Store a secret four-press code
- Debounce all buttons
- Compare each entry
- Open the servo latch on success
- Add a three-try lockout
Related projects
Common questions
What parts do I need for the colour-code lock box?
Arduino Uno R3, Tactile push button 6 mm × 4, SG90 Micro Servo, LED 5 mm red, LED 5 mm green, Resistor 220 Ω × 2, Resistor 10 kΩ × 4, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).
How long does the colour-code lock box take to build?
About 150 minutes for a intermediate maker.
