Button Clicking Game: With 6 Steps

Introduction: Button Clicking Game: With 6 Steps

This is a simple game which requires two players to compete to see who has the fastest finger speed!

Game Rules:

After connecting the Arduino board to the laptop, the green LED light at the middle will shine and the buzzer will ring for three times in different tones. After the buzzer stops, the two players should immediately press their buttons. The goal is to click the button as quick as possible until one of the red LED lights at the very left or right starts shining. (E.g. : Player 1 is clicking the left button, if the red LED light at the very left starts shining, player 1 wins the game.)

Credit to: https://www.instructables.com/id/Arduino-Two-Play...

Note: I added a buzzer for the countdown of each game to remind the players to prepare as well as adding excitement and building suspense. Therefore, when the USB cable inserts the Arduino board and the laptop, the buzzer will buzz for three times, which signifies the game has started.

Supplies

  • 1 Green LED Light
  • 4 Red LED Lights
  • 4 Yellow LEDs Lights
  • Around 20 wires
  • 2 Push-Buttons
  • 9 100 Ohm Resistors
  • 2 1K Ohm Resistors
  • 1 buzzer
  • 1 Arduino Leonardo Board
  • 1 Breadboard
  • 1 USB 2.0 Cable Type A/B

Step 1: Building the Circuit (Placing Wires)

1) Connect a wire from GND to the negative column on the right

2) Connect a wire from 5V to the positive column on the left

Step 2: Building the Circuit (Placing LED Lights & Resistors)

1) Place the LED lights with the sequence of " Red => Red => Yellow => Yellow => Green => Yellow => Yellow => Red => Red" (from left to right) *Make sure the longer side of the LED light is placed on the left

2) Place the 100 Ohm Resistors

- One end should be placed on top of the left leg of the LED lights and the other end connects to the negative column

3) Place the wires

- One end should be placed on top of the right leg of the LED lights and the other end connects to the pins

Step 3: Building the Circuit (Buttons)

1) Place a button on each side of the breadboard

2) Place the 1K Ohm Resistors

- One end should be on top of the left leg of the button and the other end connects to the negative column

3) Place the wires

Left

- First wire: One end should be placed on top of the left leg of the button and the other end connects to the positive column

- Second wire: One end should be placed below the right leg of the button and the other end connects to pin 13

Right

- First wire: One end should be placed on top of the right leg of the button and the other end connects to the positive column

- Second wire: One end should be placed below the left leg of the button and the other end connects to pin 12

Step 4: Building the Circuit (Buzzer)

1) Connects the black wire to GND

2) Connects the red wire to pin 11

Step 5: Writing the Code

A single copy and paste from: https://create.arduino.cc/editor/sydneyyy_wang/52... and you will get the code!!!

Step 6: Final Result

I decorated my breadboard by placing it into a box. To show the LED lights, I poked holes on the cover and use the wires with alligator clips to clip the lights in order to place them into the holes. Therefore, all the untidy wires and resistors will be covered and only leave with several LED lights which make the game looks more attractive and likable.

Be the First to Share

    Recommendations

    • Fandom Contest

      Fandom Contest
    • Fruit and Veggies Speed Challenge

      Fruit and Veggies Speed Challenge
    • First Time Author Contest

      First Time Author Contest

    2 Comments

    0
    allen30619
    allen30619

    Question 7 months ago

    請問黑色的按鈕可以在哪裡找的到呢?

    0
    Elaina M
    Elaina M

    1 year ago

    Thanks for sharing your game - You should let the other author know you made a version of their project in the "I made it" section of their instructable. I'm sure they'd love to see this and hear your feedback if you did anything different :)