Arduino projects – led blinking with Arduino UNO

Arduino

Arduino is an open-source platform that provides hardware for free to use for all.

Arduino project-LED Blinking using Arduino Uno

components required to do the LED blinking project,

  • Arduino Uno
  • LED
  • Resistor
  • connecting wire
  • Arduino IDE
  • USB A-B cable

Arduino UNO

Arduino Uno is the most versilist microcontroller board.it is used in most Arduino projects by students, engineers and hobbyists it has an Atmega328p microcontroller chip. that works in the operating voltage of 5V.

it has 14 Digital I/O pins (Input/Output pins) named D0 to D13. 6 of them are provided with a pulse with modulation features.

it has 6 Analog pins named A0 to A5 which is suitable for reading and writing with Analog data.

Arduino uno has a Clock speed of 16MHz that can be provided by the crystal oscillator.

Cirrcuino for LED Blinking

arduino projects LED Blinking
Arduino projects LED Blinking

let us see the connections of the LED with Arduino Uno, Connect the Cathode pin of the LED to Any GND pin in the board. and connect the Anode in the LED to the D10 pin in the Board (Digital pin 10) with the help of the resistor in series like the above image.

NOTE: in this Tutorial, I will select the D10 pin for my comfort. you can also select any other digital pins between D0 to D13 for your Arduino projects.

How to write a program for LED Blinking?

with the help of Arduino IDE, we can easily program Arduino Uno. Follow the steps below,

step 1: open Arduino IDE

Step 2: create a new Sketch by opening the menu > FIles >Sketch > new Sketch.

Step 3: Write the program for LED Blinking, the code is given below.

C++
//Programmed  by KAVIKUMARAN G
//Visit Our Website : Pickupmyskills.com

int led = 10; // you canchange the pin number.

void setup(){
  pinMode(led,OUTPUT);
}

void loop(){
  digitalWrite(led,HIGH);
  delay(1000);
  digitalWrite(led,LOW);
  delay(1000);
}

Write the above code without any mistakes, you will change the led = 10 pin as per the connection, for example you want to connect the led to the D3 pin, just change the pin number in the program 10 to 3.

Step 4: you need to select which board you want to use for your Arduino projects. by clicking the select board option in the tool bar. and searching for your board in my case I use Arduino uno so I select Arduino UNO . and save it.

Step 5: now we need to compile the program by clicking the tick button in the toolbar to verify and compile the program. if any error occurred try to solve the error and recompile it.

once, you successfully compile your program without any error you need to boot or embed your program to the hardware.

Step 6: Connect your board to the PC with the help of a USB. now again select the board and select the port in the toolbar.

Step 7: now click on the arrow icon in the toolbar to boot you program to the hardware.

once, the program is successfully booted to the Arduino uno your LED connected to the board starts blinking

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top