Home Creators Posts Import Register Favorites Logout

Content

Here in the UK it's been King Charles III coronation-crazy for the last few months, and seeing all that royal regalia gave me an idea for escape room puzzle about shiny jewels set in a crown. But how do you tell whether the gemstones have been set in the right place? You can hardly attach a magnet or insert an RFID tag into a semi-transparent jewel, can you?!

No problem - this puzzle will demonstrate how to create a puzzle using multiple colour sensors to identify the difference between various coloured gems. Of course, this method will work to differentiate between _any_ coloured item, not just gems, so there are many possible applications. I'll go into some detail to explain some of the considerations behind things like ambient lighting in the room, whether your objects are translucent or opaque, and also the technical aspect of how to connect several identical colour sensors that all use the same I2C address to a single Arduino/ESP32 (tl:dr; use an I2C multiplexer!) so that you can add colour sensors as another potential method of detecting player input to add to your toolbox of game design tech.

I'll be uploading another post shortly with the Patreons-only resources. In the meantime, please enjoy, and do ask any questions!

Files

"Crown Jewels" Escape Room Puzzle Tutorial using Multiple Colour Sensors

Here's a tutorial video explaining how to build your own escape room puzzle that uses multiple color sensors to detect the placement of various coloured "gems". Each time a gem is correctly placed, a corresponding LED lights up the matching color. When all gems have been correctly placed, a relay is activated which releases a maglock. It uses an ESP32 (although an Arduino, or any other microprocessor, will work just as well), a TCA9648A I2C Multiplexer, 5x TCS34725 colour sensors, PL9823 programmable LEDs, a relay module, and an electromagnetic lock. Full wiring and coding is illustrated in the video. If you'd like to download the accompanying resources for this video, and all the other escape room projects on this channel, please check out my Patreon at https://www.patreon.com/playfultech and, for more escape room tech tutorial videos, please like and subscribe! :) Timings 00:00:00 - 00:01:50 Introduction and Demonstration 00:01:51 - 00:03:54 Acrylic Gems 00:03:55 - 00:08:59 TCS34725 Color Sensors 00:09:00 - 00:09:33 PL9823 Programmable RGB LEDs 00:09:34 - 00:09:49 Relay and Maglock 00:09:50 - 00:12:29 TCA9548A I2C Multiplexer 00:12:30 - 00:19:05 Component Wiring 00:19:06 - 00:46:19 ESP32/Arduino Code Listing 00:46:20 - 00:47:56 Summary and Wrapup #escaperoom #arduino #esp32

Comments

Nick

Hello. I had a question for you, but I'm not sure how to send you a message.

Robert Thomson

Hello, Any idea why the serial print values would beSensor #0, ?, ?, ?, ? Sensor #1, ?, ?, ?, ? Sensor #2, ?, ?, ?, ? Sensor #3, ?, ?, ?, ? Sensor #0, ?, ?, ?, ?

Robert Thomson

I'm using an uno r3 so the the wiring is different as far as using sda scl near aref but otherwise the same.

Robert Thomson

C:\Users\thoms\Documents\MIND THRILL\BANK HEIST\Crown Jewels\CrownJewels\CrownJewels.inoJul 29 2023 Initialising sensor #0 OK! Initialising sensor #1 OK! Initialising sensor #2 OK! Initialising sensor #3 OK! Sensor #0, ?, ?, ?, ? Sensor #1, ?, ?, ?, ? Sensor #2, ?, ?, ?, ? Sensor #3, ?, ?, ?, ? 2,1,1,1 Sensor #0, ?, ?, ?, ? Sensor #1, ?, ?, ?, ? Sensor #2, ?, ?, ?, ? Sensor #3, ?, ?, ?, ?

Or

hi where can i see the code?