Home Creators Posts Import Register Favorites Logout

Content

Hello, dear Patreons, I hope you're all well (and, if you're in one of the places in the world currently suffering from extreme heat, I hope you are keeping safe ❤️ )

I've just uploaded a new video tutorial for you all. I think many of you will be familiar with 5-bit binary code - it's commonly used in puzzle hunts and some escape rooms as a way of encoding letters in any set of 5 objects that can be in one of two states - on/off, up/down, black/white, 0/1, etc.  I've put a tech-spin on this by creating a reader that uses lasers to detect a pattern of 5 holes that have been punched in a wooden card, or disc. It's somewhat similar to old punch card systems that were used to input data into a computer back in the 1960s and 1970s.

To demonstrate how this works, I've focussed on displaying the resulting value on an LCD screen, and you certainly could use this exactly as-is, as a way for players to "translate" from a pattern of holes on a physical item into a letter or number code. However, you could also use this as an object identification system - similar to RFID - in which every item is uniquely identified by the pattern of holes that appear on it. When slotted into an appropriate reader, a set of 5 holes can be used to create 32 unique patterns, and, depending on the decoded value, you could trigger any output from the Arduino/ESP32 that reads it without needing the LCD display at all.

This is a very cheap project in terms of components - it's only about $10 in parts, although it does require a little soldering to connect together the LDRs and lasers. I'll be uploading a separate post shortly with links to download the Arduino/ESP code, together with the SVG file containing the design for the cards/disc and wiring diagram etc.

I hope you enjoy!

Files

Binary Card Reader

This video tutorial describes an #escaperoom project that uses an #ESP32 or #Arduino to decode a binary value encoded in holes punched on a card or disc. An array of lasers is placed in a line, each facing a light dependent resistor (LDR). If a hole punched in the card lines up with the laser, light passes through and illuminates the correponding LDR, causing its resistance to drop. Alternatively, if the card obstructs the laser beam, the resistance of the LDR remains high. The pattern of holes is read by a voltage divider circuit that takes a reading from an analog pin connected to each LDR in turn. This pattern can be decoded to represent a single number, or letter, or an entire message! You could use this prop in an escape room to provide a number card, or word, or simply as a method of object identification - using 5 lasers/LDRs means it it possible to differentiate between 32 unique patterns. Timings --- 00:00:00-00:03:32 Introduction and Demonstration 00:03:33-00:13:21 Wiring Diagram 00:13:22-00:13:29 Schematic 00:13:30-00:31:15 Arduino Code Listing 00:31:16-00:33:04 Wrapup I'll describe the wiring and every line of code in detail, and you are welcome to copy them from the video and use them in your own projects. Or, if you'd like to download the code, together with the file containing the design for the cards and disc, together with the resources to accompany all the other projects on this channel, please consider subscribing at https://www.patreon.com/playfultech

Comments

Tim Blackwell

I have tried to contact you several ways with out success. I and some others have questions about the Wire Buzzer post you made. What is the best way to ask you a question???

Jeff Keys

Really nice project Alastair - very well thought out and can be used in many places

Kent

Hey Alistair, Did you drop a link for the code or explain it somewhere else? Thanks - Kent