General > General Technical Chat
BT MP3 player module that can connect to a BT speaker (not phone)
scarr999:
Hi All,
The title says it all, I am looking for a module that I can put an SD card into and connect to a BT speaker (this is the sticking point I think) ideally I want some push buttons to play tracks, 1, 2, 3, 4.
My basic use for this is "a sound effects module" connected to a Bluetooth speaker.
I have found lots of BT modules but they all connect to phones as an audio source and not what I need, a BT speaker as an audio destination.
I hope someone will say "Look here dummy!" or "Here, I used this and it will do what you need" or "all of the modules will if you so XZY"
I hope someone can help, cheers
tom66:
Most Bluetooth modules accept PCM audio input over the I2S port, which means if you have an MP3 decoder IC/DSP chip with an I2S output connecting the two together with some glue logic to set up the A2DP connection should be sufficient.
I am not aware of a dedicated out of the box solution.
Be aware Bluetooth is a black hole as far as licencing goes. You can look forward to paying $10,000 in licensing fees if you want to use the technology and trademarks in a commercial product, as well as undergoing extensive certification.
I have had some experience with PulseAudio on an embedded Linux platform connected to an onboard Bluetooth module. It was easier than expected and in that case I used UART to send the compressed A2DP audio (using SBC codec) to the module which then sent it to an Anker Bluetooth speaker. The other option is to do the compression on the module itself and that's what the I2S interface enables. With BlueZ and Linux it all kinda "just works" once you figure out the setup and build the kernel to include the useful toys.
NiHaoMike:
ESP32 is as close as I'm aware of. Use the SPI to connect the SD card and program it to connect to the Bluetooth speaker.
scarr999:
Hi All,
I was thinking more of a module like this https://www.amazon.co.uk/dp/B08GLLWC24?psc=1&ref=ppx_yo2ov_dt_b_product_details but one that as I say, has the ability to connect to a BT speaker directly.
When connecting a BT device you normally are connecting a smart device (phone, tablet etc) to the speaker, this enables you to select and pair. without a screen (just the module and a speaker) is it even possible?
tom66:
--- Quote from: scarr999 on March 07, 2024, 12:51:02 pm ---Hi All,
I was thinking more of a module like this https://www.amazon.co.uk/dp/B08GLLWC24?psc=1&ref=ppx_yo2ov_dt_b_product_details but one that as I say, has the ability to connect to a BT speaker directly.
When connecting a BT device you normally are connecting a smart device (phone, tablet etc) to the speaker, this enables you to select and pair. without a screen (just the module and a speaker) is it even possible?
--- End quote ---
Yes. Bluetooth implements Secure Simple Pairing, and the methods permitted are (at least):
- Enter a code or password on the input keyboard/keypad when requested.
- Verify that a code matches (typically used with a device that has a screen).
- Time-based button press - device available for pairing for 30s - confirm pairing with button. Least secure method, but the limited time window for an attack makes it sufficient in normal use.
There's also an NFC method that I'm not exactly sure about but I presume it's standardised somehow as I've seen a few devices implement that.
Navigation
[0] Message Index
[#] Next page
Go to full version