Lab: Two-way Serial Communication using an Arduino and P5.js

Sending Multiple Serial Data using Punctuation

Screen Shot 2021-10-25 at 4.26.25 PM.png

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

IMG_6530.GIF

Move circle onscreen whenever you tilt the accelerometer

IMG_6531.GIF

Flow Control

IMG_6532.GIF

Problems during the lab

IMG_6533.GIF

When I press the push button, the circle won't disappear

I think this is a problem of poor wiring. The flickering of dots on the image means the outcome of the push button in Arduino is keeping changing between 0 and 1. After I keep pressing the button without releasing it, the circle won't flash since the status is "1".