Audio signal between digital devices shuts down one of the two devices

MisterBill2

Joined Jan 23, 2018
28,697
OK, we have a stereo output, at least I am guessing that it is stereo, but it may not be. So it is connecting to an input jack that may or not be two channels. Of course, these are both guesses.
 

djsfantasi

Joined Apr 11, 2010
9,237
Are you connecting one side of the audio to the circuit ground?

Don’t!

Audio ground is usually shifted up from the circuit ground. The module documentation usually specifies NOT to connect these two grounds. Otherwise, you’ll have a short that likely shuts down the module.
 

Thread Starter

jacopo1919

Joined Apr 12, 2020
115
OK, we have a stereo output, at least I am guessing that it is stereo, but it may not be. So it is connecting to an input jack that may or not be two channels. Of course, these are both guesses.
yes, it's a headphone stereo jack 3.5mm output, going inside of a stereo 6.35mm jack input of a board named ''Pisound'' that sits on top of the Raspberry Pi!

Are you connecting one side of the audio to the circuit ground?
I am connecting just the 2 jacks (input and output). I don't connect them to the circuit ground directly but at this point, i might think that the one device has the ground shifted as you say, and the other one (the one on the Rpi) it has its audio input ground tied to circuit ground
So, by measuring voltage between the raspberry audio Ground and circuit ground, there is 40mV, if i measure the same of the other device, i find 1.9V!
That looks like the issue and confirm what above mentioned
 

BobTPH

Joined Jun 5, 2013
11,680
You have been told how to connect it. You did it wrong. I corrected you again, but you have ignored that. Hard to understand why you resist doing what will work.

Bob
 

Thread Starter

jacopo1919

Joined Apr 12, 2020
115
The ground of the Pi input should be connected directly to ground on the the Bluetooth board. The audio input on the Pi should be connected to one of the speaker outputs of the bluetooth board through the 10uF capacitor.
probably i continue to make mistake because I don' understand what you mean with ''ground''.
Here there are 2 grounds for each device (circuit ground and audio signal ground) and you just mention ''ground''. that's why i get confused.
In this message, i already connect the grounds of the 2 boards.. then i connect the speaker ''positive'' by placing the capacitor in series with the path but as soon as also the ''speaker audio grounds'' of the cable itself are connected, one device goes off.
Am i doing something different from what you suggest?
 

BobTPH

Joined Jun 5, 2013
11,680
There is no separate audio ground on either device. That was speculation by some posters. There us only one ground in the entire circuit when they are run off the same supply.

The Bluetooth device has a bridged output, which has neither output wire at ground. This is the problem. When you connect one of those to ground, you created a short, which shut down the device. You are lucky that it did not create smoke.

Then you connected one of the outputs to ground through a capacitor. This is almost as bad since it is an AC short.

Your Pi audio input has one lone at ground, and the other connected through a capacitor.

Let me make it simple for you. Connect the tip of the input side of the cable to the tip of the output side ,and cut the connection of the sleeve (ground for normal devices). This will work and not destroy anything.

Bob
 

MisterBill2

Joined Jan 23, 2018
28,697
A stereo output connector has three lines, Tip, Rin, and sleeve.
"Ground" is a mythical zero voltage zero impedance connection plane. Mostly when folks say ground they mean the power supply common side. In this particular conversation "ground" is referencing the sleeve connection of the 3.5mm connector, which now we know is NOT really ground. And yes, it IS a source of confusion, indeed.
 

Thread Starter

jacopo1919

Joined Apr 12, 2020
115
Hello everybody, please let me know if i should open a new thread. the topic and the project but the question is a bit different. If needed, i will sum up in a new thread.

I have done friendship with a magnifying glass and i tracked down the actual (simplified) schematic attached.

I found out a spot where i can take and use the signal after removing the +2V DC offset.

The spot is after a LM324 and just before the signal goes to a 8002 bridged audio power amplifier. This part of the circuitry on the board, beside the values, is quite exactly as the one on the sheet.

Of course you were correct with your previous advices. I now need to understand the cause of this interference noise that appears quite loud (here you can listen. is amplified).

The noise is not dependent from the audio signal transmitted which is tied to 0V when measuring the following (ADC Gain is at minimum):

-88 dbFS of noise when the jack is completely phisically removed.
-63 dbFS of noise when everything is connected but the Transmitter is OFF
-54 dbFS of noise when everything is connected but the Transmitter is ON.


Is this a intereference coming from power supply issues?
What could be the cause and how to get rid of it or at least reduce it as much as possible?

the only thing i founded until now is this note from TI but I'm not sure about it. I will order some TPA6132A2 and try anyway.

Thanks

#Audio transmitter si https://www.alibaba.com/product-detail/IN-C043-1-Ucuz-Portable-Wireless_60823653187.html
#Raspberry's Soundcard is https://blokas.io/pisound/docs/
 

Attachments

MisterBill2

Joined Jan 23, 2018
28,697
Certainly power supplies can be a large source of noise. AND they can source noise voltages between the power supply common and an external circuit while not developing any noise voltage on their DC output. And presently I am guessing that there are more than one power supplies involved. Switching mode power supplies are often the source of noise.
One more thing is that a headphone output is intended to be totally isolated and not connected to anything except a set of headphones. So the common on the headphone connector may be at any voltage level. So connecting that point to an external circuit will often lead to undefined operation. Now I am going to suggest connecting headphones to the headphone jack and verifying that the sound is OK and the noise is not present. And I am guessing that the circuit is the one in post #30, Schematic_LM324..Listening with headphones can reveal noise present without any external connections.

So now I am going to have to re-read the whole thread to clarify things in my head.
 
Last edited:

MisterBill2

Joined Jan 23, 2018
28,697
And a few more thoughts here: So far we have no description of the "noise", and knowing what sort of noise matters a whole lot. One common noise is the mains frequency hum, either 50 05 60 Hz. That is better described as "HUM". Another comming noise sound is similar to the sound of frying food. A broad spectrum tending to often include a lot of high frequency sounds. This noise has no particular pitch. Then there is another kind of noise, which is some sort of tone, with a definite frequency, which may vary over a wide range, or stay mostly constant. And a fourth kind of noise is mostly distortion of what is supposed to be present, but instead is a distorted version of what should be. hen in post #30 it is referenced as "interference noise", and what sort of interference is it? So the situation is no clearer than it was before.
The causes of these different types of signal are quite different, and the fixes are also different. So without more description all are simply guessing.
 
Last edited:

sparky 1

Joined Nov 3, 2018
1,218
The AVS the OS and Streaming platform share encryption key that insures that subscription is paid.
I think the owners are alexa amazon and raspberry AVS SDK
 

Thread Starter

jacopo1919

Joined Apr 12, 2020
115
@MisterBill2 thanks for helping.
In post #30 i postes the noise itself to listen ut it was a bit hidden since was linked to the word "here".
This is the full link to the noise
https://v3.fastupload.co/file/8023

By connecting the headphones i get the sound with no noise.
I want to get rid of the heaphones though. It will be simpler if i take it from the point shown in the "schematic", in order to send it straight into the Raspberry.

And a few more thoughts here: So far we have no description of the "noise", and knowing what sort of noise matters a whole lot. One common noise is the mains frequency hum, either 50 05 60 Hz. That is better described as "HUM". Another comming noise sound is similar to the sound of frying food. A broad spectrum tending to often include a lot of high frequency sounds. This noise has no particular pitch. Then there is another kind of noise, which is some sort of tone, with a definite frequency, which may vary over a wide range, or stay mostly constant. And a fourth kind of noise is mostly distortion of what is supposed to be present, but instead is a distorted version of what should be. hen in post #30 it is referenced as "interference noise", and what sort of interference is it? So the situation is no clearer than it was before.
The causes of these different types of signal are quite different, and the fixes are also different. So without more description all are simply guessing.
 

sparky 1

Joined Nov 3, 2018
1,218
HOW does that statement relate to the discussion at hand???
I might have made a mistake thinking AVS was an audio protocol but is alexa voice system.
you are probably correct. There are many Raspberry bluetooth projects were more devices are getting separate power supplys.
Some are building expansion cards for more USB and this is where the software drivers had conflict causing device shut down this past week.
 
Last edited:

MisterBill2

Joined Jan 23, 2018
28,697
OK, now here is a very useful piece of information, which is that the sound delivered to earphones is satisfactory. So now I can offer a solution that is fairly simple and does not involve active devices. That would be to use two small audio transformers as the isolation mechanism. Given that the actual audio power is milliwatts, and that the voltage is quite low, these can be rather small devices, and yet provide the required isolation. And the turns ratio of the transformers can be 1:1 . An inexpensive alternative would be to use the devices normally used as filter chokes in switching power supplies, the ones with two windings normally one in series with each side of the line. But instead, use one winding as the primary and the other as the secondary. Quite good isolation and if the current rating is low enough but the inductance is high enough, they should work very well. And be inexpensive, also.
 

Thread Starter

jacopo1919

Joined Apr 12, 2020
115
I purchased a TY_250P (maybe not essential but was as cheap as 6 euro) and the result is optimal. Really thanks for the help, finally a decent sound!
Schermata 2021-12-14 alle 13.46.35.png
i tested only 1 of the 2 stereo channels.
About devices normally used as filter chokes I'm about worried that the operating frequency range would be inappropriate since during my research, was already quite hard to find transformers suited for audio frequency range.

in order to persevere a bit: beside the very effective galvanic isolation, are there also Active alternatives for achieving this result?
 
Last edited:

MisterBill2

Joined Jan 23, 2018
28,697
I purchased a TY_250P (maybe not essential but was as cheap as 6 euro) and the result is optimal. Really thanks for the help, finally a decent sound!
View attachment 255198
i tested only 1 of the 2 stereo channels.
About devices normally used as filter chokes I'm about worried that the operating frequency range would be inappropriate since during my research, was already quite hard to find transformers suited for audio frequency range.

in order to persevere a bit: beside the very effective galvanic isolation, are there also Active alternatives for achieving this result?
Transformers are the simplest and easiest to implement galvanic isolation schemes. There are a wide variety of active isolation devices available but mostly they are physically larger and quite a bit more complex. There are arrangements that use capacitive isolation inside an IC, but I have not used them.
Using a filter choke as an isolation transformer would be worth trying if you had one available, probably taken from a discarded power supply. I do have a dead switcher supply and so I should try it. But I have seen it mentioned in a couple of articles and it seems that at low signal levels it should work. Audio transformers indeed have a very demanding application.
 
Top