Week #7

Asynchronous Serial Communications + WebSerial

This week's labs were all about connecting our arduinos and sensors to p5.js.

Making our boards talk to a web-based program is not that straight forward. First you have to establish a connection that is happening in an "agreed upon" rate. Then you have to also "agree" on the type of data you're sending on one end and receiving on the other, and account for that data's format as well.

First thing's first — just print out formatted data from a potentiometer so we know what values we're getting:

Then we established a connection to the p5 editor!

Displaying values from a potentiometer onto the screen:

...and the other way around — controlling an LED with our computer mouse / keybouard:

X button icon

Jasmine Nackash is a multidisciplinary designer and developer intereseted in creating unique and innovative experiences.