PCM1808 ADC produces loud white noise through bluetooth #1130
-
Hello! I'm trying to use the library to create a bluetooth source that can be used to interface my Sony Walkman with bluetooth headphones. I chose to use [this]https://www.amazon.com/PCM1808-Single-Ended-Analog-Input-Decoder-Amplifier/dp/B0925CBM5T/ref=sr_1_2?crid=3AIP4EA0I9ZGS&keywords=pcm1808&qid=1703897724&s=electronics&sprefix=pcm1808%2Celectronics%2C116&sr=1-2l) PCM1808 module to interface a 3.5mm jack with I2S. The bluetooth seems to work fine, but I get this nasty loud white noise in this rhythmic pattern for the whole time the ESP32 is powered on. I hooked it up exactly as the last part of the "external ADC" article in the wiki said. My code is as follows: I2SStream i2sStream; // Access I2S as stream // Arduino Setup
} // Arduino loop - copy data |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
you don’t use cfg in the last setup line? |
Beta Was this translation helpful? Give feedback.
-
You completely messed up with the format: if you copy the input to the output format needs to match! So you need to find out if your PCM1808 suppports 16 bits and if not you need to change the format dynamically as described in the Wiki. The Wiki already describes how to test the ADC seperatly |
Beta Was this translation helpful? Give feedback.
You completely messed up with the format: if you copy the input to the output format needs to match!
In addition A2DP only supports the format that you can find in the documentation.
So you need to find out if your PCM1808 suppports 16 bits and if not you need to change the format dynamically as described in the Wiki.
As joba-1 already outlined: the last line or the lines before don't make any sense and you need to use one or the other...
The Wiki already describes how to test the ADC seperatly