AT219 Arduino Uno Programming Part (Lab 5)
With this lab, we continued creating circuits using a breadboard and programming certain functions. This activity was valuable because I got to learn and critically think about how circuits should be wired and introduced to more programming. The first circuit I built and programmed was to read the value of a photoresistor and create an output with an LED. A photoresistor measures the amount of light. This means the more light the photoresistor measures, the brighter the LED will get. To do this, I set up two separate circuits. In the first one, the Arduino measures the value of the photoresistor with a resistor in series. The second creates another circuit with a separate pin as an output. I also coded a serial function to write in text what the value of the photoresistor was. I mapped the values to be between 0-255 so we can get precise adjustments of the LED. The second circuit was slightly more complicated. It was a similar setup except there were two inputs and two outputs. I used ...