版本协议

Public Domain

专业版
#第八届立创电赛#电子时钟

创建时间:1年前

841 1

描述

<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;">* 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;"><span style="color:#95a5a6;font-size:14px;">制作一个外观完整的DIY电子时钟。功能包括显示当前时间、修改时间、闹钟提醒、显示当前温度湿度等。</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/pv8blcNU5O1Fog8rRHGn92GWu4BR9EUZxhSxDpVa.jpeg" alt="" width="1000" height="750"></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> <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;"><span style="color:#95a5a6;font-size:14px;">首次公开、暑期训练营项目、无获奖无答辩</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> <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 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;font-size:14px;">完全开源</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> <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;"><span style="color:#95a5a6;">根据训练营视频教程在立创EDA专业版中设计原理图、PCB及外壳和面板。</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:#95a5a6;"><img src="//image.lceda.cn/pullimage/LStNEx4RKdsTRLTb65cEjzN5rKBdtZWUbnBnq1bU.png" alt="LStNEx4RKdsTRLTb65cEjzN5rKBdtZWUbnBnq1bU.png"></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:#95a5a6;">电源电路:电源采用typec供电,设置一个电源指示灯。</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:#95a5a6;"><img src="//image.lceda.cn/pullimage/mxLSfSIHXtPSFuJ3ycriCVrPNsVPHy2zjouCwYMG.png" alt="mxLSfSIHXtPSFuJ3ycriCVrPNsVPHy2zjouCwYMG.png"></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:#95a5a6;">电池充电及<span style="color:#95a5a6;">外部</span>电源切换电路。包含2个充电提示灯。本来设计了18650的电池盒,但是装上电池后超过外壳深度了,所以实际还没有用电池供电。</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:#95a5a6;"><img src="//image.lceda.cn/pullimage/LJyRx0zbHcMlpF9KhFTGt6WaX73LRB45OdrUm8Ru.png" alt="LJyRx0zbHcMlpF9KhFTGt6WaX73LRB45OdrUm8Ru.png"></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:#95a5a6;">程序下载电路:由于手上没有调试器,只有盲写程序build hex文件后,通过串口烧录。</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:#95a5a6;"><img src="//image.lceda.cn/pullimage/Xaw1udEkkdq5EDWRFhYF6e3WMITAIl9vlV1JTS70.png" alt="Xaw1udEkkdq5EDWRFhYF6e3WMITAIl9vlV1JTS70.png"><img src="//image.lceda.cn/pullimage/NjcNfUypOU1bYV4gcLQB7C5eeMdouvz36RX7XHAT.png" alt="NjcNfUypOU1bYV4gcLQB7C5eeMdouvz36RX7XHAT.png"></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:#95a5a6;">程序烧录电路,为了操作简便,实际把BOOT焊短接了(可以优化成跳线),上电时默认会进入单芯片模式,复位后会自动进入烧录模式。</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/h1Ih4VADBa16lDTWyAmj7v7iJr9gwFuRMsDIdi5R.png" alt="h1Ih4VADBa16lDTWyAmj7v7iJr9gwFuRMsDIdi5R.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;">采用无源蜂鸣器,BEEP驱动信号是P302脚,对应芯片的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;"><img src="//image.lceda.cn/pullimage/TVbRA42FE8KdZQdHm7wGTe7UGDQguoRvKWgj8Frd.png" alt="TVbRA42FE8KdZQdHm7wGTe7UGDQguoRvKWgj8Frd.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" 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;">PCB渲染图</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/slshoYeKK3NSMMu2pbd2jsgz1TdJ3LQVwXk4i4I0.png" alt="" width="800" height="422"></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/o9zas57qDwniAVIdlgY8LeyL8UcpBjBH2utSlEZH.png" alt="" width="800" height="422"></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/W1JrzbdGmI09J0zmKuAONtbYRwyTrySsqS7LmWtI.jpeg" alt="" width="1000" height="750"></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/6wUq7tdJQmckGvqgKSzY7rNcR2rnd95WFhcCi4W7.jpeg" alt="" width="1000" height="750"></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> <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;">根据训练营肖工教程,一步一步完成。</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;">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;"><img src="//image.lceda.cn/pullimage/9JQ25xG0QKAbv2X92ZhrXuZcBvnITtWc8iKUFkzE.png" alt="9JQ25xG0QKAbv2X92ZhrXuZcBvnITtWc8iKUFkzE.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;">设置引脚功能。</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/6XPyA9BR0cWQlHRov2t3KLBPSXWhzMvoGS5ATwGR.png" alt="6XPyA9BR0cWQlHRov2t3KLBPSXWhzMvoGS5ATwGR.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;">配置PWM</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/DG3JA6lOgrIPDH5frjbIv3iCM5rty1MZWS0KxFHO.png" alt="DG3JA6lOgrIPDH5frjbIv3iCM5rty1MZWS0KxFHO.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 pap-left-indent-1.6em" style="line-height:1.8;">主程序开始时,启动GPT timer7,我这里时采用了启用和禁用输出PWM来实现蜂鸣器的响和停。对应函数未<span style="color:#000000;background-color:#e8f2fe;font-family:Consolas;white-space:pre;">R_GPT_OutputEnable和</span><span style="color:#0066cc;background-color:#e8f2fe;font-family:Consolas;white-space:pre;">R_GPT_OutputDisable</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/XDeaXvBubXP7RaazgNHOb8u3AbwAx50UqfoC0z2H.png" alt="XDeaXvBubXP7RaazgNHOb8u3AbwAx50UqfoC0z2H.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 pap-left-indent-1.6em" style="line-height:1.8;">同样,在buzzer函数中的代码如下,闹钟响时,buzzer_num设置成100,就可以实现连续Beep几声。</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/euJsX3WovdwCrzuLIukiW8CxUimGbHGkTNyaRmeS.png" alt="euJsX3WovdwCrzuLIukiW8CxUimGbHGkTNyaRmeS.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 pap-left-indent-1.6em" style="line-height:1.8;">时间设置按钮我时SW3,短Beep一声即可</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/PldulxObaDPjU3RbtB4j9B9wFTGWsHC7J5S04udK.png" alt="PldulxObaDPjU3RbtB4j9B9wFTGWsHC7J5S04udK.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 pap-left-indent-1.6em" style="line-height:1.8;">显示内容切换时,也短Beep一声</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/SkA2aHf1NFnlZbdhUNKciEx5AKeoUtbimRjyfF1K.png" alt="SkA2aHf1NFnlZbdhUNKciEx5AKeoUtbimRjyfF1K.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 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> <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;"><span style="color:#95a5a6;font-size:14px;">请参考附件</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> <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> <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 src="//image.lceda.cn/pullimage/lEUa3h7PFoQOYJQ4C6ljdffBPqBiXVos4HAtoJCO.png" alt="" width="1000" height="587"></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> <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;">详见附件</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

暂无

附件

附件名 下载
BOM_Board1_SCH_电子时钟_2023-08-02.xlsx
DigitalClock.zip
电子时钟演示视频~1.mp4

成员

评论(0)

  • 表情
    emoji
    小嘉工作篇
    小嘉日常篇
  • 图片
成功
工程所有者当前已关闭评论
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