Sunday, 3 January 2010

Make a Sound Card with PCM2704

This article relates to my previous article Make a sound card with PCM2702. In this time I used newer IC from Texas Instruments PCM2704. Thanks to this circuit with all necessary features inside 28pins SSOP package I was able to built quite small sound card. The result is sound card with size of gumstick.




Description: 

This device is fully functional sound card for PC. The main advantage of using PCM2704 against PCM2702 is much easier construction. As you can see on the block diagram it has built-in 5V and 3.3 voltage regulator, HID interface (MUTE, VOL+, VOL-), S/PDIF output. The circuit can be powered directly from USB port. Next advantage is that the outup DAC is able to drive directly 32ohms headphones, but the ouput power is only 12mW. For all details please refer to the PCM2704 datasheet.


Block diagram


The schematic is very simple. It is almost copy of the datasheet circuit diagram. You can see the core IC PCM2704 (U1), crystal with supporting parts (X1, C1, C2, R1), connection to the USB (USB connector, R2, R3,R4, L1), a lot of blocking capacitors for all voltages (C3, C4, C5, C6, C7, C8), S/PDIF output header (J1), HID header (J2), output filter (R5, C11, R6, C12, R7, R8), coupling capacitors (C9, C10) and output 3.5mm Jack connector (J3).



Schematic of sound card with PCM2704

Realization:
I designed my own PCB. The dimensions of the PCB are 55x18mm, including USB and Jack connector it is 73x18mm. To keep the size as small as possible 0805 size of capacitors and resistors were used. The L1 is ferrite bead which reduce high frequency hum. With good soldering iron and litle experience it is possible to assembly the PCB by hand.


Assembly diagram (top side)

Assembly diagram (bottom side)


PCB (top side)

PCB (bottom side)


Assembled PCB (top side)

Assembled PCB (bottom side)

Conclusion:
I built two pieces of this sound card. I have tested the sound card under Windows XP and Windows Vista and it works without any problem. I wanted to use this device for my Internet radio receiver, which I'm building according to the project published on mightyOhm.com. The receiver is based on Asus WiFi router WL-520GU with OpenWrt Linux distribution. The sound card works under the Linux as well, but it stop and start playing the sound periodically (the period varied from few minutes to one hour). I guess it is driver problem (if somebody has any idea how to fix it I will be very grateful).

You can ask me why to build this sound card when you can buy similar device for few bucks. I have also one sound card from China which cost around 5$ but the quality of the sound is very bad, so the main difference is sound quality.

Links:
PMC2704 (TI)
PCM2704 Evaluation Board (TI)

20 comments:

  1. I have created a custom PCB board design with your schematic. However during prototyping on the breadboard, I was not able to get the device to be recognized when connected to the USB... I have the schematic and PCB design uploaded here:
    PCB:
    http://i39.tinypic.com/zxth1g.jpg
    Schem:
    http://i42.tinypic.com/n5sw3c.jpg

    ReplyDelete
  2. Richard, does it work at all? Check you have +5V and +3.3V chip power and 12MHz crystal, then USB wiring.

    ReplyDelete
  3. I have it setup the way you have posted. It is powered by the bus and has both 5V and 3.3V from the bus. It sometimes try to install the device but will fail and at times it would say the USB device is drawing too much power.

    ReplyDelete
  4. It seems like the V+ and V- lines on the USB were mixed up :) Working fine now, but the output is very weak...

    ReplyDelete
  5. Hello!
    I have used PCM2906 in my design, and had problems with recording too. Unfortunately, this is described in TI note SLAZ036A. Their solution was to make improved version of a chip: PCM2906B. When I changed to this chip, problems were still present, but occurred less frequently... So, expect "Pop noise at irregular timing, intermittent continuous noise, or L/R Channel Inverse during recording"...

    ReplyDelete
  6. inspiring post, well done!
    Thanks for the detailed writeup and sharing, cheers from Texas.

    ReplyDelete
  7. Hey, do you have any more information on how you made the pcb? I would like to build one of these and would like to use your pcb.

    ReplyDelete
  8. @Anthony: The PCB was fabricated profesionally in one of the Czech PCB manufacturer. I have enough spare PCBs from new batch. The PCB is gold plated with black solder mask. They are pretty nice. The price would be 6USD + shipping. You can contact me at diy4fun [at] gmail [dot] com.

    ReplyDelete
  9. Hello,

    Before use, Is it need to modify USB discriptors via External ROM?

    ReplyDelete
  10. Hi, can you upload the PCB raw files? I want to try once to develop it at home.

    ReplyDelete
  11. Useful information shared..Iam very happy to read this article..thanks for giving us nice info.pcb manufacture

    ReplyDelete
  12. Thank you for posting the great content…I was looking for something like this…I found it quiet interesting, hopefully you will keep posting such blogs….Keep sharing. Love your blog.
    printed circuit board fabrication

    ReplyDelete
  13. Excuse me, can you please simplify, the step's and make that pcb board with only the lines of where to connect the pieces. And can you please show me picture's of those little pieces that are soppose to be attached to the board. And please make a youtube video on how to make this sound card, please a lot of people want to make this. But this isn't enough information to help those who think this is like some sort of rocket-science project. Thanks you, and please message me back at gabrielrodriguez2014@gmail.com

    ReplyDelete
  14. This comment has been removed by the author.

    ReplyDelete
  15. This comment has been removed by the author.

    ReplyDelete
  16. Hello,thanks for you posting the great content... i am looking for some PCBA turnkey service manufacture,i knows something form pcbway.But one of my friend told me if i need a quick quote,maybe choose the PCBGOGO is the best way.I don't know how to choose it.Please have a look(http://www.pcbgogo.com/y)They are price really nice only $50
    PCBA Turnkey Service

    ReplyDelete
  17. Thank you for sharing, I know a high quality PCB manufacturer, their price is also very favorable. And there is no minimum order quantity, maybe you can find out. http://www.lhd-pcb.com

    ReplyDelete
  18. Thank you for sharing, I know a high quality PCB manufacturer, their price is also very favorable. And there is no minimum order quantity, maybe you can find out in MOKO

    ReplyDelete
  19. POE PCB established in 1996 in Shenzhen, as one of the leading printed circuit board manufacturer in China, is dedicated to providing High-tech printed circuit board products which including FR4PCBs, Aluminum PCBs, HDI PCBs,Multilayer PCBs (up to 28layers), Gold Finger PCBs and Rogers PCBs with annual production capacity of over 15 million square feet .

    ReplyDelete
  20. good idea, i like them
    security ip camera

    https://www.kingfordpcb.com/

    ReplyDelete