How to interface LDR sensor with evive ?

ldr circuit
About This Tutorial
The tutorial will shows how to interface ldr sensor with evive and controlling the led state using the sensor.How does ldr sensor works? How to control lights using ldr sensor? All the answers are given in this tutorial.Let’s begin…
Tutorial Info

Components Required

ImageComponentQuantityAvailable in Kit
evive1
USB A-B Cable1
10 kOhm Resistor1
Male to Male Jumper Cable 20cm3

Introduction

LDR  (wikipedia)  are light sensitive devices most often used to indicate the presence or absence of light or to measure the light intensity. An LDR can be applied in light-sensitive detector circuits and light-activated and dark-activated switching circuits.LDR

How does LDR sensor work?

The resistance of a photoresistor decreases with increasing incident light intensity. In other words, it exhibits photoconductivity. A photoresistor is made of a high resistance semiconductor. In the dark, a photoresistor can have a resistance as high as several megohms (MΩ), while in the light, a photoresistor can have a resistance as low as a few hundred ohms.

Variation in resistance with changing light intensity

Typical LDR (Light Dependent Resistor) resistance vs light intensity graph
 

The most common type of LDR has a resistance that falls with an increase in the light intensity falling upon the device (as shown in the image above). You can therefore see that there is a large variation between these figures. If you plotted this variation on a graph you would get something similar to that shown by the graph shown above.

Setting up the circuit for LDR sensor

The circuit of LDR sensor is explained below

  • One end of LDR is connected through jumper wire(red wire ) to the 5V power supply in the evive board.

  • Another end of LDR is soldered with 10K resistor. Through the common junction of LDR and 10K resistor, a jumper wire is taken and hooked into the analog input(here we have used A1 pin number in the evive board) of the evive board.

  • The free end of the resistor is grounded with the help of jumper wire.

      

Arduino Code

The following arduino code controls the led state using the ldr sensor. 

Output

The final circuit is shown in the figure.ldr circuit

evive Notes Icon
Note: While making the circuit connections make sure you use a 10K ohm resistor. Also, sometime the led will now glow, we have to make sure that the there is sufficient amount of light for the ldr sensor to read. 

Share this Tutorial
Share on facebook
Facebook
Share on twitter
Twitter
Share on google
Google+
Share on pinterest
Pinterest
Share on reddit
Reddit
Share on print
Print
Related Projects & Tutorials
How to interface Water Flow sensor with evive
In this tutorial, we will discuss how to interface water flow sensor with evive. How water flow rate, current water flowing and output water changes? The water flow rate in liters per hour, current water flowing and output water flowing data flowed since starting is displayed on the screen. All the answers are given in this tutorial.LET'S BEGIN...
All articles loaded
No more articles to load
Featured Projects
All articles loaded
No more articles to load

Leave a Reply

Close Menu
×

Cart