hey guys,
I think I'm getting some noise from my circuit in the signal from my DAC to my piezo speaker. I'm updating the DAC around 30,000 times a second, and when I move my servos to different extensions, which changes the speed of my animating lights as well, what was a high pitched sound with a slight buzzing turns into a lot of buzing. If I extend them more it goes back to semi-normal, then back to heavy buzzing again.
So I thought it might be prudent to add a low pass filter and see if that helped. I'd left it out of my circuit so I could see if I needed one in the first place.
Anyway, I was looking at the audio sheild schematic to see how LadyAda implemented one, and hers states that it is an 11khz LPF, and uses a .1uf capacitor and a 1.5K resistor.
Since my circuit I would like to be able to produce frequencies up to 15,000 hz, I decided to find a calculator on the web to tell me how big a resisotr I needed to make my low pas filter filter out frequencies higher than that instead.
This is the calculator I found:
http://sim.okawa-denshi.jp/en/CRtool.php
Well, to make a long story short, when I put in my desired frequency, it tells me I need a .1uf capacitor and a 110ohm resistor. I thought it odd that it was so low compared to what was used in the Audio Shield, so I tried putting in 11khz instead. This brought the value up to only 150ohms.
So what gives? Is this calculator wrong, or is the wrong size resistor listed in the Audio Shield schematic?