Introduction: Make Game With Rainbowduino

About: Howdy, we are application engineers in Seeed. Sharing projects with the maker community is awesome. Hope you like it XD Seeed is the IoT hardware enabler providing services that empower IoT developers to swift…
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.

Step 1: Preparing Stuffs

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.

Step 2: Test Rainbowduino and LED Matrix

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.

Step 3: Solder 3-axis Accelerometer to Rainbowduino

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.

Step 4: Programming

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.

Step 5: Shell

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.

Step 6: Assemby

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