PROJECT – Simple LED Blinking
In this tutorial we will learn how to use an Normal LED with Arduino and create a simple LED blinking project.
STEP – 1 : Components
Components Required:-
1. Arduino Uno
2. Breadboard
3. Normal LED
4. 1 X 330Ohm resistors.
5. Wires
STEP – 2 : Circuit
The connections are pretty easy, see the image above with the breadboard circuit schematic.
|
STEP – 3 : Code
/* Simple LED Blinking Project by using Arduino */
const int LED_PIN = 13;
void setup()
{
pinMode(LED_PIN, OUTPUT);
}
void loop()
{
digitalWrite(LED_PIN, HIGH);
delay(1000); // Wait for 1000 millisecond(s)
digitalWrite(LED_PIN, LOW);
delay(1000); // Wait for 1000 millisecond(s)
}
/* Copy above Code and Paste in Your Arduino Sketch */
/* Copy above Code and Paste in Your Arduino Sketch */
You have successfully completed one Arduino Project and you learned how to use an Normal LED with Arduino.
Comments
Post a Comment