热敏电阻

来自Labplus盛思维基百科
Labplus课程组讨论 | 贡献2018年4月20日 (五) 11:25的版本 版本历史记录
跳转至: 导航搜索
黑色传感器最终版12.20-30.png

概述

热敏电阻随温度升高而增大,可用于测量环境温度变化。

技术参数

  • 工作电压:VCC 3.3-5V
  • 温度范围-10~100℃
  • 模块尺寸:24x46x7.5mm

引脚定义

VCC 电源
NC 空脚
AO 输出温度模拟量
GND

使用教程

Arduino示例

Python示例


热敏电阻 连接图.png
连接示意图
热敏电阻 串口打印.png
USB串口打印输出热敏电阻数据



from microbit import *
import math

def getNTC(pin):
  return 1/(math.log(1024/pin.read_analog() - 1)/3955 + 1/298) - 273      #将采样的温度模拟量转化为摄氏度
  
while True:
    print(getNTC(pin0))
    sleep(1000)


图形化示例

连接示意图同上

热敏电阻 图形化.png

版本历史记录


Version Date Note [+]新增[-]删除[^]修复
V2.0

</br>