Go Down

Topic: Rotary noise with digital gain (Read 48 times) previous topic - next topic

Hello,

I've made an analog circuit that amplifies an electret microphone.
It works OK. See mic_amp.png

Then I replaced the VR Gain resistor with
Rotary encoder -> Arduino -> X9C104 digital potentiometer.
See mic_amp_dig_gain.png

This works but whenever I rotate the encoder I hear a lous pop in the analog
audio signal.

Is it possible to prevent this?

Thanks in advance!

DVDdoug

#1
Feb 27, 2015, 09:56 pm Last Edit: Feb 27, 2015, 10:13 pm by DVDdoug
I don't know, but make sure you are compliant with the timing diagrams on the datasheet.   i.e. Make sure chip select and up/down are stable before incrementing.

And, you might want to slow things down a lot, put some LEDs on the control lines so you can see what's happening, and maybe you can figure-out which control line is causing the noise.     

It's also a bit "unusual" to put the pot in the feedback loop.   You can do it and it "looks good on paper", but in the real world sometimes there are problems...     That might  make it more sensitive to pot-noise, and if it happens to go open for a microsecond or so while switching, the op-amp will go into infinite-gain mode and you'll get some nasty noise.    I don't think  the digital pot should go open, but if it did bad things would happen.


P.S.
Try connecting pin 3 to pin6 on the digital pot.  When using a pot as a variable resistor it's "traditional" to connect the unused terminal to the wiper.   (This will prevent it from ever "accidentally" going completely open, at least it will with a mechanical pot.)   That might not help, but it won't hurt anything either.

 

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy