ADAU1467 using aux adc for volume

Good afternoon. I made volume control on ADAU1467 in Sigma Studio.

I used:

- 5000 ohm potentiometer.

- AUXADC pin 7 to connect to the potentiometer.

-ADAU1467's pin 9 to get 3.3 volts (also i tried supply power 3.3V)

I have the following problem - the numbers are constantly changing, running around. There are no stable numbers. I used different potentiometers, but the result is the same.How to fix that problem?

 v07-tonecomp.rar

Thanks

Parents
  • Hi, I'm Viktor, we are building stuff together with Nynasty.

    We had no luck with DaveThib's suggested debouncer block, so we rolled our own like this:


    custom-debouncer.zip

    It works by storing the last seen value of the input, comparing it with the new one, and updating if the difference is big enough.

    We have tried cleaning up the signal in hardware. It does help, but doesn't eliminate the noise completely (that isn't surprising). A software debouncer is a must anyway, as any adc will sometimes jump between adjacent readouts even with very clean signal. I'm really surprised that we couldn't find a built-in debouncer in register configuration like in adau1701 for example.

Reply
  • Hi, I'm Viktor, we are building stuff together with Nynasty.

    We had no luck with DaveThib's suggested debouncer block, so we rolled our own like this:


    custom-debouncer.zip

    It works by storing the last seen value of the input, comparing it with the new one, and updating if the difference is big enough.

    We have tried cleaning up the signal in hardware. It does help, but doesn't eliminate the noise completely (that isn't surprising). A software debouncer is a must anyway, as any adc will sometimes jump between adjacent readouts even with very clean signal. I'm really surprised that we couldn't find a built-in debouncer in register configuration like in adau1701 for example.

Children