ESP32 and PCM3060 with Arduino Audio Tools

preview_player
Показать описание
In this video I get the PCM3060 audio codec working integrating it both with Arduino Audio tools and the ESP-IDF

The PCM3060 datasheet

Here's where I got the PCM3060s from (no affiliation)

Arduino Audio Tools

The Arduino Code

The schematic

ESP-IDF code

The "firduino" extensions for Audio Tools

I2S Video

0:00 Intro
0:40 PCM3060 description
3:10 PCM3060 connected to ESP32 I2C
4:24 First testing the I2C connection
6:19 Schematic for I2S for audio output
8:39 Audio output on the board
9:42 Walkthrough of ESP-IDF code
13:43 Audio Output with Arduino Audio Tools
16:03 Arduino Audio tools example on the board
17:19 Schematic for Audio Input + Audio Output
17:57 Audio Input/Output on the board
18:30 Why two boards?
20:47 90 degree phase shifted output
21:55 Code changes
Рекомендации по теме
Комментарии
Автор

Ian, I hope you haven't abandoned your ESP32-A1S transceiver. I always look forward to viewing your videos. Thank you.

jeroldponko
Автор

I enjoy watching your channel. Thanks Ian 73

rfdave
Автор

Just finishing my 2nd T4 Laser Synth PCB, using the PCM3168 CODEC, because the CS42448 went EOL on me.

TheOleHermit
Автор

Hi, ive got a pcm1808, and i got nothin on dout, even when using external clock, its on slave mode and esp32 as master, do you have any suggestion?

MrIswang
Автор

If you're making a PCB for this, add more decoupling to the codec, at least one cap per pin. Then I'd add a ferrite bead and series resistor to the 5V (and probably 3V3) to help keep the noise down!

mgeo
Автор

Thank you Ian, always interesting solutions, i am following you!! Antonio

antaf
Автор

Thank you. A very interesting topic. 73!

edgull_tlt
Автор

Do you find with the eclipse IDE and the IDF etc it can't always find the includes and shows the red blocks on the right hand side, but compiles just fine so it must know where they are?

I've tried everything i can find to get it to work but even when you lose the red warnings, they come back a little later.

You might have hit the chip with a little ESD event, can happen at any time if you don't use a ESD mat and a strap.

TheEmbeddedHobbyist
Автор

Question: In the datasheet of the PCM3060 It says that center voltage for input analog pins is 0.5 * Vcc -> 0.5 * 5V -> 2.5V. Does that mean that the input signal must be raised by 2.5V. So the final audio input signal should be from -0.5V to 4.5V? Sorry I am not a circut master.

Seqwad
Автор

Great video!

i have a board that uses this codec chip and would like to use an arduino to get the data output stream from it (just read it and send to the serial monitor on the pc).
How would i do that?
read dout pin any time the clock hits high?

arturb
welcome to shbcf.ru