I've seen a lot of queries lately regarding 'Knight Rider' and other types of light chasers here and on other boards. So, here is a very simple MCU approach to that classic light chaser.
It uses an Omega Mini-328 breadboard MCU but any Arduino compatible or even just an Atmega328/168 chip on a solderless breadboard could be used to implement it.
All it requires, beyond the MCU are 16 LEDs and four 470 ohm resistors.
The LEDs are grouped in banks of 4 and addressed in a 4x4 matrix fashion. Indeed, the arrangement of the LEDs is one component of this project that can be altered to whatever suits the experimenter. In my case, I laid them out linearly to get that "night Rider" effect. Doing it this way allows 16 LEDs with only 8 I/O. Of course, with a Atmega328 there are other possibilities, but this gets the job done.
I have also included an Arduino sketch that is internally documented fairly well and produces the desired effect. However, there are literally hundreds of possibilities that could be coded for this basic arrangement and this is only one simple example.
It uses an Omega Mini-328 breadboard MCU but any Arduino compatible or even just an Atmega328/168 chip on a solderless breadboard could be used to implement it.
All it requires, beyond the MCU are 16 LEDs and four 470 ohm resistors.
The LEDs are grouped in banks of 4 and addressed in a 4x4 matrix fashion. Indeed, the arrangement of the LEDs is one component of this project that can be altered to whatever suits the experimenter. In my case, I laid them out linearly to get that "night Rider" effect. Doing it this way allows 16 LEDs with only 8 I/O. Of course, with a Atmega328 there are other possibilities, but this gets the job done.
I have also included an Arduino sketch that is internally documented fairly well and produces the desired effect. However, there are literally hundreds of possibilities that could be coded for this basic arrangement and this is only one simple example.
Attachments
-
202.9 KB Views: 347
-
234.3 KB Views: 272
-
1.9 KB Views: 161