Intro to Physical Comp


WEEK 8

LAB: Intro to Asynchronous Serial Communications



Serial Terminal Programs

Connecting via the POSIX Command Line




Initializing Communication




Send the data in many formats



Formatting Multiple Serial Data: Punctuation                                                                                                                                        Flow Control: Call and Response (Handshaking)



Lab: Serial Input to p5.js Using the p5.webserial Library


P5  Code for this lab:



Reading Incoming Serial Data & Draw a Graph With the Sensor Values





Lab: Serial Output From p5.js Using the p5.webserial Library


P5  Code for this lab:



Sending ASCII-Encoded Serial Data



©Zhongao XuanWILL’S DESIGN LOGXUAN 2024