“热敏电阻”的版本间的差异
来自Labplus盛思维基百科
Tangliufeng(讨论 | 贡献) (→使用教程) |
Tangliufeng(讨论 | 贡献) |
||
第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的版本
概述
热敏电阻随温度升高而增大,可用于测量环境温度变化。
技术参数
- 工作电压:VCC 3.3-5V
- 温度范围-10~100℃
- 模块尺寸:24x46x7.5mm
引脚定义
VCC | 电源 |
NC | 空脚 |
AO | 输出温度模拟量 |
GND | 地 |
使用教程
Arduino示例
Python示例
连接示意图
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)
图形化示例
连接示意图同上
版本历史记录
Version | Date | Note [+]新增[-]删除[^]修复 |
---|---|---|
V2.0 |