digital-analog-converter

SPIDEV on raspberry pi for TI DAC8568 not behaving as expected

徘徊边缘 提交于 2019-12-13 08:39:45
问题 I have a Texas Instruments DAC8568 in their BOOST breakout board package. The DAC8568 is an 8 channel, 16bit DAC with SPI interface. The BOOST package has headers to connect it to my raspberry pi, and it has LEDs connected to the output voltage so you can easily check to see if your code is doing what you think it does. Links to the BOOST package and datasheet of the DAC8568 are in my python code below. I have the package wired to the raspberry Pi with the 3.3V supply, the 5V supply (needed

Digital audio formating

天大地大妈咪最大 提交于 2019-12-11 07:59:07
问题 I have a vectorized wav file with values between -1 and 1, 88,200 samples, 44.1 kHz sampling rate to hear the audio within two seconds. I'd like to send the audio through bluetooth to a bluetooth module, arduino, DAC, and 3.5mm breakout board with earbuds. I am getting crackly audio when I receive it at the end. I tried to recreate this is MATLAB and it turns out to be a combination of the scaling (multiplying + shifting the values over 0) and the sampling rate change due to the receivers. Of