80 likes | 120 Views
Temperature Sensor. TYWu. Seeed’s Temperature Sensor. Picture. Seeed’s Temperature Sensor. Specifications The temperature sensor uses a thermistor which returns the ambient temperature in the form of a resistance value, which is then used to alter Vcc (5V with our Seeeduinos).
E N D
Temperature Sensor TYWu
Seeed’s Temperature Sensor • Picture
Seeed’s Temperature Sensor • Specifications • The temperature sensor uses a thermistor which returns the ambient temperature in the form of a resistance value, which is then used to alter Vcc (5V with our Seeeduinos). • Our board then converts this voltage value measured by an analog input pin to a temperature. • The operating range is -40 to 125 degrees Celsius, with an accuracy of ±1.5ºC.
Seeed’s Temperature Sensor • There are 4 pins • SIG (Yellow) • NC (White) • VCC (Red) • GND (Black)
Seeed’s Temperature Sensor • Schematic
Seeed’s Temperature Sensor • Characteristic Curve
Sketch int a; int del=100; // duration between temperature readings float temperature; int B=3975; float resistance; void setup() { Serial.begin(9600); } void loop() { a=analogRead(0); resistance=(float)(1023-a)*10000/a; temperature=1/(log(resistance/10000)/B+1/298.15)-273.15; delay(del); Serial.println(temperature); }
Exercise • 1. Display Celsius and Fahrenheit • 2. Rolling Display the two temperature degrees (Celsius and Fahrenheit) by a 7 Segment LED