LED Pattern with Arduino- 2nd tutorial

LED pattern with Arduino is an easy and Best electronic project with Arduino. you can make it easier. you can make many patterns it all depends upon your thought. you can use 1- 20 LED with N number of the patterns. you will learn in this article how to make LED pattern with Arduino. you will learn also how to use the logic, delay and loop in the Arduino. arduino is an open source microcontroller which having 14 GPIO Pins, 6 Analog pins. which programmed by IDE Arduino Software.
LED Pattern, blinking with Arduino is an attractive lighting project. in which we use many components which we showed in below. we make 3 patterns with 10 LED as you can see in the pictures. first all the LED blink serially then speed of blinking change and then from the middle LED of the upper side and lower side off simultaneously.which you can see in the video. this is the second tutorial of Arduino we have Also 1st tutorial of Arduino on LED Blinking with Arduino 

 

Components Required for LED Pattern:-

  1. LED
  2. Breadboard
  3. Jumper Wires
  4. Arduino
  5. USB ASP cable
LED (light emitting diode) is made by semiconductor material which emits light when we give it electricity. we can find it in many colours. in this. the project we use red colour LED.
BREADBOARD is for the connection. if we have more than two connection we use breadboard in order to present our projects otherwise we prefer for soldering on the PCB.in this LED pattern with 
Arduino project we will use a breadboard to make the connection.
JUMPER WIRES are only for the connection purpose. in this Arduino Led pattern project we will use Male to Male Jumper Wires.
ARDUINO is an open-source microcontroller and easy to use we have many other projects on Arduino such as EVM(electronic voting machine) by Arduino and Bluetooth RC car  click on these link for best Arduino projects
Software Required:-
  1. IDE Arduino Software
How to connect LED with Arduino For making Pattern
How to connect LED with Arduino For making Pattern
 In this Arduino LED pattern circuit all the digital pins connected to the led which are used in the program.
 for example;- if we use digitalWrite(1, HIGH) it means we sent HIGH on pin1. now we have to connect the positive terminal of LED with the Arduino pin1 and Negative of LED connected to the GND pin of Arduino. We should make all connection according to our code.

C code for LED pattern with Arduino 

void setup() {
  
for(int i=0; i<=10; i++)
{
  pinMode(i, OUTPUT);
}
  
}
 
 
void loop() {
 
 
  for (int m=0; m<=10; m++)
  {
  digitalWrite(m, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(200);                       // wait for a second
  digitalWrite(m, LOW);    // turn the LED off by making the voltage LOW
  delay(200); 
  }
  delay(500);
  for (int m=10; m>=0; m–)
  {
  digitalWrite(m, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(200);                       // wait for a second
  digitalWrite(m, LOW);    // turn the LED off by making the voltage LOW
  delay(200); 
  }
 
for (int m=5; m>=0; m–)
  {
  digitalWrite(m, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(200);                       // wait for a second
  digitalWrite(m, LOW);    // turn the LED off by making the voltage LOW
  delay(200); 
  }
 
for (int m=6; m<=10; m++)
  {
  digitalWrite(m, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(200);                       // wait for a second
  digitalWrite(m, LOW);    // turn the LED off by making the voltage LOW
  delay(200); 
  }
}

       

 
  copy this code and paste into the IDE Arduino Software now upload code in Arduino. make connection according to the code. now you can see the LED pattern at the breadboard.

8 thoughts on “LED Pattern with Arduino- 2nd tutorial

  • April 14, 2019 at 12:02 am
    Permalink

    Hi Dear, are you actually visiting this site regularly, if so then you will without doubt take nice knowledge.

    Reply
  • April 17, 2019 at 7:11 am
    Permalink

    I have learn several good stuff here. Certainly worth bookmarking for revisiting.
    I surprise how so much attempt you place to create this kind of fantastic informative website.

    Reply
    • April 17, 2019 at 8:56 am
      Permalink

      thanks for your comment.

      Reply
  • April 18, 2019 at 4:14 pm
    Permalink

    I went over this internet site and I conceive you have a lot of good information, saved to my bookmarks (:.

    Reply
  • Pingback:IOT Project With NodeMcu control by mobile phone - TECHATRONIC

  • May 12, 2019 at 11:14 am
    Permalink

    Hi, I want to subscribe for this blog to get most recent updates,
    therefore where can i do it please help out.

    Reply
  • June 13, 2019 at 5:55 pm
    Permalink

    Very shortly this web page will be famous among all blog users, due to
    it’s pleasant content

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *