Task 4: Upload, Test, and Experiment

Running the Fade Code

After writing your fade sketch using a for loop and analogWrite(), upload the code to your Arduino and observe the LED.

You should see the LED gradually increase and decrease in brightness. If not, try the steps in the troubleshooting section below.

Try This!

Troubleshooting