- Sat Dec 29, 2012 10:12 am
#153664
I'm building a hobby 6-DOF robotic arm and am wondering what the best way is to communicate between the processors (3-4 AVRs, 18 inches max separation). I'd like to have the control loop run on the computer, which sends commands to the microprocessors via an Atmega32u4 USB-to-??? bridge.
Some ideas I'm considering:
Some ideas I'm considering:
- RS485
- Pros: all processors on same wire, differential signal more robust
- Cons: requires additional chips, need to write (or find?) protocol to prevent processors from transmitting at the same time
- UART loop (ie, TX of one processor is connected to RX of next)
- Pros: simple firmware, processors have UART built in
- Cons: last connection has to travel length of robot, each processor has to spend cycles retransmitting messages
- CANbus (I know very little about this)