Putting It All Together — image 1 of 2

leds_graph1.png
details

Oh, of course! I’ll use Arduino’s Serial Plotter window to actually graph some gamma-corrected sine waves so you can see the real difference…

Blue is the perceived brightness, red is the gamma-corrected level issued to the LEDs.

First image depicts a sine wave with the peaks at full brightness (255). Average perceived value is 50%. Average corrected duty cycle is 33%.

Second image is a half-brightness wave (127 max — the vertical scale is stretched here, note the values on left). Average perceived value is 25%. Average duty cycle is 5.5%. Big change!

Back

Search