Hello! My name is Sten. As a school project for the HKU named: ARDUINO: ITTT, or: If This, Then That. We have to create an interactable program using the Arduino UNO.
In this document you will find my take on this subject and every step to create it. This is for non commercial use only. Good luck!
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Step 1: Resources Needed
1x POWER CHORD
6x LED(2x RED, 2x ORANGE, 1x YELLOW, 1x Green)
Step 2: Step 2: Create the Breadboard
the 5V of the Arduino to the breadboard + row and a cable from the '-' to the GND
2. Connect a button to the Arduino in digital pin 2, add a resistor of 220 ohm to the '-' row and also connect it to the power supply
3. Connect a row of 6 LEDs in the order you like. But make sure you add the cables in a consecutive order, from 13 to 8, to the digital pins.
4. Each LED should have a resistor of 220 OHMS connecting to the '-' row, and a cable from the + side of the LED to the digital pin.
5. Connect the power chord to your Arduino(A LED light should blink if you put a LED in the digital pin 13)
Step 3: Step 3: the Code
Now add in the code in your Arduino editor! Attached you will find a .zip document cointaining the code! Now make
sure you verify and upload the script to your Arduino.
Step 4: Step 4: How to Play
Step 4 How
Press the reset button on your Arduino, as soon as the closest LED to the button blinks thrice you have to start tapping the button in Pin 2. When you reach 10 clicks, the first LED will light up. When you reach 20,30,40,50 and eventually 60 all the other LEDs will be lit.
Can you get all the LEDs to work? Try it alone or with your friends and enjoy the little game you have just created.
Thanks for viewing my article!