0 Members and 1 Guest are viewing this topic.
.... It should work without any common connection between them.....
Thanks I'll try it that way.The speaker output does appear to share a speaker GND with both the decoder and Bluetooth transmitter with the one side of the decoder's speaker output grey/blk wire and the blk wire to the MP1495 on the 3 GND's on the transmitter.Sumner
In your diagram the speaker outputs go to the poles of the DPDT switch which then feed the speaker through the center connection on the DPDT switch. Those circuits never connect. It is basically as if you were physically disconnecting the speaker from the decoder and connecting it to the KCX board and vice-versa. Maybe your diagram is incorrect? Also, I believe that the speaker outputs from the audio amp do not use ground. Both output leads are active, driven by a transistor bridge inside the amp.And as I mentioned, the "ground" of the decoder and of the MP1495 will likely have slightly different potentials (unless the voltage OUT+ and OUT- is isolated from the input.
.....Your second diagram clears that up. It also explains why you had to use such high value resistors to lower the voltage level to what is acceptable by the KCS board. You could have used lower value resistors configured as a voltage divider to drop the audio signal to line-level value., but it the circuit works for you it's ok.If you were to wire the unconnected pin on the volume control pot to the KCS' GND you should have complete volume control from zero to loud.
Does Arduino require 7V to power it? That seems like an odd voltage to me.
..........You mentioned that you had to add that 5v to 5v DC/DC converter to isolate the KCX module. I suspect that was likely because you were connecting the negative speaker output from the mini amp to the KCS ground. The mini amps module likely uses a push-pull amplifier so both positive and negative side of the speaker output will have voltage on them (negative output is not tied to ground).
.....Why were you tapping the audio from the speaker output of the mini amp to feed the KCS? Why not connect it to the Arduino's audio output (pin D9) along with the mini amp? That way everything can be powered using GND and 5V from the Arduino. Actually I'm surprised that the Arduino's internal 5V regulator can supply enough current power to the mini amp....
......I'm also curious why the resistor values in the voltage dividers is so different between the mini amp and the KCS. They both reduce the audio level by 50%. Also, since the mini-amp has its own built-in volume control, why did you need to use a voltage divider on the mini amp's audio feed? Is the audio signal coming from Arduino's D9 pin too high (not line-level audio)?
....Here's a simplified circuit I would have tried (I only left the power and audio connections for clarity). The AGND and PGND on the KCS are still connected (the drawing is not very clear there). In this circuit I only use opposite halves of the DPDT switch. It cuts off the speaker in one position and cuts off the audio signal to the KCS in the other position.
....I still think that the 7V thing is odd. More typical power supply voltages in that range are 5, 6, 9, and 12. I would have likely selected 9V.