Home Creators Posts Import Register Favorites Logout

Content

Shhhhhh! Here's a link to the super-secret patreons only resources to accompany the "Connections" puzzle tutorial.

As always, I suggest you download the entire folder to your local PC and extract it there. You will find the wiring diagram and Fritzing project, the ESP32 code (in the "ConnectionsWall" subfolder), and a schematic for the PCB I had manufactured - though you can always just use wire the components using regular 2.54mm connectors if you prefer.

https://drive.google.com/drive/folders/1eroMQ0AjlpZWHDk_gpU-Ct0_SFIJHBBs?usp=sharing

The components I'm using are:

ESP32 + Expansion Board https://www.aliexpress.com/item/1005004337178335.html

4x 74HC4067 Multiplexers https://www.aliexpress.com/item/1005007211255226.html

16x MFCR522 RFID readers https://www.aliexpress.com/item/1005006135685360.html

WS2812B LED Strip https://www.aliexpress.com/item/1005004289391906.html

RJ45 connectors https://www.aliexpress.com/item/4000233396227.html

RJ45 breakout boards https://www.aliexpress.com/item/1005006242267749.html

5V relay modules https://www.aliexpress.com/item/1005007109343076.html

Please ask if any questions!

Comments

Pue Gonzales

Hi. Very nice tutorial! I am always running into the problems with readers on the other tutorial. Sometimes it reads sometimes no.... Anyways, were did you make this board and what is the cost? Thanks a mill, Paul

Alastair Aitchison

It was manufactured by JLCPCB. It cost $9 for 5 boards. (+ an additional $5 for shipping)

Pue Gonzales

Not bad at all. Though it would be more expensive. Coild you share those files in resources section pls? Also any chance you could snap a pic of your RJ45 connection? Somehow I think you have it nicely done there. For me it is always a hassle to solder them....

Ian Campbell

Another great tutorial. About one year ago I held an "Adventure Weekend" that was part escape room, part treasure hunt and part theatrical production. It took my family of adventures about 18 hours to complete over the course of the weekend. I had variations on some of your previous tutorials; rotary phone, midi keyboard, patch cord panel to name a few. I used Home Assistant to control various lights and outlets in the house to respond to puzzles being solved. I also had a variation of the popular "Simon" game where players had to solve the pattern by pulling ropes in trees that were connected to switches. Later I expanded that to have 8 smart bulbs in the kitchen ceiling controlled by magnetic switches behind the kitchen cabinets. Players and to solve the "Simon" puzzle by opening the kitchen cabinets in the right order while Home Assistant controlled the bulb colors. I am changing it up one more time where participants will be given an ID card they must wear. The RFID card will be read by a reader as they walk through an arch way into the kitchen. Each RFID card will be a color in the Simon pattern. Teams will have to get everyone to go through the doorway in the right order to solve it. I like the idea of the Connections, puzzle. It will work into my latest family game nicely. I do have some interest in your PCB designs, or purchasing on from you. Keep up the great work, and have fun! Ian

Craig Major

Hi everyone, has anyone build this project and got it to work? I was really excited to build it as I love the connections puzzle and wanted to build something more tactile for my child to interact with. I spent a good deal of time building the electronics which I duplicated Alistairs and I'm really happy with the result. Unfortunately, I can not get the the software script to upload. I get a compiling error, I'm no programmer and my method of programming is asking chatGPT to do it for me, which I have to say I have had good success with but has been no help in resolving this issues. I'm getting this:- ----------------------------------------------c:\Users\Craig\Documents\Arduino\libraries\MFRC522\src\MFRC522Extended.cpp: In member function 'MFRC522::StatusCode MFRC522Extended::TCL_Transceive(TagInfo*, byte*, byte, byte*, byte*)': c:\Users\Craig\Documents\Arduino\libraries\MFRC522\src\MFRC522Extended.cpp:824:34: error: ordered comparison of pointer with integer zero ('byte*' {aka 'unsigned char*'} and 'int') 824 | if (backData && (backLen > 0)) { | ~~~~~~~~^~~ c:\Users\Craig\Documents\Arduino\libraries\MFRC522\src\MFRC522Extended.cpp:847:42: error: ordered comparison of pointer with integer zero ('byte*' {aka 'unsigned char*'} and 'int') 847 | if (backData && (backLen > 0)) { | ~~~~~~~~^~~ exit status 1 Compilation error: exit status 1 ------------------------------------------------- It means very little to me. I've tried including the MFRC522Extended library and tried the MRC522v2. Any help would be greatly appreciated

Craig Major

Hi Alastair, thanks for replying. That is the one that I am using. It shows in the library manager as MFRC522 by GithubCommunity 1.4.11 installed. I've tried all the versions from 1.3.6 all the through to 1.4.11 with no success.

Craig Major

Hi Alastair, I've just noticed that you wired in the RST for the RFID reader pin which you didn't do on the youtube video. Is this now required?

Alastair Aitchison

That's the correct library. Are you using the .ino file from the download exactly as-is? That shouldn't cause any compilation errors. What target platform do you have specified?

Alastair Aitchison

I connected the reset pin as it's sometimes useful to be able to remotely reset all readers but no, it's not required.

Craig Major

Yes, ino file is exact from download. This is the board I am using: ESP32 WROOM-32 Development Board Nodemcu ESP32 TYPE-C CH340C ESP32-S Arduino IDE 2.3.4 And I've been writing to ESP32-WROOM-DA Module and running other programs OK. I've also tried NodeMCU-32S and DOIT ESP32 DEVKIT V1, all flag the same compilation error. I wrote a quick and dirty, read and display: -------------------------------------------------- #include #include #define SS_PIN 5 #define RST_PIN 0 MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance. void setup() { Serial.begin(9600); // Initialize serial communication SPI.begin(); // Initialize SPI bus mfrc522.PCD_Init(); // Initialize MFRC522 Serial.println("RFID Reader/Writer ready!"); } void loop() { // Check if a new card is present on the reader if (mfrc522.PICC_IsNewCardPresent()) { // Select the newly found card if (mfrc522.PICC_ReadCardSerial()) { // Dump the RFID UID to the serial monitor Serial.print("RFID Card UID: "); for (byte i = 0; i < mfrc522.uid.size; i++) { Serial.print(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "); Serial.print(mfrc522.uid.uidByte[i], HEX); } Serial.println(); // Halt the PICC mfrc522.PICC_HaltA(); } } } ----------------------------------------------- and this threw the same error too. I tried downgrading the IDE to match what you were using 2.2.1 but no luck there. I threw the error at AI and this is what it came back with.... Understanding the Error: The error you're encountering is a common type-mismatch issue in C++. You're trying to compare a pointer (backData) to an integer value (0). This is not allowed in C++. Resolving the Issue: To fix this, you need to check if the pointer itself is null, rather than comparing it to 0. Here's the corrected code snippet: if (backData != nullptr && backLen > 0) { // ... } Explanation: backData != nullptr: This checks if the backData pointer is pointing to a valid memory location. backLen > 0: This ensures that the expected length of the data is greater than zero. Complete Corrected Code Snippet: MFRC522::StatusCode MFRC522Extended::TCL_Transceive(TagInfo* tagInfo, byte* sendData, byte sendLen, byte* backData, byte* backLen) { // ... if (backData != nullptr && backLen > 0) { // ... } // ... } --------------------------------------------------------------------- A friend of mine came up with the solution. in the MFRC522Extended.cpp I had to change BACKLEN to *BACKLEN in line 824 and 847 and now it uploadeds.....just need to sort out the... Initialising Reader 0:Firmware Version: 0x0 = (unknown) WARNING: Communication failure, is the MFRC522 properly connected? a problem for tomorrow (I'm in Australia) Thanks Alastair

Craig Major

Phew, on the RST..... I would have hated to have to rewire this sucker. I'm going to try making a PCB for this puzzle if I can get it working

David Roque

Hey Just wondering if you ever shared the file for the PCB?

Scott Smith

There is a pdf file on the Patreon site. I'm guessing it needs to be converted to a gerber file first. I am not sure if the components are included in the pdf file or, basically, if the pdf is all the manufacturers would need. I've never used one before. Worst case scenario, one could learn how to make PCBs (pretty sure AA has a video on Playful Tech). Shouldn't be too hard, as the main purpose of this PCB is to make it so the pins of the RJ45 connect to the PCB. The PCB then uses the copper traces in multiple layers to connect the matching wires from the multiple ethernet patch cables to each other (avoiding the rat's nest of wiring we all fear). You'd need some physical interface between the PCB and the four multiplexers, and then run connections/traces from the multiplexers to the edge of the PCB. At that edge of the PCB you'd need to have pinouts so that you could physically run wires from your PCB to the ESP32 or whatever microcontroller you're using. Alastair, if you're reading this, is your pdf all we would need?