Lets learn how to interface LDR with Arduino Uno. We'll first setup the circuit and then write program to measure light intensity. The LDR which is Light-Dependent Resistor changes the resistance value based on intensity of light falling on to it. This change in resistor then can be measured in the form of Lux or illuminance. The LDR or Photoresistor is an Analog Sensor. We'll connect LDR Sensor to A0 Pin on Arduino Uno and use simple analogRead() function to read light intensity (lux) from LDR
9 июл 2024