专业版
#第八届立创电赛#基于GD32智能家居系统

创建时间:1年前

2161 7

描述

<div class="document"> <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> <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;">* 1、项目功能介绍</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;"> </p> <p style="padding-left:40px;"><span style="font-family:'宋体';">   随着人工智能逐渐普及,人们对智能家居的需求越来越大,智能家居越来越多出现在人们的生活当中,不仅给人们带来便捷和舒适的体验,帮人们提供专属的服务,由于手动窗帘需要手动进行操作,而且有一定的不便性,由于窗帘在比较靠上,所以添加</span><span style="font-family:'宋体';">有害气体传感器来避免危险的滞后,保障人员的安全性,因此设计出</span> <span style="font-family:'宋体';">基于</span>GD32智能家居系统,将数据定时上传至阿里云物联网平台,将数据进行云存储。本系统提供多种不同的交互方式,便于用户选择适合的控制方式。 </p> <p style="padding-left:80px;">具体功能如下:</p> <p style="padding-left:80px;">(1)手动模式:用户可根据语音或者红外遥控的方式对电机进行控制,也可以用语音询问语音助手当前的室内温湿度、室内光照、室外天气的状态。</p> <p style="padding-left:80px;">(2)自动模式:系统通过对光照和室外天气的采集进行数据处理,自动对窗帘进行打开和关闭的操作,无需用户的操作,其中光照的优先级最高,当光照高于设定值或者低于设定值时不再执行雨滴传感器的操作。</p> <p style="padding-left:80px;">(3)危险预警:危险预警功能不在任何模式之中,当检测到有害气体时,蜂鸣器就会鸣叫,自动模式和遥控没有权限关闭蜂鸣器,当检测到用户语音指令后才能关闭蜂鸣器。</p> <p style="padding-left:80px;">(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" style="line-height:1.8;"> </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;">*2、项目属性</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;padding-left:40px;">项目首次公开;项目为原创;项目暂时为在其他比赛中获奖;项目未在学校参加过答辩。</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> <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;">* 3、开源协议</h3> <p style="padding-left:40px;">GPL 3.0</p> <p 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;"><strong><span style="color:#0093e6;">请在竞赛阶段填写 ↓</span></strong></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> <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;">*4、硬件部分</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:#95a5a6;">    <span style="color:#000000;">绘制部分采用立创EDA专业版进行绘制:</span></span></p> <h6 style="padding-left:40px;"><strong><span style="font-family:'宋体';">(</span><span style="font-family:'宋体';">1)温湿度传感器</span></strong></h6> <pre><span style="background-color:#ecf0f1;"><code></code></span></pre> <p style="padding-left:80px;">     DHT11<span style="font-family:'宋体';">模块用于检测当前的温度、湿度。</span><span style="font-family:'Courier New';">DHT11</span><span style="font-family:'宋体';">采用单总线协议,可将任意的</span><span style="font-family:'Courier New';">IO</span><span style="font-family:'宋体';">口选作</span><span style="font-family:'Courier New';">DHT11</span><span style="font-family:'宋体';">数据端口,但是注意的是</span><span style="font-family:'Courier New';">DHT11</span><span style="font-family:'宋体';">的数据端口要接一个上拉电阻阻值可选</span><span style="font-family:'Courier New';">(1k~10k)</span><span style="font-family:'宋体';">内即可或者让</span><span style="font-family:'Courier New';">IO</span><span style="font-family:'宋体';">口上拉也可以(</span><span style="font-family:'Courier New';">GD32F1</span><span style="font-family:'宋体';">系列的没有上拉这和功能)。本工程</span><span style="font-family:'Courier New';">GD32</span><span style="font-family:'宋体';">通过</span><br>PD2<span style="font-family:'宋体';">与</span><span style="font-family:'Courier New';">DHT11</span><span style="font-family:'宋体';">相连。</span></p> <p style="padding-left:80px;">    <span style="font-family:'宋体';">端口连接如下:</span></p> <p style="padding-left:80px;">        VDD  --> 3.3V/5V</p> <p style="padding-left:80px;">        DATA --> PD2</p> <p style="padding-left:80px;">        NC   --> <span style="font-family:'宋体';">悬空</span></p> <p style="padding-left:80px;">        GND  --> GND</p> <p style="padding-left:40px;"><span style="background-color:#ecf0f1;"><code> </code></span></p> <p style="padding-left:120px;"> <img src="https://image.lceda.cn/pullimage/BzxD7P1ivAChH5Kq03Lak1Hh7oZA6uuk5poRH0SF.png" alt="2023-09-28_194653.png"></p> <h6 style="padding-left:40px;"><strong><span style="font-family:'宋体';">(</span><span style="font-family:'宋体';">2)无线模块</span></strong></h6> <p style="padding-left:40px;">    ESP8266<span style="font-family:'宋体';">模块用于将传感器采集的数据进行上传和远程展示和控制。</span><span style="font-family:'Courier New';">ESP8266</span><span style="font-family:'宋体';">通过串口跟</span><span style="font-family:'Courier New';">GD32</span><span style="font-family:'宋体';">通信将</span><span style="font-family:'Courier New';">ESP8266</span><span style="font-family:'宋体';">串口的</span><span style="font-family:'Courier New';">TX</span><span style="font-family:'宋体';">和</span><span style="font-family:'Courier New';">GD32</span><span style="font-family:'宋体';">的</span><span style="font-family:'Courier New';">RX</span><span style="font-family:'宋体';">相连,再将</span><span style="font-family:'Courier New';">ESP8266</span><span style="font-family:'宋体';">串口的</span><span style="font-family:'Courier New';">RX</span><span style="font-family:'宋体';">和</span><span style="font-family:'Courier New';">GD32</span><span style="font-family:'宋体';">的</span><span style="font-family:'Courier New';">TX</span><span style="font-family:'宋体';">相连,两个串口是交叉相连才能通信,其中</span><span style="font-family:'Courier New';">RST</span><span style="font-family:'宋体';">引脚是</span><span style="font-family:'Courier New';">ESP8266</span><span style="font-family:'宋体';">的复位端口,通过给</span><span style="font-family:'Courier New';">RST</span><span style="font-family:'宋体';">引</span><br><span style="font-family:'宋体';">脚持续</span>20us<span style="font-family:'宋体';">的低电平即可实现</span><span style="font-family:'Courier New';">ESP8266</span><span style="font-family:'宋体';">的复位。本工程</span><span style="font-family:'Courier New';">GD32</span><span style="font-family:'宋体';">通过串口</span><span style="font-family:'Courier New';">1</span><span style="font-family:'宋体';">和</span><span style="font-family:'Courier New';">ESP</span><span style="font-family:'宋体';">相连,</span></p> <p style="padding-left:40px;">    32<span style="font-family:'宋体';">相连。</span></p> <p style="padding-left:40px;">        <span style="font-family:'宋体';">端口连接如下:</span></p> <p style="padding-left:40px;">            VDD  --> 3.3V</p> <p style="padding-left:40px;">            RX   --> PB11</p> <p style="padding-left:40px;">            TX   --> PB10</p> <p style="padding-left:40px;">            RST  --> PD5</p> <p style="padding-left:40px;">            GND  --> GND</p> <p style="padding-left:80px;">   <img src="https://image.lceda.cn/pullimage/4ucUuDFQGf32YrV6zXsk5gCh9yyCTW7ia4OE9YD2.png" alt="2023-09-28_200154.png"></p> <pre><code></code></pre> <h6 style="padding-left:40px;"><span style="font-family:'宋体';">(</span><span style="font-family:'宋体';">3)有害气体传感器</span></h6> <p style="padding-left:80px;">      MQ-9B<span style="font-family:'宋体';">毒性传感器感知烟雾和有害气体,避免得知危险信息的滞后性。当与烟雾接触时,如果晶粒间界处的势垒收到烟雾的调至面变化,就会引起表面导电率的变化。利用这一点就可以获得这种烟雾存在的信息。烟雾浓度越大导电率越大,输出电阻越低,则输</span><br><span style="font-family:'宋体';">出的模拟信号就越大</span>,<span style="font-family:'宋体';">由于</span><span style="font-family:'Courier New';">MQ-9B</span><span style="font-family:'宋体';">模块</span><span style="font-family:'Courier New';">D0</span><span style="font-family:'宋体';">为数字量、</span><span style="font-family:'Courier New';">A0</span><span style="font-family:'宋体';">为模拟量,数字量比较简单只要获取</span><span style="font-family:'Courier New';">D0</span><span style="font-family:'宋体';">的高低电平即可得知当前有没有烟雾。本工程</span><span style="font-family:'Courier New';">GD32</span><span style="font-family:'宋体';">通过</span><span style="font-family:'Courier New';">PC1</span><span style="font-family:'宋体';">连接</span><span style="font-family:'Courier New';">A0</span><span style="font-family:'宋体';">、</span><span style="font-family:'Courier New';">PC2</span><span style="font-family:'宋体';">连接</span><span style="font-family:'Courier New';">MQ-2</span><span style="font-family:'宋体';">的</span><span style="font-family:'Courier New';">D0</span><span style="font-family:'宋体';">既可以读取模拟量也可以读取数字量的数据。</span></p> <p style="padding-left:80px;">         <span style="font-family:'宋体';">端口连接如下:</span></p> <p style="padding-left:80px;">            VDD  --> 3.3V</p> <p style="padding-left:80px;">            A0   --> PC1</p> <p style="padding-left:80px;">            D0   --> PC2</p> <p style="padding-left:80px;">            GND  --> GND</p> <pre style="padding-left:40px;"><code></code></pre> <pre style="padding-left:120px;"><code> </code></pre> <pre><code></code></pre> <h6 style="padding-left:40px;"><strong><span style="font-family:'宋体';">(</span><span style="font-family:'宋体';">4)语音模块</span></strong></h6> <p style="padding-left:80px;">       HLK-V20<span style="font-family:'宋体';">语音模块用于提供给用户友好的交互体验,</span><span style="font-family:'Courier New';">HLK-V20</span><span style="font-family:'宋体';">支持</span><span style="font-family:'Courier New';">150</span><span style="font-family:'宋体';">条本地指令离线识别,</span><span style="font-family:'Courier New';">HLK-V20S</span><span style="font-family:'宋体';">支持</span><span style="font-family:'Courier New';">50</span><span style="font-family:'宋体';">条本地指令离线识别</span><span style="font-family:'Courier New';">,</span><span style="font-family:'宋体';">可自由定制唤醒词、命令词与应答播报词,具有丰富的外围接口。</span><span style="font-family:'Courier New';">HLK-V20</span><span style="font-family:'宋体';">语音模块与</span><span style="font-family:'Courier New';">GD32</span><span style="font-family:'宋体';">通过串口相互通信,与无线模块一样,</span><br><span style="font-family:'宋体';">只不过语音模块通过串口</span>2<span style="font-family:'宋体';">与</span><span style="font-family:'Courier New';">GD32</span><span style="font-family:'宋体';">连接通过指定的指令进行通信,其中还需要将语音模块的下载固件的端口</span><span style="font-family:'Courier New';">B7B6</span><span style="font-family:'宋体';">引出来用于固件的下载。本工程</span><span style="font-family:'Courier New';">GD32</span><span style="font-family:'宋体';">通过串口</span><span style="font-family:'Courier New';">2</span><span style="font-family:'宋体';">和</span><span style="font-family:'Courier New';">ESP</span><span style="font-family:'宋体';">相连。</span></p> <p style="padding-left:80px;">HLK-V20<span style="font-family:'宋体';">语音模块固件创建和下载:</span><span style="font-family:'Courier New';">http://voice.hlktech.com/yunSound/public/toWebLogout</span></p> <p style="padding-left:80px;">                             http://www.smartpi.cn/#/</p> <p style="padding-left:80px;">         <span style="font-family:'宋体';">端口连接如下:</span></p> <p style="padding-left:80px;">            VDD  --> 5V</p> <p style="padding-left:80px;">            B3   --> PA2</p> <p style="padding-left:80px;">            B2   --> PA3</p> <p style="padding-left:80px;">            GND  --> GND</p> <pre style="padding-left:40px;"><code></code></pre> <pre><code> </code></pre> <p style="padding-left:120px;"><img src="https://image.lceda.cn/pullimage/eoYp2WoVT3zwVVNk9et1NZ97radyNUZWmnsZ9iMK.png" alt="语音模块"></p> <h6 style="padding-left:40px;">(5)蜂鸣器模块</h6> <p style="padding-left:80px;">    <span style="font-family:'宋体';">本工程采用有源自激型蜂鸣器:直流电源输入经过振荡系统的放大取样电路在谐振装置作用下产生声音信号,外围线路添加多个电阻和一个</span>NPN<span style="font-family:'宋体';">三极管进行电流进行放大。只需要接上任意</span><span style="font-family:'Courier New';">IO</span><span style="font-family:'宋体';">口即可。本工程</span><span style="font-family:'Courier New';">GD32</span><span style="font-family:'宋体';">通过</span><span style="font-family:'Courier New';">PD6</span><span style="font-family:'宋体';">与蜂鸣器相连</span><span style="font-family:'Courier New';">.</span></p> <p style="padding-left:80px;">         <span style="font-family:'宋体';">端口连接如下:</span></p> <p style="padding-left:80px;">            Buzzer  --> PD6</p> <pre style="padding-left:40px;"><code></code></pre> <pre><code> </code></pre> <p style="padding-left:120px;">  <img src="https://image.lceda.cn/pullimage/UNJjm7zx2AsqRsr15eU3J5abIbkbFhBodRNZyAuv.png" alt="蜂鸣器.png"></p> <h6 style="padding-left:40px;">(6)光敏传感器</h6> <p style="padding-left:80px;">        <span style="font-family:'宋体';">光敏电阻工作原理是基于内光电效应。光照愈强,阻值就愈低,随着光照强度的升高,电阻值迅速降低,亮电阻值可小至</span>1KΩ<span style="font-family:'宋体';">以下。光敏电阻对光线十分敏感,其在无光照时,呈高阻状态。光敏电阻的特殊性能,随着科技的发展将得到极其广泛应用。我</span><br><span style="font-family:'宋体';">们通过读取光敏电阻的阻值就可以判断当前的光线强度了。本工程</span>GD32<span style="font-family:'宋体';">通过端口复用</span><span style="font-family:'Courier New';">ADC</span><span style="font-family:'宋体';">功能和光敏电阻相连。</span></p> <p style="padding-left:80px;">         <span style="font-family:'宋体';">端口连接如下:</span></p> <p style="padding-left:80px;">            Light_ADC  --> PF8</p> <pre><code></code></pre> <pre><code> </code></pre> <p style="padding-left:120px;">  <img src="https://image.lceda.cn/pullimage/lYRMhrwxGPdb5rGkAiYwfMgFbnHN4dGjjxAjixqQ.png" alt="光敏电阻.png"></p> <h6 style="padding-left:40px;">(7)雨滴传感器</h6> <p style="padding-left:80px;">       <span style="font-family:'宋体';">雨滴传感器是一种传感装置,主要用于检测是否下雨及雨量的大小,当雨滴传感器检测到雨滴时,其电阻值就会发生变化,我们可通过获取它的电阻值来判断是否有雨。本工程</span>GD32<span style="font-family:'宋体';">通过端口复用</span><span style="font-family:'Courier New';">ADC</span><span style="font-family:'宋体';">功能和雨滴传感器相连</span><span style="font-family:'Courier New';">(</span><span style="font-family:'宋体';">因雨滴传感器一般放置在户外,</span><br><span style="font-family:'宋体';">本工程将以</span>HC-XH<span style="font-family:'宋体';">端子引出,立创商城编号 </span><span style="font-family:'Courier New';">C7429634</span><span style="font-family:'宋体';">)。</span></p> <p style="padding-left:80px;">         <span style="font-family:'宋体';">端口连接如下:</span></p> <p style="padding-left:80px;">            Rain  --> PF6</p> <pre style="padding-left:40px;"><code></code></pre> <pre><code> </code></pre> <p style="padding-left:120px;"><img src="https://image.lceda.cn/pullimage/t6y4qObC5oLSozYKkMqXZsqti6u2XXA2vfX57tHL.png" alt="雨滴.png"></p> <h6 style="padding-left:40px;">(8)0.96OLED</h6> <p style="padding-left:80px;">        oled<span style="font-family:'宋体';">显示屏采用</span><span style="font-family:'Courier New';">IIC</span><span style="font-family:'宋体';">通信协议。</span><span style="font-family:'Courier New';">IIC</span><span style="font-family:'宋体';">通信引脚为有两个,一个时钟引脚</span><span style="font-family:'Courier New';">SCL</span><span style="font-family:'宋体';">是</span><span style="font-family:'Courier New';">OLED</span><span style="font-family:'宋体';">和</span><span style="font-family:'Courier New';">GD32</span><span style="font-family:'宋体';">的同步引脚,一个</span><span style="font-family:'Courier New';">SDA</span><span style="font-family:'宋体';">引脚为</span><span style="font-family:'Courier New';">OLED</span><span style="font-family:'宋体';">和</span><span style="font-family:'Courier New';">GD32</span><span style="font-family:'宋体';">的数据引脚,</span><span style="font-family:'Courier New';">IIC</span><span style="font-family:'宋体';">不但节约引脚其通信速度快,是主流的通信方式。其作用主要显示板载传感器当前的状态和数据,方便调试和供用</span><br><span style="font-family:'宋体';">户查看。本工程</span>GD32<span style="font-family:'宋体';">通过</span><span style="font-family:'Courier New';">PA8</span><span style="font-family:'宋体';">和</span><span style="font-family:'Courier New';">PC9</span><span style="font-family:'宋体';">连接</span><span style="font-family:'Courier New';">OLED</span><span style="font-family:'宋体';">,选这两个引脚主要是</span><span style="font-family:'Courier New';">IIC</span><span style="font-family:'宋体';">既可以通过软件模拟</span><span style="font-family:'Courier New';">IIC</span><span style="font-family:'宋体';">时序也可以通过</span><span style="font-family:'Courier New';">GD32</span><span style="font-family:'宋体';">自带的硬件</span><span style="font-family:'Courier New';">IIC</span><span style="font-family:'宋体';">进行通信,这两个引脚可以使用硬件</span><span style="font-family:'Courier New';">IIC</span><span style="font-family:'宋体';">进行通信。</span></p> <p style="padding-left:80px;">         <span style="font-family:'宋体';">端口连接如下:</span></p> <p style="padding-left:80px;">            VDD  --> 3.3V/5V</p> <p style="padding-left:80px;">            SCL   --> PA8</p> <p style="padding-left:80px;">            SDA   --> PC9</p> <p style="padding-left:80px;">            GND  --> GND</p> <pre style="padding-left:40px;"><code></code></pre> <pre><code> </code></pre> <p style="padding-left:120px;"><img src="https://image.lceda.cn/pullimage/sb2srPcRYXHIIwMTxMKmYfePO5q29jmmD8YJgMjO.png" alt="oled.png"></p> <h6 style="padding-left:40px;">(9)NEC红外接收</h6> <p style="padding-left:80px;">            NEC<span style="font-family:'宋体';">协议采用脉冲间隔的方式编码每一位数据,用不同数据位的时间间隔来表示不同的逻辑位。与众多单总线</span><span style="font-family:'Courier New';">IC</span><span style="font-family:'宋体';">的通信方式很相似。</span></p> <p style="padding-left:80px;">    NEC<span style="font-family:'宋体';">编码的载波频率为</span><span style="font-family:'Courier New';">38KHz</span><span style="font-family:'宋体';">,对应的单脉冲周期约等于</span><span style="font-family:'Courier New';">26.3us</span><span style="font-family:'宋体';">。</span></p> <p style="padding-left:80px;">    <span style="font-family:'宋体';">接收的第一个</span>8<span style="font-family:'宋体';">位为地址码,第二个</span><span style="font-family:'Courier New';">8</span><span style="font-family:'宋体';">位为地址反码,第三个</span><span style="font-family:'Courier New';">8</span><span style="font-family:'宋体';">位为指令码,第四个</span><span style="font-family:'Courier New';">8</span><span style="font-family:'宋体';">位为指令反码。</span></p> <p style="padding-left:80px;">    <span style="font-family:'宋体';">通过接收遥控器发送的红外光的时间来接收的数据,当接受到红外光就会拉低</span>OUT<span style="font-family:'宋体';">引脚,</span><span style="font-family:'Courier New';">GD32</span><span style="font-family:'宋体';">通过中断的方式接收数据即可。</span></p> <p style="padding-left:80px;">    <span style="font-family:'宋体';">本工程</span>GD32<span style="font-family:'宋体';">通过</span><span style="font-family:'Courier New';">PF7</span><span style="font-family:'宋体';">与红外接收的</span><span style="font-family:'Courier New';">OUT</span><span style="font-family:'宋体';">引脚相连。</span></p> <pre style="padding-left:40px;"><code></code></pre> <pre><code> </code></pre> <p style="padding-left:120px;">  <img src="https://image.lceda.cn/pullimage/5sntFtriIWPFW37OWgirfjMsUpLrhBWj069tYBCB.png" alt="红外.png"></p> <h6 style="padding-left:40px;">(10)步进电机驱动</h6> <p style="padding-left:80px;">        L9110S<span style="font-family:'宋体';">是一块直流电机驱动电路,该产品为电池供电的玩具、低压或电池供电的控制应用提供了一种集成直流马达驱动电路内部集成了采用</span><span style="font-family:'Courier New';">MOS</span><span style="font-family:'宋体';">管设计的</span><span style="font-family:'Courier New';">H</span><span style="font-family:'宋体';">桥驱动电路,主要应用于驱动通用直流电机。用于驱动窗帘电机的运转,两个驱动芯片驱动一个电机。</span><br><span style="font-family:'宋体';">本工程</span>GD32<span style="font-family:'宋体';">通过</span><span style="font-family:'Courier New';">PG12</span><span style="font-family:'宋体';">与</span><span style="font-family:'Courier New';">A_FOR</span><span style="font-family:'宋体';">、</span><span style="font-family:'Courier New';">PG10</span><span style="font-family:'宋体';">与</span><span style="font-family:'Courier New';">A_BAK</span><span style="font-family:'宋体';">、</span><span style="font-family:'Courier New';">PB9</span><span style="font-family:'宋体';">与</span><span style="font-family:'Courier New';">B_FOR</span><span style="font-family:'宋体';">、</span><span style="font-family:'Courier New';">PB6</span><span style="font-family:'宋体';">与</span><span style="font-family:'Courier New';">B_BAK</span><span style="font-family:'宋体';">和电机芯片</span></p> <p style="padding-left:80px;"> </p> <p style="padding-left:80px;"><span style="font-family:'宋体';">电机采购链接:</span>https://item.taobao.com/item.htm?spm=a1z09.2.0.0.4be02e8dpoBqfX&id=642594293054&_u=72t4uge55e33</p> <h6 style="padding-left:40px;"><code> </code></h6> <pre><code></code></pre> <p style="padding-left:120px;"><img src="https://image.lceda.cn/pullimage/AJxv2OG6woG5kISjfllXjqAG0I0sK5DyzsnBm78v.png" alt="电机.png">            </p> <h6 style="padding-left:40px;">(11)12V 转 5V</h6> <p style="padding-left:120px;"><span style="font-family:'宋体';">这个电路可将直流</span>12V<span style="font-family:'宋体';">转换成</span><span style="font-family:'Courier New';">5V</span><span style="font-family:'宋体';">直流电,可直接给开发板供电,降压芯片采用</span><span style="font-family:'Courier New';">LDO</span><span style="font-family:'宋体';">类型降压芯片,并添加二极管防止反向电压,还有一个开关用于控制通断。</span><span style="color:#000000;background-color:#ffffff;"><code> </code>                </span><img src="https://image.lceda.cn/pullimage/nmeEskjkD6c2R6Y5qMibAFAMeFfh9KaGqWU1PMzI.png" alt="16v转5v.png"></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 pap-left-indent-1.6em" style="line-height:1.8;"> </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;">*5、软件部分</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:#95a5a6;">   <span style="font-size:16px;"> <span style="color:#000000;">本项目采用Keil5进行软件编程,一下展示程序流程图和整体结构:</span></span></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;padding-left:80px;"><span style="color:#95a5a6;"><span style="color:#000000;">    (1)<span style="font-size:14px;">整体结构:主控通过串口给ESP8266模块发送AT指令连接上阿里云物联网平台,定时将数据上传到阿里云物联网平台。主控通过不定时获取语音模块数据和红外模块数据对以下外设进行控制,定时对传感器进行数据读取和刷新,其中定时采用定时器进行时间计数,时间要求严格的在定时器中刷新,对于时间不严格的采用标志位进行刷新。</span></span></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;">                  <img src="//image.lceda.cn/pullimage/l8RjgYtSQKC56LQ5aLWDCJV8NysBAdbh8vIIzppo.png" alt="l8RjgYtSQKC56LQ5aLWDCJV8NysBAdbh8vIIzppo.png" width="764" height="605"></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;padding-left:40px;"><span style="color:#95a5a6;"><span style="color:#000000;">         (2)流程图介绍:系统首先进行所有的外设进行初始化,随后等待ESP8266连接WIFI。首先主控会进行模式判断,在手动控制下会根据读取语音模块和红外模块的数据进行对外设进行控制。自动模式下根据光照和雨滴传感器进行数据的判断对外设进行控制。危险预警功能和手动模式和自动模式相互并不联系。所有外设的数据都会定时的刷新。</span></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;padding-left:80px;"><span style="color:#95a5a6;"><span style="color:#000000;">                       <img src="//image.lceda.cn/pullimage/bW3LngIWTkTYHV6uZ13xCq4x1jJpvDUuYidzKQQK.png" alt="" width="689" height="510"></span></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> <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;">*6、BOM清单</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;padding-left:40px;">对应器件清单如下:</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;padding-left:80px;">电阻均采用0805封装,100UF电容采用1206封装。</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;padding-left:40px;"><img src="//image.lceda.cn/pullimage/hZLvY0pETB3zYt3dOuWBaijaepOfI6J2t9FMIy1t.png" alt="hZLvY0pETB3zYt3dOuWBaijaepOfI6J2t9FMIy1t.png" width="1200" height="502"></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> <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;">*7、大赛LOGO验证</h3> <p 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;padding-left:40px;">(1)正面图:</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;padding-left:80px;"><img src="//image.lceda.cn/pullimage/whhINCNn5x3hCGH934viME7xeAQOvDbo9rCQ8WPU.jpeg" alt="" width="573" height="764"></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;padding-left:40px;">(2)反面图</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;padding-left:80px;"><img src="//image.lceda.cn/pullimage/xSDT1N5hE9hgZETzfk02FyyxB4jyiJ0QOQdvMQtz.jpeg" alt="" width="577" height="772"></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> <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;">* 8、演示您的项目并录制成视频上传</h3> <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" style="line-height:1.8;"> </p> </div>

文档

BOM

暂无

附件

附件名 下载
立创电赛演示视频.mp4
BOM_Board1_1_PCB1_1_2023-10-09_20231009204509.pdf
代码.rar

评论(4)

  • 表情
    emoji
    小嘉工作篇
    小嘉日常篇
  • 图片
成功
工程所有者当前已关闭评论
verysunshine 回复
<p>冲冲冲,拿奖拿奖拿奖,必须支持一下!希望作者做出更多有意思的项目!!!<br/>冲冲冲,拿奖拿奖拿奖,必须支持一下!希望作者做出更多有意思的项目!!!</p>
<p>谢谢</p>
立创电赛 回复
<p>点赞+收藏+评论赢500元京东E卡:<a href="https://diy.szlcsc.com/posts/9d4438cf6d3848d3a53c50e029514a91" target="_blank">https://diy.szlcsc.com/posts/9d4438cf6d3848d3a53c50e029514a91</a></p>
nnniko 回复
<p>你好,窗帘电机是用的什么电机呢,能不能给一个链接</p>
goToTop
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow