Lab : Digital Input and Output with Arduino

Connecting a switch to digital input 2 on the Arduino. I had some issues while running the uploading the code on the arduino. The circuit would work by itself but the program was not working!

img_3984

Digital Input and Output Lab

Add a potentiometer and LED

Connect a potentiometer to analog in pin 0 of the module, and an LED and a resistor to digital pin 9: I had to do a lot of trial and error before I got the circuit and the arduino code to work in sync.

Add a potentiometer and LED Using other variable resistors for analog input

force-sensing resistors instead of flex sensors.Using different types of variable resistors for analog input and interacting with the resistors was fascinating for me. I also tried to understand how he code was written and how commenting certain entities in the code affects the circuit.