Bluetooth audio reciever + Analog input switch

Hello,

I'm trying to build a little project for my house. I'd like to be able to use the speakers I have connected to the tv as bluetooth speakers at the same time, making it switch the source depending on which input channel is emitting.

My idea is to detect which line is emitting with an arduino nano and multiplex the audio output based on that.

I've already located a dual channel audio switch that I think will do the trick (TS5A22364, I'd like a different packaging with the pins prepared to fit into a protoboard, but I was unable to find it), the problem is that I'm not quite sure how to manage the bluetooth part and the detection.

Do you think I can manage the bluetooth audio with a simple bluetooth module and some code? (this would make it easy to detect when the bluetooth is recieving) Or should I find a different solution?

I was thinking on using a RN-52 module and detect which line is emitting audio using the analog pins of the nano.

So far my questions are:

  • What do you guys think about my approach?
  • Is there any better chip for the dual channel audio switch?
  • What do you recommend me on the bluetooth part?

Thank you!

It's not clear what you are proposing. Are these speakers built into the TV? If so, the TV will have to be switched on, so you might as well use its phono inputs, if it has them.

If these are separate speakers, are they active or passive? Are they connected to an amplifier? Does that have phono inputs?

You seem to be suggesting using analog switches. This can only be done with line-level signals. If the signals are amplified, it could be done with relays.

Most types of Arduino cannot deal with bluetooth audio data. They are not fast enough.

It's not clear what you are proposing. Are these speakers built into the TV? If so, the TV will have to be switched on, so you might as well use its phono inputs, if it has them.

If these are separate speakers, are they active or passive? Are they connected to an amplifier? Does that have phono inputs?

I'm sorry for not being clear.

The speakers are external and they are connected to an amplifier. My idea was making the switch before the amplifier, on the input audio line. The amplifier only has a jack input, it doesn't have phono inputs.

You seem to be suggesting using analog switches. This can only be done with line-level signals. If the signals are amplified, it could be done with relays.

I want to do it with the audio output of the tv and the output of the bluetooth reciever, so I gess that it's line-level, but I'm not sure.

Most types of Arduino cannot deal with bluetooth audio data. They are not fast enough.

Okay, just wanted to be sure. Then I gess I'll go with the RN-52.

Judging by the Sparkfun module, those RN52 are quite expensive. For that money you could buy a Pi 3 or similar. They have Bluetooth and WiFi and gpio you could use to control relays for audio switching. There are lots of audio & entertainment applications actively being developed for Pi, I would recommend researching those avenues before you spend your cash.