jpatrick62
Well-known member
Hello,
I have a Teensy 3.2 that controls a DM320 motor driver. It also receives interrupt information from optical switches when the linear actuator that is controlled by the DM320 reaches physical actuator endpoints. This all works well and Teensy is ideally suited for this type of application. Now I need to control this by WiFi and for that I've used an ESP8266. The big issue is to separate the motor control and the WiFi to reduce instability. So now to communicate between the 2 micro-controllers I was planning on using the serial port - i.e. send "320 steps up" or "320 steps down" from the ESP8266 to the Teensy, and then have the Teensy send back the number of steps it could complete. I've done this before and it seems to work OK, but I was wondering if there might be a more efficient or easier way to do this. Previously, I would send a command from one controller to another via the serial port, and then raise an interrupt to notify the other controller that a message was waiting. Any other ideas or comments?
I have a Teensy 3.2 that controls a DM320 motor driver. It also receives interrupt information from optical switches when the linear actuator that is controlled by the DM320 reaches physical actuator endpoints. This all works well and Teensy is ideally suited for this type of application. Now I need to control this by WiFi and for that I've used an ESP8266. The big issue is to separate the motor control and the WiFi to reduce instability. So now to communicate between the 2 micro-controllers I was planning on using the serial port - i.e. send "320 steps up" or "320 steps down" from the ESP8266 to the Teensy, and then have the Teensy send back the number of steps it could complete. I've done this before and it seems to work OK, but I was wondering if there might be a more efficient or easier way to do this. Previously, I would send a command from one controller to another via the serial port, and then raise an interrupt to notify the other controller that a message was waiting. Any other ideas or comments?