d123
Advanced Member level 5
Hi again,
I read the article, it was enlightening. I'll add this, on the same subject of linear and logarithmic dimming:
How to dim a LED for Human Perception
At first thought, I suppose that one analog solution (at least for my circuit) might be a simple resistor to V+ before the pushbutton for 'slow on', and a resistor to ground behind the 'slow off' pushbutton, both pushbuttons meeting at the charge capacitor, followed by an inverting amplifier into the capacitor to make the capacitor charge and discharge curves look like the desired curves in the articles. Fast on and fast off might not be so simple, depending on current.
Anyway, interesting articles.
One other thing, eye is logarithmic in response, maybe in coding consider doing this -
PWM Exponential LED Fading on Arduino (or other platforms) | Diarmuid.ie
I work at WP Engine in Limerick, Ireland as a Software Engineer with an interest in Infrastructure and DevOps. In my free time I run, code, and build things. This is my (infrequently updated) blog.diarmuid.ie
Regards, Dana.
I read the article, it was enlightening. I'll add this, on the same subject of linear and logarithmic dimming:
How to dim a LED for Human Perception
At first thought, I suppose that one analog solution (at least for my circuit) might be a simple resistor to V+ before the pushbutton for 'slow on', and a resistor to ground behind the 'slow off' pushbutton, both pushbuttons meeting at the charge capacitor, followed by an inverting amplifier into the capacitor to make the capacitor charge and discharge curves look like the desired curves in the articles. Fast on and fast off might not be so simple, depending on current.
Anyway, interesting articles.