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

Thread: Teensy 4.1 Centipede Shield

  1. #1
    Junior Member
    Join Date
    Jan 2022
    Posts
    3

    Teensy 4.1 Centipede Shield

    I have discover the Centipede Shield 2.0 and want to know how to use with Teensy 4.1

    I avoid to use Arduino in this case and just want to wire for Centipede and Teensy

    How can this accomplish?

    Jean Luc

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    15,553
    This macetech.com/products/centipede-shield-v2

    Shows docs here docs.macetech.com/doku.php/centipede_shield

    Just need to connect power and GND (DOC says 3.3V may work) and the i2c lines to control the system.

  3. #3
    Junior Member
    Join Date
    Jan 2022
    Posts
    3
    Thank you for reply. I saw in documentation for centipede and want to know in Teensy where are i2c wires in control for centipede? I am understanding power and grounding on Teensy but not i2c connects.

    Jean Luc

  4. #4
    Senior Member
    Join Date
    Jul 2020
    Posts
    1,460
    I2C lines are dark purple on the Teensy pinout card. 18,19,16,17,24,25 depending on which I2C peripheral you choose.

    The MCP23017 chip on that shield will not interwork with 3.3V if powered from 5V - you'd need level shifters.

    However there's a power jumper on the shield so you can disconnect the 5V from it, and presumably then power it at 3.3V
    from the T4.1's 3V3 pin. The MCP23017 is compatible with 3.3V power. That gives 3.3V expanded GPIOs.

  5. #5
    Junior Member
    Join Date
    Jan 2022
    Posts
    3
    Yes and thanks for reply. I see the colours and pins on the documentation for Teensy 4.1
    One question—how am I telling Teensy what the pins will do when there a several options for a pin?
    How does Teensy know what I use a pin for?

  6. #6
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    15,553
    The library is 'WIRE.h'

    See {local install}\hardware\teensy\avr\libraries\Wire\exampl es\Scanner\Scanner.ino.

    Using Wire is the main i2c bus SCL and SDA - for those pins 19 and 18, and changing to Wire1 will use SDA1 and SCL1 as marked on the card in BOLD pins.

Posting Permissions

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