Lab: Serial Input to P5.js IDE

Week 6
Assignments


When I was doing the Labs, I think I ran into a problem, because the sensor data sending from Arduino to p5 didn't work properly. The Number at the Top-Left Corner didn't move but when I changed to Serial.readLine(). The numbers changes according to the potentiometer. 

I probably made a mistake and didn't follow the labs steps accordingly..... 

Arduino Input to P5.js

p5.js IDE
Serial.read()

Arduino
delay(1);

Arduino Input to P5.js

p5.js IDE
Serial.readLine();

Arduino
delay(1);


Arduino Input to P5.js

p5.js IDE
serial.readLine()

Arduino
delay(100);

Arduino Serial Input to P5.js

p5.js IDE
Serial.readLine()

Arduino
delay(100);