Lab: Intro to Asynchronous Serial Communications

CoolTerm

Screen Recording 2021-10-19 at 3.17.06 PM.mov

Screen Recording 2021-10-19 at 3.25.44 PM.mov

Screen Recording 2021-10-19 at 3.34.32 PM.mov

Question:

  1. What's the difference between byte and inbyte? Why the sensorValue hasn't been read for the serial.available loop.

Screen Shot 2021-10-19 at 3.54.41 PM.png

Screen Recording 2021-10-19 at 3.50.49 PM.mov

  1. Undefined and unstable potentiometer. Why the potentiometer always shown undefined? How to make sure the sensor is connected to the P5.JS each time we run the sketch?

34281634674865_.pic_hd.jpg

34331634679515_.pic_hd.jpg

Screen Recording 2021-10-19 at 4.44.33 PM.mov

Lab: Serial Input to P5.js

Potentiometer and P5.JS

Screen Recording 2021-10-19 at 4.47.31 PM.mov

Screen Recording 2021-10-19 at 4.54.44 PM.mov