PCM1808 with ESP32-S3: Zeros in I2S Samples Despite Valid Input #2129
-
Hello Phil and loyal followers: I am an older hobbiest with poor hearing and I’m trying to build a device to stream analog audio from RCA inputs to Oticon Intent hearing aids via Bluetooth LE, using an ESP32-S3-DevKitC-1 and PCM1808 ADC breakout (from Amazon, tested multiple units). I'm also a loyal Linux enthusiast and find it frustrating that most of the HA manufacturers are not supporting BTLE directly on Linux and are pretty slow in facing up to that need and continue to fall back upon ASHA under Android. As for my project, I’m getting 4 bytes read per I2S sample but all zeros, despite a 1.27V RMS input (800 Hz sine from sox play -n synth 20 sine 800 vol 0dB). The wiki (https://github.com/pschatzmann/arduino-audio-tools/wiki/It's-not-working) and Discussion #162 suggest format or clock issues, but I’ve aligned with the PCM1808 datasheet (https://www.ti.com/lit/ds/symlink/pcm1808.pdf). As you recommend, I have reviewed all of the other Discussions containing the "PCM1808" and found nothing that changed my results. I have bought more devices, but they all perform the same. Any insights? Setup: Hardware: ESP32-S3-DevKitC-1 (Arduino core 3.0.2, IDE 1.8.19, Linux Mint 22.1), PCM1808 breakout (matches Figure 26, page 19). Code: Using Arduino Audio Tools (1.1.2), mono, 24-bit, 48kHz, left-justified or I²S: #################################################################### #define I2S_WS 15 I2SStream i2s; void setup() { void loop() { Serial Output (during tone):Starting I2S ADC Capture Measurements: Tried: Questions: Could PCM1808 breakouts (Amazon) have undocumented quirks causing zeros despite correct format/clocks? I like the PCM1808 breakout board, a good price, nice small size and seems to be exactly like the Application example in the TI datasheet. Too bad it is so finicky! Thanks for the fantastic library! I’m an EE hobbyist with telecom experience, eager to resolve this. Best regards, dtrueb |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
My original answer still applies... Just looking at your code:
|
Beta Was this translation helpful? Give feedback.
My original answer still applies...
Just looking at your code: