EXPERIMENT

Now that you have a foundational understanding of Arduino programs and LilyPads, experiment with your LED’s behavior. Can you get your LED to Blink in a hearbeat pattern? A seemingly random pattern? Can you get it to flicker like a candle?

Think about some trickier challenges. How could you get the LED to gradually fade on and off? How could you make it blink more and more slowly over time?

Hint 1: Both of these challenges will require additional variables to keep track of blinking speed. Hint 2: You will need to change the values stored in these variables each time the loop section runs.

Remember to save any programs you like by clicking on the downward pointing arrow in the Arduino software so that you can return to them later. You can give each program a different name.

<< PREVIOUS      NEXT >>