Timeline for How can I make a digital audio panning controlled by a microcontroller?
Current License: CC BY-SA 3.0
17 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 9, 2017 at 17:59 | comment | added | Andy aka | Maybe you have damaged the device by not putting a safe and correctly biased audio signal into it in your previous testing. | |
Mar 9, 2017 at 17:57 | comment | added | Emerson | Ok, I understand now. So I did correctly, audio sig > 8k2 > A (mcp) > 39k > spk1..and I programmed the MCP to go up and down, but through this method nothing changed, the signal was stable. Anyway, I will try again. And I will check how to do the vcc/2. Thanks. | |
Mar 9, 2017 at 17:53 | comment | added | Andy aka | Vin is the audio input. Not shown (because you have already done this according to what you say in your question) are the digital connections to the digipot. Make sure that the audio inputted to the device is biased around half Vcc to ensure that clipping or chip damage doesn't occur. If you don't understand that google the phrase I used. | |
Mar 9, 2017 at 17:51 | comment | added | Emerson | Ok, so Vin is normal voltage power...5V in this case. But how about the audio signal line? There is just the outputs. Sorry but it doesn't make any sense to me. | |
Mar 9, 2017 at 17:48 | comment | added | Andy aka | The 5 k potentiometer shown in the diagram is the potentiometer position. Vin is Vin. If you are using a 10 k digipot then scale all the resistors up by 2. If using a 100 k pot then scale the resistors up by 20. | |
Mar 9, 2017 at 17:46 | comment | added | Emerson | OK, so according to you: A: audio output to spk1 B: audio output to spk2 Wiper: ground Where do I put the audio to go inside the MCP? | |
Mar 9, 2017 at 17:36 | comment | added | Andy aka | Vin doesn't connect to the wiper. The wiper connects to ground. That is the full circuit as far as I'm concerned. | |
Mar 9, 2017 at 16:25 | comment | added | Emerson | I tried to use the circuit you suggested, but unfortunately it didn't work. Probably I didn't do it right. The Vin is supposed to be the audio in, connecting to the wiper, right? If you could draw a full schematics that would be brilliant. Otherwise, thanks anyway. | |
Mar 8, 2017 at 19:20 | comment | added | Emerson | Ok..I want to program something to move a sound between R and L speakers, right? If it's linear, the numbers go from 0. to 1. (or in the digital pot from 0 to the max step number) in 1 speaker, while in the other it goes from 1. to 0, the opposite. This is a linear effect, the sound appears to be distant when in the centre. But I'm hoping that I can program the digital pot to do the 0. to 1. in a non-linear scale. I've done this before, so the programming/math bit is fine for me. | |
Mar 8, 2017 at 18:38 | comment | added | Andy aka | Try and explain the non-linear bit in more detail. I wouldn't call panning using a linear pot as a linear process. | |
Mar 8, 2017 at 16:46 | comment | added | Emerson | Yes, I understand panning perfectly, I've done it many times through Pure Data and other software... My purpose is panning. Sorry if I wasn't very clear. I was thinking I needed two pots for this, but it seems I was wrong. If I use just one as you suggested, I may be able to change the function and make it non-linear as well... I just realised that. | |
Mar 8, 2017 at 15:52 | history | edited | Andy aka | CC BY-SA 3.0 |
added 80 characters in body
|
Mar 8, 2017 at 15:51 | comment | added | Andy aka | No, it's not a balance control. It's a panning control. You asked for a panning control. Panning is where you take one signal and move it left or right. If you want a stereo balance then this is not what you asked in your question. | |
Mar 8, 2017 at 15:33 | comment | added | Emerson | I see... So in this case the pot is used to balance the signal between the 2 speakers..but this will generate a linear balance, isn't it? What I was looking for was actually a way of controlling 2 dig pots, so I could adjust the panning law by programming the microcontroller. For instance, pot #1 would go up on speaker 1, while pot 2 go down on speaker 2...then I could adjust the function when it goes up and down. I will try your method later anyway, thanks. | |
Mar 8, 2017 at 15:22 | comment | added | Andy aka | The MCP4141 has three pot connections - they replace the three connections and the pot above. A and B are outputs to your two power amps that feed the two speakers you mention in your question. | |
Mar 8, 2017 at 13:19 | comment | added | Emerson | Thank you for your answer, but the schematics is not completely clear to me....I'm not sure how to connect the MCP4141 with the 8K2 resistors.. | |
Mar 8, 2017 at 12:36 | history | answered | Andy aka | CC BY-SA 3.0 |