Q) What is LUX?
Q) What is LUX?
The lux (symbol: lx) is the SI unit of illuminance and luminous emittance, measuring luminous flux per unit area. It is equal to one lumen per square metre. In photometry, this is used as a measure of the intensity, as perceived by the human eye, oflight that hits or passes through a surface.
Q) What is LDR?
A photoresistor (or light-dependent resistor, LDR, or photoconductivecell) is a light-controlled variable resistor. The resistance of a photoresistor decreases with increasing incident light intensity; in other words, it exhibits photoconductivity. A photoresistor can be applied in light-sensitive detector circuits, and light- and dark-activated switching circuits.
LDR Sensor |
LDR SYMBOL |
We can connect the LDR to the Analog Pin of any micro-controller and in few steps we can directly convert the value to the illumination (lx).
Connection for LDR
Connection |
- Connect LDR and Resistor in Series (Take resistance of value 10K).
- Now Ground one pin of the LDR (Which is not coonnected to Resistor).
- Connect one pin of the resistance to power supply that is not connected to LDR (Do not connect it to higher power supply than the micro-controller usually +5V).
- Connect the common pin of LDR and of RESISTOR to the Analog PIN of the micro-controller.
CALCULATIONS INVOLVED
- RL=500/lux
- V0=5*(RL/(RL+R))
- V0=LDR_value*ADC_value
- lux=(250/V0)-50
Where:
- RL is the resistance of LDR
- R is the resistance connected to LDR
- LDR_value is the Analog value read by micro-controller pin
- ADC_value is system_voltage/Resolution of ADC
- V0 is the analog measured voltage
- lux is illumination calculated
A sample example using ARDUINO UNO micro-controller
Copy the code
/* RL=500/lux
* V0=5*(RL/(RL+R))
* V0=LDR_value*ADC_value
* lux=(250/V0)-50
* Author: Ashish Kumar
Org: INVOOTECH */
float lux=0.00,ADC_value=0.0048828125,LDR_value;
* V0=5*(RL/(RL+R))
* V0=LDR_value*ADC_value
* lux=(250/V0)-50
* Author: Ashish Kumar
Org: INVOOTECH */
float lux=0.00,ADC_value=0.0048828125,LDR_value;
void setup() {
pinMode(A0,INPUT); //make analog pin A0 as input
Serial.begin(9600); //initialize serial monitor
}
void loop() {
LDR_value=analogRead(A0);
lux=(250.000000/(ADC_value*LDR_value))-50.000000;
Serial.println(lux);
delay(1000);
}
If I use different values of resistor, can I still use the same formula for lux calculation?
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis is my first time i visit here and I found so many interesting stuff in your blog especially it's discussion, thank you. 2cl77
ReplyDelete