PT100/PT1000 工业级温度传感器
来自Jack's Lab
(版本间的差异)
(→资源) |
(→资源) |
||
| 第29行: | 第29行: | ||
== 资源 == | == 资源 == | ||
| + | |||
| + | * http://martin.engineer/wp/?p=453 | ||
| + | |||
* http://openenergymonitor.org/emon/buildingblocks/rtd-temperature-sensing | * http://openenergymonitor.org/emon/buildingblocks/rtd-temperature-sensing | ||
2016年2月29日 (一) 16:54的版本
1 概述
2 示例
void setup()
{
Serial.begin(115200);
}
void loop() {
int vd = analogRead(A0);
//Serial.println(vd);
float vvd = 1.0*vd/1023;
//Serial.println(vvd);
float rtd = (3.3 - vvd) * 300 / vvd;
//Serial.print("rtd = ");
//Serial.println(rtd);
Serial.print("temp = ");
Serial.println(rtd * 20/1078);
delay(1000);
}
3 资源
- http://openenergymonitor.org/emon/buildingblocks/rtd-temperature-sensing
- http://forum.arduino.cc/index.php?topic=16731.0
- http://stackoverflow.com/questions/21644642/how-to-connect-pt-1000
- http://41j.com/blog/2015/01/esp8266-analogue-input/