Omnimaga

General Discussion => Technology and Development => Other => Topic started by: Sorunome on October 14, 2014, 01:51:30 pm

Title: Making a sound mixer
Post by: Sorunome on October 14, 2014, 01:51:30 pm
Yup, i'm making a sound mixer. Most of you probably know already anyways due to chat :P
Also, keoni helped me a lot with it so far.

(http://img.ourl.ca/CIMG4314-small.jpg)
Title: Re: Making a sound mixer
Post by: Keoni29 on October 14, 2014, 03:23:18 pm
Looking good :) I see there are 3 pots on there. 2 channels and 1 master I assume?
Title: Re: Making a sound mixer
Post by: Sorunome on October 14, 2014, 03:23:54 pm
Looking good :) I see there are 3 pots on there. 2 channels and 1 master I assume?
Yep!
By now there are 4 pots, as i already wired up all but a pot for channel 3.
Title: Re: Making a sound mixer
Post by: TIfanx1999 on October 14, 2014, 04:57:37 pm
It reminds me of one of Keoni's builds. Looks like some mad scientist stuff going on there. ;D
Title: Re: Making a sound mixer
Post by: Sorunome on October 15, 2014, 10:45:15 am
It reminds me of one of Keoni's builds. Looks like some mad scientist stuff going on there. ;D

But that isn't much, only some amps, resistors and pottys :P
Anyways, thanks ^.^
Title: Re: Making a sound mixer
Post by: CalebHansberry on October 15, 2014, 07:51:23 pm
My brother is into audio electronics, and he was wondering what precisely is it doing to mix the channels? Are the ICs just for amping or something? Also if you have a schematic that'd be cool :D
Title: Re: Making a sound mixer
Post by: ClrDraw on October 15, 2014, 07:54:52 pm
This looks really cool (and complicated :P)! Good work :)
Title: Re: Making a sound mixer
Post by: Sorunome on October 16, 2014, 02:20:20 am
My brother is into audio electronics, and he was wondering what precisely is it doing to mix the channels? Are the ICs just for amping or something? Also if you have a schematic that'd be cool :D
the ICs are indeed just amps. The key to mixing the channels is to prevent the input of one "going" into the input of another, you can do that by simply putting in resistors before merging them.
And I have a schematic.....ok, keoni made that schematic :P http://img.ourl.ca/schematic1.png
This looks really cool (and complicated :P)! Good work :)
Thanks!
Title: Re: Making a sound mixer
Post by: Keoni29 on October 16, 2014, 08:20:58 am
It's basically a bunch of inverting amps with an ajustable resistor in the feedback loop. The outputs of those are then summed by an inverting summing amplifier. The result is all of the channels coming out non-inverted again. (Not that it matters most of the time though.)
The amps make sure there is no crosstalk between channels. I should have made that schematic in CAD software. It looks so ugly
Title: Re: Making a sound mixer
Post by: Sorunome on October 16, 2014, 08:48:22 am
Haha, but it serves purpose ;)
Title: Re: Making a sound mixer
Post by: DJ Omnimaga on November 04, 2014, 01:31:31 am
I completely missed this due to being sick around when this got posted, but it's cool to see you're into sound hardware stuff too. :)
Title: Re: Making a sound mixer
Post by: Sorunome on November 04, 2014, 06:39:51 am
Hehe :P
I'm waiting for parts from china.....
Title: Re: Making a sound mixer
Post by: Vogtinator on November 04, 2014, 09:33:14 am
You can also do this digitally, without pots, by using some analog multiplexers and digital pots.
I built a preamp consisting of a TDA7439 and TEA6420, it sounds pretty impressive, although it's not complex in any way.
You could easily combine it with some PT2257 and control the whole thing over I²C with a MCU with the added bonus of remote control and you can also save/restore some settings.
Title: Re: Making a sound mixer
Post by: Sorunome on November 04, 2014, 09:46:24 am
well i wanted to be able to control that thing without the need of a computer ;)
Title: Re: Making a sound mixer
Post by: Streetwalrus on November 04, 2014, 10:50:00 am
That looks pretty cool. Reminds me I have an electronics project to post here as well.
Title: Re: Making a sound mixer
Post by: Vogtinator on November 04, 2014, 10:55:29 am
Quote
well i wanted to be able to control that thing without the need of a computer ;)
I can only recommend that you read a bit about MCUs, they're really useful for this kind of stuff ;)
(MCU = Micro Controller Unit = Mikrocontroller, in case that wasn't clear)
Title: Re: Making a sound mixer
Post by: Sorunome on February 04, 2015, 03:47:44 pm
I have stereo now!
And and better handling of wiring to the potentiometers!
And a cinch port thingy!
Images:

This is the back side of the cinch port thingy:
(https://img.ourl.ca/CIMG4365.JPG)

And now with plugs:
(https://img.ourl.ca/CIMG4366-small.jpg)

And the top:
(https://img.ourl.ca/CIMG4367-small.jpg)

Trust me, soldering those headers was a PITA

The boardy-ness:
(https://img.ourl.ca/CIMG4368-small.jpg)

And the volume regulators integrated into my knex desk stand my monitor is standing on:
(https://img.ourl.ca/CIMG4370-small.jpg)
Title: Re: Making a sound mixer
Post by: Keoni29 on February 09, 2015, 06:36:55 pm
Cool beans! Those hama cables are fancy :3
Title: Re: Making a sound mixer
Post by: Sorunome on February 10, 2015, 05:34:06 am
I got them for free, just like all my other cinch cables :P
Title: Re: Making a sound mixer
Post by: Sorunome on April 14, 2015, 08:01:33 am
Sooooo, i just noticed a little issue that makes no sense to me:
Input A is my raspberry pi
Input B is my laptop

If I connect only input A then everything is fine
If I connect only input B then everything is fine

If I connect A and B then I get static noise on B, but not on A

Is it a issue that I just connect all the grounds? But if I split grounds I get even greater static noise, perhaps they need resistors or something?

EDIT: I mean connecting the grounds in such a way, would that help to prevent static noise?
(https://img.ourl.ca/grounds.png)

If so, which value should the resistors have? 10k?

EDIT2: Also, when regulating the channels, the static noise also gets louder/quieter, which is actually weird as the volume control only effects the signal.

EDIT3: so now I connected the ground with a power socket ground and the static decreased a lot, but now there is still some, but the weird thing is that the static increases if i decrease the volume, that makes absolutely no sense!
Title: Re: Making a sound mixer
Post by: Keoni29 on April 21, 2015, 07:06:56 am
This is probably caused by a ground loop somewhere in your system.
http://en.wikipedia.org/wiki/Ground_loop_(electricity)

You cannot isolate grounds using resistors. The grounds are still electrically connected this way. Instead you could try using audio transformers or optocouplers to electrically isolate the signals. This technique is commonly used to get rid of ground loop interference.

Instead of isolating grounds you could also use differential inputs for the amplifiers. This requires an extra feedback loop on all input amplifiers.
http://en.wikipedia.org/wiki/Differential_amplifier#Operational_amplifier_as_differential_amplifier
With this method the voltage reference is no longer common ground, but the signal ground. You no longer need to connect all signal grounds together. Edit: They're not completely electrically isolated but you can set a very high input impedance, so they can barely affect eachother.
Title: Re: Making a sound mixer
Post by: Sorunome on April 21, 2015, 09:23:43 am
Thanks, I found another ground loop - either my laptop or my desktop sound card is designed badly: you can create a static noise on line out if they have a common mic on line in.

EDIT: But how would I merge then? As I have multiple signal grounds instead of one common ground
Title: Re: Making a sound mixer
Post by: Vogtinator on April 21, 2015, 05:25:27 pm
Thanks, I found another ground loop - either my laptop or my desktop sound card is designed badly: you can create a static noise on line out if they have a common mic on line in.
So you have essentially a T-connector for your microphone? That's not really a good idea, noise won't be the only issue here. You can try capacitive coupling, around 330n should be enough.
Title: Re: Making a sound mixer
Post by: Keoni29 on April 22, 2015, 03:06:45 pm
Thanks, I found another ground loop - either my laptop or my desktop sound card is designed badly: you can create a static noise on line out if they have a common mic on line in.
So you have essentially a T-connector for your microphone? That's not really a good idea, noise won't be the only issue here. You can try capacitive coupling, around 330n should be enough.
That only reduces any DC offset and other low frequency interference. The signal grounds should be isolated from the power supply's ground and most importantly from eachother.

Here is some more reading material:
http://books.google.nl/books?id=PvKPEFu2PVkC&pg=PA344&redir_esc=y#v=onepage&q&f=false

This differential input also rejects any common mode noise: Static noise introduced in the cable. Because the difference between the two signal wires is amplified any noise common to the wires is not amplified.
Title: Re: Making a sound mixer
Post by: Vogtinator on April 23, 2015, 01:17:25 pm
Thanks, I found another ground loop - either my laptop or my desktop sound card is designed badly: you can create a static noise on line out if they have a common mic on line in.
So you have essentially a T-connector for your microphone? That's not really a good idea, noise won't be the only issue here. You can try capacitive coupling, around 330n should be enough.
That only reduces any DC offset and other low frequency interference. The signal grounds should be isolated from the power supply's ground and most importantly from eachother.

Here is some more reading material:
http://books.google.nl/books?id=PvKPEFu2PVkC&pg=PA344&redir_esc=y#v=onepage&q&f=false

This differential input also rejects any common mode noise: Static noise introduced in the cable. Because the difference between the two signal wires is amplified any noise common to the wires is not amplified.

If you design it correctly, you won't need a differential signal for audio. Just make sure that not more than one device is earthed.
You definitely need to connet all signal grounds together, otherwise the shielding becomes useless and will in fact introduce even more noise.
The decoupling is needed to make sure that both input devices don't interfere with each other, to get the best signal out of it you'd even have to calculate some resistors in series with the caps for impedance matching (audio is normally about 200 or 400 Ohms).
Title: Re: Making a sound mixer
Post by: Keoni29 on April 26, 2015, 03:41:14 am
Shielding ground and signal ground are not the same thing. They are typically connected to eachother with an inductor, so the current is limited and high-frequency noise is rejected.
Title: Re: Making a sound mixer
Post by: Sorunome on June 25, 2015, 12:57:33 pm
PCB GOGOGO!!!
(https://img.ourl.ca/P1020883-small.jpg)

I know it looks like crap but it is my first PCB.

Also I just noticed that my 10K stereo potentiometers are freaking crap.......anyone know good ones to recommend?
Title: Re: Making a sound mixer
Post by: Keoni29 on June 25, 2015, 04:19:23 pm
Congrats on soldering your first board!
This looks a lot better than our project group's preamplifier. That thing had long airwires going all over the place.
Title: Re: Making a sound mixer
Post by: Sorunome on June 25, 2015, 04:24:58 pm
Congrats on soldering your first board!
This looks a lot better than our project group's preamplifier. That thing had long airwires going all over the place.
Thanks! The back is even more messy, though :P

Edit: here it is!
(https://img.ourl.ca/P1020889-small.jpg)
Title: Re: Making a sound mixer
Post by: Keoni29 on June 25, 2015, 05:09:37 pm
That's not bad for a first. You haven't seen my early work yet :P
Title: Re: Making a sound mixer
Post by: Sorunome on August 05, 2015, 09:12:16 am
So I just ordered some digital potentiometers for some dark magic
Title: Re: Making a sound mixer
Post by: Keoni29 on August 10, 2015, 07:28:53 am
Make sure that they can deal with the +12 -12v supply before you hook them up.
Title: Re: Making a sound mixer
Post by: Geekboy1011 on August 10, 2015, 07:57:34 am
That sounds fun :3 I need to build an amp board for my pc at somepoint. But I will probably use digital pots and make it a USB HID controllable device ;) So I do not have to fiddle with manual pots :D
Title: Re: Making a sound mixer
Post by: Sorunome on August 10, 2015, 04:11:27 pm
Make sure that they can deal with the +12 -12v supply before you hook them up.
Couldn't I power them only between the 0 and +12V or something?
That sounds fun :3 I need to build an amp board for my pc at somepoint. But I will probably use digital pots and make it a USB HID controllable device ;) So I do not have to fiddle with manual pots :D
Yeah the main reason why i got digital pots is that my manual ones are so shitty that the resistance randomly increases by more than double from time to time x.x
Title: Re: Making a sound mixer
Post by: Keoni29 on August 13, 2015, 06:12:04 am
You can clean potentiometers by spraying some wd40 in the little hole at the top.
You need digital potentiometers with a dual power supply because the signal voltage may drop below 0V.  The potentiometer will cut off the signal and might even get damaged. You could use +6 and -6v supply across the device. It's effectively 12v but the center is shifted. For this you need additional regulators. You could also make the entire system run from a single supply, but it requires some trickery.
Title: Re: Making a sound mixer
Post by: Sorunome on August 13, 2015, 06:14:38 am
You can clean potentiometers by spraying some wd40 in the little hole at the top.
You need digital potentiometers with a dual power supply because the input voltage may drop below 0V. You could also use +6 and -6. For this you need additional regulators. You could also make the entire system run from a single supply, but it requires some trickery.
The issue is something mechanical, that the little metal nob thingy is detaching from the resistor part thingy, i blame china quality :P
Title: Re: Making a sound mixer
Post by: Keoni29 on August 13, 2015, 06:16:19 am
Hmm I have tons of china quality pots and they seem to hold up fine (after cleaning)
Title: Re: Making a sound mixer
Post by: Sorunome on September 09, 2015, 06:10:11 pm
Ok, I got some trouble now, my Digital Potentiometers arrived and i set them to the exact same resistance value as the master channel of my sound mixer, i measured the resistance to make absolutely sure it matches the one of the analog resistor. And when using the digital one there is no sound coming out at all! D:
the digital pots are MCP42010

The power supply of the controlling unit (arduino + digital potentiometers) and the sound mixer (OP-Amps) is a different one.