I am reminded of the famous idiom “There is more than one way to blink an LED.” Which holds very true for the Arduino platform. You should know at least four ways to blink an LED ( Simple Blink LED ) with your Arduino
Components Used for Simple Blink LED with Delay :
- 1 x Arduino Uno ( You can use other boards also )
- 2 x Jumper Wires M-M
- 1 x LED
- 1 x 10k resistor
- 1 x Breadboard
By this blink, we start learning about Arduino. This is the first step where we understand how Arduino works with Program and send commands to control LED.
By using one LED and few other components we will try to upload program and change program little to see the variation
- This is a basic program to check Board is working or not.
- You can use inbuilt LED which on Digital Pin no 13.
Lines of Code
Go to File > Examples > Basic > Blink
- Take Breadboard
- Take LED it will have one big leg (+) which is a positive and small leg which is Negative.
- Press that two legs and remember which one is a big one ( You can even bend big leg so it’s easy to identify for further reference.
- Now take 2 M-M jumper wires
- Fix them to connected line with LED ( To understand more about Breadboard connection click here )
- Now Jumper wire connected to the Big leg which is positive will go to Digital Pin 13 and Small leg which is Negative goes to GND ( 3 GND is available in Arduino UNO).
- Check once again with a circuit to avoid any short circuit.
- Connect Arduino to your Laptop/PC by USB Cable.( we use A to B USB cable for Arduino which is also used in printers )
- Open Arduino IDE ( You can download it from here or you can use online platform Arduino Web editor )
- Go to File > Examples > Basic > Blink
- Check program and then upload it.
- You can change Delay Value and see changes.