November 2nd, 2022


Lab: Two-Way (Duplex) Serial Communication Using An Arduino and the p5.webserial Library

Sending Multiple Serial Data using Punctuation

IMG_7362.HEIC

Screen Shot 2022-10-29 at 8.52.57 PM.png

Screen Shot 2022-10-29 at 8.52.23 PM.png

Receive the data in P5.js

Generic WebSerial p5 Sketch, made with Week 7 Labs.

Screen Shot 2022-10-29 at 8.39.56 PM.png

Screen Shot 2022-10-29 at 8.49.16 PM.png

Screen Shot 2022-10-29 at 8.39.51 PM.png

IMG_7361.mov

It’s a little shaky from my potentiometers not staying in my board.

Flow Control: Call and Response (Handshaking)

p5 Sketch: PCOMP Lab 8

Screen Shot 2022-10-29 at 8.56.11 PM.png

Screen Shot 2022-10-29 at 8.57.15 PM.png

Like in week 7, I’m still unexpectedly getting 2 strings of sensor values when I only send 1 message.

Screen Shot 2022-10-29 at 8.58.33 PM.png

Screen Shot 2022-10-29 at 8.58.58 PM.png

I followed the changes but now my p5 sketch doesn’t work anymore. To begin serial communication, I have to send a message in output. In past instances that required me to do so, I sent the message in the message line on serial output. When I try to send a message in output, I recieve an error that says output is read only.