Introduction: GYRO & VOICE ARDUIGAMES

This gaming box is made from Arduino Uno R3, LoLShield, MPU6050 and Microphone module.

With LoLShield, we can show a message/scrolling message or animation picture like: plasma effect, sinewave effect...

With MPU6050, we can read value from accelerometer and gyroscope to control movement for simple games like: Pong, Tetris, Invader...And we also make a scrolling message with scrolling speed base on accelerometer.

With microphone module & 3.5mm audio jack, we can use this game box as spectrum analyzer or sound meter.

For LoLShiled, I did it by myself. It is not easy for etching a double sided copper clad pcb board. You can refer to PCB design at: https://github.com/jprodgers/LoLshield & make one for yourself.

You can see LoLShield's video for first testing & spectrum analyzer testing:

Step 2: GAME BOX SCHEMATIC

The LoL Shield is a charlieplexing LED matrix for the Arduino and this design DOESN'T include current limiting resistors. The LEDs are individually addressable, so you can use it to display anything in a 9×14 grid. Scroll text, play games, display images, or anything else you want to do.

A4 & A5: connect to SDA & SCL pins of MPU6050. (Or we can use DS3231 - Real Time Clock - as optional).

Step 3: ADAPTER SHIELD

This adapter board is used for connecting between Arduino Uno and LoLShield. On the adapter board, we solder all components: button, switches, MPU6050, Microphone module KY-038, audio jack 3.5mm, resistors. At bottom side, we solder 2 row male headers connecting to Arduino & top side, we use 2 row female headers connecting to LoLShield.

For 1st version, I didn't use Microphone module so analog input pin was directly connected to audio jack. You can see some project pictures:

For 2nd version, I added Microphone module and 2 position toggle switch. So analog input A0 can be selected through toggle switch between audio jack or microphone module.

Step 4: GAME BOX

Steps below show how to build a game box (1st version).

Game box components

Make Arduino base:

Connect Adapter board to Arduino Uno:

Connect LoLShield to Adapter board:

Cover the game box:

Finish:

Step 5: GAME BOX - UPDATE

I covered the black silk on the led screen to reduce the glare (glared filter) when it was recorded by a camera. And I also added Microphone module and 2 position toggle switch at backside as explained before. So analog input A0 can be selected through toggle switch between audio jack or microphone module.

Step 8: PROGRAM EXPLANATION

Base on the program, I count number of pressing at push button to change games mode and animations mode. But for Tetris and Invader game, I have to start these games by using 3 postions toggle switch & use push button to fire on Invader/ rotate blocks on Tetris. We can also use Microphone Module to fire (Invader) / rotate blocks (Tetris) but it looks very weird & funny.

All animations & games mode are summarized in table below:

We can add more games or animations to program but take note value at: "buttonPushCounter % 17".