After building my sketchy micro-controller based AC light dimmer, I noticed that while fading though the dimming levels, it wasn’t a linear response. There was a noticeable “stall” in the fading around the mid-range of values. So to fix this, and waste a perfectly good Thursday night, I had the micro-controller watch the response of the light with a photo-resister and see what the problem was.
Keeping and eye on the light
The resulting response was nowhere near even. So I plotted the values and its derivative.
So to adjust the problem, I altered the distribution of the fade values. By decreasing the density of points around the “delay”, which was around 9000 on a scale of 0 to 16000, I was able to smooth out the fade.
Resulting distribution