The Colour Game (with Speaker and LCD Screen)

Introduction: The Colour Game (with Speaker and LCD Screen)

Hi everyone! We are Esmée and Roos. For a project at school we had to develop a electronic divice using Aruino, Rasberry Pi or MicroBit. We chose to use an Arduino. With an arduino, you can create many things. From a robot to a metal detector, it is all possible. Arduino is easy and fun to work with. In this instructable, you will learn how to make the game: 'The Colour Game'. The game includes a speaker (with a song!) and a LCD screen (where you are able to see your score). This game is fun to play and can be used in several ways. For instance, the game can be used as a dice. So gather the needed materials and let's start!


Step 1: Supplies

To make this 'Simon Says' game you need the following supplies:

- an arduino uno

- push buttons 6x

- four different collors of LED lights (we used: blue, yellow, red and green)

- a red LED light

- a green LED light

- a speaker (you can use a buzzer too)

- (a bunch of) jumper wires (male-male + female-male)

- a LCD screen 16 x 2 with backpack

- breadboard 400 points 2x

- a mini breadboard 170 points

- resistor 220 Ohm 7x

Step 2: Optional Elements

This 'Colour Game' includes a lot of extra elements. These elements make the game more fun (at least, that's our opinion). With these elements we mean:

- a speaker

- a LCD screen

- a reset button

These elements are optional, so you don't have to install them on your Arduino game. If you don't own these additional supplies at home (or wherever you at), you can still make this game. Nice right?!

For the people who are doubting if they want the optional elements on their game, we'll explain what each optional element does. As a result, you can decide whether you want that element in your game or not.

The speaker: This is what will happen if you add the speaker on your game. In the game there are four different colours of LEDs. These all have their own tone. Each time you push a button or a led lights up, you will hear a tone. This will make the game easier to play, since you can also remember the order of the sounds and not only the order of the colours. When you press the buttons in the right order you will hear a tone. If you make a mistake, you'll go game over. Then, the speaker will play a song (the Pink Panter Theme Song). Well, I think that we've convinced you to add the speaker to your game. I mean, who doesn't want a nice little song?!

The LCD screen: The LCD screen is pretty handy to add to your game. On the screen you'll see your score during the game. After you went game over, you'll see game over on the screen and your score. That could be useful if you've forgotten your score while having a match with someone about 'Who'll score the highest?'

The reset button: This button is a little extra something. When this button is pressed the game will reset. If you don't add this button you will have to push the red reset button on the Arduino itself in order to reset the game. That's why this is probably the least important extra element.

Step 3: The Setup

To build this game, you just have to copy the setup on the picture. (If you want, you can of course leave out the optional elements). The LCD screen has to be connected as shown in the pictures with four male-female jumping wires. Before connecting the wires, you have to place a backpack on the LCD screen.

We also recommend to take a look at button and LED definitions in the code to make sure you connected the wires correctly.

Step 4: The Code

You can upload this code to your Arduino. Then your game will work!

Step 5: How the Game Works

The "Colour Game" game is very easy to play. These are the steps you must follow to play te game correctly:

Step 1: Make sure your Arduino is connected to a power source (A computer for instance)

Step 2: Press the start button

Step 3: A LED sequence will play

Step 4: Push the buttons in the order of the LEDs going on. When the sequence of the LEDs is red - red - green, you'll have to press the button closest to the red LED twice and the botton closest to the green LED once.

Step 5: - If you pressed the buttons in the right order the same LED sequence will be played but with one more LED going on. You will go back to step 3.

- If you made a mistake you'll be Game Over. You are able see your score (write it down to remember it to play "Who get's the highest score", to show off your talent or to be able to condition your high score).

Step 6: Press the reset button on the Arduino or on your beadboard.

Step 7: Back to step 2!

Have fun playing the game!

Be the First to Share


    • Lamps Challenge

      Lamps Challenge
    • Rice & Grains Challenge

      Rice & Grains Challenge
    • Puzzles Challenge

      Puzzles Challenge