Pcomp - week 8 & Project 2 progress
Lab: I2C Communication with a Time-of-Flight Distance Sensor
For this lab, since the sensor I borrowed from the lab is not from Adafruit, I was having trouble using the code from the lab in the beginning. Then I went to Pololu’s website and change it to their’s library.
Lab: SPI Communication With A Digital Potentiometer
This one did not work as it supposed to be, but I still confused about why this is not working.
Project 2 Progress
I transplant a game orginally build in p5.js and change its coordination based on the sensor’s value. The first one is a test I did with potentiometer -> change the X,Y position of the player object.
Then besides the time-of flight distannt sensor, I tested out the ultrasonic sensor and then try to mapped the value of the sensor into the coordination of the player object. Below are a few test I did.