描述
<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>
<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;">* 1、项目功能介绍</h3>
<hr class="horizontal-splitline normal-bold-2">
<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.采用一个四位0.56寸共阴极数码管用来显示时间。<br>2.通过DHT11温湿度传感器进行环境温度采集。</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;">3.采用四个按键进行时钟设置按键。</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;">4.引出一路复位按键、串口电路、SWD下载电路方便下载调试。</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;">5.瑞萨芯片集成了触摸引脚,引出一路触摸引脚出来用来作为触摸按钮使用。</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;">6.通过无源蜂鸣器作为闹钟提示、计数器时间达到等提示。</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>
<hr class="horizontal-splitline normal-bold-2">
<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 style="margin-left:auto;margin-right:auto;" src="//image.lceda.cn/pullimage/dDkX3QdEYCyXE04pzIWDzsBqHuseAY4erVxK2Mby.png" alt="dDkX3QdEYCyXE04pzIWDzsBqHuseAY4erVxK2Mby.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;">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;">电源电路由TYPE-C接口以及电源指示灯组成,R1是电源指示灯的限流电阻,LED2为电源指示灯,接入电源时LED2点亮进行提示。</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:center;"><img src="//image.lceda.cn/pullimage/UchVoVJvB3pmVIrmgSGWPXiSLtf5qafPgTl13wxN.png" alt="UchVoVJvB3pmVIrmgSGWPXiSLtf5qafPgTl13wxN.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;">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;">SWD和串口引脚分别通过2.54*4P接口引出,用于SWD模式下载和串口下载与调试。</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:center;"><img src="//image.lceda.cn/pullimage/cqNXnT2WMUhvtD1CkIoaSCTNWTDE8zlFPmASvU1B.png" alt="cqNXnT2WMUhvtD1CkIoaSCTNWTDE8zlFPmASvU1B.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;">3.启动模式选择电路</p>
<p> 当BOOT1按键没有按下时,BOOT引脚为高电平,单片机进入单芯片工作模式,也就是正常工作模式,当按下按键时,BOOT引脚低电平,单片机进入下载模式,所以我们可以通过这个按键控制单片机进行程序下载或者正常运行,H1是为方便操作。</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:center;"><img src="//image.lceda.cn/pullimage/PfvrOvF9Vlydl7XYYmB6upyQZejgHMM0VBqfNaaV.png" alt="PfvrOvF9Vlydl7XYYmB6upyQZejgHMM0VBqfNaaV.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;">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;">复位按键,当按键RES1按下时,RST引脚被拉低进入复位状态,当松开RST按键,RST引脚恢复高电平,系统重新进行工作状态,实现复位功能。</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:center;"><img src="//image.lceda.cn/pullimage/Z6PfFOe16Oi73hWsrFGll4OksAgqR3oAweDr1idp.png" alt="Z6PfFOe16Oi73hWsrFGll4OksAgqR3oAweDr1idp.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;">5.主控电路</p>
<p>使用R7FA2E1A72DFL主控芯片,工作电压在1.6V到5.5V之间,最大时钟频率为48Mhz,最大支持128-KB的FLASH,16-KB的SRAM,12位的AD转换控制器。芯片内部集成有晶振,可以无需外部晶振,同时集成触摸功能,无需触摸芯片即可实现触摸功能。在电源输入部分加入100nf电容进行电源滤波,VCL引脚用于稳定内部电源的平滑电容,需要将该引脚连接应该4.7uf的电容到VSS引脚。</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:center;"><img src="//image.lceda.cn/pullimage/z0jdBsFC24zyiUP314UeQ6qG05cNRobC8jnTcRak.png" alt="z0jdBsFC24zyiUP314UeQ6qG05cNRobC8jnTcRak.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;">6.锂电池充放电电路</p>
<p>首先是电源切换电路,通过一个P沟道的mos、一个下拉电阻以及一个二极管组成电源切换电路,当TYPE-C接口接入时,5V过来,MOS管G极电压为5V,经过一个1N5819肖特基二极管,此时VCC电压是4.4V,也就是S极4.4V,不满足导通条件,电池电源过不来。当TYPE-C接口断开,G极被下来到低,S极由于体二极管的存在,会有将近3.5V左右的电压,满足条件,此时MOS管导通,由电池来给后续电路进行供电,由于1N5819肖特基二极管的存在,电流不会反向倒灌回去。</p>
<p>通过一个TP5056锂电池充电芯片给电池进行充电,当TYPE-C接口接入时,同时会给锂电池充电,确保电量充足。LED4为充电状态指示灯,充电时会点亮,R12是充电电流反馈电阻,通过改变R12的阻值,可以改变整体的充电电流。LED3是充电完成指示灯,充电过程为熄灭状态,充电完成时点亮。</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:center;"><img src="//image.lceda.cn/pullimage/hUJVDFWgXQJSJfwjWc5iAEG0SamXHrQR3b6uclIk.png" alt="hUJVDFWgXQJSJfwjWc5iAEG0SamXHrQR3b6uclIk.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;"> 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" 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" style="line-height:1.8;text-align:center;"><img src="//image.lceda.cn/pullimage/M2rOGo8vBW4hN70hIUHOHxp8VMwWiR596r89b63K.png" alt="M2rOGo8vBW4hN70hIUHOHxp8VMwWiR596r89b63K.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;"> 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;">通过弹簧来触摸实现R7FA2E1A72DFL主控芯片自带的触摸功能,在触摸线上加入560欧的阻尼电容以及适当的电容来稳定触摸信号,提高足够灵敏和准确性。</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:center;"><img src="//image.lceda.cn/pullimage/KkpgEE8HlE4juATWFVgxOEGYNigCSeL646rkLBSw.png" alt="KkpgEE8HlE4juATWFVgxOEGYNigCSeL646rkLBSw.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;">9. 温湿度检测电路</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;">温湿度检测电路采用DHT11温湿度传感器模块来检测环境中的温湿度,DHT11是单总线通信方式,需要在总线外接一个上拉电阻,当总线闲置时,其状态为高电平。</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:center;"><img src="//image.lceda.cn/pullimage/5SNLeNGgpik1ifsAPKFu4yxh0rGzeGg7VKOwEWET.png" alt="5SNLeNGgpik1ifsAPKFu4yxh0rGzeGg7VKOwEWET.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;">10.无源蜂鸣器驱动电路<br> 本项目设计了无源蜂鸣器电路,用于闹钟提醒和定时器定时提醒的功能,其电路是通过NPN三极管控制无源蜂鸣器的负极,R5为限流电阻,R6的作用是在芯片刚上电或断电的时候提供一个可靠的电位,防止干扰,这里的电磁无源蜂鸣器是感性负载,加入D1二极管作为续流二极管防止烧坏。</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:center;"><img src="//image.lceda.cn/pullimage/oKNPVsQukdkucrRSjooob2d85YiFQwdOE87onxsv.png" alt="oKNPVsQukdkucrRSjooob2d85YiFQwdOE87onxsv.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;">11.四位数码管驱动电路<br> 本项目采用四位0.56寸共阴极数码管用于显示时间、温湿度等信息。</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:center;"><img src="//image.lceda.cn/pullimage/1V8pjtjOqrPw54tlU0bNFy4YHKhlpvAAaDDugjkX.png" alt="1V8pjtjOqrPw54tlU0bNFy4YHKhlpvAAaDDugjkX.png"></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>
<hr class="horizontal-splitline normal-bold-2">
<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>
<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>
<hr class="horizontal-splitline normal-bold-2">
<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:center;"><img src="//image.lceda.cn/pullimage/jHszzH0Gvp5ujZHSSquL7DYPSwdoMePvpfthDPA7.jpeg" alt="" width="272" height="204"><img src="//image.lceda.cn/pullimage/pRK4LYiF5DByvqIcgVP56KTZgk4WK0rEoox3tGfG.jpeg" alt="pRK4LYiF5DByvqIcgVP56KTZgk4WK0rEoox3tGfG.jpeg" width="272" height="204"></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:center;"><img src="//image.lceda.cn/pullimage/q5wdx6eyhXacbJ6asxzyfypSt47UdKoVfyOtM6Fr.jpeg" alt="" width="317" height="178"></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;">*5、大赛LOGO验证</h3>
<hr class="horizontal-splitline normal-bold-2">
<p style="line-height:1.8;text-align:center;"><img src="//image.lceda.cn/pullimage/pRK4LYiF5DByvqIcgVP56KTZgk4WK0rEoox3tGfG.jpeg" alt="pRK4LYiF5DByvqIcgVP56KTZgk4WK0rEoox3tGfG.jpeg" width="272" height="204"></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、大赛LOGO验证</h3>
<hr class="horizontal-splitline normal-bold-2">
<p style="line-height:1.8;text-align:center;"><img src="//image.lceda.cn/pullimage/pRK4LYiF5DByvqIcgVP56KTZgk4WK0rEoox3tGfG.jpeg" alt="pRK4LYiF5DByvqIcgVP56KTZgk4WK0rEoox3tGfG.jpeg" width="272" height="204"></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、作品演示</h3>
</div>
评论(0)