Can Teensys communicate with each other easily ?

Status
Not open for further replies.

Gadget999

Well-known member
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
 
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:
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 ?
 
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
 
Status
Not open for further replies.
Back
Top