Sceadwian
Banned
Do a sine wave LED fader. They look very natural and smooth, not clunky and abrupt like normal faders. Most LED faders simply increment/decrement a value each step, what you get is a triangle wave, to the human eye it gets bright and stays bright abnormally long and fades very fast compared to a true sine wave.
Another project to add to that is a software shift register based random number generator to randomly step through a sine table to give your LED a perfect 'candle flicker' effect.
The random number bit is a little difficult to understand intuativly but incredibly easy to implement.
https://en.wikipedia.org/wiki/Linear_feedback_shift_register
Another project to add to that is a software shift register based random number generator to randomly step through a sine table to give your LED a perfect 'candle flicker' effect.
The random number bit is a little difficult to understand intuativly but incredibly easy to implement.
https://en.wikipedia.org/wiki/Linear_feedback_shift_register
Last edited: