Introduction: Mini Arduino Game

Picture of Mini Arduino Game

In an Contest with my Cousin I have made an Game with only 2 things that you need so have fun.

Btw my nativ language is German so please correct me in the comments :D

Step 1: Parts List

Picture of Parts List

You will need an Arduino( I used an arduino uno)

also an PC

and an Sainsmart Lcd keypad shield (or simular)

Her the links for the Items:


Keypad shield

Step 2: The Code

Picture of The Code

There is the code have fun with it but please comment me if you use it on an other platform/instructable

Step 3: Controls

Picture of Controls

You can only walk with the right, up and down buttons.

The letters there are viewed in the left upper corner are not milliseconds only a counter that can play with friends.


germap (author)2016-01-29

Looks nice! Would you mind uploading a video showing game action?

m1hc10 (author)2016-01-02

Hi! How to do this without keypad shield? I try to do it like image, but isn't work. Thanks :D

space_pac (author)m1hc102016-01-02

Oh i think i have to correct this because you have to edit the code to you an self made keypad °~°

m1hc10 (author)space_pac2016-01-03

When i made my keypad i check adc values with AnalogInOutSerial in arduino libraries, and write my values on " //switch (var){

//case 142:



"if (var == 142){

dir = 1;


// lcd.setCursor(15,1);


}(...)" And it's don't work :E

space_pac (author)m1hc102016-01-03

Sorry but i dont understand the code

m1hc10 (author)space_pac2016-01-03

I change your values to my values e.g UP from 142 to 135, DOWN from 328 to 316 etc. and keys dont work :)

db9pz (author)2015-12-20

Schönes einfaches Spiel! Aber Dein letzter Satz kann leicht verkehrt interpretiert werden. Die "Zahlen" in der oberen linken Ecke sind keine Milli-Sekunden, sondern nur da, um mit jemanden in einem Wettbewerb spielen zu können. (The numbers in the most left corner are not milli-seconds , they are only for playing in a competition with sombody else,...) Keine Kritik, nur eventuell besser zu verstehen. Werde Deinen Code mal runterladen, und an den Weihnachts-Feiertagen damit mal spielen! Ein schönes Fest, und einen guten Rutsch ins Jahr 2016, wünscht Dir und deinen Lieben, db9pz ; Markus

space_pac (author)db9pz2015-12-20

Danke für die Korrektur und ebenfalls ein schönes Fest und ein guten rutsch

About This Instructable




More by space_pac:How to make a Raspberry Eye Streamcloud video DownloadMini Arduino Game
Add instructable to: