Nt1310 Unit 5 Lab Report

Words: 542
Pages: 3

There are 3 outputs in the system. The first is a red LED that is the idle light. Whenever the photoresistor is not detecting light this LED is lit. Two other outputs in the system include a yellow LED and the buzzer. When the photoresistor detects light, the red LED turns off while the yellow activates. The buzzer also cuts on and off at a frequency of 10 Hz. The alternation of on off for the buzzer is what actually generates the buzz instead of a single click.

Since the voltage supplied from the Arduino pin is approximately 5 volts, I deemed the 300 ohm resistor to be sufficient.
The photoresistor changes resistance when luminance is picked up. When the resistance is increased, the voltage drop changes because the current supplied is held
…show more content…
I had to test the system and keep tweaking it to the point where I was satisfied because insufficient information was available for me to use as reference.
Results:
Since my system’s input is light, the tests performed were based off of light supplied to the circuit. With the outputs being a buzzer that makes noise and LEDs that you can easily see, the performance of the system was easy to rate. After a few tests I changed the values that the voltage returning from the photoresistor to make the system a little less sensitive to light. This was done because it was too easy for the buzzer to go off. The goal was to make it detect the difference between night and day not sunshine and shade. Uncertainty could be found in the voltage values returning from the photoresistor.
Discussion:
At first I struggled with the buzzer and how it worked. It was my assumption that the buzzer would hum with constant power supplied to it, unaware that it would only make a single click. I still wanted my system to buzz. In order to make this work I added a few lines of code. This code made the circuit, when given the go ahead from the statement for the photoresistor, would turn the pin supplying the buzzer from HIGH to LOW every 5