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

Thread: number of I2C pins on Teensy 3.2 through 3.5

  1. #1
    Junior Member
    Join Date
    Jun 2019

    number of I2C pins on Teensy 3.2 through 3.5

    Hello, Could some help me understand what it meant to say Teensy 3.2 through 3.6 have
    2,3 and 4 I2c pins? Does it mean i can connect three I2c 3.3v and address them appropriately?

    Thank you

  2. #2
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    If you are talking about:

    The line: talking about I2C ports? An I2C port has two pins associated with it: SCL (clock) and SDA (data)
    Each of these ports can connect to several devices using addressing.... More details up at:

    So for example With Teensy 3.2, which has two I2C ports

    You can connect to that port using the Wire object which by default is on pins SCL:19 and SDA 18

    You can use the second port using the Wire1 object using pins SCL 29 and SDA 30

    On Teensy 3.5/3.6 default pins are:
    Wire - SCL 19 SDA 18
    Wire1 - SCL 37 SDA 38
    Wire2 - SCL 3 SDA 4

    Teensy 3.6 added 4th:
    Wire3 - SCL57 SDA 56

  3. #3
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Ayer Massachussetts
    Note, that most i2c device libraries only talk to the first i2c device (Wire), which is on pins 19 (SCL) and 18 (SDA). If the library doesn't have support for alternate i2c buses, you will either need to put all of the devices on the first i2c bus. Or you need to clone the library, and rename it. Within the cloned library, you would change all references of 'Wire' to 'Wire1', 'Wire2', or 'Wire3' as appropriate.

    On the 3.2/3.5/3.6, there are alternate pins 17 (SCL) and 16 (SDA) for the first i2c bus (Wire). You would need to use the 'Wire.setSDA' and 'Wire.setSCL' functions to change to the alternate pins.

    There is an alternate i2c library ( that may provide some additional features over the standard library.

    In each distinct i2c bus, if none of your devices have pull-up resistors, you will need to add two pull-up resistors (one between SDA and 3.3v and the other between SCL and 3.3v). On 3.3v microprocessors like the Teensy, you can typically use 2.2k resistors. If a device is meant to be run on either 3.3v or 5v, it may have a 4.7k resistor.

  4. #4
    Junior Member
    Join Date
    Jun 2019
    Thank you and the next member for help. Any suggestions on how to tap oval pins 56 & 57 ? Just seems it requires extraordinary skills to solder?

  5. #5
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Small wire, like #30 "wire wrap" works pretty well. But you need to make sure the wires have a little extra length and be careful with handling, so you don't pull or stress the wire.

    Since almost nobody uses Wire3 (the other 3 are almost always enough), it is disabled by default in the code. You need to edit WireKinetis.h to enable it.

Posting Permissions

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