tierneytim / btAudio

Bluetooth Audio for Arduino
206 stars 30 forks source link

'underTheHood' code does not work since Arduino boards upgrade #34

Open Fre19 opened 9 months ago

Fre19 commented 9 months ago

I am using the "underTheHood" Bluetooth code of 'tierneytim' for my ESP32 application combined with the "bitluni" amplitude modulator for old AM radio's. In this application i2s0 is fed with AM modulated (at 800 kHz) BT audio data, i2s0 is linked to the internal DAC, and i2s1 is the 16-bit output for devices such as MAX98357 3W amp or the PCM5102 headphone module. Basically both i2s are fed by the bluetooth output data. This application worked perfect for more than one year on my old AM radio's, one is nearly 100 years old!

Recently I accepted a Arduine boards upgrade, since then, I cannot get the script working again: that is, after some code changes I needed to do since apparently three API's changed: 'i2s_write..' requires 5 arguments, i'2s_config... communication_format' changed.. the compiler accepted the changes but the i2s1 output remains distorted, with some echo effects..

Has someone an idea where I could find a solution? Or what I could test to isolate the problem? Should I perhaps go back to older versions of Arduino boards? (I forgot to note the version levels from the previous working code, =lesson learned!) and.. does the "underTheHood" code still works after the latest Arduino boards updates?

IDE:2.2.1; Arduino ESP32 Boards 2.0.13; esp32 by Espressif Systems 2.0.14; Board used: ESP32 Dev Module @240MHz Cpu

Any help would be most appreciated! Fre19