匿名
未登录
登录
丢石头百科
搜索
查看“Moisture Sensor”的源代码
来自丢石头百科
名字空间
页面
讨论
更多
更多
页面选项
查看
查看源代码
历史
←
Moisture Sensor
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
<div class="tabber"> {{外围模块|colorscheme=blue |name = Moisture Sensor |img=[[File:Moisture-Sensor-intro.jpg|360px |alt=Moisture-Sensor|link=http://{{SERVERNAME}}/shop/Moisture-Sensor.htm | Moisture Sensor]] |category1=温度/湿度 |brand=Waveshare |feature = 土壤湿度传感器 |interface1 = AD }} <div class="tabbertab" title="说明"> ==产品概述== 本产品采用叉形设计,方便插入土壤。模块插入土壤后,输出电压随着土壤湿度升高而增大。 ==产品参数== *检测深度:38mm *工作电压:2.0V ~ 5.0V *产品尺寸:20.0mm * 51.0mm *固定孔尺寸:2.0mm ==主要用途== *自动浇水系统、花盆土壤湿度检测和自动灌溉系统等 ==接口说明:(以接入MCU为例)== {|border=2; style="width:480px;" |-style="background:#000088; color:white;" align="center" |引脚号||Moisture Sensor||MCU |-align="center" |1||VCC||接2.0V ~ 5.0V |-align="center" |2||GND||接GND |-align="center" |3||AOUT||接MCU.IO (模拟量输出) |} ==工作原理== 该模块主要是利用三极管的电流放大原理。当土壤中的水分使三极管的基极与电源正极导通的时候,在三极管的基极和发射极之间就会产生一定大小的电流,此时在三极管的集电极和发射极之间就会产生一个一定放大倍数的电流,该电流经过发射极的电阻产生电压供AD转换器采集。 ==操作与现象== 下面,以接入我们的开发板为例。<br /> ①将配套程序下载到相应的开发板中。<br /> ②将串口线和模块接入开发板,给开发板上电,打开串口调试软件。<br /> *模块与开发板连接如下表所示:<br /> {|border=2; style="width:480px;" |-style="background:#8888ff; color:white;" align="center" |colspan=2|模块接入STM32开发板 |-style="background:#eeeeff; color:blown;" align="center" |端口||STM32单片机引脚 |-align="center" |AOUT||GPIOA.6 |-align="center" |GND||GND |-align="center" |VCC||3.3V |} --------------------- {|border=2; style="width:480px;" |-style="background:#eeff88; color:orange;" align="center" |colspan=2|模块接入Arduino |-style="background:#eeffee; color:blown;" align="center" |端口||Arduino引脚 |-align="center" |AOUT||A0 |-align="center" |GND||GND |-align="center" |VCC||5V |}<br /> *串口配置如下表所示: {|border=2; style="width:480px;" |-style="background:pink; color:green;" align="center" |colspan=2|串口配置 |-align="center" style="background:#eeeeee" |Baud rate||115200 |-align="center" style="background:#eeeeee" |Data bits||8 |-align="center" style="background:#eeeeee" |Stop bit||1 |-align="center" style="background:#eeeeee" |Parity bit||None |} <br /> ③把传感器插入土壤中。<br /> ④逐渐往土壤中加水。串口输出数据会发生相应改变:<br /> '''I’m thirsty!''' '''I had enough!''' </div> <div class="tabbertab" title="资料"> ===文档=== *[http://{{SERVERNAME}}/w/upload/b/bd/Moisture-Sensor-UserManual.pdf 用户手册] <br> *[http://{{SERVERNAME}}/w/upload/a/a1/Moisture-Sensor-Schematic.pdf 原理图]<br> ===视频=== *[[Moisture-Sensor-Video|演示视频]][[File:video-logo.png|23px|link=Moisture-Sensor-Video]] ===程序=== *[http://{{SERVERNAME}}/w/upload/5/59/Moisture-Sensor-code.7z 示例程序]<br> ===软件=== [http://{{SERVERNAME}}/w/upload/5/5f/Sscom.7z 串口调试助手] <br /><big>批量下载教程——请戳<big><big><big>☛</big></big></big></big>[[File:download-icon.png|link=批量下载教程]] <!--{{Join_us}}--> </div> <div class="tabbertab" title="FAQ"><br />{{Moisture-Sensor-FAQ}}</div> <div class="tabbertab" title="售后"><br />{{Service11}}</div>
该页面使用的模板:
模板:Category
(
查看源代码
)
模板:FAQ
(
查看源代码
)
模板:Moisture-Sensor-FAQ
(
查看源代码
)
模板:Product
(
查看源代码
)
模板:Service00
(
查看源代码
)
模板:Service11
(
查看源代码
)
模板:Tag
(
查看源代码
)
模板:Tipbox
(
查看源代码
)
返回至
Moisture Sensor
。
导航
导航
首页
最近更改
随机页面
MediaWiki帮助
首页
首页
树莓派
主机
配件包
外壳
键鼠
电源
扩展板
显示屏
墨水屏
摄像模块
通信模块
继电器
电机驱动板
游戏机
产品分类
树莓派
Arduino
micro:bit
STM32
Espressif
WiFi模块
蓝牙模块
无线模块
LoRa模块
4G模块
GSM
GPRS
以太网
导航模块
北斗卫星
GPS
LCD
墨水屏
OLED
摄像头
USB模块
串口模块
RS232
RS485
CAN
传感器
温度模块
湿度模块
气压模块
继电器
电机模块
指纹模块
电平转换
音频模块
编程器
Wiki工具
Wiki工具
特殊页面
页面工具
页面工具
用户页面工具
更多
链入页面
相关更改
页面信息
页面日志