Arduino Blink Program with LED and BreadBoard

Hardware required:

  • Arduino Module
  • Bread Board
  • Jumper cable (For hooking up connection)
//Programming Arduino-digital pin.



 /*You can define any other digital pin as well i.e 12,11,9,8 etc
  * 
  * 
  */
// put your one time setup code here, to run once
void setup() {
 
  pinMode(8,OUTPUT);
}
 // put your main code here, to run repeatedly
void loop() {
 
  digitalWrite(8,HIGH);
  delay(1000);
  digitalWrite(8,LOW);
  delay(1000);
  
}
Schematic Developed using TinkerCard.com

In the schematic diagram as we can see, LED pin is connected to the digital pin 12 via a resister with the resistance value 460 Ohms.