Lab: Intro to Asynchronous Serial Communications
1. Check Analog input/output
05ce227ab479b0375f2198320f5cc2db.mp4
- Adjust three input conponents- two potentiometers and one button, and observe the output:
b12c8412dcd1bf08b474e269722a41c6.mp4
2. Send the data in many formats
Lab: Serial Input to P5.js
1. Connect P5.js and Arduino
- Using portList, I find the device's name, which will be used later
2. Present output from Arduino to p5.js
- With the code below, I successfully make the output value adjusted by a potentiometer showed on the p5.js canvas.
(Code: https://editor.p5js.org/siyangBai/sketches/kei7z9cUR)