ΣSigmaStudio Ask AI Русский Log in

Sure Adau 1701 external Potentiometer

SigmaDSP & SigmaStudio MukboxX Aug 14, 2017 00:00 13 replies Original on forum ↗
Subscribe
MukboxX Question
Aug 14, 2017 00:00

Hello

I got the Sure Adau1701 Board and want to do an external Volume control over an 10k Linear Potentiometer.

I use the litte dsp for my mobile Boomboxes. In my earlier versions i use the miniDSP. This works fine.

But now i have the problem, that the potentiometer have no functionality to the dsp. I have no idea why it don't work.

So i do an Sigmastudio DSP design as the one below:

So i want to use the Aux ADC 3 Input to the GPIO MP8 to regulate the volume over an potentiometer.

I try it with an 430Ohm resistor in front of the MP8 and without an resistor. But nothig is happend.

the only differnece is a loud plopping if the potentiometer reachs the end of its rotation without the resistor.

What i do wrong?

Audio Signal Processors

SigmaDSP Audio Processors

adau1701

b15a20bb6f43cfccacb6966b39e084b1.png
b15a20bb6f43cfccacb6966b39e084b1.png
b15a20bb6f43cfccacb6966b39e084b1.png-620x263.png
b15a20bb6f43cfccacb6966b39e084b1.png-620x263.png
92fc4515672997970be402e9bf2d51f6.png
92fc4515672997970be402e9bf2d51f6.png
92fc4515672997970be402e9bf2d51f6.png-620x520.png
92fc4515672997970be402e9bf2d51f6.png-620x520.png
f3eed0c345230cd0e82dd891c5ac807b.png
f3eed0c345230cd0e82dd891c5ac807b.png
f3eed0c345230cd0e82dd891c5ac807b.png-505x329.png
f3eed0c345230cd0e82dd891c5ac807b.png-505x329.png
53aad97e6339f7dfee118e765e3a1d28.png
53aad97e6339f7dfee118e765e3a1d28.png
53aad97e6339f7dfee118e765e3a1d28.png-620x499.png
53aad97e6339f7dfee118e765e3a1d28.png-620x499.png
a1137b625ca9405f0954b1067c2e1a72.png
a1137b625ca9405f0954b1067c2e1a72.png
a1137b625ca9405f0954b1067c2e1a72.png-620x362.png
a1137b625ca9405f0954b1067c2e1a72.png-620x362.png
DaveThib Reply
Aug 14, 2017 00:00

Hello mukboxx,

I am not sure exectly what it going wrong. I suspect that your are not getting the DC level into the DSP.

The first thing you should try is to place a readback cell right after the AUXADC so you can see what is coming into the DSP core. The number should go between 0 and just below "1" so 0.9999... or somewhere like that. All pots do not always go all the way to ground or all the way to the top.

If you do not see anything changing then take an oscilloscope or multimeter and look at the signal coming from the pot. See what the pot is actually sending out.

Start there and see where that leads you. Your project seems fine at first glance.

Dave T

MukboxX Reply
Aug 14, 2017 00:00

Hello Dave

Thanks for your fast response.

So i try the following things:

I do messure the Pot with my Voltmeter, the Voltage reaches between 0.00V and 3.295V an the middle Pin from the Potentiometer. it seems ok . this voltage i put in to the dsp -> to MP 8.

I try another dsp board with the same dsp design. ( i have 5pieces of dsp Boards). nothig is happend.

I try another Potentiometer the same issue.

I simplify the design

nothing happend.

468a9764df05f0c11586ad8996e88ae9.png
468a9764df05f0c11586ad8996e88ae9.png
468a9764df05f0c11586ad8996e88ae9.png-568x339.png
468a9764df05f0c11586ad8996e88ae9.png-568x339.png
MukboxX Reply
Aug 14, 2017 00:00

So i try it with the readback

you right, the number is always the same. nothing changes while i rotate the Potentiometer.

but the potentiometer seems to work correctly. Mayby a problem with the frequency from the pot?

db213ca54b7dd3084a3e78f2d11fedf0.png
db213ca54b7dd3084a3e78f2d11fedf0.png
db213ca54b7dd3084a3e78f2d11fedf0.png-405x516.png
db213ca54b7dd3084a3e78f2d11fedf0.png-405x516.png
DaveThib Reply
Aug 14, 2017 00:00

Hello,

Sorry, I just now when I was doing something else I realized that this is really simple. Click the "Enable" on the Control ADC section right below the GPIO section.

Sorry, it was too obvious and I missed it.

MukboxX Reply
Aug 15, 2017 00:00

Hy Dave

Now it works, you right, thanks.

I have now another question

Can i expand the range of the potentiometer?

at the moment i think its about -12dB to 0dB i want to get a wide range for the volume regulation -72dB to 0 dB.

And what do means the number (12) of the slew vol.?

f8aca6768abe8b7c88d393f2d984c9f6.png
f8aca6768abe8b7c88d393f2d984c9f6.png
f8aca6768abe8b7c88d393f2d984c9f6.png-620x482.png
f8aca6768abe8b7c88d393f2d984c9f6.png-620x482.png
3d70b9e9d57e966fef0d4111a85df079.png
3d70b9e9d57e966fef0d4111a85df079.png
3d70b9e9d57e966fef0d4111a85df079.png-214x240.png
3d70b9e9d57e966fef0d4111a85df079.png-214x240.png
DaveThib Reply
Aug 15, 2017 00:00

Hello Mukboxx,

There may be something else in your project that is causing the level to not go down to a lower level. Maybe a compressor? Lots of gain somewhere? In my little test project I can go down to zero most of the time. (more on that later). I am talking way below -96dB shown on the meter.

Here is what I see:

I have one meter before and one after the volume control. With the volume control at MAX they read the same.

Next slide...

Now the volume is all the way down and you see there is nothing showing on the output meter.

Next slide...

So when I said "most of the time", I was talking about the difference of the setting of the input filter. When you set it to a 5 or 4 bit hysteresis then sometimes there is not enough difference at the bottom of the pot to register a change in the volume pot. So the AUXADC input has to change by 4 or 5 bits before it will actually output this change to the gain input of the volume control. This is handy to use to prevent the volume from constantly going up and down by a small amount when the pot is dirty. This can add distortion to the audio. There is a low pass filter on the pot but when pots get really dirty that may not be enough. So here is a picture of the project when I had it set to 5-bits and then tried to go to zero. It will sometimes get there but it depends on how quickly you move and the noise on the wiper of the pot.

So you can still see a little audio but note that it is still much greater difference then the 12 dB you are reporting. Plus, you had this turned off anyway so this is not your issue.

You can always place a readback cell on the AUXADC output like I did. You should see the value go between zero and 1. (well, 0.99..., it will never actually reach 1) This will help you troubleshoot the input circuit. If that is changing like it should then it is something else in your project.

Now regarding the "12" you see. Let me point out a feature that is sometimes handy. If you highlight a cell and press "F1" on your keyboard, your browser will open up and you will be sent over to your Wiki help files for that cell. Now not all cells have a file so you will get the "Not Found" error from time to time.

The "12" is the slew setting. This is where the audio will be slewed between steps to make the volume control smooth and free of glitches from the gain steps. The setting is for how long of a slew you would like.

Dave T

1eaaae149dcf8000c5b191a93534bf1b.jpg
1eaaae149dcf8000c5b191a93534bf1b.jpg
1eaaae149dcf8000c5b191a93534bf1b.jpg-492x355.jpg
1eaaae149dcf8000c5b191a93534bf1b.jpg-492x355.jpg
4196cee7c00c3314a1d1c8cbf0272cf8.jpg
4196cee7c00c3314a1d1c8cbf0272cf8.jpg
4196cee7c00c3314a1d1c8cbf0272cf8.jpg-509x387.jpg
4196cee7c00c3314a1d1c8cbf0272cf8.jpg-509x387.jpg
861a0f85550a14b8e150a6b654f11426.jpg
861a0f85550a14b8e150a6b654f11426.jpg
861a0f85550a14b8e150a6b654f11426.jpg-416x301.jpg
861a0f85550a14b8e150a6b654f11426.jpg-416x301.jpg
3a2c6d52e9870ef22d03d89f948ef2d0.jpg
3a2c6d52e9870ef22d03d89f948ef2d0.jpg
3a2c6d52e9870ef22d03d89f948ef2d0.jpg-479x373.jpg
3a2c6d52e9870ef22d03d89f948ef2d0.jpg-479x373.jpg
KJBob Reply
Aug 16, 2017 00:00

Are the Sure DSP board's four trim-pots hardwired to the four MP pins with Aux ADCs? If so, one of these pots is competing with your external pot. You'll need to disconnect or de-solder that pot to achieve full adjustment range on your external pot.

Best regards,

Bob

MukboxX Reply
Aug 17, 2017 00:00

Hello Dave

The Poti works now so far.

the only problem is now the pot don't work linear. so i have to fix just this problem then all will be fine.

thans for your perfect support.

DaveThib Reply
Aug 17, 2017 00:00

Hello Mukboxx,

If you have a log pot then it will be a log taper. You can take the output and feed it into a lookup table, then you can have it produce any curve you want. It depends on memory resources you have available as to how many gain steps you can put in. This is a quick response. I can expand on this tomorrow.

Dave T

MukboxX Reply
Aug 28, 2017 00:00

Now i found the problem. The 4 potentiometer on the board are parallel to the gpio pins. I have to soldering out 1 of these pots wich is parallel to the aux adc 3. (the second one) now all works fine. Otherwise the the hardwired one bypass the gpio Pin.

Thanks Dave for your help.

63418c39415faa484d3c2e1a94660074.jpg
63418c39415faa484d3c2e1a94660074.jpg
63418c39415faa484d3c2e1a94660074.jpg-620x414.jpg
63418c39415faa484d3c2e1a94660074.jpg-620x414.jpg
androbupa@gmail.com Reply
Dec 22, 2019 00:00

Hello i’m doing something like adding a few pots more to the dsp board a when i connect it like you describe to lets say mp7 pin i only get 1 and 0 from the read back... what am i doing wrong why doesn't it move the value up and down ???

DaveThib Reply
Jan 6, 2020 00:00

Hello androbupa,

This is because MP7 is only a digital GPIO pin. So it will only give you a zero or a 1 with the transition point somewhere between IOVDD and GND.

You need to use one of the AUXADC GPIO pins. MP2, 3, 8 or 9

Dave T

DaveThib Reply
Aug 28, 2017 00:00

Hello Mukboxx,

Thank KJBob for that one. He nailed it!

Dave T