Lab Objectives:

  • Send values serially to P5
  • Write a program to visualize the sensor data in P5js

Lab 6 Resources:

Part 1: Serial Input to P5

  1. Build a circuit with an analog sensor
  2. Write an Arduino program to read that sensor value
  3. Send the sensor value serially to p5
  4. Write a program to visualize the sensor data in P5

Part 2:

Incorporate another sensor to control a different part of your visualization

OR

Add an output from P5 to Arduino (like, make an LED turn on or a motor spin).




Lab 8 is due before class on Tuesday November 15th

Your blog response should include photos and a clear video of your working circuit, also a description of what you made. Submit a link to your blog post on Edmodo.