From the course: Learning Arduino: Interfacing with Analog Devices
What are analog devices? - Arduino Tutorial
From the course: Learning Arduino: Interfacing with Analog Devices
What are analog devices?
- [Instructor] There are two types of components that we interface with in Ardiuno, digital and analog. Digital devices produce two possible values as their output, either zero or one. We may also refer to these as high or low. An example would be a push button switch- it's either on or off. However, analog sensors can produce a continuous number of possible output values. Some examples of analog components are: light dependent resistors, which can be used as a light sensor, temperature sensors, stepper motors, and joystick controllers. There are many different ways to measure the analog output they produce. Voltage is a common analog output. So when working with analog sensors, we need to know what type of output the sensor produces in order to properly use it in the program. This allows us to control the brightness of an LED, the speed of motor, and so on. Typically, analog sensors output one of these three physical electrical properties: voltage, resistance, or capacitance. An example of an analog sensor that produces voltage is a temperature sensor, such as TMP37 and LM35. When working with sensors that produce voltage, we need to know the voltage range that the sensor outputs, and take into consideration the voltage reference that Arduino is using. An example of this type of sensor is an LDR, or light dependent resistor. An example of a capacitance sensor is a touch sensor. Here's a simple touch sensor that was included in my Ardiuno kit.
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
-
-
-
-
-