Make your own simon says game with Arduino and biicode!

We’re glad to introduce this biiday project, take everyone in the family into building it and then have fun playing! Even the little ones enjoy this! simon says game arduino

Main Ingredients:

  • Arduino Uno
  • 1 Speaker (8 Ohm)
  • 8 HID leds
  • 5 buttons
  • 1 potentiometer (10kOhm)
  • Resistors to leds
  • Buttons

The potentiometer is used to control the volume, every button is associated to two leds connected to one pin except the button that starts / selects the game.

Let’s get down to work!

 Connect the Leds:
  •  Led 1
  Pin 10
  •  Led 2
  Pin 11
  •  Led 3
  Pin 12
  •  Led 4
  Pin 13
 Now, connect the buttons:
  •  Button 1
  Pin 19
  •  Button 2
  Pin 18
  •  Button 3
  Pin 17
  •  Button 4
  Pin 16
  •  Button 5
  Pin 14
And finally, the speaker
  •  Speaker
  Pin 6

Connect the buttons to the anti-debounce system following this Arduino tutorial How to debounce an input, debounce basically means that it checks twice to make sure the button is pressed. anti bounce arduino

The coding:

And that’s it!

Just a few tips left

 If you want to use debounce in a project, just write this line on the top of your main file, to reuse from the alopez’s user debounce block 

To play music, reuse from the Arduino tone Library in biicode by writing into your code this:

It also reuses from this library in biicode that creates a random secuence by including:

 Download biicode to start your own Simon Says game!

Stay tuned


Related Posts