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

Thread: Can Teensys communicate with each other easily ?

  1. #1

    Can Teensys communicate with each other easily ?

    I am considering a custom Teensy board with 3 x processors on it

    1 to run a main loop
    2 to do high speed counting
    3 to process reading of analogue and digital channels and outputting PWM

    can Teesnys talk to each other over spi ? are there better ways to get them to talk ?

    I might be able to prototype this with 3 individual boards and get them to talk via one serial port for now

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    8,549
    Serial Port certainly works. tonton81 did an SPI_MSTransfer library that does provide for fast and reliable comms. There is also i2c master slave - none of those is assured at longer wire lengths. For that there is rs422 or a CANBUS library.
    Last edited by defragster; 04-26-2019 at 07:31 PM.

  3. #3
    I2c seems easy to implement and the protocol handles individual addresses

    It appears spi will transmit to all devices and i will have to program the slaves to ignore the messages that do not apply to them, but should be fairly easy to do.

    Is there are teensy board for sale that has more than one processor ?

  4. #4
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    8,549
    There are samples indeed for Master/Slave i2c.

    The SPI code has provisions for ID IIRC - and there is another SLAVE version on the tonton81 github - I've not followed closely after the initial SPI_MSTransfer got working before he created the SLAVE work.

    All Teensy's to date ship with just a single primary user processor

Posting Permissions

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