Blinking LED’s

Recently I decided to break new grounds. I logged into amazon and ordered a breadboard , with couple of LED’s, some resistors and an Arduino Board. Most of you guys might have guessed towards where I am heading – Yes !!! I am going towards IOT


Just one correction – I am taking baby steps towards IOT . Giving a little background here, I never really studied electronics as a subject so I am totally a newbie in this domain but yea i have started gaining interest in interfacing hardware.

Plan is to put 4 LED’s on the breadboard and make them blink one by one …

So what all will you need?

  • Breadboard
  • LED’s
  • Resistors
  • Arduino
Steps to make it bLiNkInG
  • Connect a Male to Male jumper wire to GND(ground) on the Arduino and the other end on the board
  • get the LED connect the small side(negative) to the ground
  • get a resistor(100 R) add the resistor to avoid any short-circuit
  • Connect 5V on pin 13

Here is the code:

#define LED1 13

void setup() { 
  // put your setup code here, to run once:
  pinMode(LED1, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(LED1, HIGH);
  delay(300);
  digitalWrite(LED1, LOW);
  delay(300);

}

This was it for the blinking LED’s, thanks for reading and stay tuned for some awesome stuff coming up soon.

Keep rocking and Take care

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s