Sei sulla pagina 1di 9

INTRODUCTION

• An LDR is a component that has a (variable) resistance


that changes with the light intensity that falls upon
it. This allows them to be used in light sensing
circuits.

• We can fade an led using analog signal function of


arduino uno

• We read analog signal from LDR(Light detecting Resistor)


and then write the signal value to led.

• Analog Write outputs value in the form of PWM


Circuit Diagram
int sensor=A0;
int output=9;
void setup()
{
pinMode(output, OUTPUT);
}
void loop()
{

int reading=analogRead(sensor);
int bright=reading/4;
delay(500);
analogWrite(output, bright);
}
Insight on Circuit Description
• LDR normally has very high resistance and in this
condition no current flows through it

• Therefore when light is thrown on its surface its


resistance decreases and it allows the current to flow
through it. Thus we use the resistor.

• Connect led +Sign leg to Pin#9 of the Arduino board which


is analog write pin of Arduino and -leg to ground.
Applications

Lighting switch
The most obvious application for an LDR is to automatically turn on
a light at a certain light level. An example of this could be a
street light or a garden light.

Camera shutter control


LDRs can be used to control the shutter speed on a camera. The LDR
would be used to measure the light intensity which then adjusts the
camera shutter speed to the appropriate level.
Advantages of using LDR
• It is easy to integrate with lighting system such as automatic
lighting system.

• It is used for energy consumption or energy management by automatic


control of brightness level

• Light sensors need small voltage and power for its operation.

• Photoresistors are lower in cost, bi-directional and offer moderate


response time.
Challenges

• LDRs are highly inaccurate with high response time (about 10s or
100s of milliseconds).

• Resistance varies continuosly (analog) in photoresistor and are


rugged in nature.

• They are strongly temperature dependent, so they are not OK for


stable repeatable precision light level measurement.

• LDRs can not withstand voltages above 1000 volts.


Conclusion
• Thus we implement a Light intensity controller using LDR

• The hue can be varied depending on the intensity of the light present
in the area.
THANK YOU

By
Rohitashwa Mahuli
Sriram Sahukar
Akshaykumar Athani
Abhishek Joshi
Shubham Singhal

Potrebbero piacerti anche