Digital Temperature Sensor
Description :
Simple circuit of digital temperature module and integrated LED connecting to digital 13 interface to make temperature indicator light.
Use number 13 interface to connect the integrated LED, connect digital temperature sensor to number 3 interface. When the digital temperature sensor senses key signal, the LED is on, otherwise, it's out.
Sample code:
Int Led = 13;/ / define LED interface
Int buttonpin = 3;/ / define the digital temperature sensor interface
Int val./ / define digital variable val
Void setup ()
{
PinMode (Led, the OUTPUT);/ / define the LED for the output interface
PinMode (buttonpin, INPUT);/ / define the digital temperature sensor for the output interface
}
Void loop ()
{
Val = digitalRead (buttonpin);/ / to assign the value of digital interface 3 read val
If (val = = HIGH) / / when digital temperature sensor detection signal, LED flashing
{
DigitalWrite (Led, HIGH);
}
The else
{
DigitalWrite (Led, LOW);
}
}
General | |
---|---|
Model | N/A |
Quantity | 1 piece |
Form Color | Red + Blue + Multi-Colored |
Material | PCB |
Specification | |
Application | Arduino AVR PIC DIY Maker BOOOLE |
Working Voltage | 3.3~5V |
English Manual / Spec | Yes |
Download Link | http://pan.baidu.com/s/1pKt3uv5 |
Dimensions & Weight | |
---|---|
Dimensions | 1.81 in x 0.59 in x 0.59 in (4.6 cm x 1.5 cm x 1.5 cm) |
Weight | 0.21 oz (6 g) |