Git Product home page Git Product logo

arduinouno_audiocodecmikroe506's Introduction

ArduinoUNO_AudioCodecMikroe506 48kHz 16-bit Stereo PCM I/O for Arduino

Sep. 15th 2013

Arduino library to drive the Mikroe 506 WM8731 Audio Codec Proto Board with ArduinoUNO. A modified version of OpenMusicLabs AudioCodec library for use with the Mikroe 506 board in place of the OpenMusicLabs AudioCodec board. Requires a small hardware mod on the Mikroe506 Proto Board, see instructions below.

Requirements

Arduino UNO or similar (ATMega328P w/ 16Mhz internal clock) Mikroe 506 Audio Codec Proto Board (with WM8731 CODEC and 12.288Mhz clock)

Instructions for Arduino UNO

The following wiring implements both the I2C and SPI (Arduino SPI in Master Mode) serial communication interfaces between the Arduino and the Mikroe506.

ArduinoUNO <-> Mikroe506 Audio Proto


D05 <- Timer input 1 from Modded WM8731 pin 2 via 220 Ohm resistor (see .jpg file and NOTE 1)

D10 -> ADCL + DACL output (parallel) via 220 Ohm resistor in series

D11 -> MOSI (master out, slave in)

D12 -> MISO (master in, slave out)

D13 -> SCK (SPI clock)

(A0) <- Optional potentiometer input - uncomment A0/A1 code to enable potentiometer inputs

(A1) <- Optional potentiometer input

A4 -> SDA (I2C serial data)

A5 -> SCL (I2C clock)

3.3V -> 3.3V

GND -> GND

NOTES


  1. Connect CLKOUT (pin 2) from the WM831 chip to Timer T1 in (pin 5) on the Arduino UNO. Reason: the Mikroe 506 12.288MHz crystal output is needed to drive the DAC/ADC at the correct rate. Consult the wiring diagram: ArduinoUno_Mikroe506AudioProto_labels.jpg

  2. Place the AudioCodec library in your arduino sketches/libraries folder. Run the examples/sine_generator to hear a 48kHz stereo test tone through the headphones.

-mkc 9/15/13

arduinouno_audiocodecmikroe506's People

Contributors

soundspotter avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.