“热敏电阻”的版本间的差异

来自Labplus盛思维基百科
跳转至: 导航搜索
使用教程
第56行: 第56行:
 
连接示意图同上
 
连接示意图同上
 
[[File:热敏电阻_图形化.png|600px|left]]
 
[[File:热敏电阻_图形化.png|600px|left]]
 +
 +
== 版本历史记录 ==
 +
 +
{|  border="1" cellspacing="0" align="left" cellpadding="0" width="60%" style="text-align:center;"
 +
|- style="text-align:center;background-color:#6fa8dc;color:#fffff;"
 +
!width="10%"|Version !!width="15%"| Date !! Note  <small>[+]新增[-]删除[^]修复</small>
 +
|-
 +
| V2.0 || || style="text-align:left"|
 +
|}

2018年3月28日 (三) 11:55的版本

黑色传感器最终版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
display.off()

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


图形化示例

连接示意图同上

热敏电阻 图形化.png

版本历史记录

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