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

Thread: Teensy-LC as I2C Slave

  1. #1
    Junior Member
    Join Date
    Jul 2019
    Location
    Kansas, USA
    Posts
    2

    Teensy-LC as I2C Slave

    I'm considering using a Teensy-LC as a "Servo Coprocessor" for a project where I need very accurate control of some servos. The servos are continuous rotation, so I don't just need the normal PWM output, I need accurate control of the timing of when signals get sent so I can approximate how far the servo has actually moved. I'll also be utilizing 4 or 5 analog pins on the Teensy to read some analog sensors when servos are in motion.

    I've seen some libraries enabling the Teensy-LC to act as an I2C master, but has anyone used it as a slave? My "main" process will be a RPi Zero W.

    It all seems doable, but thought I'd ask some folks who probably know before I get too focused on a path that may or may not be valid.

    Thanks all!

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,171
    I2C slave mode is supported by the normal Arduino Wire library.

  3. #3
    Junior Member
    Join Date
    Jul 2019
    Location
    Kansas, USA
    Posts
    2
    Quote Originally Posted by PaulStoffregen View Post
    I2C slave mode is supported by the normal Arduino Wire library.
    Awesome, thanks. I have not played with Arduino's in a long time - this should be a good fit then!

Posting Permissions

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