A box with rfid reader, lcd display and servo to open a bolt. Built as a treasure hunt for a birthday party of 7-year old daughter.
Children had to collect five RFID-cards and swipe them in a correct order over the box to open the box and find the chocolate coins inside.
(Texts in the pictures are in dutch)
I used a box I had lying around, some wood, some screws, ...
If you want to skip forward. Complete code can be found on github.
Step 1: Arduino + RFID reader + LCD
Connect the LCD screen (from top left to right):
Connect the RFID breakout:
I cut some holes in the top of the box and put everything in place.
Make sure you add a small piece of wood or somethin non conductive between the lid and the RFID breakout.
Step 2: Adding the servo and bolt
Connect the voltage and ground wire to 5V and gnd. The signal wire goes in Arduino Pin 1.
By using this pin, you can't use a Serial Communication from your Arduino code, but that's fine for this project.
(Some Arduino boards can't be programmed when this pin is in use, so if you have some problems, detach the pin every time you upload new code)
Use some wood or whatever you have to keep the bolt and servo in its place. I made a hole in the lid of the box to keep it closed.
You can see the servo and bolt working if you watch the video.
Step 3: Adding rgb-leds
NeoPixels are easy to use because you can connect them in series. Drill four holes in the lid, connect the leds. They need 3.3V and a gnd connection. Use pin 3 (a PWM enabled pin) for the input but put the 470 Ohm resistor between pin 3 and the first NeoPixel.
Step 4: Finishing up
Attach the arduino to the lid. You can put a battery pack in the lid as well (or use an external power source).
See the complete flow in the video attached (displayed texts are in Dutch).
Rules for the treasure box:
You can find the Arduino code here.
Step 5: Have fun!
Make up a small quest for the kids to find the cards.