Part 1
For this lab we used variable resistors as an input for our circuits. Using a potentiometer, we were tasked with creating a circuit that could adjust the brightness of an LED. By connecting the potentiometer to the one of the analog inputs on the Arduino board we were able to control the amount of energy flowing to the LED.
Here is my code
Part 2
For this part of the lab we had to use the same concepts from part 1 but instead apply it to two different types of variable sensors. By connecting a photocell and a flex sensor to different analog inputs we were able to control two LED’s separately.
Here is my code
Part 3
Last part of the lab had us create a voltage divider circuit with two photoresistors and an 8 Ohm speaker. First thing I had to do was solder the wires to the speaker.
Here is my code