กลับไปหน้ารวมไฟล์
riddle-treasure-6ec952-en.md

Welcome to the Riddle Treasure instructions!

Timer & Rotary

Let's first attach the 3D printed knob to the Modulino knob.

Don't use too much force, let the heavy part of the hammer do the majority of it.

Let's assemble the Arduino Uno R4 Wifi with the Modulino Knob, Pixel and Buzzer.

Let's connect each Modulino using the Qwicc cable connecting them to the Arduino UNO Qwicc port.

Upload the Rotary sketch: https://github.com/giulio93/RiddleTreasure/tree/main/Rotary

Banana Field

The banana field needs a little bit of work:

Print the solid interface and place one banana holder for each word.

Place the bananas connector on the Modulino Base, and solder 4 cable for the banana connector that matches the words: OPEN , SOURCE , IS , LOVE.

Then connect OPEN and IS to the digital pins 11 and 12. Then connect SOURCE and LOVE to the digital pins 2, 3.

Upload the code: https://github.com/giulio93/RiddleTreasure/tree/main/Fuzzy_Letters

Password Pad & Servo Lock

Let's build the last part, the servo lock.

Connect the Modulino Buttons and Buzzer, to the Arduino UNO R4 WiFi using the Qwicc connectors.

Use jumpers to connect TX,RX, GND, 5V, and digital pin 9 to the bread board on the back of the platform.

Let's create the motor connection for our servo lock: connect 3 more jumpers to the bread board taking signal from the 9 pin, GND e 5V.

Servo Lock

Assemble the servo with the 3d printed parts:

  1. Start from the motor lock
  2. Mount the motor holder with screws

Let's take the plastic box and take out the original key lock: there is just one screw that allows you to take out the whole lock.

Align the motor to the lock so the box is closed, use the screw in the outer part of the motor holder to align the servo lock.

Upload the code: https://github.com/giulio93/RiddleTreasure/tree/main/Safe_Key_pad

Wiring up all the Arduinos

Each Arduino UNO needs to communicate with the following one, creating a big state machine!

So the Rotary and Timer part will communicate via serial to the Banana Field that is again connected via Serial to the Password & Servo Lock part, that communicate back to the Rotary and Timer, closing the circuit.

This is quite simple yet optimal communication protocol in Arduino. We use TX and RX at the end of each Arduino board, software define as Serial1. In order to communicate each Arduino board needs to share the GND.

So i've actually use a bread board on the back of each panel, in order to tidy up and easily reach the TX,RX and GND of each Arduino board, than i wire up each board to the other using long jumpers connecting each bread board.

Interactive Escape Rooms: The Riddle Treasure Box

The Riddle Treasure Box is pure Dungeons-and-Dragons style puzzle design. It utilizes hidden sensors and arrays to track a "secret code" that takes the form of a physical action, like turning knobs to exact angles or pressing piano keys in a specific melody.

The Passcode Array Engine

Let's assume the lock requires sliding three potentiometers to exactly 10, 50, and 90.

  1. The Reading Phase: The Arduino constantly reads analogRead(A0) / A1 / A2.
  2. It maps the 1024 values to a tight 0-100 scale using map().
  3. The Validation Loop:
    if ((val1 > 8 && val1 < 12) && (val2 > 48 && val2 < 52) && (val3 > 88 && val3 < 92)) {
      UnlockSequence();
    }
    
    Note: You must give the user a 'margin of error' (+/- 2 on the slider).

Actuating the Latch

When the UnlockSequence() runs, the physical lid must pop open.

  • The Arduino commands a 5V relay.
  • The relay fires 12V into an Electric Solenoid Lock, physically pulling a heavy metal deadbolt plunger back against a strong spring for 3 seconds.
  • The lid, being spring-loaded, suddenly snaps open revealing the treasure!

Crucial Escape Room Hardware

  • Arduino Nano: Easily hidden inside the wood chassis.
  • 12V Solenoid Cabinet Lock.
  • 5V Relay Module.
  • Input Methods: Potentiometers, RFID MFRC522 scanners, or capacitive touch plates disguised as brass bolts on the outside of the box!
  • A beautifully stained wooden treasure chest.

ข้อมูล Frontmatter ดั้งเดิม

apps:
  - "1x Arduino IDE"
author: "Pilotz"
category: "Gadgets, Games & Toys"
components:
  - "1x Micro Servo Metal Gear 90 9G"
  - "1x Termostat cover with lock"
  - "1x Banana Jack Connector"
  - "1x Friend with a 3D printer"
  - "3x Arduino Plug and Make Kit"
  - "3x Mini Breadboard"
description: "Complete three steps to unlock the safe! \nRotate the encoder until all LEDs turn green, find the correct cable combination that makes the UNO LED matrix smile 😀 use the password that appears and the door will open!"
difficulty: "Intermediate"
documentationLinks: []
downloadableFiles:
  - "https://github.com/giulio93/RiddleTreasure"
encryptedPayload: "U2FsdGVkX18gWIfN8frtUsPBfecOgwug+rWnIg05zF7s7eascBwmKhFNXaMePctiaUoMrtWJTkua+nB2q2EyjDfGEvGFACsLQP31Flf6ibg="
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/riddle-treasure-6ec952_cover.jpg"
lang: "en"
likes: 1
passwordHash: "04db151965967599c2424d1dd40f0afb5d8cc02042a6319f7f1fc011a38106ff"
price: 699
seoDescription: "Unlock the Riddle Treasure! Use Arduino, rotate the encoder, and wire the UNO LED matrix to find the password and unlock the safe door."
tags:
  - "Games"
title: "Riddle Treasure"
tools: []
videoLinks: []
views: 2207