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:).
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.
Here's a kind of step by step solution: http://www.lothar-miller.de/s9y/archives/61-Lauflicht.html Try Google translate, its German.
There is an example project for the MAX1000 board, which also creates such a light. You can look at the code there.
Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
Log in with Google account
No account? Register here.