Two-Way (Duplex) Serial Communication

 

LAB: Two-Way (Duplex) Serial Communication Using An Arduino and P5.js

Sending multiple serial data using punctuation

  • Send values and separate each one with a comma
  • Store the value in instring
  • If there’s a string, store instring[] into the variable sensors and read each sensor

LIS3DH out values
-16k <x< 16k, -16k <y< 16k (when tilted 90 degrees)

Handshake

LAB application

Flying car simulator, flying car steering wheel:
What will it sound like when driving a flying car?
sound pan/ sound rate

code