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)
For a project I am working on I needed to dim a LED strip light using the PWM (pulse width modulated) outputs on an Arduino. The most straightforward way to do this would have been to linearly vary the output frequency. Shown below in an Arduino sketch: // Use pin 9 as the PWM output const int...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.