Light & Dark Detecting Circuit Using Arduino UNO
by DIYTechStudio in Circuits > Arduino
8223 Views, 48 Favorites, 0 Comments
Light & Dark Detecting Circuit Using Arduino UNO
In this instructable, i will show how to make a Light and Dark Detecting circuit using Arduino UNO with a single circuit just by changing simple sketch or program
Video
You can watch the video to see how it works or continue reading to try it yourself
You Can Subscribe To My YouTube Channel Here : https://goo.gl/ctc8l9
Things Required
1. Arduino UNO
2. LDR
3. 470 Ohm Resistor
4. 1k Resistor
5. Bread Board
6. Jumper Wires
-------------------------------------------------------------------------------------------------------------------------------------------------
If you interested in making this product you can use my affiliate buying links :
Amazon US:
Arduino UNO : http://amzn.to/29TsMvE
LDR : http://amzn.to/29QpRYQ
Resistors : http://amzn.to/2a2CzU8
Bread Board & Jumper Wires : http://amzn.to/2a5VCw5
Amazon India:
Arduino UNO : http://amzn.to/2ae6tn7
LDR : http://amzn.to/2a5yVsT
Resistors : http://amzn.to/29GbUwT
Bread Board : http://amzn.to/2aAZS57
Jumper Wires : http://amzn.to/2a5zh2p
Circuit Diagram
Construction
Connect the circuit according to the circuit diagram as shown in the previous step
Sketch or Program
How LDR works ?
The resistance of a photo resistor or LDR decreases with increasing incident light intensity. Which means as the light intensity increases the resistance decreases & vice versa.
So this logic is considered in the sketch
In the sketch we compare the default set value which is defined as BRIGHTNESS in the sketch and compare it to the output of the LDR
DARK DETECTION
To detect the dark we compare the default value to the LDR value. IF the value of the LDR is less then the default value, the GREEN LED glows which means its dark
LIGHT DETECTION
To detect the dark we compare the default value to the LDR value. IF the value of the LDR is greater then the default value, the GREEN LED glows which means its day/light
Dark Detection
In the pictures you can see how the circuit works.
DARK DETECTION
To detect the dark we compare the default value to the LDR value. IF the value of the LDR is less then the default value, the GREEN LED glows which means its dark.
To watch testing CLICK HERE
Testing begins @ 1:56
Downloads
Changing the Code From Dark to Light Detecting Circuit
Above circuit shows the change in the circuit to be made to convert it to Light detecting from the dark detecting circuit
Light Detection
In the pictures you can see how the circuit works.
LIGHT DETECTION
To detect the dark we compare the default value to the LDR value. IF the value of the LDR is greater then the default value, the GREEN LED glows which means its day/light
To watch the testing Click Here
Testing begins @ 3:06
------------------------------------------------------------------------------------------------------------------------------------------------
Software Download Link:
Arduino Software : www.arduino.cc
------------------------------------------------------------------------------------------------------------------------------------------------
If you interested in making this product you can use my affiliate buying links :
Do you want to support my videos?
If Yes, Please browse and buy things from my Amazon Store. This way I get a small commission which will help me produce more videos. Please use the link to visit my store : http://goo.gl/gKjns4
You can also contribute to me on Patreon using the link : https://goo.gl/JHoagv
Amazon US:
Arduino UNO : http://amzn.to/29TsMvE
LDR : http://amzn.to/29QpRYQ
Resistors : http://amzn.to/2a2CzU8
Bread Board & Jumper Wires : http://amzn.to/2a5VCw5
Amazon India:
Arduino UNO : http://amzn.to/2ae6tn7
LDR : http://amzn.to/2a5yVsT
Resistors : http://amzn.to/29GbUwT
Bread Board : http://amzn.to/2aAZS57
Jumper Wires : http://amzn.to/2a5zh2p
--------------------------------------------------------------------------------------------------------------------------------------------
Follow Me On :
You Tube : https://goo.gl/ctc8l9
Twitter : https://twitter.com/MakeStuff_MS
Instagram : https://www.instagram.com/makestuff_ms/
Google Plus : https://goo.gl/RpTnwf
Facebook : https://www.facebook.com/makestuffMS
THANK YOU FOR READING !!!