top of page
Writer's pictureAli Kaan Ünal

Knight Rider

Updated: May 11, 2020

Led circuit for make to the animation of the K.I.T.T from Knight Rider TV Series


Meet the Circle Electronic NOOB Series Knight Rider!


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.

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

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


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 driving a led.


Knight Rider Circuit Led Animation


Buy knight rider now and start learning coding now!click for other NOOB Series products!For more details, please do not forget to visit ourwebsiteand watch our youtube video!


Codes

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 our website. https://circleelectronic.com


You can buy Knight Rider DIY kit also


DIY kit


Schematic



Watch OUR YouTube Video



56 views0 comments

Recent Posts

See All

Comments


bottom of page