With this lab, I started to understand more how sensors work and how to use them with p5 some more. I was starting to work on my final project so I decided not to take my bread board apart completely, but use the connections that I already had and ignore the rest of the buttons and potentiometer if needed. I was able to get the part with the button figured out and working, but I had some trouble with getting the pressure sensor to work so I tried it with potentiometer instead. I did have some trouble with determining how to access the threshold and detect it to adjust for noise. I want to try and play around with the noise functions further because I think they will help on my final project since I want to deal with sensors and p5. I included it in many different ways in the code, but I just couldn't get it to work. I included my code for my program down below.
(Update: I figured this lab out, but I'm still having trouble on how to incorporate this into my final project code)


Comments