版本协议

Public Domain

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

创建时间:1年前

368 1

描述

<p class="document">2023立创暑假训练营《DIY电子时钟》是一款令人振奋的开源电子工程作品。在这个项目中,我踏上了一段充满创意与探索的旅程,致力于制作一款功能完备、外观精美的DIY电子时钟。通过嘉立创暑假训练营工程师们的指导,我学习了电子工程的基础知识与技能,熟悉了绘制原理图和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;"> </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;"><strong>* 1、项目功能介绍</strong></h3> <hr class="horizontal-splitline normal-bold-2"> <p>1、准确时间显示: 搭载高精度时钟芯片,确保时钟的时间显示准确无误。无论是在家中、办公室还是学校,用户都能时刻掌握精准的时间。</p> <p>2、灵活时间修改: 用户可以通过简单的操作,轻松调整时钟的时间设置。这种灵活性确保了时钟的准确性与适应性,让用户不再为时间调整而烦恼。</p> <p>3、智能闹钟提醒: 电子时钟内置了闹钟系统,用户可以自由设置闹钟提醒,轻松应对不同的日程安排,确保不再错过任何重要事件。</p> <p>4、实时温湿度显示: 时钟的显示数码管不仅能展现时间,还能即时显示当前的温度湿度情况。这项功能使得时钟在装饰房间的同时,也能提供实用的环境信息。外观精美,体验完善: 电子时钟的外观设计充满现代感,兼具美观与实用性。简洁明了的界面,易于操作,让用户体验十分友好。</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 style="color:#95a5a6;font-family:'sans-s ormal';background-color:#ffffff;float:none;">首次公开、嘉立创暑期训练营开源项目、无获奖无答辩</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;"> </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>1、本项目作品的使用仅限于非商业用途,用于交流学习。</p> <p>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> <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;">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/RjhOydRiZux64xhrSaegyTxHhvpmkPalNVdIc0Pr.png" alt="" width="1024" height="616"></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/RWyCLY77ZZLLjpnXcfD0jNhVe4kf18X72khMayfc.png" alt="" width="1024" height="290"></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;">采用typec供电电路,增加电源指示灯检查电源连接情况,另外增加一个电池充电电路,方便电子时钟脱机运行。</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;"><img src="//image.lceda.cn/pullimage/FrDCAlUzkcINNfxoMFRv9hPcRNlwnfrsic4lNhq5.png" alt="" width="1024" height="668"></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;">通过阅读瑞萨芯片的用户使用手册,当我们需要用到串口进行烧录程序的时候,需要长按BOOT按键,期间不能松开BOOT按键,快速按下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;">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;"><img src="//image.lceda.cn/pullimage/QUOT9AmMzbOlPyfj0s27FXoTzec6qo6d9SDumFer.png" alt="" width="1024" height="1015"></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;">串口接线,将ch340下载器上的TXD与板子的RXD对接,RXD与板子的TXD对接,再将GND相连,开发板直接使用TYPEC供电,就可以正常烧录程序了。</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 pap-left-indent-1.6em" style="line-height:1.8;"><img src="//image.lceda.cn/pullimage/LtOYnkQ31OSOHt9ewbZ9ov2cQzVuuA06qpXwqnk1.png" alt="" width="1024" height="1200"></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;">在绘制触控电路的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 pap-left-indent-1.6em" style="line-height:1.8;"><img src="//image.lceda.cn/pullimage/hkqgq2mRY7NBWNYbTKTwF3UDaph2Qtb7BPntt6Q2.png" alt="" width="1024" height="1200"></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/BiaemCOZjeyMATdhDTHUc6deLWbFciv3boDNYHo8.jpeg" alt="" width="1024" height="768"></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/ukDMLT8goDQwj36iRKAg6KQbn8q8kx3uhKVmWKYv.jpeg" alt="" width="1024" height="768"></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;">1、根据立创训练营肖工教程(合集1-10)电子时钟制作(瑞萨RA),一步一步完成,编写底层驱动。</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/I3R8jB9yUi4Gy5klGdyAZnl9OuIRaLnAqpqlgpke.png" alt="" width="1024" height="351"></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、电子时钟采用了无源蜂鸣器,编写无源蜂鸣器驱动,仅供参考。</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/HdOPlhEcK5XEGF2xvhriYNAt1n47dfKiqgvYdssz.png" alt="" width="1024" height="460"></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;">然后新建一个stack</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/qfzf305DVKGg6RcRdVFT9YfzYNCH0yrmPS0Aqlca.png" alt="" width="1024" height="381"></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/zwmZtYJjwgeaoVikHeEGRM085PToCgQdk9qX6PLR.png" alt="" width="1024" height="561"></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、在程序初始化打开蜂鸣器测试</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/sh3eF2SBaVIdOknc2JSIRtjkAAAfn01dfejMJxuo.png" alt="" width="1024" height="190"></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;">先定义三个闹钟变量,一个获取当前时间,另外一个显示闹钟界面参数设置,最后一个保存设置的闹钟时间。</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/m4G88stHSLz7eqM1BmzOYm7ZjHBntv3MDGq2Lzj7.png" alt="" width="1024" height="169"></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/uka18HvHAZPO9i0CE4MIHPVkq2nwtg7KAsCVrvde.png" alt="" width="1024" height="581"></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;">按键按下设置闹钟参数,清除标志位,把disp的数组信息copy到control方便确认达到闹铃设置时间。<img src="//image.lceda.cn/pullimage/RFKMNPPJJEUaUVbfMZ0ikYFdhZnMZV0F3tOUVif4.png" alt="" width="1024" height="332"></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/NSdMVQFP1uFvJlTFCNyBPuJvJ0gRYpYRFj3qFm1G.png" alt="" width="1024" height="361"></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;">通过使用memcmp函数比较两个数组,前两位时间是否一致,一致则会响铃。</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、. 由于没有jlink调试器,只能使用串口下载调试,将第四个按钮实现成触摸按钮同样的功能,长按切换显示时间、温度、湿度。并增加了设置闹钟功能。</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/hb5bFqAugRNuRxDybfinpAMAd19Kyskr4t7EoBZu.png" alt="" width="1024" 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 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> <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 style="line-height:1.8;"><img src="//image.lceda.cn/pullimage/Ns2usneGvFG049LQNutrbv80M2wvYBEMTeoBBfZV.jpeg" alt="" width="1024" height="768"></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;"> </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 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>

文档

BOM

暂无

附件

附件名 下载
RA2E1_Clock_0668.zip
立创电赛:电子时钟.mp4
BOM_Board1_SCH_桌面电子时钟_2023-08-05.xlsx

评论(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