With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
Make a Mini LED Siren (powered by Arduino!)
StopIt! LED Game (powered by arduino)
Buttons can be tricky to get right sometimes. Did you remember to include the resistor between the button and ground on Step 4? Make sure that it runs from the side of the button closest to the Arduino's input pin to the ground rail of the breadboard. That will ensure that the input pin reads a digital LOW when the button is not being pressed.If that doesn't fix the problem, you could try to implement a way of "debouncing" the button. Debouncing is described on the Arduino website here: https://www.arduino.cc/en/Tutorial/DebounceBasically, mechanical buttons tend to oscillate back and forth very quickly between being open and being closed in the short time that it takes to press or release the button. Although this oscillation is imperceptible to us humans, the Arduino picks up on it, which can cause unpredictable behavior.
Also. For me the button doesn't work all the time. I've tried multiple buttons. It's weird. Maybe it's with the code
Okay; thank you.
Look for the line that initializes the "pause" variable in the Arduino sketch and replace the 1000 with a smaller number. The number you choose will be the initial length of time (in milliseconds) that the light will stay on a single LED before moving to the next one.You might also want to tweak the portion of the code that decides how many LEDs to light up once the game is over, since the level of difficulty will have changed a little.
I made it. The lights go too slow for the first few rounds. How do I speed them up?
High school simple. Thanks
This code has helped me so much, I couldn't figure out how to send the colors from my pc to the arduino at first, but thanks to your code I am making a program with a lot of color effects. My first effect is setting a Theme. I not completely finished, but I am able to set my background to a selected image and update the color I want to go with it :)
Computer Controlled RGB Led
I used tow arduino's Hacked old printer into a ticket dispenser1st arduino reads coin op (led and photo cell) and send 5v to the 2nd arduino. And also run count down timer be4 it cuts off its 5v.2nd arduino runs the game,buzzer and outputs to the transistor running the ticket dispenser.video http://youtu.be/-Er-phJIcIY
I used two arduino'sHacked old printer into a ticket dispenser1st arduino reads the coin op (led and photo cell) and send 5v to the 2nd arduino. And also run count down timer be4 it cuts off its 5v.2nd arduino runs the game,buzzer and outputs to the transistor running the ticket dispenser.video http://youtu.be/-Er-phJIcIY
Join 2 million + to receive instant DIY inspiration in your inbox.
Download our apps!
© 2016 Autodesk, Inc.