I was looking for a USB audio adapter for my Intel Galileo projects, and surprisingly I was not able to find a compact USB audio adapter which will offer line input or digital (optical) input and output. Most USB audio dongles available on the market are intended to be used with a headset and only offer monophonic microphone input. One exception was Behringer UCA202 which is bulky for my projects. And so I designed this adapter.
This USB Audio adapter can be used with small SBCs like Intel Galileo, Raspberry Pi, or BeagleBone Black to provide high quality audio input and output. Its size is only 2.1 x 1.6 inches (53.44 x 40.74 mm). This USB Audio adapter will also work with regular PCs, Android based smartphones and tablets, or almost everything else that supports USB audio. It is based on popular Texas Instruments (was Burr Brown) PCM2902C, and schematic mostly follows Texas Instrument's reference design.
Top side
Bottom side
As mentioned above the main component is Texas Instruments PCM2902 USB audio codec IC (U1). Additionally the circuit uses Texas Instruments REG103UA LDO IC for conditioning power for the analog circuitry (U2) and a pair of dual channel operational amplifier ICs that work as low pass filters for input and output (U5 and U6).
See attachments section at the bottom of this page.
There is a lot of flexibility in the design:
The USB audio codec IC (U1) can be PCM2902, PCM2906, PCM2900, and PCM2904.
PCM2902 and PCM2906 provide S/PDIF digital interface. PCM2900 and PCM2904 do not provide it.
The difference between PCM2902 and PCM2906 or between PCM2900 and PCM2904 is very subtle: PCM2900 and PCM2902 specify 100mA as Maxpower value in USB descriptor, while PCM2904 and PCM2906 specify 500mA. Operating systems should be using Maxpower values to estimate power consumption by the attached USB devices and disconnect USB devices if host is unable to supply enough power.
If using codec without S/PDIF support the components related to optical input and output should not be mounted.
I used the latest PCM290xC revision. Other, older revisions don't differ significantly and can be used as well.
The REG103 LDO (U2) is optional and can be removed to lower the cost at some audio quality degradation. It is also possible to replace it with cheaper LDO with minor schematic and PCB modifications.
The design uses high-speed operational amplifiers. Either one of these op amps or both can be bypassed, leaving just 100 ohm / 10 uF capacitors for audio coupling. It is also possible to use other compatible operational amplifiers (important characteristics: single power supply 3.3V, rail-to-rail)
Both input and output parts are optional. For example if only ADC part is needed, no need to assemble components related to audio output. Same applies for DAC only (audio output only) use. In this case I suggest grounding audio inputs of PCM2902 to avoid noise.
The PCB supports two options for connecting to USB:
Using Micro USB connector
Using 5-pin header (it is also possible to solder a USB cable directly to the board instead of this header).
Volume control buttons are optional
Due to project's size and component availability the project mostly uses SMT components. I used through hole components for components that are subject to physical stress (connectors and buttons). It it is not too difficult to solder SMT components it with some practice. Here are some tips:
Have a well lighten workspace.
Use a low power (25W or so) soldering iron with thin tip, better yet a temperature controlled soldering station. Keep the tip of soldering iron clean.
Use thin solder with flux. Have some desoldering braid to remove accidental solder bridges or excess solder.
I found it convenient first to put some solder on a first pad of a component (or on two opposite pads in case of an IC. When put the component using tweezers and heat the pad at the same time. Next double check component orientation and solder remaining pads. Note that diodes and tantalum capacitors are polarized, so the orientation is important.
Solder ICs first, next solder micro USB connector.
After that solder all the resistors, inductor, and smaller (0603 and 0805) capacitors on the top side, going from ICs to sides of the board.
Solder Schottky diode, LED, crystal resonator, and tantalum capacitors. Make sure to check that they are oriented properly.
Turn the board up side down, and solder resistors and the capacitors on the bottom side.
Finally solder through hole components: connectors, optical modules, buttons.
Clean the flux remains with some alcohol. (Be careful not to get alcohol/flux inside optical modules, or maybe solder them after cleaning the board).
Search the Internet for SMT soldering tutorials.
Link to the project on Mouser.com - View and order all components except of PCB.
Link to the project on OSHPark.com - View and order PCB.