Sketch of the Arduino – LCD video game “Voitures”

This is simply an update of a previous post I wrote about a simple car game I made for a 16×2 LCD screen connected to a Arduino Uno. It is called “Voitures” “Vroum!” (total lack of imagination today now that’s much better).

It uses pins 12, 11, 6, 5 and 4 to connect the LCD.
It uses the LiquidCrystal library for Arduino :
http://arduino.cc/en/Reference/LiquidCrystal

Note that this codes was written for an ad-hoc pad of 10 buttons connected to the board. Only two simple push buttons are required to control the game. I don’t change the code due to lack of time, but you’ll simply have to remove the “detect()” function, and adapt the code in the “initial()” function and at the beginning of the main loop (using a simple digitalRead()).

Read this page if you have trouble wiring your buttons :
http://www.arduino.cc/en/Tutorial/Pushbutton

The only magic there is to this game lies in the use of the extra memory for custom characters available in the LCD screen (a maximum of 8 characters can be created) :
http://arduino.cc/en/Reference/LiquidCrystalCreateChar

Here’s a video of the game :

You can download the Arduino sketch here.

Fasten your seatbelt and have fun.

This entry was posted in Music, video, extra and tagged , , , , . Bookmark the permalink.

5 Responses to Sketch of the Arduino – LCD video game “Voitures”

  1. Dongha says:

    Do you have the wiring diagram?
    I would like to try your game,but I couldn’t wire the circuits

  2. Dongha says:

    Ok. Thanks.

  3. ankur says:

    Hi,

    Can I reuse your code? IS it open source?

    Thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s