Week 8

Serial Monitor went aggressively fast so I wanted to make it slower, so I added delay(100) for each sensor values in loop.

I got error message in p5.js that there is multiple imports. I deleted other scripts in the index.html, then the error message disappears.

  • Receive data in p5js

“\r\n” means carrier return and newline. What I know about string is a sequence of characters. Why would you read this serial as a string and then map it in boundaries?

  • Handshake

I’m curious how are these numbers related to the number that I type into the message. I entered 200 and received these serial numbers.

In p5.js console, it says the ellipse is receiving an empty variable. After resetting Arduino, I think it worked, the error message disappeared.

The ellipse worked same, but shaking. Is it because this sensor values are more sensitive than before?

However, I didn’t get the “hello” part in p5.js.