Accidentally did two weeks of labs in one sitting.

Screen Shot 2022-10-31 at 4.41.27 PM.png

This happened because I messed up pasting the script src for p5 web serial.

Screen Shot 2022-10-31 at 4.07.23 PM.png

This functioned with no problem once I fixed the script src.

Graph

The potentiometer was finicky because of the board. (My board set-up was the same for the lab next week because I did that one first). Readings would also show the same finickiness.

The hello part would also work fine as long as the potentiometer was pushed in.

IMG_2190.HEIC

IMG_2195.HEIC

The bulb would light up when inputted into the serial monitor; however, if I put zero to turn it off, it would not. (Still not sure why.)

IMG_2196.HEIC

Tried taking out the resistor and putting one in to make it turn off. It didn’t change anything. (Resistance used was around 100 ohms.)

IMG_2194.HEIC

Tried messing with the pins (changing it around), and it still didn’t work.

IMG_2193.HEIC

video for lightbulb with p5

As shown in the video, it did turn off when I used mouse drag with p5- not sure why it didn’t work with just the serial monitor portion of the lab.

Next Week’s Lab

Set-up being tested for input.

(values were fine as long as the potentiometer was stabilized on the breadboard.)

IMG_2192.HEIC

video reference

Just had issues with the potentiometer being loose on board. Would cause it to spazz out. Not really reliable although the code would work if the potentiometer was pushed in.