Light Intensity Tool

For my electronics projects I often have the need to take the linear position of a potentiometer, and translate it to an exponential value I can use to PWM some LEDs. I had some Python scripts scattered around to do this, but figured it was more convenient to have a web-based tool instead. So, here it is!

Go To The Tool

The tool takes the number of bits you can use to PWM the LEDs, and the number of steps you want in the lookup table. It’ll then generate some C code that’ll give you that lookup table.

dr. Sybren A. Stüvel
dr. Sybren A. Stüvel
Open Source software developer, photographer, drummer, and electronics tinkerer

Related