Comms for 5-axis Robot
Posted: Mon Nov 10, 2014 1:05 pm
Hi,
I'm going to use a LabView software interface to control a 5-axis Robot via the RS232 interface.
Each axis will have a dedicated PIC with a PID Servo loop controlling a DC motor.
To address each axis (PIC) individually from the software interface there are a number of options:-
(1) Use a dedicated PIC for comms which takes in RS232 and outputs an I2C message on a shared i2C bus to each axis (PIC) chip. Setting up a slave address on each of the PICs used for each axis will distinguish one axis from the other.
(2) Use a dedicated comms chip which takes in RS232 and outputs a dedicated RS232 set of lines to each individual chip. This will obviously require multiple software UARTs to be employed.
I would like the communication be two-way so that the axis position of each motor can be read back into labview.
Any advice on the best approach of how to implement the comms would be much appreciated.
Thanks,
Paul
I'm going to use a LabView software interface to control a 5-axis Robot via the RS232 interface.
Each axis will have a dedicated PIC with a PID Servo loop controlling a DC motor.
To address each axis (PIC) individually from the software interface there are a number of options:-
(1) Use a dedicated PIC for comms which takes in RS232 and outputs an I2C message on a shared i2C bus to each axis (PIC) chip. Setting up a slave address on each of the PICs used for each axis will distinguish one axis from the other.
(2) Use a dedicated comms chip which takes in RS232 and outputs a dedicated RS232 set of lines to each individual chip. This will obviously require multiple software UARTs to be employed.
I would like the communication be two-way so that the axis position of each motor can be read back into labview.
Any advice on the best approach of how to implement the comms would be much appreciated.
Thanks,
Paul