Arduino + Processing Serial Port DATA TRANSFER

It is what is programmed on the Arduino; you can edit the code to suit your project.

Suggestions:

  • Modify your Arduino code to send meaningful strings (CSV or otherwise) that you can receive and display. My code example does this.
  • trim() the received string.
  • split() the trimmed, received string into a String array.
  • convert the string elements in the array into a float (or datatype(s) that you were sending) for use in your main code.
1 Like