DIY Audio Projects Forum

Welcome to the DIY Audio Projects Message Forum. Use these forums to discuss Hi-Fi audio and to share your DIY Audio Projects. Registration is free and required to post messages and view the file attachments. Registration will only take a minute and registered users do not see any advertisements. After you have completed the online registration process, check your email (including spam/junk folder) for the verification email to activate your account. New members are under moderation - so your posts will not be visible until approved by a moderator. See the Read Me 1st, Forum RULES and Forum FAQ to get started on the forum.

I am making a audio switch with 4 audio sources and one output to speakers.To do so i will be using either pic or atmega chip and TQ2 5V relay.To simplify I made a picture with only one input.When relay is on pin 3 and 4 are connected for right channel and when off, 3 and 2 are connected.Question is, should i ground the audio source (pin 2) when the relay is off or just leave the pin unconnected?

All help appreciated. Even on my relay choice

This post has a file attachment. Please login or register to access it. Only Registered Members may view attached files.

I am making a audio switch with 4 audio sources and one output to speakers.To do so i will be using either pic or atmega chip and TQ2 5V relay.To simplify I made a picture with only one input.When relay is on pin 3 and 4 are connected for right channel and when off, 3 and 2 are connected.Question is, should i ground the audio source (pin 2) when the relay is off or just leave the pin unconnected?

All help appreciated. Even on my relay choice

OK - this is a nature-of-the-beast issue.

a) Will the audio source tolerate running unloaded? Many (not all) solid-state sources do not like being run without a load. b) If you do ground the pin (I would), run it through a 100 - 500 ohm, 2-watt resistor in any case. This will remove any risk to the source. c) And watch like a hawk to make sure that resistor does not heat up.

Wisdom gained, after it happens to you.1- Question. Should a relay coil be controlled directly from the pin of the CPU?2- Answer- no. 3- Reason- Fine when the pwr is first turned on, no problem, but, when the relay coil is d-energized and the magnetic field collapses a "high voltage shot" will be sent directly into the CPU pin destroying it.4- Solution- Use a diode (1N400x) placed in reverse across the relay coil (anode to V+ on coil) so the high voltage spike will be sent back into the relay-coil instead of into the CPU pin. I know the temptation to not use a transistor to power the relay is strong as the CPU pins are capable of driving more current than the relay uses but since you already have a trans driving the LED add the relay in with the LED. That way the CPU is driving the trans and the trans is driving the LED and the relay (much safer). Still always put a diode across the relay coil. (anode to whichever relay coil pin is connected to V+ and cathode to the gnd return). You will be thankful you did it.

You are right about that and thank you for pointing that out. After "digesting" the circuit for a day I did add a transistor and a flyback diode to save the cpu. I also added another relay to cutt of adio ground. Connecting the ground of 3-4 device's is not the smartest idea I have had

Don't worry about the gnd of devices which are not connected at that time. No need to disconnect them. Think of the average stereo amp system. All the grounds are connected together when the audio input signal wires are plugged into the back of the amp. When (from the front) a different source is desired one dials it up on the front selector switch. This switch is connecting the signal wires to the input of the amp. The ground wires are already connected.

Don't worry about the gnd of devices which are not connected at that time.

What about ground loop?There will be 4 inpnuts. Record player and aux. Internally there will be bluetooth and fm receiver. Those have the same power supply.Perhaps if I connect the gnd from ps to the device's and switch, and only signals from device's to switch?

Hi, The 4148 is a small signal switching diode. It might work. But I have concerns about its maximum voltage rating. The reverse spike from a relay can be quite large and may cause the diode to fail. The UF4004 is much sturdier and would be my choice.

Who is online

Users browsing this forum: Google Adsense [Bot] and 3 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum