Introduction: Rainbowduino Snake Game

Picture of Rainbowduino Snake Game
Did you miss the games we used to play when we were little kids? 
The Snake Game is one of the games that remind us of our sweet childhood.  Want to relive the joy of this game?
We built a snake game with rainbowduino. Here is the finished project we made:


Now let’s make a snake game console together.
First of all, you need following materials:

1. Rainbowduino LED Driver Platform
2. 60mm Square 8*8 LED Matrix - Super Bright RGB
3. Thumb Joystick
4. Grove Cables
5. Jumper Wires

They are shown in the same sequencing from #2 pic to #6 pic of this step.

Step 1: Software Upload

Picture of Software Upload

Download the library from Rainbowduino wiki page and decompress it to the library of Arduino IDE1.0
       ..\arduino-1.0-rc2\libraries
Open the required sketch via this path: File --> Examples --> SnakeGame --> Withjoystick.
Rainbowduino features an Atmega328 chip onboard, so choose Atmega328 in the pull-down menu of Tools --> Board and its corresponding serial port. Now upload the program to Rainbowduino.

Step 2: Hardware Hook-up

Picture of Hardware Hook-up

Mount the 8x8 LED matrix onto Rainbowduino.
Their footprints are compatible, so it's effortless to connect them.
Then connect the joystick to the board. 
The joystick we use is a Grove element and have four pins. 
Put the joystick ahead of you like pic 2.
From left to right, these pins should go to A0, A1, VCC and GND on Rainbowduino.
Till now, the hardware part is already finished.

No steps more required. Enjoy the game now~

Comments

fireball1234 (author)2014-04-22

First arduino here, so sorry if this an easy question....

So, I was able to upload the program to the rainbowduino. Is there something I need to start the program?

vigoss (author)fireball12342014-04-22

when up finish uploading the program to rainbowduini, it'll start at notime. there's not any button or something else to start it. do you meet some problem?

supermind (author)2013-10-09

What software do I have to use to program the Rainbowduino snake game?

hiduino (author)2012-09-25

I also tried the snake game with my Rainbowduino v3.0 and 8x8 RGB Matrix. I am getting a compiler error.

WithJoystick.cpp: In function 'void loop()':
WithJoystick:52: error: 'Flag_20ms' was not declared in this scope
WithJoystick:57: error: 'Flag_300ms' was not declared in this scope

Am I missing a library?

hiduino (author)hiduino2012-09-25

Okay, I guess I had the wrong Rainbowduino library. The Snake Game includes an updated Rainbowduino library which adds some support for the Snake Game.

Adlab (author)2012-08-24

I'm a bit confused as to where to put SnakeGame downloaded folder. My rainbowduino library is working fine (with the packaged examples) in Arduino\libraries.

I've tried to put the SnakeGame folder in my libraries, sketchbook and examples folder but they all cause errors.

ChuFrank (author)Adlab2012-08-26

Hi, could you please tell me what kind of errors did it occur?

- Frank

About This Instructable

8,133views

30favorites

License:

More by seeedstudio:A Primitive USB Solar Charger That Costs You Less Than 5 minsSea Fun - A Live Paper Toy By Basic Electronic ModulesIR Remote Agent
Add instructable to: