From the course: Learning Arduino: Interfacing with Analog Devices
Understanding analog-to-digital converters - Arduino Tutorial
From the course: Learning Arduino: Interfacing with Analog Devices
Understanding analog-to-digital converters
- [Narrator] Let's start with how the Arduino board handles analog inputs. When working with analog input signals, the Arduino board uses an analog to digital converter or ADC. This converts analog signals coming from the external devices into digital values that the microcontroller can work with. The digital value is scaled based on the value of the analog signal. Then the Arduino software reads the digital value produced by the ADC and uses it to determine the value of the original analog signal. Most of the Arduino boards have an ADC with a 10-bit resolution. This means that it returns integers from zero to 1,023. For an analog input between zero and five volt, the analog to digital conversion returns zero for an input of zero volt and 1,023 for an input of five volts. The same thing applies when having a voltage reference of 3.3 volts. So zero, for an input of zero volts and 1,023 for the maximum voltage, which in this case, is 3.3 volts. Each Arduino units include an ADC for each analog pin for sensing analog input voltages and converting them into digital values. The analog ADC is a 10-bit resolution. There are some exceptions that have 12-bit ADC. The only difference is that this will return values between zero and 4,095. You can read more about the Arduino board resolution by going to this link.
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
-
-
-
-
-