This guide will teach you how to build and program your own accelerometer controlled maze game. It does assume a basic knowledge of soldering, breadboards, and programming in Arduino. by the end of this guide you should be able to make your own maze by editing the code and then solve it by tilting your game to move the ball. The program itself is fairly complicated but fully commented and the main components of it are described in this guide.
Projects from Make: Magazine
Labyrinth Video Game
Program a tilt-controlled maze game on an Arduino using an LCD and an accelerometer
- Like
- Digg
- Del
- Tumblr
- VKontakte
- Flattr
- Buffer
- Love This
- Odnoklassniki
- Meneame
- Blogger
- Amazon
- Yahoo Mail
- Gmail
- AOL
- Newsvine
- HackerNews
- Evernote
- MySpace
- Mail.ru
- Viadeo
- Line
- Comments
- Yummly
- SMS
- Viber
- Telegram
- Subscribe
- Skype
- Facebook Messenger
- Kakao
- LiveJournal
- Yammer
- Edgar
- Fintel
- Mix
- Instapaper
- Copy Link
Steps
Advertisement
Step #1: Assembling Your Game
- Create your breadboard-arduino setup
- Cut a piece of cardboard or pre-holed 1/8" MDF that is 3" x 4"
- Cut two 2" long strips of foam tape and put one on each corner of the bottom of your breadboard. Press your breadboard on to one side of the cardboard/MDF rectangle as shown.
- Do the same for your Arduino or thread two or three 1/4-20 screws and corresponding nuts through your pre-holed board (or poke holes in your cardboard using a pencil or similar) and the mounting holes on the Arduino
- Solder the header pins on to your Nokia LCD screen. A step by step guide can be found here: http://ladyada.net/products/nokia5110/
- Take a strip of masking tape (approximately 4") and wrap it into a loop with the sticky side facing out. Place the loop against the back of your screen and then replace it on your board. Make sure the screen is as far to the left as possible.