Blinking of led using Aurdino Uno

by anupmaurya
0 comment

Here we are going to blink an LED for every 500ms using Aurdino Uno. In arduino uno, a LED has already inbuilt at the pin13, but we are not going to use it.

Components Required

Hardware: Arduino uno board, connecting pins, 220Ω resistor, LED, breadboard.

Software: Arduino Nightly


Here we are going to connect an indicating LED to PIN7 through a current limiting resistor.

The controller in arduino is already programmed to work on external crystal. So we need not to worry about fuse bits or anything. The arduino works on 16Mhz crystal clock, which is already embedded in the board.

Blinking of led using Aurdino Uno
Blinking of light using Aurdino Uno


Code // The setup function runs when you press reset or power the board void setup() { // initialize digital pin 0 as an output. pinMode(7, OUTPUT); } // the loop function runs over and over again forever void loop() { digitalWrite(7, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); // wait for a second digitalWrite(7, LOW); // turn the LED off by making the voltage LOW delay(500); // wait for a second }
Code language: JavaScript (javascript)

You may also like