{"product_id":"audio-adaptor-board-for-teensy-4-0","title":"Audio Adaptor Board for Teensy 4.0","description":"\u003cp\u003eThis audio adaptor lets you easily add high quality 16 bit, 44.1 kHz sample rate (CD quality) audio to your projects with Teensy 4.0 (Rev D).\u003c\/p\u003e\n\u003cp\u003eIt supports stereo headphone and stereo line-level output, and also stereo line-level input or mono microphone input.\u003c\/p\u003e\n\u003cp\u003eIn September 2019, Rev D was created for Teensy 4.0. The circuitry is the same as \u003ca href=\"\/en-eu\/products\/audio-adapter-board-for-teensy-3-0-3-1\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eRev C\u003c\/a\u003e, but the I2S digital audio signals and SPI signals for the SD card are routed to the pins Teensy 4.0 uses.\u003c\/p\u003e\n\u003cp\u003eThe \u003ca href=\"http:\/\/www.pjrc.com\/teensy\/td_libs_Audio.html\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eTeensy Audio Library\u003c\/a\u003e lets you use the input and output simultaneously together with a toolkit of audio processing objects, to easily create all types of sophisticated audio applications. You can play multiple sound files, create synthesized waveforms, apply effects, mix multiple streams and output high quality audio to the headphones or line out pins.\u003c\/p\u003e\n\u003ctable class=\"table\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003cth\u003eFunction\u003c\/th\u003e\n\u003cth\u003eTeensy 4.0 Pins\u003cbr\u003eRev D\u003c\/th\u003e\n\u003cth\u003eShareable\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAudio Data\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e7, 8, 20, 21, 23\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAudio Control\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e18, 19\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSDA, SCL \u003csmall\u003e(other I2C chips)\u003c\/small\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eVolume Pot\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e15 (A1)\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e-\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSD Card\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e10, 11, 12, 13\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eMOSI, MISO, SCK \u003csmall\u003e(other SPI chips)\u003c\/small\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eMemory Chip\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e6, 11, 12, 13\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eMOSI, MISO, SCK \u003csmall\u003e(other SPI chips)\u003c\/small\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003ch2\u003eSignals to Teensy\u003c\/h2\u003e\n\u003cp\u003eThe audio chip, part number \u003ca href=\"https:\/\/www.pjrc.com\/teensy\/SGTL5000.pdf\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eSGTL5000\u003c\/a\u003e, connects to Teensy using 7 signals. The I2C pins SDA and SCL are used to control the chip and adjust parameters. Audio data uses I2S signals, TX (to headphones and\/or line out) and RX (from line in or mic), and 3 clocks, LRCLK (44.1 kHz), BCLK (1.41 MHz) and MCLK (11.29 MHz). All 3 clocks are created by Teensy3. The SGTL5000 operates in \"slave mode\", where all its clock pins are inputs.\u003c\/p\u003e\n\u003ctable class=\"table\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003cth\u003eSignal\u003c\/th\u003e\n\u003cth\u003eRev D\u003cbr\u003e\u003csmall\u003eTeensy 4.0\u003c\/small\u003e\n\u003c\/th\u003e\n\u003cth\u003eFunction\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eMCLK\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e23\u003c\/td\u003e\n\u003ctd\u003eAudio Master Clock, 11.29 MHz\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBCLK\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e21\u003c\/td\u003e\n\u003ctd\u003eAudio Bit Clock, 1.41 or 2.82 MHz\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eLRCLK\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e20\u003c\/td\u003e\n\u003ctd\u003eAudio Left\/Right Clock, 44.1 kHz\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eDIN\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e7\u003c\/td\u003e\n\u003ctd\u003eAudio Data from Teensy to Audio Shield\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eDOUT\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e8\u003c\/td\u003e\n\u003ctd\u003eAudio Data from Audio Shield to Teensy\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSCL\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e19\u003c\/td\u003e\n\u003ctd\u003eControl Clock (I2C)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSDA\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e18\u003c\/td\u003e\n\u003ctd\u003eControl Data (I2C)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSCK\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e13\u003c\/td\u003e\n\u003ctd\u003eData Storage (SPI) Clock\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eMISO\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e12\u003c\/td\u003e\n\u003ctd\u003eData Storage (SPI) from SD\/MEM to Teensy\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eMOSI\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e11\u003c\/td\u003e\n\u003ctd\u003eData Storage (SPI) from Teensy to SD\/MEM\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSDCS\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e10\u003c\/td\u003e\n\u003ctd\u003eChip Select (SPI) for SD Card\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eMEMCS\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e6\u003c\/td\u003e\n\u003ctd\u003eChip Select (SPI) for Memory Chip\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eVol\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e15 \/ A1\u003c\/td\u003e\n\u003ctd\u003eVolume Thumbwheel (analog signal)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003eThe SD socket is accessed with 4 SPI pins. SCLK and MOSI are used at alternate locations. See the audio library examples for details on how to select these different pins. The SD card is useful for playing music. Sandisk and other good quality SD cards are capable of playing 2 WAV files simultaneously.\u003c\/p\u003e\n\u003cp\u003eWires for MCLK, BCLK, LRCLK, TX \u0026amp; RX should be kept short. The audio shield is meant to connect to Teensy through short pins. Wires can be used, but \u003ca href=\"https:\/\/forum.pjrc.com\/threads\/41157-Just-noise-with-Teensy-3-6-and-Audio-Adaptor-Board\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ewires must be short to avoid problems\u003c\/a\u003e.\u003c\/p\u003e\n\u003cp\u003eThe line in\/out header uses a pinout compatible with the AC97 audio header on PC motherboards. The front panel cables from most PCs can be connected, or wires can be soldered directly to the pins.\u003c\/p\u003e\n\u003ch2\u003eOptional Memory Chip(s)\u003c\/h2\u003e\n\u003cp\u003eA \u003ca href=\"https:\/\/www.pjrc.com\/teensy\/W25Q128JV.pdf\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eW25Q128JV\u003c\/a\u003e or \u003ca href=\"https:\/\/www.pjrc.com\/teensy\/W25Q128FV.pdf\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eW25Q128FV\u003c\/a\u003e flash memory chip may be added on the bottom side. The Teensy Audio Library can \u003ca href=\"http:\/\/www.pjrc.com\/teensy\/gui\/index.html?info=AudioPlaySerialflashRaw\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eplay audio clips\u003c\/a\u003e from this memory, using the SerialFlash library. This flash memory has much lower access latency than SD cards, which allows many sounds to be played simultaneously.\u003c\/p\u003e\n\u003cp\u003eFuture versions of the audio library may also use this low latency flash memory for wavetable synthesis.\u003c\/p\u003e\n\u003cp\u003eAlteratively, a \u003ca href=\"https:\/\/www.pjrc.com\/teensy\/23LC1024.pdf\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e23LC1024\u003c\/a\u003e RAM memory chip may be added. The Teensy Audio Library can use the RAM chip for a \u003ca href=\"http:\/\/www.pjrc.com\/teensy\/gui\/index.html?info=AudioEffectDelayExternal\" target=\"_blank\" rel=\"noopener noreferrer\"\u003emulti-tap delay line\u003c\/a\u003e, up to 1.5 seconds. See this \u003ca href=\"https:\/\/www.youtube.com\/watch?v=d80d1HWy5_s\" target=\"_blank\" rel=\"noopener noreferrer\"\u003edemo video\u003c\/a\u003e for details.\u003c\/p\u003e\n\u003ch2\u003eRecommended SD Card\u003c\/h2\u003e\n\u003cp\u003eMost SD cards are optimized for sequential access, where a camera or camcorder reads or writes a single large file. All SD cards work well for playing a single WAV file at a time.\u003c\/p\u003e\n\u003cp\u003eFor simultaneous playing of 2, 3 or 4 stereo WAV files, many common \"class 10\" cards perform poorly. Even though they can support many megabytes per second in sequential access, they have high latency for non-sequential access.\u003c\/p\u003e\n\u003cp\u003ePJRC has tested several brands of SD cards. They recommend SanDisk Ultra for projects where multiple WAV files will be played at the same time. SanDisk Ultra is more expensive, but its non-sequential speed is much faster\u003c\/p\u003e\n\u003cp\u003eThe Arduino SD library supports up to 32 GB size. Do not use 64 \u0026amp; 128 GB cards.\u003c\/p\u003e\n\u003cp\u003eThe audio library includes a simple benchmark to test SD cards. Open it from \u003cstrong\u003eFile \u0026gt; Examples \u0026gt; Audio \u0026gt; HardwareTesting \u0026gt; SdCardTest\u003c\/strong\u003e.\u003c\/p\u003e","brand":"PJRC","offers":[{"title":"Default Title","offer_id":30279436501075,"sku":"TEENSY4_AUDIO","price":15.95,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0174\/1800\/products\/teensy4_audio_front.jpg?v=1570619932","url":"https:\/\/shop.pimoroni.com\/en-eu\/products\/audio-adaptor-board-for-teensy-4-0","provider":"Pimoroni Ltd","version":"1.0","type":"link"}