Components used:-
Arduino UNO R3 board
Led Lights
BASICS-
Understanding the base of arduino learning by starting off with blinking the led lights
Setting up the interface:-
Just connect the longer wire of the led which is the live side of the led to the pin 2 of the arduino board and the smaller side to the pin 3 and then upload the following code;
Code:-
void setup()
{ pinMode(2,OUTPUT); pinMode(3,OUTPUT); } void loop()
{ digitalWrite(2,HIGH); digitalWrite(3,LOW); delay(1000); digitalWrite(2,LOW); digitalWrite(3,LOW);
delay(1000); }