Hello there-
I'm trying to connect 24 actuators and a few proximity sensors to MAX MSP communicating at the highest possible speed via serial. (I am constrained to 57600bps as using Xbee's and Fio).
I've breaking my mind trying to work out a reliable serial communication protocol to send values to the arduino, store them in an array for speed of each actuator, update the actuaotrs with the arry of speed values (using the TLC5940) and at reasonable intervals send the values from the sensors to MAX MSP, and POSSIBLY the array of values of speed.
My first instinct was to buffer up a line of data and then process it, but I'm getting dropouts of data with anything above 4 values ranging from 0-255 when sending ASCII using space as a separator in the format of:
0 255 0 200
anymore than this and I loose bytes, making the string of values useless.
I'm now thinking to label each actuator and send in groups, ie
a255 b0 c200 d30
e123 f0 g100 h230
but this seems wrong somehow...
Does anyone know an effective way of sending 24 values at once down the serial connection reliably? (and then get them back again, with other data)
I think I might be expecting too much?