Introduction: Rainbowduino Snake Game
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.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Software Upload
Download the library from Rainbowduino wiki page and decompress it to the library of Arduino IDE1.0
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
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~