Rudolph the Red-nosed Reindeer Arduino Escape Room Puzzle

by Droldan1 in Circuits > Arduino

735 Views, 1 Favorites, 0 Comments

Rudolph the Red-nosed Reindeer Arduino Escape Room Puzzle

Rudolph the Red-nosed Reindeer Riddle.png

In this Christmas Escape Room, you will make the player open the serial monitor. Once the Serial monitor opens it will ask, "How many Reindeers does Santa have?". If the player answers correctly, a green LED light will turn on and the player will hear Rudolph the red-nosed reindeer playing. If the player answers incorrectly, then a red LED will turn on and the player will be asked to try again. You will need the following to get started:

Supplies

1- Arduino Uno

1- Mini Breadboard

1- USB Cable

1- Piezo

1- Red LED

1- Green LED

2- 1k ohm Resistors

6- Jumper Cables

Arduino Code

Mc.png
pt2.png
pt3.png

With this Project, the attached code will program the red LED to turn on or off, the green LED to turn on or off, and whether the piezo needs to play the melody or not. The attached code also allows the simulation to start when the player starts to interact with the serial monitor. Further description is provided in the comments of the code.

To create the melody and tone duration arrays in the code, you have to convert the values on the sheet music, reading both the placement on the staffs as notes on a scale from C2 to C6 and reading the shape of the notes from whole notes to 16th notes, and then using commas to separate the values. (NOTE: Rests are given a melody value of 0).

Hardware Setup

Copy of Serial Monitor Password Controlled Lights and Piezo (Rudolph).png

1.) Connect the piezo to J10 and J16 on the mini breadboard (J10 positive, J16 negative)

2.) Connect the red LED to J1 and J2 on the mini breadboard.

3.) Connect the green LED to J6 and J7 on the mini breadboard.

4.) Now connect one 1k ohm resistor from D1 to F1 on the mini breadboard.

5.) Connect the other 1k ohm resistor from D6 to F6 on the mini breadboard.

6.) Now connect a wire from F11 on the mini breadboard to digital pin 6 on the Arduino to send a tone function.

7.) Connect a wire from F16 on the mini breadboard to GND on the Arduino to ground the piezo.

8.) Connect a wire from A1 on the mini breadboard to GND on the Arduino to ground the Red LED.

9.) Connect a wire from F2 on the mini breadboard to digital pin 10 to provide signal to the Red LED

10.) Connect a wire from A6 on the mini breadboard to GND on the Arduino to ground the green LED.

11.) Lastly, connect a wire from F7 on the mini breadboard to digital pin 9 to provide signal to the green LED.

How to Play

In order for player to start the puzzle, they must enter into the serial monitor to receive the following question:

"How many reindeers does Santa have?"

Down below is simulation of the escape room puzzle. Test it out!

Link to Remix this Tinkercad Circuits Project https://www.tinkercad.com/things/j4PCfIEPzjQ