Introduction: Light & Dark Detecting Circuit Using Arduino UNO

Picture of 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

Step 1: 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

Step 2: Things Required

Picture of 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

Step 3: Circuit Diagram

Picture of Circuit Diagram

Step 4: Construction

Picture of Construction

Connect the circuit according to the circuit diagram as shown in the previous step

Step 5: Sketch or Program

Picture of 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

Step 6: Dark Detection

Picture of 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

Step 7: Changing the Code From Dark to Light Detecting Circuit

Picture of 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

Step 8: Light Detection

Picture of 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 !!!

Comments

nvelankar (author)2016-09-26

Cool project bro...

as I needed

I'll try to link the code with my another project..

Thanks...

About This Instructable

2,971views

47favorites

License:

Bio: I like making new things from trash. For more cool content please subscribe to my YouTube channel @ https://goo.gl/BHxFf7
More by MakeStuff_MS:Simple & Easy Dimmer Circuit Using 555 IC for LED Strip LightsVariable Bench Power Supply From Scratch Using Laptop Adapter & LM317How to Make IR Security Alarm & a IR Detector Using LM358
Add instructable to: