From the course: Learning Arduino: Interfacing with Analog Devices
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
LDR (light-dependent resistor) sensor - Arduino Tutorial
From the course: Learning Arduino: Interfacing with Analog Devices
LDR (light-dependent resistor) sensor
- [Narrator] Some analog sensors output a change in resistance. Here are two common types you will run into. Thermistors, which change resistance due to the variation in temperature. And Photoresistors, which change resistance due to variation in light intensity. The problem with the resistance based sensors is that the Arduino analog interface cannot directly detect a change in resistance. A light dependent resistor or LDR, is a common light sensor. It is simply a resistor that changes resistance as the amount of light, that falls onto it, varies. And this is how an LRD looks. An LDR is made of a high resistance semi-conductor materials. The resistance decreases as the light intensity increases. In the dark an LDR can have a resistance as high as several megaohms. In a bright light it can have a resistance as low as a few hundred ohms. This is the schematic symbol for an LRD. Notice that the symbol is like a resistor but surrounded by a circle with a light incident upon it. Since the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
What are analog devices?2m 3s
-
Understanding analog-to-digital converters1m 50s
-
(Locked)
Exploring our temperature sensor (TMP37)2m 29s
-
(Locked)
Understanding how to interpret the sensor values2m 55s
-
(Locked)
Interpreting the sensor values1m 16s
-
(Locked)
Wiring up the temperature sensor57s
-
(Locked)
Coding to read the temperature sensor4m 56s
-
(Locked)
LDR (light-dependent resistor) sensor1m 36s
-
(Locked)
Using a voltage divider with our LDR3m 43s
-
Wiring up our LDR circuit1m 26s
-
(Locked)
Coding to read the LDR circuit3m 56s
-
(Locked)
Joystick module2m 9s
-
(Locked)
Wiring up our joystick1m 9s
-
(Locked)
Coding the joystick circuit4m 47s
-
-
-
-
-