Truck Lane - a 16x2 LCD Arduino Game





Introduction: Truck Lane - a 16x2 LCD Arduino Game

I was fooling around with the createChar() function to create cars.
How Sinclair ZX Spectrum :) Cars are small, so it's better to view them in full screen mode.
I'm using an Electronic Brick display (long story), but any Hitachi HD44780 compatible would do.



    • Epilog Challenge 9

      Epilog Challenge 9
    • Paper Contest 2018

      Paper Contest 2018
    • Science of Cooking

      Science of Cooking

    We have a be nice policy.
    Please be positive and constructive.




    hi, there. It's such an interesting game. Would you mind if I add it to my tutorial as an example?


    If what you're doing is not commercial, all you need to do is give me credit by linking here and to the license. If it's commercial - I'd like to know more ;)

    Anyway, note that "Truck Lane" is not a full instructable (e.g. there are no schematics). Perhaps Ariadne and/or Marble Disorder are more suitable for a tutorial.

    Once your tutorial is ready, please send me a link.

    All the best,

    The Dod.

    It was so cool!

    It was so cool!

    It was so cool!

    Great Arduino game. Oh I connected a 10k potentiometer to A1 and my 16x2 display is connected to my uno using IIC/I2C/TWI/SPI Serial Interface on pin 4 and 5. Works great. Beside resetting the unit, how to restart game.

    you need to do these changes to use the serial interface


    #include <LiquidCrystal.h>

    LiquidCrystal lcd(2, 3, 4, 5, 6, 7, 8);


    #include <Wire.h>
    #include <LiquidCrystal_I2C.h> //need to downed if you don't have it

    LiquidCrystal_I2C lcd(0x27,16,2);


    const int POTPIN = 1;


    const int POTPIN = A1;

    in void setup()


    lcd.init(); // initialize the lcd
    lcd.backlight(); //add this if you want backlight

    in all I used 8 wires for this game. I not sure can I use a 0.5 watt 8 ohm speaker for a Piezo speaker so I left that out.

    Works great

    What other pin setups can use. I have a joy stick sheild by sparkfun. and it needs a lot of pins. I have 13 to 7 open and A2 to A5 open. I cant seem to make it run the program, I changed "LiquidCrystal lcd(12, 11, 5, 4, 3, 2);"to" LiquidCrystal lcd(12,11,10,9,8,7). any ideas??

    The type of lcd display does not really matter does it?

    Can you provide the circuit diagram pleaase???