Good day everyone, i don't really know if this the right section of the forum to seek for help about this one:
I decided to build a digital tremolo guitar effect, based on the Shoot the Moon tremolo, which i have built in the past with my own PCBs and works perfectly. So the Schematic is more than verified
I kept the lower part of the schematic with the LDR controlling the audio signal aplitude. And decided to replace the LFO with an arduino controlled LED. This is where it all began... Using pin 10 of arduino the default PWM frequency is at 490Hz, and as soon as i get the LED close to the LDR, this noise is picked up and sounds really louder than the guitar!
So after some reading, i changed the PWM frequency to 31KHz, which is above the audible range. The problem has mostly gone, but bringing the LED face to face with the LDR still gets noise on my audio signal. This is due to harmonics, and unfortunately this frequency i'm getting is changing depending on what i do with my PWM value. when i fade-in-out to the LED, between values of 200-255 i get harmonics at around 120Hz. when i fade it full range 0-255 i get harmonics noise at around 1700Hz. As you can guess it, they're all multiples of the original 490Hz pwm frequency EMI noise.
Then i applied a single pole low pass filter and did many many tests on resistors and capacitors, but as different harmonics are generated depending on the PWM signal, noise always passes to the LDR... i cannot find a way around this!
So i'm basically stuck, and question is...
would the sallen-key filter do a much better job or shouldn't i even bother building one?
I'm also open to alternative ideas of making a digital tremolo, though, i think, a digital potentiometer would not be an option due to cost and complexity...
any help/ideas would be highly welcome!
P.S: the noise is only passed by the LED to the LDR. there's no other parts of the circuit that pick up the rf noise. it's as if the LED is working like a pwm noise focuser, and the LDR acting like a really sensitive antenna...