Welcome to my project I made for HKU
It is a small led-based game where you need to push a button in order to score points.
Red gives you 10 points
Yellow 25 points
Green 100 points
Now let's get started with the project!
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Setup
We're going to start with your setup.
You are going to need the following items to make this project:
- Arduino uno
- 5 led lights (2 red, 2 yellow and 1 green)
- A button
- USB cable to connect the uno to your PC
- 14 cables total
- A small resistor (I used one with orange/brown/red/red)
Step 2: Setting Up the Program
If you haven't done it yet, you should download the arduino program on your PC.
You can then download the program I attached.
Plug the cable in to your PC and arduino and after setting up all the cables you can upload it in to the arduino.
Step 3: Building the Circuit
First we're going to make sure you get power from the arduino in to your breadboard.
- Put a cable in the top right corner in the minus ( - ), connect this cable to your arduino by putting it in GND.
- The next cable goes next to it in plus ( + ), then connecting it to the 5V (next to GND).
Now you should have power.
Next is the button.
- Put the button in over the gap.
- Then we're going to run 2 cables, one on the left side of the claw. This one stays in the breadboard and goes in to the plus ( + ) (green cable in picture).
- The second cable will go on the right side and then in to the arduino on digital pin 8 (red cable on picture).
- Since we're getting power we will also need a resistor. This one goes from minus ( - ) and then between the button and the red cable you just put in.
Next up are the leds
- The long leg will go on the left side and the short on the right.
- try to keep a little space in between the leds to make it easier for your cables that come after this.
And lastly are the cables for the lights. This is quite thight so watch out for your other cables.
To make it easier try to use 2 of the same colored cables (as seen in the picture I tried to use yellow and red)
- The yellow cables will go from your arduino digital 2 - 6 in to the breadboard. They will connect to the long leg of the led (left side).
- The red cables you need to plug them in the breadboard on the minus side
( - ). And then connect them to the short leg (right side).
Make sure your setup looks like the pictures above.
Step 4: Fun Part!
Alright you have setup everything.
You can try to make something out of cardboard of paper to try an hide the wires. That way it looks more like a game.
You can now plug the cable in and upload the program on to your arduino. Open up a serial monitor to keep track of your score and test it out!
Thank you for reading my project and if you have any questions or comments be sure to leave them for me to read!