Question: Create a device that is responsive to changes in light level. Write a program that compares the photoresistor circuits output voltage to the potentiometer circuits

Create a device that is responsive to changes in light level. Write a program that compares the photoresistor circuits output voltage to the potentiometer circuits output. If the potentiometer circuit voltage is higher, the program should turn on the LED. If on the other hand, the photoresistor voltage is higher, the LED should turn off. This means that if you pass your hand over the sensor, the LED should turn on. Play with the circuit as you turn down the potentiometer, it should be increasingly hard to get the LED to turn on, and vise-versa. This type of device is (not surprisingly) called a comparator because it compares two voltages, reacting one way if the first voltage is higher than the second, a different way if the second voltage is higher than the first. Comparators have a huge range of applications.

please make sure that I am taking the first class on Arduino so the code for this project must be simple as much as possible.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!