查看PT100/PT1000 工业级温度传感器的源代码
←
PT100/PT1000 工业级温度传感器
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
== 概述 == <br><br> == ESP8266 ADC == 硬件连接: VCC33 ---> PT1000 <-- (A0) --> 300R 1% ---> GND <source lang=cpp> void setup() { Serial.begin(115200); } void loop() { int vd = analogRead(A0); Serial.print("vd = "); Serial.println(vd); uint32_t rtd = (1024 - vd) * 300 / vd; Serial.print("rtd = "); Serial.println(rtd); delay(1000); } </source> <br><br> == MCP3421 == [[文件:Mcp3421-app.png]] <source lang=cpp> #include <Wire.h> #define MCP3421_ADDRESS 0X68 void setup() { Serial.begin(115200); Wire.begin(); } void loop() { Wire.requestFrom(MCP3421_ADDRESS, 4); if (Wire.available() != 4) { Serial.println("Wire.available failed"); while(1); } int16_t v = (Wire.read() << 8); v |= Wire.read(); // read but ignore status uint8_t s = Wire.read(); //print voltage from channel one in millivolts Serial.print(v);Serial.println(" mv"); delay(1500); } </source> <br><br> == 资源 == * http://martin.engineer/wp/?p=453 * 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/ <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br>
返回到
PT100/PT1000 工业级温度传感器
。
个人工具
18.222.21.160
该IP地址的讨论
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面