Week 7: Serial Communication, Processing and p5.js

October 23, 2019

Up to this point we have been using sensor inputs to control other physical components, but today we will look at how we can use the data from physical sensors to effect screen-based graphics. To do this we will be using serial communication to send data from a sensor, through the Arduino and into another programming framework like Processing or p5js. We will also look at how to control physical components like LED’s, motors and speakers using a digital interface like a website.

Labs

  • Serial write with just Arduino. Git ➔
  • Using Processing and serial read/write with Arduino. Git ➔
  • Serial communication via a website using p5js and web sockets. Git ➔

Lecture and Lab Slides

In Class Assignment/Homework

Play around with serial communication with Arduino and Processing/p5js. Continue to work on your midterm project idea.

Helpful Links