gonadgranny
Member level 4
Hello folks.
I have an audio signal which has its mid voltage at 2.5v and oscillates through to 5 and 0v. I would like to sample this signal on an Arduino and use PWM on an led to react to it. I made a piece of software a while back and it worked but I had to set the sample rate at a very high frequency so that I could “catch” the voltage fluctuations.
I read that one can make an envelope detector which would make it unnecessary for me to set the sample rate so high so I can reduce cpu time on the Arduino.
With the setup I described would anyone be kind enough to suggest a circuit which I could use? Its mainly the capacitor and resistor size which I am unsure about as I have only a rudimentary knowledge of electronics.
Many thanks,
Danny.
I have an audio signal which has its mid voltage at 2.5v and oscillates through to 5 and 0v. I would like to sample this signal on an Arduino and use PWM on an led to react to it. I made a piece of software a while back and it worked but I had to set the sample rate at a very high frequency so that I could “catch” the voltage fluctuations.
I read that one can make an envelope detector which would make it unnecessary for me to set the sample rate so high so I can reduce cpu time on the Arduino.
With the setup I described would anyone be kind enough to suggest a circuit which I could use? Its mainly the capacitor and resistor size which I am unsure about as I have only a rudimentary knowledge of electronics.
Many thanks,
Danny.