LASER Maze – Halloween Haunted House using arduino

The LASER Maze was our Processing and Arduino powered garage haunted house for 2011. A monitor sits outside of the garage, displaying “PRESS START.” After the button is pressed, an intro video plays that instructs you to dodge the lasers and get your candy in the back of the garage. Whenever you break a laser beam, an alarm sounds, a police light flashes, and a point is added to your score. When you make it back out, you press the stop button to see your final time and score.
LASER Maze
We kept all of the lasers very low to the ground to avoid everyone’s eyes. Future versions may turn the lasers off for a short time when they are broken for an added layer of safety.

We also made a couple of flashing signs out of red and white blinking bicycle lights. The house is at the end of a cul-de-sac, so we had to advertise to attract more attention.

Here is Alice in Wonderland with her pirate and gremlin friends navigating the maze.

Step 1: Parts List

The parts list:
a garage
a laptop
Arduino Duemilanove with USB cord
4 green Lasers ($7.54 each at Amazon)
4 CDS cells ($0.50 each at Electronic Goldmine)
4 1K resistors
3 push buttons (arcade style buttons)
1 breadboard
1 servo
1 surge protector with switch
1 red beacon light
1 1000W fog machine
phone cord long enough to run to your sensors (cheap at the thrift store)

You will also need electrical tape, cardboard TP tubes, soldering iron with soldier, velum paper or some other semi transparent paper, and possibly some other small items.

Step 2: Overview – How it all Works

he 4 green lasers are lined along one side of the garage, all wired in parallel to 3 D cell batteries. They are not connected to the Arduino in any way. On the opposite side of the garage, there are 4 CDS cells(Light Dependent Resisters) inside of cardboard tubes. The CDS cells detect the laser light, and the tube helps filter out other unwanted light from strobe lights.

The Arduino is programmed to watch the CDS cells, and the stop, start, and reset buttons. The Arduino sends 4 signals back to the Processing code on the laptop: start, stop, alarm, or reset. The Arduino also powers a servo that turns on a spinning red light when the alarm is set off.

The Processing code accepts the signals from the Arduino, and displays the state of the game on the monitor outside. The Processing code has 5 different states: PRESS START > Intro Video > 3, 2, 1, GO > Active Game (show time and score) > Display Final Score. The Processing code starts and stops the game, and increments the score as it receives the signals from the Arduino.

The music playing in the background is just shuffling on the computer, it is not connected to Processing or Arduino.

Step 3: The Floorplan

The garage was laid out so that guests would have to cross the laser beams as many times as possible. Only 4 laser pointers were used, but the trick-or-treaters had to dodge laser beams 16 times.

The yellow lines in the picture show where we built cardboard or caution tape walls. The caution tape made a clear path for people while still allowing the lasers to pass through to the sensors on the opposite wall.
LASER Maze
The air mask in the picture is an air compressor with a blower attachment pointing through the mouth of a skull mask. The blower handle was tied to a string and run through some pulleys so we could scare kids from a distance while they collected their candy.

Step 4: The Processing Code

The Processing code accepts 4 serial commands from the Arduino, and displays the state of the game on the monitor based on those commands. The basic flow of the program through the 5 states is:

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top