Communications between Processing and Arduino IDE

ha, the two IDE might look alike,
but the code you made with it is very different
and can never run on the same computer.
also the projects and source code are well separated.

so not worry about that, yes it might even be good to use that same names,
( just not to confuse yourself )

usually if you setup a communication between a
arduino – USB – processing program
you send from arduino, like after measuring Ain’s…
astring = A0+","A1 …
and Serial.println(astring);

1023,1023,1023....

what is fast, readable, but requires good documentation…( what means what )

but if your application is not time critical you could even send full text
including the variable names you mentioned.
that could be of type JSON record.
and i made a ready example here already for that communication.
Good practice for sending data from Arduino to Processing - #5 by kll
click on

example v02

to get the code for both sides.

1 Like