My problem is as follows, I have a bunch of Arduino boards which I am using to control some robots. There is one Xbee which is connected to the computer to monitor everything. Each Arduino board transmits a set of values which are all floats and all the others receive these values and use those to generate control signals. So each Arduino should transmit the values then sit there and keep reading the values from all the other arduinos until its turn comes up and the cycle repeats. My first problem is I do not know how to send read multiple values from the serial communication. So far I have used communication between an arduino and a computer via Xbee.. and I have just used Serial.print () to send all the values I want. If for eg the values are 20.25,10.4 and 0.9, how to send them and how to read them into three variables on the receiving end ? Should I just use Serial.print(value1)Serial.print(\t);Serial.print(value2) and so on ? If this is right, how do the read at the receiving arduino ?
Thanks in advance for your suggestion