Projects / Ideas / Colour-code lock box

Colour-code lock box

IntermediateGames & ToysIdeaReviewed
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

How to build it

  1. Store a secret four-press code
  2. Debounce all buttons
  3. Compare each entry
  4. Open the servo latch on success
  5. 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.