Home Creators Posts Import Register Favorites Logout

Content

Hi folks!

This tutorial explains how you can use infrared devices together with an Arduino to create cool escape room puzzles and effects.

Infrared is a cheap, easy, and widespread technology - no doubt you already have many devices in your home with IR remote controls. Using a simple Arduino with an IR LED and an IR receiver, I'll show you how you can clone the behaviour of any of those devices and harness IR messaging to make a prop that reacts to any existing infrared controller, or learns and broadcasts an IR message which it then broadcasts to other devices. 

If you imagine a network of similar devices, all communicating with each other, invisibly and silently, I'm sure you can think of many fun applications in an escape room setting: from IR LED-tipped magic wands that trigger different effects around the room, to lanterns which light up/go out when in the presence of an IR beacon, or an IR "shooting gallery".

In this video, I describe two different projects to demonstrate these concepts, which could fit in two very different escape room themes - a TV channel changing puzzle, and some "Haunted" candles, though I hope to also explain the concepts that will enable you to extend these to many more ideas.

00:00 - 01:32 : Introduction and demonstration of IR LED transmission

01:33 - 03:57 : Visualisation of pattern detected by IR receiver

IR Project #1 - TV Channel Changer

03:58 - 07:14 : Introduction and Demonstration

07:15 - 09:13 : Components and Wiring

09:14 - 29:45 : Arduino Code

IR Project #2 - Magic Candles

29:46 - 31:56 : Introduction and Demonstration

34:57 - 40:42 : Components and Wiring

40:43 - 51:10 : Arduino Code

51:11 - 53:14 : Wrapup

Thankyou so much to all of you that support me to create these tutorials - I hope you find this one useful and informative, and gives you some ideas for new puzzles! As always, please ask if you have any questions (and, if I don't get back to you, please nag me!), and I'll be creating a separate post shortly containing the code listings, wiring diagrams, and list of materials I used. Thanks!

Files

Escape Room fun with Infrared and Arduino

This tutorial explains how you can use infrared devices together with an Arduino to create cool escape room puzzles and effects. Infrared is a cheap, easy, and widespread technology - no doubt you already have many devices in your home with IR remote controls. Using a simple Arduino with an IR LED and an IR receiver, I'll show you how you can clone the behaviour of any of those devices and harness IR messaging to make a prop that reacts to any existing infrared controller, or learns and broadcasts an IR message which it then broadcasts to other devices. If you imagine a network of similar devices, all communicating with each other, invisibly and silently, I'm sure you can think of many fun applications in an escape room setting: from IR LED-tipped magic wands that trigger different effects around the room, to lanterns which light up/go out when in the presence of an IR beacon, or an IR "shooting gallery". In this video, I describe two different projects to demonstrate these concepts, which could fit in two very different escape room themes - a TV channel changing puzzle, and some "Haunted" candles, though I hope to also explain the concepts that will enable you to extend these to many more ideas. 00:00 - 01:32 : Introduction and demonstration of IR LED transmission 01:33 - 03:57 : Visualisation of pattern detected by IR receiver IR Project #1 - TV Channel Changer 03:58 - 07:14 : Introduction and Demonstration 07:15 - 09:13 : Components and Wiring 09:14 - 29:45 : Arduino Code IR Project #2 - Magic Candles 29:46 - 31:56 : Introduction and Demonstration 34:57 - 40:42 : Components and Wiring 40:43 - 51:10 : Arduino Code 51:11 - 53:14 : Wrapup This tutorial has been created with the generous support of my lovely Patreons. If you'd like to download the code listings, wiring diagrams, or list of materials I used in this video, please head over to my Patreon page where you can find the resources to accompany this and all my other ER tech projects: https://www.patreon.com/playfultech

Comments

JR Booker

What is the multiple power supply strip you are using for the candles demo (cut off in the video).

JR Booker

Thanks for replying, sorry I meant in the video where you talk about the setup for the candle demo. On the board in the background both nanos look to be going into one mini C USB hub and then that goes into a 5v power supply?

Paul Flinders

: (⸮ ⸮⸮(VL⸮⸮⸮(RF⸮0!% M

Paul Flinders

Sorry - had a go at another puzzel, using an IR sensor and IR remote within a elegoo set, but when I load your code and use these items I get the above on the serial monitor when I press a button.

Paul Flinders

How do I set the constants in code when using a new remote.

Euan Hair

Hi Alastair, I keep getting the following error each time I try to run any of your code. "USECPERTICK" was not declared in this scope. Do you have a solution for this?

Euan Hair

That’s done the trick! Thanks Alastair!

David Bodsworth

Hi Alastair, I'm trying to setup a simple arduino to act as a remote control for a mini projector so I can play/pause it via node-red and mqtt. I don't seem to be able to get any output from the IR LED though. My mqtt messages are being read and acted on ok, but the irsend commands don't seem to be doing anything. I've tried a couple of different LEDs to rule out a faulty LED and have also tried loading your example candles code as it is without changing anything, but neither seem to give any output the the LED (as far as I can tell by looking at it through the phone camera). Any ideas on what else I can check?

Tomas Storås

I received my IR receiver (TL1838) today, so wanted to test out this project. I uploaded the irAnalyzer script to my Arduino Uno. Changed the Baud rate to 115200. Pressed a button on my TV remote control and the Uno successfully received the signal, hooray! After that I uploaded the script TVChannelChanger. I received multiple error messages, which made me a bit worried at first: ( warning: invalid conversion from 'const unsigned int*' to 'const int*' ). However they turned out to not cause any problems with the functionality. I mapped my remote's buttons and managed to solve the puzzle sequence. It was fun to see that it worked!

Tomas Storås

Hi Alastair! I have now received a maglock and 5v relay. In the schematics the red wire going from the relay is split going to both the IR module and to the arduino board. What is this suppose to look like in real life and how can this be achieved?

Danny Gavord

Is it possible to string multiple infrared lights together? It would save having to have a separate board for each led light.