Make Game With Rainbowduino

by Seeed Studio in Circuits > Arduino

19527 Views, 112 Favorites, 0 Comments

Make Game With Rainbowduino

0.png
4.png
Do you remember the Snake game? It's very simple, but funny.

We build a snake game with Rainbowduino, LED Matrix and 3-axis Accelerometer. It's controlled by gravity.

Preparing Stuffs

6.png
We need:

1. Rainbowduino

2. 60mm square 8*8 LED Matrix

3. Grove - 3-axis Accelerometer

4. Power

5. Shell

All components you can find here.

Test Rainbowduino and LED Matrix

12.png
11.png
10.png
Now, all the component was ready, so we can test the LED Matrix with Rainbowduino.

All light is RGB LED. So, We can test the LED Matrix with different color.

You can get example in Rainbowduino library. Just test it.

Solder 3-axis Accelerometer to Rainbowduino

8.png
In order to make it smaller, we need to get a 3-axis acceleration sensor integrated onto the Rainbowduino.

A very simple way to integrate is to solder them together directly.

You can see the entire soldering process from this video.

Programming

p.jpg
All the source code you can find in Github.

The game development with Arduino, so you must get the Arduino IDE first.

And then, you should copy the Rainbowduino library to arduino library directory.

Finally, open the Snake Game arduino sketch (named WithJoystick.ino), and upload source code to Rainbowduino.

Shell

9.png
13.png
5.png
With the purpose of a cool appearance, we made two shells for it. One is a 3D printed
white shell that looks like a 1990s computer monitor.The other is woven of knitting wool and PP plastic.

Of course, if you have a better idea, you can make one by yourself. Sometimes,
even a folded paper tray is ok to be a shell.

Assemby

2.png
Ok, now, the final step is to assemble the modules together, such as the shell, Rainbowduino and so on.