Knight Rider VHDL

Guest #6641456
Rate this post
useful
not useful
Hello guys!
I am trying to do some sort of "Knight Rider" car with VHDL, using my 
Artix Board. Right now I have learned how to shift a single bit from 
left to right and vice versa. The issue is when I try to add the tail 
and use the PWM technique to control the intensity of light from one led 
to another. It all gets messed up when I use long tails. Anyone who has 
experimented something similar before? I would be glad if anyone shared 
any idea on how can we deal with such cases:).
Guest #6641503
Rate this post
useful
not useful
If you write down how each light has to behave in every situation, maybe 
you understand how is to  be implemented. First try without PWM, and the 
add the PWM.

The moving of the light can be done with a folding counter, you count 
from 0 to 7 with 3 bits and map 5 to 3, 6 to 2 and 7 to 1. A shift 
register can also be used, you shift left and right you need 5 bits.
Fading of the light can be done afterwards, one more counter per light 
that gets loaded when the light has to turn on.

write it down, it will make sense.

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now