Features
- Connection Mode: A
- Work Voltage:3.3V~5V
- Max power rating at 25°C :300mW
- Zero power resistance:10k
- Operating temperature range: -40-125°C
Part List
- 1 X Crowtail- Thermistor Temperature Sensor
- 1 X Crowtail 3 Pin Cable
Wiki & External links
Features
- Voltage: 3.3 ~ 5V
- Max power rating at 25℃: 300mW
- Zero power resistance: 10 KΩ
- Operating temperature range: -40 ~ +125 ℃
Usage
Here is an example to show you how to read temperature information from the sensor.
1.Connect the module to the Analog port 0 of Crowtail – Basic Shield using the 3-pin grove cable.
2. Plug the Crowtail – Basic Shield into Arduino.
3. Connect Arduino to PC by using a USB cable.
4.Upload the following sample sketch:
#include <math.h> int a; float temperature; int B=3975; //B value of the thermistor float resistance; void setup() { Serial.begin(9600); } void loop() { a=analogRead(0); resistance=(float)(1023-a)*10000/a; //get the resistance of the sensor; temperature=1/(log(resistance/10000)/B+1/298.15)-273.15;//convert to temperature via datasheet ; delay(1000); Serial.print("Current temperature is "); Serial.println(temperature); }
5.Open the serial monitor. You should see current temperature.
دیدگاهها
هیچ دیدگاهی برای این محصول نوشته نشده است.