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.
Using a voltage divider with our LDR - Arduino Tutorial
From the course: Learning Arduino: Interfacing with Analog Devices
Using a voltage divider with our LDR
- The easiest way to detect a change in resistance is to convert that change to a voltage, Is to confer that change to a voltage, so for our LDR, we will build it into a voltage divider circuit. In a voltage divider, we take an input voltage, and input voltage "V in" V in, and divide it between two resistors, R one and R two. and divide it between tworesisters "R1" and "R2". By measuring V out, voltage out, between the two resistors, we get an output we get an output that is somefraction of the input voltage. that is some fraction of the input voltage. The value of the output depends on the value we pick for resistor one and resistor two. resistor one and resistor two. Here is the equation for a voltage divider. Notice that, since the sum of resistor one and resistor two is on the bottom of the fraction, the output voltage will always be smaller than the input. What happens if we make one of the resistors in our voltage divider a sensor like an LDR? As the resistance of the sensor…
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 sensor5m 1s
-
(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
-
-
-
-
-