35
Lesson 11 Digital Temperature Sensor
Introduction
Compared with an analog temperature sensor, a digital temperature sensor (as shown
below) only adds a digital output. You can adjust the threshold by the potentiometer onside.
When the output is higher than the threshold, the sensor will output high level; when it is lower
than the threshold, the sensor will output low level.
Components
-
1 * SunFounder Uno board
- 1 * USB data cable
- 1 * Digital Temperature Sensor module
- Several jumper wires
Experimental Principle
In this experiment, we will use a Digital-temperature Sensor module and an LED attached to
pin 13 of SunFounder to build a simple circuit to make a temperature light.
With the LED attached to pin 13, connect the pin DO to D7 of SunFounder Uno. When the
Digital Temperature Sensor detects that the ambient temperature is higher than a certain
value (threshold), the LED will be on. Otherwise, it will be off. You can adjust the threshold by
adjusting the potentiometer.
Experimental Procedures
Step 1:
Build the circuit
Digital Temperature Sensor Module SunFounder Uno
AO ---------------------------------------- A0
DO ---------------------------------------- D7
- ---------------------------------------- GND
+ ----------------------------------------- 5V
SunFounder