Meet the Circle Electronic NOOB Series Knight Rider!

20200226_174823.jpg

We all remember the technological car in the iconic television series Knight Rider. The most important feature of this car is that the LEDs on front of the car are constantly turn on one by one.

maxresdefault.jpg


For those who are new in Arduino and want to learn coding, it's time to learn how to make this animation!

nicolas-thomas-3GZi6OpSDcY-unsplash.jpg

Don't mess with breadboard circuits for learning Arduino and coding, just connect the cables and start coding right now!

0f415a_8b656204f7204cdc93d943969beab029_mv2.jpg

What can you do?

-You can connect each of the 8 separate leds to the Arduino pin and make each one turn on, in turn, using the for loop.

-Thanks to the buzzer on top, you can play Knight Rider theme song and learn how to make melodies using the buzzer.

-You can learn how to program 74HC593 Led driver IC. This integrated allows you to use 8 leds with only 3 connections. You can use this IC in other projects to use the motor or anything instead of using a led.

knightridergif.gif

Buy knight rider now and start learning coding now!

Tindie Link

For more details, please do not forget to visit our website and watch our YouTube video!

Code

8 LED configuration

int leds[] = {2,3,4,5,6,7,8,9};
void setup()
{
for(int i=0; i<8; i++) {
pinMode(leds[i], OUTPUT);
}
}
void loop()
{
for(int i=0; i<7; i++) {
digitalWrite(leds[i], HIGH);
delay(100);
digitalWrite(leds[i], LOW);
}
for(int j=7; j>0; j--) {
digitalWrite(leds[j], HIGH);
delay(100);
digitalWrite(leds[j], LOW);
}
}

74HC595 shift register configuration

#define LATCH 9
#define CLOCK 10
#define DATA 8
static int led = 0;
byte number[23] = {0b00000000,
                 0b00000001,
                 0b00000011,
                 0b00000111,
                 0b00001110,
                 0b00011100,
                 0b00111000,
                 0b01110000,
                 0b11100000,
                 0b11000000,
                 0b10000000,
                 0b00000000,
                 0b10000000,
                 0b11000000,
                 0b11100000,
                 0b01110000,
                 0b00111000,
                 0b00011100,
                 0b00001110,
                 0b00000111,
                 0b00000011,
                 0b00000001,
                 0b00000000
                };
void setup() {
  pinMode(CLOCK, OUTPUT);
  pinMode(DATA, OUTPUT);
  pinMode(LATCH, OUTPUT);
}
void loop() {
  static unsigned long time = millis();
  if (millis() - time >= 80 && led <= 22) {
    time = millis();
    led++;
    digitalWrite(LATCH, LOW);
    shiftOut(DATA, CLOCK, MSBFIRST, number[led]);
    digitalWrite(LATCH, HIGH);
  }
  if (led == 22) {
    led = 0;
  }
}

Theme music configuration is in codes part below

https://circleelectronic.com

Buy the Knight Rider DIY kit

20200510_215933.jpg

Video

Schematic