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