Teensy:
Raspberry Pi:
Details:
One solution would be to use analog communication: Output X using the Teensy's DAC, read Y using an analog pin on the Teensy. This would require adding a DAC and an ADC to the Raspberry Pi. Although analog transmission is totally fine, I'm not sure if digital-analog-analog-digital is a smart solution.
Any suggestions?
- Output: Every second, the Teensy sets an output, X.
- Input: Every second, the Teensy checks for an input, Y.
Raspberry Pi:
- Input: When it finds time, it checks the value output by the Teensy, X.
- Output: When it finds time, it sets the input for the Teensy, Y.
Details:
- Teensy 3.2 or better
- The Teensy is busy doing real-time motion tracking. Setting X and reading Y should take minimum effort, i.e. no longer than a few hundred micro seconds.
- The Raspberry Pi has all the time in the world.
- For X and Y 10-bit precision is sufficient.
- If there is some error in transmission (see below), this is not a problem.
One solution would be to use analog communication: Output X using the Teensy's DAC, read Y using an analog pin on the Teensy. This would require adding a DAC and an ADC to the Raspberry Pi. Although analog transmission is totally fine, I'm not sure if digital-analog-analog-digital is a smart solution.
Any suggestions?