ocrobot:alpha:pt100:main
差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
ocrobot:alpha:pt100:main [2019/04/19 04:02] – 董凯萍 | ocrobot:alpha:pt100:main [2023/06/07 04:23] (当前版本) – 外部编辑 127.0.0.1 | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ======ALPHA PT100 电阻式温度传感器模块====== | ||
+ | 测量范围:-200℃~+850℃ | ||
+ | A级 精度为(0.15+0.002*|t|)摄氏度; | ||
+ | 测量范围: | ||
+ | -50℃至+150℃(标准传感器) | ||
+ | -80℃至+100℃(低温传感器) | ||
+ | 0℃至+400℃(高温传感器) | ||
+ | 测量精度(根据传感器类型):±0.05℃至±0.5℃ | ||
+ | |||
+ | 传感器长度:标准为10-200mm | ||
+ | |||
+ | 传感器直径(根据传感器类型):2mm – 3mm | ||
+ | |||
+ | 测量点位置(与传感器头部距离):圆头:3mm 尖头:6mm | ||
+ | |||
+ | 分辨率:0.01℃ | ||
+ | |||
+ | 反应时间(63%):1秒(高温)0.5秒(其他) | ||
+ | ===== 特点 ===== | ||
+ | 芯片为MAX3186 | ||
+ | |||
+ | 传感器采用进口PT100 德国贺利氏铂电阻 | ||
+ | |||
+ | 线是三线制高温镀银(三芯镀银线+镀银屏蔽线) | ||
+ | |||
+ | 四氟外皮(双包铁氟龙)耐高温达180度 | ||
+ | ===== 参数 ===== | ||
+ | |||
+ | |||
+ | |||
+ | =====参考图片===== | ||
+ | {{: | ||
+ | {{: | ||
+ | =====例程===== | ||
+ | <code cpp> | ||
+ | / | ||
+ | This is a library for the Adafruit PT100/P1000 RTD Sensor w/MAX31865 | ||
+ | Designed specifically to work with the Adafruit RTD Sensor | ||
+ | ----> https:// | ||
+ | This sensor uses SPI to communicate, | ||
+ | interface | ||
+ | Adafruit invests time and resources providing this open source code, | ||
+ | please support Adafruit and open-source hardware by purchasing | ||
+ | products from Adafruit! | ||
+ | Written by Limor Fried/ | ||
+ | BSD license, all text above must be included in any redistribution | ||
+ | | ||
+ | |||
+ | #include < | ||
+ | |||
+ | // Use software SPI: CS, DI, DO, CLK | ||
+ | Adafruit_MAX31865 max = Adafruit_MAX31865(10, | ||
+ | // use hardware SPI, just pass in the CS pin | ||
+ | // | ||
+ | |||
+ | // The value of the Rref resistor. Use 430.0 for PT100 and 4300.0 for PT1000 | ||
+ | #define RREF 390.0 | ||
+ | //OCROBOT ALPHA PT100需要改成390的电阻 | ||
+ | // The ' | ||
+ | // 100.0 for PT100, 1000.0 for PT1000 | ||
+ | #define RNOMINAL | ||
+ | |||
+ | void setup() { | ||
+ | Serial.begin(115200); | ||
+ | Serial.println(" | ||
+ | |||
+ | max.begin(MAX31865_3WIRE); | ||
+ | } | ||
+ | |||
+ | |||
+ | void loop() { | ||
+ | uint16_t rtd = max.readRTD(); | ||
+ | |||
+ | Serial.print(" | ||
+ | float ratio = rtd; | ||
+ | ratio /= 32768; | ||
+ | Serial.print(" | ||
+ | Serial.print(" | ||
+ | Serial.print(" | ||
+ | |||
+ | // Check and print any faults | ||
+ | uint8_t fault = max.readFault(); | ||
+ | if (fault) { | ||
+ | Serial.print(" | ||
+ | if (fault & MAX31865_FAULT_HIGHTHRESH) { | ||
+ | Serial.println(" | ||
+ | } | ||
+ | if (fault & MAX31865_FAULT_LOWTHRESH) { | ||
+ | Serial.println(" | ||
+ | } | ||
+ | if (fault & MAX31865_FAULT_REFINLOW) { | ||
+ | Serial.println(" | ||
+ | } | ||
+ | if (fault & MAX31865_FAULT_REFINHIGH) { | ||
+ | Serial.println(" | ||
+ | } | ||
+ | if (fault & MAX31865_FAULT_RTDINLOW) { | ||
+ | Serial.println(" | ||
+ | } | ||
+ | if (fault & MAX31865_FAULT_OVUV) { | ||
+ | Serial.println(" | ||
+ | } | ||
+ | max.clearFault(); | ||
+ | } | ||
+ | Serial.println(); | ||
+ | delay(1000); | ||
+ | } | ||
+ | </ | ||
+ | ===== 下载 ===== | ||
+ | **数据手册:** | ||
+ | |||
+ | **原理图:**{{ : | ||
+ | |||
+ | **库**{{ : |
ocrobot/alpha/pt100/main.txt · 最后更改: 2023/06/07 04:23 由 127.0.0.1