描述
<div class="document">
<h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="font-size: 24px;">项目功能介绍</span></h3>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #e03e2d; font-size: 18px;">1.开机通过WIFI自动受时。(已上传视频)</span></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #e03e2d; font-size: 18px;">1.每小时闹钟一次,开启水泵换水并根据温度(是否大于30度)控制打开时间,30s,60s。(闹钟每小时0分开启,已调通就不录制视频了)</span><br><span style="color: #e03e2d; font-size: 18px;">2.检测到猫咪经过,水泵自动开启一段时间。(已上传视频)</span><br><span style="color: #e03e2d; font-size: 18px;">3.自定义炫彩RGB。(已上传视频)</span><br><span style="color: #e03e2d; font-size: 18px;">4.检测水槽是否有水,若缺水蜂鸣器警报并关闭RGB灯光。(已上传视频)</span><br><span style="color: #e03e2d; font-size: 18px;">5.检测电池电压,若电池电量不足时蜂鸣器发出间歇警报并关闭RGB灯光。(效果和缺水类似,但是警报声不同,等电池缺电有点难,所以不录制了)</span><br><span style="color: #e03e2d; font-size: 18px;">6.可通过电池供电,也可以通过TYPE-C供电(同时也能给电池充电)。(已上传图片)</span><br><span style="color: #e03e2d; font-size: 18px;">7.板载串口调试接口,也可以通过SWD调试。(已上传图片)</span><br><span style="color: #e03e2d; font-size: 18px;">8.WiFi控制水泵开启。</span></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #e03e2d; font-size: 18px;">9.可以扩展触摸按键开启水泵。</span></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #2dc26b;"><strong><span style="font-size: 24px;">(已上传4个视频)</span></strong></span></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8; text-align: left;">众所周知猫咪总是不喜欢喝自己碗里的水,就想给自己的猫咪做一个智能饮水机。淘宝上一搜发现智能猫咪饮水机价格普遍溢价太高,就想自己做一个。</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8; text-align: left;"><img src="//image.lceda.cn/pullimage/1KfcYGRwVUa4q7Eaav28kREBN2OytN26suAyPH3Y.png" alt="" width="600" height="442"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8; text-align: left;"> </p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8; text-align: left;">于是便在拼夕夕找了个便宜的饮水机改造,非常便宜十来块拿下,此刻便拥有了水槽和USB水泵。正好借此次机会白嫖元器件,制作一个功能更强的智能饮水机。</p>
<h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/B1PS7r0kQqopaOJcWl88aIHBDyvRs4uSrH8c2zeO.jpeg" alt="" width="300" height="353"></h3>
<p> </p>
<p><span style="font-size: 24px;"><strong>项目结构</strong></span></p>
<p><img src="//image.lceda.cn/pullimage/bF4oH7SCMnZ6vJ41HR46CWBpGPYB4pYDYUXdGv6U.png" alt="" width="600" height="335"></p>
<p> </p>
<h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="font-size: 24px;">实物外观</span><img src="//image.lceda.cn/pullimage/MFPFMvBxtLF52Ap5yboQlV17RnC9A2Gjiq3AW8Go.jpeg" alt="" width="1322" height="1280"></h3>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8; text-align: left;"> 电路板实物图</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8; text-align: left;"> </p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8; text-align: left;"><img src="//image.lceda.cn/pullimage/y4Z3Uy9x1BfP4ycdhX5KljDphZrrQIdGOCAwMWuB.jpeg" alt="" width="300" height="197"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8; text-align: left;"> 温湿度、人体感应、OLED模块</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8; text-align: left;"> </p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8; text-align: left;"><img src="//image.lceda.cn/pullimage/CeYTlPit9uwDN1rWD2alggRe2DhDSrMTaGBq1NGV.jpeg" alt="" width="600" height="656"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8; text-align: left;"> 智能饮水机正面</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8; text-align: left;"> </p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8; text-align: left;"><img src="//image.lceda.cn/pullimage/RBMVMMqN3aeO1YZojs0fy7bbpGEvSKDabqhVoqNc.png" alt="" width="500" height="495"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8; text-align: left;"> 智能饮水机侧面(充电接口)</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8; text-align: left;"> </p>
<h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="font-size: 24px;">硬件电路</span></h3>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">1.MCU核心电路</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/LWCPMwEFjdXmYehxdRnXYmCkbPw9vp54nj8I8HUq.png" alt="" width="500" height="278"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/cTIfPRAMhVpBOLxCdEpZZRQJJ9FjDhnXvTbqOgO0.png" alt="" width="200" height="214"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;">R7FA2E1A72DFL芯片特性:</p>
<ul class="multicolumn">
<li>48MHz Arm<sup>®</sup> Cortex<sup>®</sup>-M23</li>
<li>64kB 的闪存以及 16kB SRAM</li>
<li>4kB 数据闪存,提供与 EEPROM 类似的数据存储功能</li>
<li>1.6V - 5.5V 的宽工作电压范围</li>
<li>增强型电容式触摸感应单元 (CTSU)</li>
<li>12 位 ADC,LPACMP,温度传感器</li>
<li>32 位通用 PWM 定时器,16 位通用 PWM 定时器,低功耗异步通用定时器</li>
<li>实时时钟</li>
<li>SCI(UART、简单 SPI、简单 I<sup>2</sup>C)</li>
<li>独立的 SPI 接口/I<sup>2</sup>C 多主接口</li>
<li>安全功能</li>
<li>加密功能</li>
</ul>
<p> </p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;">2.WIFI电路(可换成蓝牙)</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/sZ2kM7pkaEXZnzAY9KLvfzAarbjMgkB32ytFABlS.png" alt="" width="400" height="213"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;">ESP8266购买时最好买带有AT固件的,没有的话需要自己下载</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/tZuchx85WInOSnPwKebgIkgIJOx5vF4R1nMuarVa.png" alt="" width="200" height="201"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"> </p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;">3.液位检测传感器、人体感应传感器、温湿度传感器、OLED模块</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/VWmqwlzA4iDLWcVLezRns78HMw4sLAz5KJ5ECGsa.png" alt="" width="400" height="142"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><span style="color: #b96ad9;">液位传感器</span></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/2XN55xH44feXYn0gaou6zviB5mAlHrhGeLiURobm.png" alt="" width="494" height="799"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><span style="color: #b96ad9;">人体感应传感器</span></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/FaQUDxB1xglQN5AitxGpBrwaoqNnBO06r0JXU17V.png" alt="" width="431" height="375"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;">响应速度快、静态功耗小、灵敏度高、体积小巧简单安装,已装好透镜和焊接好排针,配上电源,无需调试<br>特点说明:<br>1、本产品输出的高电平时间可调,2.5秒到1小时,出厂时设定的输出时间是2.5秒,如需要更改,可更改一个贴片电阻<br>2、封锁时间,2秒,不可调节<br>3、出厂定义为可重复触发,无法变更<br>4、本模块的供电压是3.3V到15V,极限电压是2.8V到18V5模块输出时序是:上电后输出高电平2秒,然后变成低电平进入待机状态。若更改延时时间,模块上电输出高电平的时间会相应增长,可理解为上电后进入正常工作状态的启动时间会增长6、装上光敏原价后,白天不工作,晚上工作,不装光敏元件,全天工作(默认是没有安装光敏元件的)7、此模块很灵敏,注意安装位置,尽量避开热源辐射源(出风口/阳直)<br>8、本模块灵敏度可调,需更改一个贴片电阻</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><span style="color: #b96ad9;">温湿度传感器(注意引脚顺序)</span></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/lbS41S9JdQyvTLRdNG8Bop8bgeYBWKAmdbZhYUrJ.png" alt="" width="400" height="341"></p>
<p>1、湿度测量范围:0~100%RH</p>
<p>2、湿度测量精度:±3%RH</p>
<p>3、温度测量范围:-40~125℃</p>
<p>4、温度测量精度:±0.3℃ </p>
<p>5、工作电压:2.4~5.5VDC(宽电压)</p>
<p>6、I2C接口输出</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><span style="color: #b96ad9;">0.96寸 OLED模块(注意引脚顺序)</span></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/8tIhI1uRUBo8XGmMHV2fLGFHyAvsQnpnHl8TbNh1.png" alt="" width="366" height="328"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"> 1、高分辨率:128*64<br>2、超广可视角度:大于160°<br>3、超低功耗:正常显示时0.06W<br>4、宽供电范围:直流3.3V-5V<br>5、工业级:工作温度范围-30C~70C<br>6、体积小:27mm*27mm*2mm<br>7、通信方式:IIC<br>8:、亮度、对比度可以通过程序指令控制<br>9:、使用寿命不少于16000小时<br>10、OLED屏幕内部驱动芯片:SSD1306</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"> </p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;">4.水泵电路</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/6F1ocSH3OwjOW3iLrg6ImTg3cswUIIAl61BMiShA.png" alt="" width="400" height="167"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/sxoLZQCoKU50On3u7iTzYW0XSoeMa07jvbQlLhk2.png" alt="" width="400" height="227"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;">P111输出高电平时,水泵开启(LED2亮):</p>
<p style="background-color: #e8f2fe;"><span style="color: #000000;">R_IOPORT_PinWrite(&g_ioport_ctrl, WaterPump, </span><span style="color: #0000c0; font-style: italic;">BSP_IO_LEVEL_HIGH</span><span style="color: #000000;">);</span><span style="color: #3f7f5f;">//开启水泵</span></p>
<p style="background-color: #e8f2fe;"><span style="color: #000000;">R_IOPORT_PinWrite(&g_ioport_ctrl, WaterPump, </span><span style="color: #0000c0; font-style: italic;">BSP_IO_LEVEL_LOW</span><span style="color: #000000;">);</span><span style="color: #3f7f5f;">//关闭水泵</span></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"> </p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;">5.蜂鸣器、RBG电路</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/OZngHKNY3nVDAvzUMkdNNW6NEBBXQeJ31Y34XEBX.png" alt="" width="400" height="176"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/1PiBCExapckipfkYAPaRurMOKjCHeXEq8zcZXRJ5.png" alt="" width="400" height="179"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;">P104输出高电平时,蜂鸣器发声:<code></code></p>
<div style="background-color: #ffffff; padding: 0px 0px 0px 2px;">
<div style="color: #000000; background-color: #ffffff; font-family: Consolas; font-size: 14pt; white-space: nowrap;">
<p style="background-color: #e8f2fe;"><span style="color: #000000;">R_IOPORT_PinWrite(&g_ioport_ctrl, Buzzer, </span><span style="color: #0000c0; font-style: italic;">BSP_IO_LEVEL_HIGH</span><span style="color: #000000;">);</span><span style="color: #3f7f5f;">//开启蜂鸣器</span></p>
<p style="background-color: #e8f2fe;"><span style="color: #000000;">R_IOPORT_PinWrite(&g_ioport_ctrl, Buzzer, </span><span style="color: #0000c0; font-style: italic;">BSP_IO_LEVEL_LOW</span><span style="color: #000000;">);</span><span style="color: #3f7f5f;">//关闭蜂鸣器</span></p>
</div>
</div>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"> </p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"> WS2812b核心显示代码:<code></code></p>
<div style="background-color: #ffffff; padding: 0px 0px 0px 2px;">
<div style="color: #000000; background-color: #ffffff; font-family: Consolas; font-size: 14pt; white-space: nowrap;">
<p style="background-color: #e8f2fe;"><span style="color: #000000;">setPixelColor(i, green, red, blue);</span><span style="color: #3f7f5f; font-size: 14pt;">//第几个WS2812B 颜色值(通过SPI传输)</span></p>
</div>
</div>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/y2954ybKlzg4eRlTmU3qhzrkpFFgwPtmSBSs6miX.png" alt="" width="800" height="541"><img src="//image.lceda.cn/pullimage/4zMmv2YLEGbjv9OOw2MvQwNwEe0cUKsorNYRFMl0.png" alt="" width="800" height="709"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"> </p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;">6.串口调试电路</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/LMpsIfsLif7DTHGGuw2BiFWRq1CLQ09U1u6GFogi.png" alt="" width="300" height="210"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/LXX5knFQ7a974BvkAYw0ENlSUOwqNUiTfDIwCZG5.png" alt="" width="400" height="162"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/Tx7ipVqnhCTMsOgYhMbQbutV5ddJDQoPFMGUMGgN.png" alt="" width="110" height="99"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;">默认直接连接到RA MCU上,接上跳线可以用于烧录和调试ESP8266</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"> </p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/OUOyIt5Lw7nwvpIe4YR74XV0pQ333SDzvNhAkYe1.png" alt="" width="388" height="391">Type-C接入可用于打印调试信息,如上图日期显示</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"> </p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;">7.电池电量检测</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/qVrmgIJdg3b77fSLzv1kMQzVJDdFzGLPLzu6cRDm.png" alt="" width="200" height="224"></p>
<p>18650锂电池的上限和下限电压分别为4.2V和2.75V。</p>
<p>18650锂电池单节标称电压一般为:3.6V 或3.7V。</p>
<p>18650锂电池最小放电终止电压一般为: 2.75V ,低于这个电压容易导致电池容量严重下降乃至报废。大部分锂电池放电不能将空载电压放到3.2V以下的,否则过度放电会损害电池。</p>
<p>程序里我们设置电池电压小于3.6V时发出警报并关闭水泵和RGB。</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"> </p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;">8.电源电路(锂电池充放电保护,升压,LDO)</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/W35M0KmhFfrWokUb4ix8Yz0pbuD3MPE75f8Uq1xR.png" alt="" width="500" height="206"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/CFTE9hHO7t5VoQGKEi7QXNvkSP17dMCQ7VKiBObd.png" alt="" width="500" height="299"></p>
<p><span style="color: #e03e2d; font-size: 18px;">(最好先焊接电源模块调试好5V输出后再焊接其他模块模块)</span></p>
<p>最大充电电流:1000mA<br>充电截止电压:4.2V<br>电池过放保护电压:2.4V</p>
<p>最大输出电流:2A (建议1A内使用)</p>
<p>输出电压:4~12V </p>
<p>type-c电源输入,红灯常亮,说明在充电。充满电后蓝灯亮起。当输入端有电源时,从电源输入端获得电流,如果没有接电源,从电池获得电流,电池电压低于2.4V时,自动关闭输出。<span style="color: #e03e2d;">第一次接入电池时,可能无电压输出,需要在电源输入端上电激活保护电路。当使用手机充电器供电时,必须要能输出1A以上,否则可能会不能正常充电。</span></p>
<p><img src="//image.lceda.cn/pullimage/GRv7WSHyRZEzYkEmTjB1U4mx4v9RrMMcDFlvOrPN.jpeg" alt="" width="200" height="92"></p>
<p><img src="//image.lceda.cn/pullimage/osKdfNAs1IOb6bZFbDFH6nTbBcDdYLFOkyeHlfMz.jpeg" alt="" width="200" height="90"></p>
<p> </p>
<h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="font-size: 24px;">软件代码</span></h3>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #e03e2d;">copy工程的要注意更改WiFi账号和密码</span></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="font-size: 16px;"><code>代码工程详情请看附件</code></span></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/dquk5O4UdvBOuTFHNCeaB097VuLi6UBsQg1ZdBkr.png" alt="" width="339" height="682"></p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">ESP8266初始化及相关代码在:</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">ESP8266.c与ESP8266.h</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">OLED初始化及相关代码在:</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">oled.c、oled.h、oledfont.h</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">SHT30初始化及相关代码在:</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">sht3x.c与sht3x.h</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">WS2812B初始化及相关代码在:</p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">ws2812b.c与ws2812b.h </p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">主程序在hal_entry.c中编写</p>
<div style="background-color: #ffffff; padding: 0px 0px 0px 2px;">
<div style="color: #000000; background-color: #ffffff; font-family: Consolas; font-size: 10pt; white-space: nowrap;"> </div>
</div>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p>
<p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p>
</div>
-
网络自动授时(检测温湿度).mp4
-
模拟猫咪经过.mp4
-
缺水检测(电池检测).mp4
-
炫彩RGB.mp4
评论(22)