Behold, my Class D amplifier prototype. Based on an NE555P and two TLV9052 opamps.
It converts audio to a "1-bit" digital signal at 200 kHz, amplifies it, then averages out the bits to get the analogue signal back. I know how it works, and still it feels miraculous
Convert from linear "visual intensity" to PWM values needed to dim a LED. I use this all the time in my projects, to convert a linear potentiometer to intensity of a light source. Used to be Python, is now web.
New blog post! PWM & Visual Brightness. Finally I have turned my ideas into a script, so I never have to break my brain about this again.
TL;DR: visually linear + good control over low brightness
I built an amplifier! This little fella is going to replace the big old amp that I use to hear my electric drumkit. Check out my latest blog post with photos, circuit diagram, and a tiny bit of explanation.