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:

Arduino

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.

Comments

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

http://rctractorguy.com/wp-content/uploads/2014/07/switch-array.png

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:

//lcd.print("UP");(...)"

and

"if (var == 142){

dir = 1;

//lcd.print("UP");

// lcd.setCursor(15,1);

//lcd.print(dir);

}(...)" 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

1,710views

13favorites

License:

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