JESSIE ZHAI

Digital artist

A documentation page of rambling and experimenting.

@jessiehaseyes
jessiejiranzhai@gmail.com
WEEK 02
PCOMP WEEK2


Physical Computing
Lab 2
Arduino


With this week’s lab, I started to get to use my code in Arduino and began to get a better grasp at what we can do with physcial computing.


Digital Input and Output

I set up the breadboard with two LEDs as digital outputs and followed the lab to program the blue LED to be on and red LED to be off when the button is not pressed, and the red LED to be on and the blue LED to be off when the button is pressed.

This first lab intially took me almost four hours because I couldn’t figure out why it was not working when everything was connected correctly. After meeting with a resident, we figured out that the serial port was not connected correctly and by wiggling the usb port, the problem was easily solved.



Analog In 


I used a potentiometer to connect to the breadboard along with an LED light. After declaring the global variables and setting up the code, I was able to use the Potentiometer to dim and brighten the LED light.




I then used two force-sensing resistors to test out the circuit with variable resistors. I learned the meaning of a voltage divider, which is when two resistors are connected together in a series. 



I then used two force-sensing resistors to test out the circuit with variable resistors. I learned the meaning of a voltage divider, which is when two resistors are connected together in a series. 



After placing my hands on the FSRs, the brightness of the LEDs changed depending on how my fingers pressed the resistors. 




I used the Serial Monitor to print messages on how the state of my buttons and sensors were changed in the final lab,  in cluding the long and short press detection.


I’m slowing getitng a hang of working with the breadboard, but I think it would be helpful to look for some examples of how this can be applicable to other creative projects, which might help me to learning more by figuring out how to solve a problem.
JESSIEZHAI