loading
4Instructables80,472Views22Comments

Tell us about yourself!

Complete Your Profile

Achievements

10K+ Views Earned a bronze medal
Show 0 More »
  • juggleboy commented on juggleboy's instructable StopIt! LED Game (powered by arduino)3 days ago
    StopIt! LED Game (powered by arduino)

    Neat idea!You could declare another integer variable at the top of the code and use that to keep track of how many correct stops have been made. Then, somewhere in the main loop portion, add an 'if' statement that checks if that variable is 5. Then you could put in the body of the 'if' statement your code to move the servo. Depending on your goal, you might also want to reset that variable to zero after successfully reaching 5 stops so that you can activate the servo again.

    View Instructable »
  • juggleboy commented on juggleboy's instructable StopIt! LED Game (powered by arduino)6 months ago
    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 u...see more »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.

    View Instructable »
  • juggleboy commented on juggleboy's instructable StopIt! LED Game (powered by arduino)6 months ago
    StopIt! LED Game (powered by arduino)

    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.

    View Instructable »