Hi,
For a project we want to connect two Teensy 3.2 to a Teensy 3.5. Both 3.2 are collecting data of ~200 sensors(matrix) with a frequency around 10Hz. These data should be sent to the 3.5, which should save it on an SD card.
I already tried something with SCL/SDA pins, where the 3.5 is the master and the 3.2 are slaves. Following this example: https://www.arduino.cc/en/Tutorial/MasterReader , I first request data from 3.2#1 after I request data from 3.2#2.
This works more or less, but I have a timing problem. Sometimes I receive the same data twice, sometimes I miss one sample(propably depending on when the 3.2 has prepared the new data). Is there a better way to do what I need? Could I do the reading faster? Reading multiple times the same would be useless but easy to discard.
Thank you and best regards.
For a project we want to connect two Teensy 3.2 to a Teensy 3.5. Both 3.2 are collecting data of ~200 sensors(matrix) with a frequency around 10Hz. These data should be sent to the 3.5, which should save it on an SD card.
I already tried something with SCL/SDA pins, where the 3.5 is the master and the 3.2 are slaves. Following this example: https://www.arduino.cc/en/Tutorial/MasterReader , I first request data from 3.2#1 after I request data from 3.2#2.
This works more or less, but I have a timing problem. Sometimes I receive the same data twice, sometimes I miss one sample(propably depending on when the 3.2 has prepared the new data). Is there a better way to do what I need? Could I do the reading faster? Reading multiple times the same would be useless but easy to discard.
Thank you and best regards.