Embded
Embded
OBJECTIVE
A Light Sensor is a device that detects light. It generates an output signal that is proportional to
the intensity of light. A light sensor measures the radiant energy present in the wide range of
frequencies in the light spectrum. Some of the common frequencies are infrared, visible and
ultraviolet.
A Light Sensor is also called as Photo Sensor or Photo electric Sensor as it converts light energy
or photons into electrical signals.
COMPONENTS REQUIRED
1.ARDUINO UNO
2.BREADBOARD
3.LDR MODULE
4.LED
5.JUMPER WIRES
BLOCK DIAGRAM
PROGRAM
void loop() {
int ldrStatus = analogRead(ldrPin);
}
else
{
digitalWrite(ledPin, LOW);
Serial.print("Its Bright, led off:");
Serial.println(ldrStatus);
}
}
CIRCUIT DIAGRAM
SIMULATION OUPUT
PHOTO OF THE PROTOTYPE