BT receiver and sender over I2C, bad quality #747
-
|
Hi everyone |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
I am confused: why would you need 2 ESP32. Test each step separatly to indendify to source of your issue. I suggest that you start with a regular A2DP Sink playing back the audio via I2S or the internal DAc. You did not specify what OS your mobile phone is using. If it some newer Apple this might maybe be the source of our problem. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your reply. Perhaps I don't know enough about the ESP32, but I think an ESP32 can only connect to one device at a time via BT. That's why I used two ESP 32s.
I chose I2C because I believe it's worse to convert the received BT signal to analog and then convert it back again with an analog-to-digital converter in order to send it to the hearing aids. Perhaps a quick word about the project: my two grandchildren each have a hearing aid on the right side and, as of this week, a cochlear implant on the left side. These are from different manufacturers and therefore cannot be connected via a BT connection to a cell phone, for example. That's why I had the idea of building a device that would forward the received cell phone audio to two or even all four devices. I will think again about how this could be solved, but I am very grateful for any tips.
|
Beta Was this translation helpful? Give feedback.
-
|
So if I understand you right your flow is Mobile Phone -A2DP-> ESP32 - I2C -> ESP32 -A2DP-> BT Speaker Alternatively you can try to throttle the sending and use and monitor a buffer on the receiving side which drives a resampler that prevents over and underflows. In addition the needed bitrate is quite a challange: 44100 * 16 * 2 = 1411200 so you need high speed mode. |
Beta Was this translation helpful? Give feedback.
-
|
That's right, that's exactly how it works. But is there a smarter solution?
|
Beta Was this translation helpful? Give feedback.
I am confused: why would you need 2 ESP32.
Are you really intending to send audio via I2C ? This does not provide any flow control!
Test each step separatly to indendify to source of your issue. I suggest that you start with a regular A2DP Sink playing back the audio via I2S or the internal DAc.
You did not specify what OS your mobile phone is using. If it some newer Apple this might maybe be the source of our problem.