Home Creators Posts Import Register Favorites Logout

Content

Hi!

I think many folk who first learned to program on "Arduinos" (Nano, UNO, or Mega) have now migrated onto their more powerful cousin: the ESP32. I use them myself as the controller in most of my new ER builds, mainly because they're more powerful and have more storage space.

But, besides the simple performance increase, they also pack in a load of additional features, and in this project I'm going to try to demonstrate some of them, namely:

Dual Core processing (on certain models of ESP32!)

LittleFS file storage system

I2S audio interface

Built-in touch input

The project I'm using to demonstrate these features is a "Trace out the shape of a glyph between a set of nodes" puzzle (you know those, right?!) - appropriate for a wizard, hi-tech, or even ancient mystical themed room.

Now, if you still prefer to use an Arduino, you can still apply much of the logic of this project, but you'll have to replace the touch input (either with, e.g. an external CAP1188 sensor board, or a completely different sort of input like pushbuttons) and also use an alternative means to play the audio, such as a DYPlayer of DFPlayer Mini board.

Fair warning: it is a relatively complex project, but I've tried to explain the elements as best I can - please do ask if I didn't make anything clear. I've also commented the code thoroughly, and I'll be uploading that, together with wiring resource etc. for Patreons to download shortly.

Enjoy!

Files

LED Glyph Puzzle using ESP32

This project describes how to create an electronic escape room puzzle that demonstrates some of the more advanced features of the ESP32 microcontroller: - Parallel processing using a dual core processor - LittleFS file storage system - I2S audio interface - LED animations with fading and colour-changing - Touch input I'll be combining this functionality to design an electronic puzzle game where players need to trace a path between a set of nodes. If they connect the nodes to make a shape that matches one of the predefined magic glyphs, the ESP32 will activate an electronic relay switch and release magnetic lock - perfect for escape rooms! Timings --- 00:00:00 - 00:00:35 Introduction and Demonstration 00:00:36 - 00:02:35 Hardware Overview 00:02:36 - 00:04:20 I2S Audio 00:04:21 - 00:04:57 Dual Core Processing 00:04:58 - 00:05:31 Touch-enabled GPIO Inputs 00:05:32 - 00:06:19 Wiring 00:06:20 - 00:23:35 Arduino IDE Code Listing 00:23:35 - 00:24:45 Wrapup For more escape room-related tech projects, please check out my Patreon at https://www.patreon.com/playfultech, and do ask any comments or questions below!