1 / 8

Temperature Sensor

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

tterry
Download Presentation

Temperature Sensor

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

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

More Related