Presentation is loading. Please wait.

Presentation is loading. Please wait.

Temperature Sensor TYWu. Seeed’s Temperature Sensor Picture.

Similar presentations


Presentation on theme: "Temperature Sensor TYWu. Seeed’s Temperature Sensor Picture."— Presentation transcript:

1 Temperature Sensor TYWu

2 Seeed’s Temperature Sensor Picture

3 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.

4 Seeed’s Temperature Sensor There are 4 pins –SIG (Yellow) –NC (White) –VCC (Red) –GND (Black)

5 Seeed’s Temperature Sensor Schematic

6 Seeed’s Temperature Sensor Characteristic Curve

7 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); }

8 Exercise 1. Display Celsius and Fahrenheit 2. Rolling Display the two temperature degrees (Celsius and Fahrenheit) by a 7 Segment LED


Download ppt "Temperature Sensor TYWu. Seeed’s Temperature Sensor Picture."

Similar presentations


Ads by Google