5 Knight Rider Sensor Lights

5 : Knight Rider Sensor Lights

Select Project123456789ONSW2
  • Author: Kolos Koblasz
  • Description: The logic assertes output bits one by one, like KITT's sensor lights in Knight Rider.
  • GitHub repository
  • Clock: 6000 Hz

How it works

Uses several counters, shiftregisters to create a moving light. Input[2] and Input[3] can control speed and brightness respectively. Brightness control is achieved by PWM of the output bits at 50Hz. Simulated with 6KHz clock signal.

How to test

After reset it starts moving the switched on LED. Input[0] is clk and Input[1] is reset (1=reset on, 0=reset off). By creating rising edges on Input[2] and Input[3] the two config spaces can be discovered. Conect LEDs with ~1K-10K Ohm serial resistors to output pins and connect push button switches to Input[2] and Input[3] which drive the inputs with logic zeros when idle and with logic 1 when pressed. Rising edge on these inputs selects the next settings.

External hardware

Conect LEDs with ~1K-10K Ohm serial resistors to output pins and connect push button switches to Input[2] and Input[3] which drive the inputs with logic zeros when idle and with logic 1 when pressed. Rising edge on these inputs selects the next settings.

Picture

IO

#InputOutput
0clockLED 0
1resetLED 1
2speed controlLED 2
3brightness controlLED 3
4LED 4
5LED 5
6LED 6
7LED 7