What will you make:
In this tutorial we will make a basic project of led blinking using some of the components provided in the Arduino Starter Kit
What will you need:
For this project you will need:
- Arduino UNO
- Data cable
- Bread Board
- Jumper wires
Using Arduino IDE
Led Blink code using arduino ide
int led = 2;
digitalWrite(led, HIGH); //LED ON
delay(1000); // 1 sec delay = 1000 ms
digitalWrite(led, LOW); //LED OFF
Using mBlock software
- Connect the components as shown in schematic.
- Copy the Code.
- Select the Arduino board from tools > boards > Arduino UNO
- Select the Arduino port from tools > Port > port#(Arduino).[as shown in Guide Book]
- Connect Arduino to your Laptop/Computer and upload the code by pressing upload button.
- Go on with it.