WEEK 8
Lab: Intro to Asynchronous Serial Communications
This lab took me a while to set up. First of all, I was using a brand new Arduino Nano because my original one broke while working on the midterm. I plugged it in, typed in a very simple program, and received this error message:

signal: killed
Compilation error: signal: killed
The next problem I ran into was in the Terminal - I couldn’t open the screen program. I had to first download MacPorts for my laptop’s operating system (wait a while for that to install), then enter a source code to install screen, and then open it. On the left is the error message I kept getting until I realized I had to install the screen program. When I finally got it to work, I could see the sensor values scrolling quickly.




I was able to successfully import the data coming through the Arduino into my p5 sketch:


I ran into issues when I got to the part about reading serial data as a string. I kept getting error messages when I ran the code. I tried debugging for a bit but couldn’t figure it out.
