How to solder an LED chaser circuit using a few easy steps

How to solder an LED chaser circuit using a few easy steps

Hello and welcome back. In this project, we will learn How to solder an LED chaser circuit using a few easy steps. We can use this circuit with the Arduino, Raspberry Pi, or any other microcontroller. In this project, I used the Arduino platform for the explanation. Also, it includes eight red LED bulbs and eight 180-ohm resistors. These resistors are used to control the current flowing through the LED. If you want, you can also make a PCB for this circuit. For that, you can use a JLCPCB or any other prototype company. But I used a Vero board. I think that is best for beginners. OK, let’s go ahead.

OK, let’s do it step by step. The required components are given below.

Disclosure: These Amazon links are Affiliate links. As an Amazon Associate, I earn from qualifying purchases.

Step 1

Firstly, identify these components.

Step 2

Secondly, put the LEDs to the Vero board. Then, solder these LEDs one by one. For that, use the pictures below.

Step 3

Thirdly, put the resistors and male header pin. Then, solder these components.

Step 4

Now, solder the cathode pins of the LEDs together. For that, you can use the circuit diagram below.

How to solder an LED chaser circuit using a few easy steps

Step 5

Next, solder the LED anode legs one by one to the resistor legs.

Step 6

Then, solder the resistor legs on the other side one by one to the male header pin. Use the circuit wires for that.

OK, well done. Now, you have a LED chaser circuit.

Step 7

Now, we will make some LED patterns using the Arduino platform. For that, I used the Arduino UNO board. You can use any other Arduino board or platform. First, connect the LED chaser circuit to the Arduino board. For that, use the circuit diagram below.

How to solder an LED chaser circuit using a few easy steps

Step 8

And then, connect it to the computer, and let’s create the program for this project. It’s as follows.

  • Full details of this project — Download
void setup() {
// Set the LED pins as the output pins
  for (byte a = 2; a <= 9; a++) {
    pinMode(a, OUTPUT);
  }

}
//Call the functions
void loop() {
  one(4);
  two(4);//VIP light pattern
  three(6);
  four(6);

}
//Pattern one
void one (byte y) {
  for (byte x = 0; x < y ; x++) {
    for (byte a = 2; a <= 9; a++) {
      digitalWrite(a, HIGH);
      delay(50);
      digitalWrite(a, LOW);
    }
    for (byte a = 9; a >= 2; a--) {
      digitalWrite(a, HIGH);
      delay(50);
      digitalWrite(a, LOW);
    }
  }
}
//Pattern two
void two(byte y) {
  for (byte x = 0; x < y ; x++) {
    for (byte a = 0; a <= 4; a++) {
      digitalWrite(2, HIGH);
      digitalWrite(3, HIGH);
      digitalWrite(4, HIGH);
      digitalWrite(5, HIGH);
      delay(50);
      digitalWrite(2, LOW);
      digitalWrite(3, LOW);
      digitalWrite(4, LOW);
      digitalWrite(5, LOW);
      delay(50);
    }
    for (byte a = 0; a <= 4; a++) {
      digitalWrite(6, HIGH);
      digitalWrite(7, HIGH);
      digitalWrite(8, HIGH);
      digitalWrite(9, HIGH);
      delay(50);
      digitalWrite(6, LOW);
      digitalWrite(7, LOW);
      digitalWrite(8, LOW);
      digitalWrite(9, LOW);
      delay(50);
    }
  }
}
//Pattern three
void three(byte y) {
  for (byte x = 0; x <= y; x++ ) {
    digitalWrite(2, LOW);
    digitalWrite(3, LOW);
    digitalWrite(4, LOW);
    digitalWrite(5, LOW);
    digitalWrite(6, LOW);
    digitalWrite(7, LOW);
    digitalWrite(8, LOW);
    digitalWrite(9, LOW);
    delay(80);
    digitalWrite(2, HIGH);
    digitalWrite(3, HIGH);
    digitalWrite(4, HIGH);
    digitalWrite(5, HIGH);
    digitalWrite(6, HIGH);
    digitalWrite(7, HIGH);
    digitalWrite(8, HIGH);
    digitalWrite(9, HIGH);
    delay(80);
  }
}
//Pattern four
void four(byte y) {
  for (byte x = 0; x <= y; x++) {
    for (byte a = 2; a <= 9; a++) {
      digitalWrite(a, LOW);
      digitalWrite(a + 1, LOW);
      delay(50);
      digitalWrite(a, HIGH);
      digitalWrite(a - 1, HIGH);
    }
    for (byte a = 8; a > 2; a--) {
      digitalWrite(a, LOW);
      digitalWrite(a - 1, LOW);
      delay(50);
      digitalWrite(a, HIGH);
      digitalWrite(a - 1, HIGH);
    }
  }
}

Step 9

Now, select the board and port. After, upload this code to the Arduino board.

OK, enjoy this project. The full video guide is below. So, see you in the next project or tutorial.

How to solder an LED chaser circuit using a few easy steps

Similar Posts

Leave a Reply

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