Blink an LED
Required Parts :
- Arduino Uno Board
- Breadboard – half size
- Jumper Wires
- USB Cable
- LED (5mm)
- 220 Ohm Resistor
Project Diagram :
Connections steps :
Upload The Blink Sketch
Now it’s time to upload the sketch (program) to the Arduino and tell it what to do. In the IDE, there are built-in example sketches that you can use which make it easy for beginners.
To open the blink sketch, you will need to go to File > Examples > Basics > Blink
Now you should have a fully coded blink sketch that looks like the image below.
Next, you need to click on the verify button (check mark) that’s located in the top left of the IDE box. This will compile the sketch and look for errors. Once it says “Done Compiling” you are ready to upload it. Click the upload button (forward arrow) to send the program to the Arduino board.
The built-in LEDs on the Arduino board will flash rapidly for a few seconds and then the program will execute. If everything went correctly, the LED on the breadboard should turn on for a second and then off for a second and continue in a loop.
Congrats! You just completed your first Arduino project.