Not at all Jerry. Just ran out of ideas on the current board - so I'll probably have to rethink board design. I think I'll - Move the power supply away from the processor - Move the si5351 away from the audio circuitry More to come certainly and thank you for the comment
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!
@@na5y Also a single point merging GND and AGND to reduce the analogue current loops! Fascinating series! I'm keen to try this on an Arm/STM32 dev board.
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.
I remember wondering about that myself - but the sample circuit in the datasheet (page 39) shows a DC blocking caps on both of the audio inputs so I think its a mistake - i.e. you don't have to bias the input signal around 2.5V. Perhaps internally its raised to 0.5 * Vcc
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?
Its unfortunately a bit more complicated than that. DOUT outputs an I2S bit stream and you really need the other I2S pins (LRCLK, MCLK, ...) to make sense of the stream. I have a separate video on I2S if you are interested here: th-cam.com/video/jvmejxsQzn4/w-d-xo.html Assuming you can decode the bit stream it would likely be way too much data to output to your serial line. You could output samples - but not the whole stream. I hope this helps and thank you for the comment
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.
Yes - I have it happen all the time - particularly if I include in the editor some code outside the project. I have found the "Rebuild Index" helps sometimes - but often I have to manually delete all the errors and remove the offending code from the editor. I do think ESD or heat caused the problem - or it could be the aliexpress chips aren't the greatest quality. Thank you for the comment TEH!
@@na5y i just leave the code as it is, it seems to be an index problem but does not affect the complier as it will fail on errors, and seems to ignore the rest. i think two parts of the IDE are not taking to each other. i expect the code complies correctly as it's being build outside of eclipse in a the esp provided complier. which has got its act together. Still trying to work out how to generate a new project with the esp8266, i have to use an example and then remove all the code except for my bit. can't seem to find a default blank template for it.
Thank you Antonio - for a long while I thought I wouldn't be able to get this one working. I didn't think showing multiple hours of things not working would be interesting though ;)
Ian, I hope you haven't abandoned your ESP32-A1S transceiver. I always look forward to viewing your videos. Thank you.
Not at all Jerry. Just ran out of ideas on the current board - so I'll probably have to rethink board design. I think I'll
- Move the power supply away from the processor
- Move the si5351 away from the audio circuitry
More to come certainly and thank you for the comment
Just finishing my 2nd T4 Laser Synth PCB, using the PCM3168 CODEC, because the CS42448 went EOL on me.
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!
Definitely - just trying a simple board to start with. I didn't even know if the PCM3060s I got from aliexpress would work! Thank you for the comment
@@na5y Also a single point merging GND and AGND to reduce the analogue current loops!
Fascinating series! I'm keen to try this on an Arm/STM32 dev board.
@@m1geo Thank you George - glad you are enjoying!
I enjoy watching your channel. Thanks Ian 73
Thank you Dave - glad you enjoyed
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.
I remember wondering about that myself - but the sample circuit in the datasheet (page 39) shows a DC blocking caps on both of the audio inputs so I think its a mistake - i.e. you don't have to bias the input signal around 2.5V. Perhaps internally its raised to 0.5 * Vcc
@@na5y deam that was a quick answer...Thanks.
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?
Its unfortunately a bit more complicated than that. DOUT outputs an I2S bit stream and you really need the other I2S pins (LRCLK, MCLK, ...) to make sense of the stream. I have a separate video on I2S if you are interested here: th-cam.com/video/jvmejxsQzn4/w-d-xo.html
Assuming you can decode the bit stream it would likely be way too much data to output to your serial line. You could output samples - but not the whole stream. I hope this helps and thank you for the comment
@@na5y Thank you! i will certainly watch this.
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.
Yes - I have it happen all the time - particularly if I include in the editor some code outside the project. I have found the "Rebuild Index" helps sometimes - but often I have to manually delete all the errors and remove the offending code from the editor. I do think ESD or heat caused the problem - or it could be the aliexpress chips aren't the greatest quality. Thank you for the comment TEH!
@@na5y i just leave the code as it is, it seems to be an index problem but does not affect the complier as it will fail on errors, and seems to ignore the rest. i think two parts of the IDE are not taking to each other. i expect the code complies correctly as it's being build outside of eclipse in a the esp provided complier. which has got its act together. Still trying to work out how to generate a new project with the esp8266, i have to use an example and then remove all the code except for my bit. can't seem to find a default blank template for it.
@@TheEmbeddedHobbyist It doesn't help me that I don't really know CMake or its ecosystem that well
Thank you Ian, always interesting solutions, i am following you!! Antonio
Thank you Antonio - for a long while I thought I wouldn't be able to get this one working. I didn't think showing multiple hours of things not working would be interesting though ;)
@@na5y It is always interesting and useful, I have learnt much more from mistakes than succeses!!😊
Thank you. A very interesting topic. 73!
Thank you Ed - been meaning to try this for a while
Good job, interesting topic :)
Thank you Jose!