cidopa.blogg.se

Arduino light sensor
Arduino light sensor










Light Sensors are used in variety of applications.The 100 KΩ POT used in the voltage divider network can be used to adjust the intensity levels at which the buzzer is triggered. When the intensity of light decreases, the buzzer is turned off. When the LDR detects a light over certain intensity, the Arduino will trigger the buzzer.

#Arduino light sensor code#

The code for Arduino is written and dumped in the board. The working of the project is very simple and is explained below.Īll the connections are made as per the circuit diagram. Hence, in this project, we designed a simple light sensor that indicates when the light is indicated.

arduino light sensor

One of the common application is an automatic night lamp, where a light bulb is automatically turned on as soon as the sun sets down.Īnother good application is solar tracker, which tracks the sun and rotates the solar panel accordingly.Īll these applications use a simple photo resistor or an LDR as the main sensing device. Light Sensors are very useful devices in wide range of applications.

arduino light sensor

Circuit Design of Light SensorĪs the photo resistor or LDR is a variable resistor, a voltage divider network must be used to gets the analog equivalent output from it.Ī 100 KΩ POT and the LDR form a voltage divider and the output of the voltage divider is given to the analog input A0 of Arduino.Ī buzzer is connected to pin 11 of Arduino. It has 6 analog input pins and 14 digital I/O pins. It is the main controlling part of the project. This is a variable resistor whose resistance can be varied from 0Ω to 100 KΩ. Germanium Copper cell based light dependent resistors are used in far infrared frequency applications and they are used in infrared based astronomy and spectroscopy. Lead Sulphide and Indium Antimonide cell based photo resistors are frequently used for low to mid infrared frequencies.

arduino light sensor

Some applications are night lights, alarm systems, solar tracking systems etc. Photo cells are made with different compounds depending on the frequency of the light and application they are used.Ĭadmium Sulphide cell based photo resistors are most common in consumer applications as they are inexpensive. Photo Resistors are semiconductor devices with photo sensitive cells. in dark conditions, the resistance of LDR will be in the order of Mega Ohms (MΩ).Īs the intensity of the light increases, it resistance decreases and falls down to few Ohms at maximum intensity of light. Generally, when the intensity of light is less i.e. Component Description Light Dependent Resistor (LDR)Īn LDR is a type of variable resistor that change its resistance according to intensity of the light incident on it.










Arduino light sensor