unpack several serial data from arduino ?? (previous posts are wrong)

Apr 25, 2013 at 10:06am

unpack several serial data from arduino ?? (previous posts are wrong)

(sorry, previous posts are wronly posted. I do not know how to delete them from this board.)

I have three analogin from arduino (three light sensors), and want to receive the serial data from them seperately.
But now the max receives the data all in one, not seperately. (attached picture, plz watch red circle)
What should I do between serial c 9600 object and unpakc opject in the picture attached ?

arduino code:I have three analogin from arduino (three light sensors), and want to receive the serial data from them seperately.
But now the max receives the data all in one, not seperately. (attached picture, plz watch red circle)
What should I do between serial c 9600 object and unpakc opject in the picture attached ?

arduino code:

void setup()
{
Serial.begin(9600);
}

void loop()
{
int sensorValue = analogRead(A1);
int sensorValue2 = analogRead(A2);
int sensorValue3 = analogRead(A3);
Serial.write(sensorValue);
Serial.write(sensorValue2);
Serial.write(sensorValue3);

}

#67937

You must be logged in to reply to this topic.