Serial

Read from and write to a serial port device such as an Arduino or sensor, parsing incoming data as lines, comma-separated values, or JSON.

What it does

Serial talks to a serial-port device: an Arduino, a microcontroller, a sensor board, anything speaking plain serial over USB or Bluetooth. Pick a port, set a baud rate, and incoming lines are read continuously and parsed into numbers. The connection is bidirectional, so data can also be sent back out to the device.

Incoming data is split by parse mode, each line treated as raw text, as comma/semicolon/tab/space-separated values, or as JSON. The first four parsed values are broken out individually.

When to use it

ParameterTypeDefault
portString""
baud_rateString"115200"
parse_modeString"csv"
delimiterString"comma"
enabledBooleantrue
sendString""

Gotchas

Worked example

  1. Add a Serial node. Open Port and pick your device from the list. It scans for connected ports automatically.

  2. Set Baud Rate to match what your device firmware uses (115200 is a common default).

  3. Leave Parse Mode on csv if your device sends comma-separated numbers; switch to line or json if it sends something else.

  4. Wire value_0, value_1, etc. into node parameters to drive your graph from the incoming sensor values.

  5. To send data back, wire a string into Send. It transmits whenever the value changes.

See also

MIDI Input · OSC Input · Gamepad Input · Numbers, signals & audio