Lab Video:

Serial 6-Better Processing(make ball move smoother)

截屏2021-10-25 下午2.41.40.png

Serial 7-Reading String

change bytes into strings, and from 0-255 to 0-1023, which can move smoother

截屏2021-10-25 下午2.51.47.png

Multiple Sensors

截屏2021-10-25 下午3.23.24.png

UPDATED P5JS CODE

截屏2021-10-25 下午3.23.02.png

Lab

Question:

  1. I can get immediately result from potentiometer, but, I cannot get appropriate result from pushbutton. For the most of the time, it will delay, and I write delay(1) in the arduino, it still not working.