ccurtis
Well-Known Member
Okay, so I have a PWM generator driving an LED. I also have an amplified voltage from a microphone.
I know that human hearing and vision are logarithmic in response.
I want to control the perceived brightness of the LED using the PWM so that it matches the perceived loudness of the sound picked up by the microphone.
Do I need to do anything to the voltage (DC level directly proportional to microphone voltage) to make that happen, or can I control the PWM linearly from the voltage, since eyes and ears are logarithmic? If I have to condition the voltage through a function, what function and why?
I know that human hearing and vision are logarithmic in response.
I want to control the perceived brightness of the LED using the PWM so that it matches the perceived loudness of the sound picked up by the microphone.
Do I need to do anything to the voltage (DC level directly proportional to microphone voltage) to make that happen, or can I control the PWM linearly from the voltage, since eyes and ears are logarithmic? If I have to condition the voltage through a function, what function and why?
Last edited: