Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: Teensy 3.6 and Audio board header connection

  1. #1
    Junior Member
    Join Date
    Sep 2019
    Posts
    3

    Teensy 3.6 and Audio board header connection

    Hi y'all, i recently bought audio board and pins but i had some confusion about it, i use teensy for general uses so i dont want to solder audio board and teensy together. I have 2 types (long and short pin) femalr headers (my teensy already had male headers) , i want to know this ; if i connect teensy to audio board, can i still use the pins of teensy or this part of board is only managed for audio board, depends on that i will solder long pin female header if works. I guess i explained clear and sorry if its a noob question

  2. #2
    The pins unused by the audioboard can be used.
    I made this overlay for my project:
    https://forum.pjrc.com/attachment.ph...4&d=1559444315

  3. #3
    Junior Member
    Join Date
    Sep 2019
    Posts
    3
    Quote Originally Posted by UHF View Post
    The pins unused by the audioboard can be used.
    I made this overlay for my project:
    https://forum.pjrc.com/attachment.ph...4&d=1559444315
    So that, i cant used pins which used by audio board, only unused ones. You mean unused by unconnected at the board or unused by boards code init or does board use all the pins connected all the time?

  4. #4
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    3,379
    Quote Originally Posted by misunra View Post
    So that, i cant used pins which used by audio board, only unused ones. You mean unused by unconnected at the board or unused by boards code init or does board use all the pins connected all the time?
    Just to be clear:

    The following pins are common pins, used by both the audio board and available for other uses:
    • Vin (I'm not sure if the audio shield uses this or not)
    • Analog Ground (used for the audio parts)
    • 3.3v
    • normal Ground (used for the SPI parts)


    The following pins are used by the audio board for I2C, which can by used by other devices, as long as you don't use devices with addresses 0x0A or 0x1A. I2C is a shared bus system for attaching other devices using SCL, SDA, 3.3v, and normal ground. Each device has an address that it listens on:
    • Pin 18/A4 (SDA)
    • Pin 19/A5 (SCL)


    The following pins are used by the audio for SPI, which can be used by other devices as long as you use a different CS (chip select) pin. SPI is a shared bus system for attaching other devices using SCK, MOSI, MISO, 3.3v, and normal ground as common pins. Each device has a separate pin that controls whether the device is active or not (plus possibly some other pins that are not common). Note on the 3.2/3.5/3.6, you must use the alternate versions of SPI pins, because the pins overlap with the I2S audio pins. If you don't want to use the micro SD card or haven't soldered on a memory chip, you don't have to connect these pins to the audio board. However, if you use a SPI device like a display, you will need to use the alternate pins. Given the 3.6 has its own micro SD card (which is faster than the card in the audio shield), and the audio shield does not come with flash memory soldered on, you likely won't need to use the SPI pins.
    • Pin 6 (CS pin for flash memory)
    • Pin 7 (alternate MOSI pin)
    • Pin 10 (CS pin for the micro SD card)
    • Pin 12 (MISO pin)
    • Pin 14 (alternate SCLK pin)


    The following pins are used for audio input/output to the audio shield, and must be connected, and not otherwise used:
    • Pin 9 (I2S BCLK)
    • Pin 11 (I2S MCLK) -- this is the normal SPI MOSI pin
    • Pin 13 (I2S RX) -- this is the normal SPI SCLK pin
    • Pin 22/A8 (I2S TX)
    • Pin 23/A9 (I2S LRCLK)


    The following pin is on the audio board for attaching a potentiometer (presumably for using to control volume). It has extra resistors and/or capacitors that means you probably should only use it for analogInput and not as a digital input/ouptut pin, even if you don't use it for volume:
    • Pin 15/A1


    The following pins are not used by the audio shield:
    • Pins 0-5
    • Pin 8
    • Pins 20/A6 and 21/A7
    • Pins 16/A2 and 17/A3
    • Pins A10, A11, AREF, VUSB
    • Pins A21/DAC0 and A22/DAC1
    • All other pins > 23
    • Reset, Program, Vbat


    One way to do this is to use stacking headers on the audio shield. You would cut the board so it has 24 pins, soldering the first 14 pins to the audio shield on each side, leaving the remaining 10 pins for the extra pins in the Teensy 3.6 to connect with the breadboard. That way, you attach the Teensy on top, the audio shield in the middle, and a breadboard (or prototype board) on the bottom:
    Last edited by MichaelMeissner; 11-02-2019 at 04:08 PM.

  5. #5
    Junior Member
    Join Date
    Sep 2019
    Posts
    3
    Quote Originally Posted by MichaelMeissner View Post
    Just to be clear:

    The following pins are common pins, used by both the audio board and available for other uses:
    • Vin (I'm not sure if the audio shield uses this or not)
    • Analog Ground (used for the audio parts)
    • 3.3v
    • normal Ground (used for the SPI parts)


    The following pins are used by the audio board for I2C, which can by used by other devices, as long as you don't use devices with addresses 0x0A or 0x1A. I2C is a shared bus system for attaching other devices using SCL, SDA, 3.3v, and normal ground. Each device has an address that it listens on:
    • Pin 18/A4 (SDA)
    • Pin 19/A5 (SCL)


    The following pins are used by the audio for SPI, which can be used by other devices as long as you use a different CS (chip select) pin. SPI is a shared bus system for attaching other devices using SCK, MOSI, MISO, 3.3v, and normal ground as common pins. Each device has a separate pin that controls whether the device is active or not (plus possibly some other pins that are not common). Note on the 3.2/3.5/3.6, you must use the alternate versions of SPI pins, because the pins overlap with the I2S audio pins. If you don't want to use the micro SD card or haven't soldered on a memory chip, you don't have to connect these pins to the audio board. However, if you use a SPI device like a display, you will need to use the alternate pins. Given the 3.6 has its own micro SD card (which is faster than the card in the audio shield), and the audio shield does not come with flash memory soldered on, you likely won't need to use the SPI pins.
    • Pin 6 (CS pin for flash memory)
    • Pin 7 (alternate MOSI pin)
    • Pin 10 (CS pin for the micro SD card)
    • Pin 12 (MISO pin)
    • Pin 14 (alternate SCLK pin)


    The following pins are used for audio input/output to the audio shield, and must be connected, and not otherwise used:
    • Pin 9 (I2S BCLK)
    • Pin 11 (I2S MCLK) -- this is the normal SPI MOSI pin
    • Pin 13 (I2S RX) -- this is the normal SPI SCLK pin
    • Pin 22/A8 (I2S TX)
    • Pin 23/A9 (I2S LRCLK)


    The following pin is on the audio board for attaching a potentiometer (presumably for using to control volume). It has extra resistors and/or capacitors that means you probably should only use it for analogInput and not as a digital input/ouptut pin, even if you don't use it for volume:
    • Pin 15/A1


    The following pins are not used by the audio shield:
    • Pins 0-5
    • Pin 8
    • Pins 20/A6 and 21/A7
    • Pins 16/A2 and 17/A3
    • Pins A10, A11, AREF, VUSB
    • Pins A21/DAC0 and A22/DAC1
    • All other pins > 23
    • Reset, Program, Vbat


    One way to do this is to use stacking headers on the audio shield. You would cut the board so it has 24 pins, soldering the first 14 pins to the audio shield on each side, leaving the remaining 10 pins for the extra pins in the Teensy 3.6 to connect with the breadboard. That way, you attach the Teensy on top, the audio shield in the middle, and a breadboard (or prototype board) on the bottom:
    Sir, i can't thank you enough. That's exactly what i am digging for. Thanks a lot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •