Serial plotter over bluetooth

Default is 60 fps:

In my example I used serialEvent():
https://processing.org/reference/libraries/serial/serialEvent_.html

You can “buffer” received data into an array in serialEvent():

  • use a counter\pointer to element of array
  • set a flag to indicate when data is ready
  • be sure to reset counter\pointer to element in array

In draw();

  • when flag is set you can use that data in draw()
  • be sure to reset flag

It will take some effort to work through and understand this; work through it slowly and build on that.

There are many ways to handle serial data; you can also send a buffer all at once from Arduino:

:)