Products for USB Sensing and Control Canada flag
Products for USB Sensing and Control

sales inquiries

quotes, distributor information, purchase orders
sales@phidgets.com

technical inquiries

support, advice, warranty, returns, misshipment
support@phidgets.com

website inquiries

corrections or suggestions
web@phidgets.com

Address

Unit 1 - 6115 4 St SE
Calgary AB  T2H 2H9
Canada

PHIDGETS Inc.

Unit 1 - 6115 4 St SE
Calgary AB  T2H 2H9
Canada
+1 403 282-7335

USB Audio Adapter

ID: SBC4204_0

An adapter dongle for the SBC that enables audio input and output.

$15.00

Quantity Available: 80

Qty Price
5 $14.25
10 $13.50
25 $12.00
50 $10.50
100 $9.75
250 $9.00
500 $8.25
1000 $7.50
50+...

The USB to Audio Adapter provides stereo sound capability to the PhidgetSBC. The device plugs into the SBC's USB 2.0 port and does not require any external power.

The SBC will automatically recognize the Audio Adapter when it is plugged in because the software drivers are already included on the most recent SD card image for the SBC.

Features

  • Provides a standard headphone and microphone jack
  • Drivers pre-loaded on the Phidget SBC4

NOTE: For best performance, make sure you plug this adapter into one of the PhidgetSBC's USB 2.0 ports, not a USB-On-The-Go port. For more information, see the User Guide tab on the PhidgetSBC product page.

PhidgetSBC

Plug the adapter into a USB port on the Phidget SBC4. This audio adapter is compatible with the following Phidget SBCs:

Product SBC Board Properties
Part Number Price Core CPU Speed SDRAM Size Number of VINT Ports
SBC3003_0
PhidgetSBC4
$120.00 Dual-Core ARM Cortex-A7 **Up to 960 MHz 512 MiB 6


SBC4204.jpg
Go to this device's product page


Getting Started

The SBC4204 USB Audio adapter provides sound capabilities to the PhidgetSBC4. The audio adapter offers two integrated channels - one for speakers or headphones, and one for a microphone. Using this product requires a working knowledge of Linux. To begin, make sure that you plug it into one of the SBC4's USB 2.0 ports, not the USB on-the-go port: SBC4 audio port.jpg


Once you've plugged it in, you can type dmesg | tail -n 10 into the terminal.

Somewhere in the output, you should see a line that says

usbcore: registered new interface driver snd-usb-audio

This indicates that the device has been recognized by your system.

Install mpg123

In order to test that the adapter is working properly, you'll need a program that can play sound. We recommend installing mpg123:

apt-get install mpg123

If the test performed in the later section produces choppy audio, you can try using mpg321 or vlc instead.

Configure Sound Card Index

Enter the following command into the terminal: cat /proc/asound/modules

By default, you will probably see the following output:

1 snd_usb_audio

This means our USB sound card index is set to 1, which means most audio programs will fail when they try to access index 0 which doesn't exist. In order to change the sound card index, navigate to /etc/modprobe.d/ and create a new file there named alsa-base.conf with the following contents:

options snd-usb-audio index=0

This single line is all that is needed. Once you've created this file, you must reset the SBC for the changes to take effect. You can reset through the web interface or by cycling power. When it boots back up, you can try the cat /proc/asound/modules command again to see if the index has successfully changed to 0.

Test the Audio

You can either test using an audio file (.wav or .mp3) on a USB stick, or you can enter the URL of an internet radio station.

Mpg123.jpg

At this point, you should be able to hear audio coming from the speaker or headphones that you have plugged into the USB adapter!

Product Specifications

Adapter
I/O Communication Protocol USB 2.0
Physical Properties
Connector Type USB Type-A (Male)
Headphone Jack Size 3.5 mm
Microphone Jack Size 3.5 mm
Customs Information
Canadian HS Export Code 8473.30.00
American HTS Import Code 8473.30.51.00
Country of Origin CN (China)