Project No.01. LED Blinking it’s turn on and off
It is the simple basic project created using Arduino. LED (Light Emitting Diode) is an electronic device, which emits light when the current passes through its terminals. LED's are used in various applications. It is also used as an ON/OFF indicator in different electronic devices.
In this project, we will connect the LED to the digital pin on the Arduino board. The LED will work as a simple light that can be turned ON and OFF for a specified duration.
Hardware Required : Arduino Board, LED, Resistor 220Ω
CODE
void setup()
{
pinMode(13, OUTPUT); // pin# 13 is output
}
void loop()
{
digitalWrite(13, HIGH); // turn the LED ON
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED OFF
delay(1000); // wait for a second
}
Description of the code
MD. ANWARUL ISLAM
M.Sc. In EEE (PUST) | B.Sc. In EEE | B.Sc. In CSE
Diploma In Electrical Engineering
Electrical Supervisor License A. B. C
CEO and Embedded Software & PCB Design Engineer
Automation Research & Embedded Technologies
www.aretbd.com
Experience (12 Years):
MCU and PLC programming, PCB design and fabrication,SMT machines,
Mobile manufacturing M/C, Textile machines,VFD, Nano technology.
No comments:
Post a Comment