MicroController Pros Home Page
My Account  Cart Contents  Checkout  
  Store » ARM » Boards » FOX Board » Daisy System » DAISY-16 My Account  |  Cart Contents  |  Checkout   
Quick Find
 
Enter keywords to find the product you are looking for in the Quick Find field above

or use
Advanced Search
Categories
Accessory Boards->
8051->
ADI Blackfin
Arduino->
ARM->
  Boards->
    All Boards
    ARM11
    ARM7->
    ARM9->
    Cortex-A
    Cortex-M->
    Header Boards/Modules
    Prototype Boards
    Raspberry Pi
    CAN
    Enclosure
    Ethernet
    FOX Board->
      Daisy System
    HDMI
    IDE interface
    LCD
    Linux pre-loaded
    RS232
    RS422/RS485
    SD/MMC
    UEXT
    USB Device
    USB Host
    VGA
    Wireless
    Add-On Boards
  Books
  JTAG Debuggers->
  Programmers
  Software
  Starter & Evaluation Kits
Atmel AVR->
Cypress PSoC
Freescale->
FTDI->
Locktronics
Microchip PIC->
MIPS
Parallax->
Renesas
Silicon Labs
ST Microelectronics->
Texas Instruments->
Tibbo->
Books->
Displays->
E-Blocks->
EEPROM/EPROM/FLASH
Embedded Ethernet->
Embedded Software->
I/O Modules->
Parts & Components->
Pick & Place Tools
Programmable Logic (PLD)
Prototype PCBs->
Robotics
ROM/Flash Emulators
Test & Measurement->
Tutorial Software
Universal Programmers->
Wireless->
Information
Intro to Embedded Tools
Embedded News Digest
Useful Resources
Shipping & Returns
Warranty & Liability
Privacy Notice
Conditions of Use
Contact Us
Daisy System Audio Codec Module for Fox Board G20, In/Out/Mic US$20.50

DAISY-16
Daisy System Audio Codec Module for Fox Board G20, In/Out/Mic


The DAISY-16 module provides an audio interface using the Wolfson WM8731 low-power stereo audio codec with integrated headphone driver, stereo line out, stereo line in, and mono microphone level audio input.

This module is part of the modular Daisy System that can be controlled by the FOX Board G20 via the DAISY-1 Adapter (it is not compatible with the Terra Board). The module measures 40 40 mm.

The WM8731 codec is supported by the Linux kernel and works with alsa drivers (but note instructions for necessary patches below).

Connections to Fox Board

Audio Interface (J2)

PB16 PB17 PB18 PB19 PB21
TK0TF0TD0RD0RF0

Control Interface (J1)

PA23 PA24
SDASCL

The SSC audio interface on J2 should connect to Daisy port D5.
The TWI control interface on J1 should connect to Daisy port D6.

PB31 (PCK1) provides Master Clock to the codec.
RK0 is not used, so PB20 controls the Play LED.

Be sure to get two 0.05" pitch 2x5 IDC cables (FC-19818-10P-FF) to make the connections to the Fox Board. Cables are not included.

WM8731 Codec Features

  • Stereo 24-bit, multi-bit sigma-delta ADCs and DACs are used with oversampling digital interpolation and decimation filters
  • Highly efficient headphone driver
  • Audio Performance: ADC SNR 90dB @ 3.3V, DAC SNR 100dB @ 3.3V
  • Low Power: Playback only 22mW
  • Selectable ADC high-pass filter
  • Microphone input and electret bias with side tone mixer

Adding audio support to Linux Kernel for DAISY-16

The WM8731 codec is supported in the Linux kernel, but to be used with the DAISY-16 some changes are needed. You must apply an additional patch like so:

Precompiled Kernel Image

Files to store in the first FAT16 partition:

How to apply Madefree patch and compile kernel

Linux kernel 2.6.35.4

Download the kernel sources and apply Acme Systems patch:
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.35.4.tar.bz2
tar -xjvf linux-2.6.35.4.tar.bz2
cd linux-2.6.35.4
wget http://www.acmesystems.it/foxg20/download/kernel/0003-Acme-Systems-board-files.patch
patch -p1 < 0003-Acme-Systems-board-files.patch
wget http://www.acmesystems.it/foxg20/download/kernel/makefile
Download the Madefree Patch daisy16_26354.tar.gz (MD5:8e5ede6d218e34574c71cfdbcb880dfc) then apply it:
tar -xzvf daisy16_26354.tar.gz
patch -p1 < daisy16_26354/daisy16_26354.patch
Then copy the .config to use the Madefree factory default configuration files:
cp daisy16_26354/daisy16_26354.config .config
Configure the kernel if necessary:
make menuconfig
Build the kernel:
make

Linux kernel 2.6.38

Download the kernel sources:
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.38.tar.bz2
tar -xjvf linux-2.6.38.tar.bz2
cd linux-2.6.38
wget http://foxg20.acmesystems.it/download/kernel_2.6.38/makefile
Download the Madefree Patch daisy16_2638.tar.gz (MD5:c9f75aca53b6858c3c82edd5a497b718) then apply it:
tar -xzvf daisy16_2638.tar.gz
patch -p1 < daisy16_2638/daisy16_2638.patch
Then copy the .config to use the Madefree factory default configuration files:
cp daisy16_2638/daisy16_2638.config .config
Configure the kernel if necessary:
make menuconfig
Build the kernel:
make

Check the functionalities

Check dmesg after boot:
...
ssc ssc.0: Atmel SSC device at 0xc48a0000 (irq 14)
...
netusG20_wm8731 : daisy16: wm8731__init() called
asoc: wm8731-hifi <-> atmel-ssc-dai.0 mapping ok
ALSA device list:
#0: DAISY16
...
Install alsa-utils:
apt-get install alsa-utils
Run alsamixer:
alsamixer -V all
Configure alsa like this:

Launch recording for 5 sec. stereo wav acquisition and play back what you recorded:
arecord -d 5 -v -v -Dhw:0,0 -f cd record_line_in.wav
aplay record_line_in.wav

Play your music library

A great console music player is cmus.

apt-get install cmus
cmus

Change output plugin (from cmus command line):

:set output_plugin=ao

Cmus has a syntax very similar to vim.

Playing via remote access

You can use Music Player Daemon (MPD) to allow remote access for playing audio files (Ogg-Vorbis, FLAC, MP3, Wave, and AIFF), streams (Ogg-Vorbis, MP3) and managing playlists.

Install mpd:
apt-get install mpd
Stop mpd daemon:
/etc/init.d/mpd stop
Configure /etc/mpd.conf (more info here); here is an ad-hoc config file: mpd.conf (MD5:a52a320d5e609b0265091ee276587d39):
cp mpd.conf /etc/mpd.conf
Create database:
mpd --create-db
Start mpd daemon:
/etc/init.d/mpd start

Default directory to store your music is /var/lib/mpd/music/

Now connect the server with the client you want (view a list). Configure the client with the correct IP address of the server and mpd as password.

In this video, the client is MPDroid for Android phone with Theremin for Mac.

Daisy System Audio Codec Module Resources


Optional Recommended Products for this Item
2x5 (10-pin) 0.05" pitch IDC Connector Flat Ribbon Cable, 20cm+ US$2.60
White Earphones with 3.5mm Stereo Connector+ US$5.00
Portable Self-Powered Speaker, 3.5mm Plug, Li-Ion Battery+ US$14.99

This product was added to our catalog on Wednesday 19 June, 2013.

Reviews

Shopping Cart more
0 items
What's New? more
J-Link ULTRA+, High-Speed USB JTAG Debugger with Software
J-Link ULTRA+, High-Speed USB JTAG Debugger with Software
US$748.00
Specials more
USB Power Regulator Board, 3.3V & 5V Ref., 0.1" Pitch (USB Reg)
USB Power Regulator Board, 3.3V & 5V Ref., 0.1" Pitch (USB Reg)
US$6.00
US$4.00
Tell A Friend
 

Tell someone you know about this product.
Notifications more
NotificationsNotify me of updates to Daisy System Audio Codec Module for Fox Board G20, In/Out/Mic
Reviews more
Write ReviewWrite a review on this product!
  Monday 26 June, 2017   List of all our Products

Copyright © 2003-2017 MicroController Pros LLC
Powered by osCommerce