The project I am working on has a pi and teensy communicating where the teensy controls a bunch of stepper motors and recieves sensor input, and that data is sent to a pi to be diplayed for the user on a large touch screen. The display allows inputs to be sent to control motor positions and speeds (basically an HMI).
What is the best way to communicate between the two? I figured i2c is out because of the cable distance, so would Serial, CAN, or USB be appropriate? The two will likely be connected by USB anyway to do OTA updates. I'd like to use the 4.0 since it's a tad smaller and things are going to be tight in my control box, but if I have to use a 4.1 it isn't too much of a problem. Thanks!
What is the best way to communicate between the two? I figured i2c is out because of the cable distance, so would Serial, CAN, or USB be appropriate? The two will likely be connected by USB anyway to do OTA updates. I'd like to use the 4.0 since it's a tad smaller and things are going to be tight in my control box, but if I have to use a 4.1 it isn't too much of a problem. Thanks!