描述
<p><div>
<h3 style="line-height: 1.8;"> </h3>
<h3 style="line-height: 1.8;"><span style="font-size: 14pt;">* 1、项目功能介绍</span></h3>
<hr />
<p style="line-height: 1.8;"> </p>
<p style="line-height: 1.8;"><span style="font-size: 12pt;">作为电子爱好者菜鸟选手,拿这个项目入门学习STM32太合适了,成品也可以当作桌面的实用摆件!</span></p>
<p style="line-height: 1.8;"> </p>
<p style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/0gTn9a7nxPHhJCOQgBD63cRPXru3Vuk01xndyle4.jpeg" alt="" width="342" height="342" /></p>
<p style="line-height: 1.8;"> </p>
<p style="line-height: 1.8;"><span style="font-size: 12pt;">本项目使用<span style="color: #e03e2d;"><strong>STM32G030K6T6</strong></span>芯片作为主控芯片,该芯片使用Arm Cortex-M0+内核;最大主频64Mhz;具有32KB的Flash以及8K的SRAM,供电电压在2.0V~3.6V之间。</span></p>
<p style="line-height: 1.8;"><span style="font-size: 12pt;">温湿度传感器使用的是<span style="text-decoration: underline;"><a href="<a href="https://list.szlcsc.com/brand/506.html" target="_blank">https://list.szlcsc.com/brand/506.html</a>" target="_blank" rel="noopener"><span style="font-size: 18pt; color: #e03e2d; text-decoration: underline;"><strong>SHT40 传感器</strong></span></a></span>,作为一款高精度的温湿度检测器件,能够为系统提供准确可靠的环境温湿度数据。</span></p>
<p style="line-height: 1.8;"> </p>
<table style="border-collapse: collapse; width: 75.7285%; height: 364.582px;">
<tbody>
<tr style="height: 364.582px;">
<td style="width: 49.9548%; text-align: center; height: 364.582px;"><img src="//image.lceda.cn/pullimage/CZ2CyKzgBfTyRJJSl6tzkyEA79EyXKMQjMSurbzr.png" alt="" width="434" height="382" /></td>
<td style="width: 50.0772%; text-align: center; height: 364.582px;"><img src="//image.lceda.cn/oshwhub/4d424312e3da4b68b226388e24a50f9e.jpg" alt="" width="382" height="382" /></td>
</tr>
</tbody>
</table>
<p style="line-height: 1.8;"> </p>
<p style="line-height: 1.8;"><span style="font-size: 12pt;">通过此项目可以学习到的知识如下:</span></p>
<p style="line-height: 1.8;"><span style="font-size: 12pt;">1、STM32CubeMX的使用:从MCU/MPU选型,引脚配置,系统时钟以及外设时钟设置,到外设参数配置,中间件参数配置,它给STM32开发者们提供了一种简单,方便,并且直观的方式来完成这些工作。所有的配置完成后,它还可以根据所选的IDE生成对应的工程和初始化C代码。除此以外,STM32CubeMX还提供了功耗计算工具,可作为产品设计中功耗评估的参考。</span></p>
<p style="line-height: 1.8;"><span style="font-size: 12pt;">2、通过GPIO输出高低电平控制LED的闪烁</span></p>
<p style="line-height: 1.8;"><span style="font-size: 12pt;">3、通过GPIO的输入或者中断事件来控制唤醒等操作</span></p>
<p style="line-height: 1.8;"><span style="font-size: 12pt;">4、学习数码管的工作原理及使用</span></p>
<p style="line-height: 1.8;"><span style="font-size: 12pt;">5、通过IIC协议获取传感器数据及显示</span></p>
<p style="line-height: 1.8;"><span style="font-size: 12pt;">6、电压ADC采集</span></p>
<p style="line-height: 1.8;"><span style="font-size: 12pt;">7、定时器的运用</span></p>
<p style="line-height: 1.8;"><span style="font-size: 12pt;">8、晶振还可用来做RTC时钟,需自行完善软件部分</span></p>
<p style="line-height: 1.8;"> </p>
<p style="line-height: 1.8;"><span style="font-size: 14pt;"><em>官方详细的课程资料传送门</em>:</span></p>
<p style="line-height: 1.8;"><span style="text-decoration: underline; font-size: 14pt;"><a title="新手焊接教学" href="<a href="https://www.bilibili.com/video/BV1eJ411K7rM/?spm_id_from=333.999.0.0&amp;vd_source=a2cfa7ab4c27b82528b05c71931dcf02" target="_blank">https://www.bilibili.com/video/BV1eJ411K7rM/?spm_id_from=333.999.0.0&amp;vd_source=a2cfa7ab4c27b82528b05c71931dcf02</a>" target="_blank" rel="noopener">新手焊接教学</a></span></p>
<p style="line-height: 1.8;"><span style="text-decoration: underline; font-size: 14pt;"><a title="桌面温湿度仪项目文档" href="<a href="https://www.yuque.com/wldz/jlceda/dqetva01onq5tgdz" target="_blank">https://www.yuque.com/wldz/jlceda/dqetva01onq5tgdz</a>" target="_blank" rel="noopener">桌面温湿度仪项目文档</a></span></p>
<p style="line-height: 1.8;"><span style="text-decoration: underline; font-size: 14pt;"><a title="硬件设计视频" href="<a href="https://www.bilibili.com/video/BV1Ny411B7WX/?spm_id_from=333.999.0.0" target="_blank">https://www.bilibili.com/video/BV1Ny411B7WX/?spm_id_from=333.999.0.0</a>" target="_blank" rel="noopener">硬件设计视频</a></span></p>
<p style="line-height: 1.8;"><span style="text-decoration: underline; font-size: 14pt;"><a title="软件设计视频" href="<a href="https://www.bilibili.com/video/BV1Ay411B7MF/?spm_id_from=333.999.0.0" target="_blank">https://www.bilibili.com/video/BV1Ay411B7MF/?spm_id_from=333.999.0.0</a>" target="_blank" rel="noopener">软件设计视频</a></span></p>
<p style="line-height: 1.8;"> </p>
<h3 style="line-height: 1.8;"><span style="font-size: 14pt;"><em>2、项目属性</span></h3>
<hr />
<p style="line-height: 1.8;"> </p>
<p style="line-height: 1.8;"><span style="font-size: 12pt;">第九届立创电赛复刻项目,硬件与程序都稍做了二次修改。项目首次公开;项目为原创;项目未曾在其他比赛中获奖;项目未在学校参加过答辩。</span></p>
<p style="line-height: 1.8;"> </p>
<h3 style="line-height: 1.8;"><span style="font-size: 14pt;"></em> 3、开源协议</span></h3>
<hr />
<p style="line-height: 1.8;"> </p>
<p style="line-height: 1.8;"><span style="color: #000000; font-size: 12pt;">GPL 3.0</span></p>
<p style="line-height: 1.8;"> </p>
<h3 style="line-height: 1.8;"><span style="font-size: 14pt;"><em>4、硬件部分</span></h3>
<hr />
<p style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/7nywCJ1Ea7ZhQ7SIdVkufsi3h0X9hkfVWbSukgUO.png" alt="" width="594" height="386" /></p>
<p style="line-height: 1.8;"><span style="font-size: 12pt;">官方版本采用的是0805封装的元件,本项目统一改为了0603封装的元件,布局上空间更充裕,对于使用电络铁不熟练的新手来说,焊接0603的元件稍微有点难度,不过我有铁板烧神器,只需要在焊盘上用针筒锡浆挤出适量的锡点,并摆好所有贴片元件,静等烤制即可。推荐指数五颗星!</span></p>
<p style="line-height: 1.8;"> </p>
<p style="line-height: 1.8; padding-left: 80px;"><img src="//image.lceda.cn/pullimage/Y5jI0tqYbavsx8hpR8Erlf2QeO6ncAcfi1714WAd.png" alt="" width="408" height="369" /></p>
<p style="line-height: 1.8;"> </p>
<p style="line-height: 1.8;"><span style="color: #e03e2d; font-size: 12pt;"><strong>注意事项</strong>:</span></p>
<p style="line-height: 1.8;"><span style="color: #e03e2d; font-size: 12pt;">电池仓放在最后焊接!在焊接完数码管及弯排针后需要用斜口剪去掉超出板子的引脚部分,尽量留的短一些,但不可少锡,焊点一定饱满,否则会因为焊接不良导致显示不完整的问题</span></p>
<p style="line-height: 1.8;"> </p>
<h3 style="line-height: 1.8;"><span style="font-size: 14pt;"></em>5、软件部分</span></h3>
<hr />
<p style="line-height: 1.8;"> </p>
<p style="line-height: 1.8;"><span style="font-size: 12pt;">项目文件 -><span style="text-decoration: underline;"><a href="/attachments/2024/7/LuO6nmgZZuQfEYRArS3abtVz6gEe18a7GQckE3n6.rar" target="_blank" rel="noopener">下载附件</a></span>。</span></p>
<p style="line-height: 1.8;"><span style="font-size: 12pt;">由于本地编译使用的V6版本的ARM Compiler,对于官方提供的us延时方法不支持,所以重新找了一个方法,原理可<span style="text-decoration: underline;"><a href="<a href="https://blog.csdn.net/hwytree/article/details/120825485" target="_blank">https://blog.csdn.net/hwytree/article/details/120825485</a>" target="_blank" rel="noopener">点击此处查看原文章</a></span></span></p>
<p style="line-height: 1.8;"><span style="font-size: 12pt;">本项目对官方程序的流程稍有改动:程序上电后,默认进入睡眠模式,点击按钮会唤醒单片机,并同时显示温度和湿度1秒,然后继续进入睡眠模式。</span></p>
<p style="line-height: 1.8;"><img src="//image.lceda.cn/oshwhub/fba661b0ec0c440ab23da1c4a67288c1.png" alt="" width="728" height="737" /></p>
<p style="line-height: 1.8;"> </p>
<h3 style="line-height: 1.8;"><span style="font-size: 14pt;">*6、BOM清单</span></h3>
<hr />
<p style="line-height: 1.8;"> </p>
<table style="border-collapse: collapse; width: 1046px;" width="648">
<tbody>
<tr style="height: 13.50pt;">
<td style="height: 13.5pt; width: 66.125px; text-align: center;" height="18">No.</td>
<td style="width: 80.3594px; text-align: center;">所需数量</td>
<td style="width: 89.3125px; text-align: center;">备注</td>
<td style="width: 94.5px; text-align: center;">位号</td>
<td style="width: 100.734px; text-align: center;">封装</td>
<td style="width: 77.7812px; text-align: center;">Value</td>
<td style="width: 228.656px; text-align: center;">制造商</td>
<td style="width: 129.812px; text-align: center;">供应商编号</td>
</tr>
<tr style="height: 13.50pt;">
<td style="height: 13.5pt; width: 71.6406px; text-align: center;" align="right" height="18">1</td>
<td style="width: 86.2969px; text-align: center;" align="right">2</td>
<td style="width: 95.1562px;">BH-AA-A1AJ020</td>
<td style="width: 99.9688px;">BAT1,BAT2</td>
<td style="width: 105.844px;">BAT-TH_L56.3-W16.8-P51.55_BH-AA-A1AJ020</td>
<td style="width: 81.375px;"> </td>
<td style="width: 237.297px;">MYOUNG(美阳)</td>
<td style="width: 133.703px;">C5290181</td>
</tr>
<tr style="height: 13.50pt;">
<td style="height: 13.5pt; width: 73.5781px; text-align: center;" align="right" height="18">2</td>
<td style="width: 88.4062px; text-align: center;" align="right">3</td>
<td style="width: 97.2031px;">100nF</td>
<td style="width: 101.891px;">C1,C2,C8</td>
<td style="width: 107.641px;">C0603</td>
<td style="width: 82.6406px;">100nF</td>
<td style="width: 240.328px;">FH(风华)</td>
<td style="width: 135.094px;">C30926</td>
</tr>
<tr style="height: 13.50pt;">
<td style="height: 13.5pt; width: 74.2344px; text-align: center;" align="right" height="18">3</td>
<td style="width: 89.1094px; text-align: center;" align="right">2</td>
<td style="width: 97.8906px;">18pF</td>
<td style="width: 102.547px;">C3,C4</td>
<td style="width: 108.25px;">C0603</td>
<td style="width: 83.0469px;">18pF</td>
<td style="width: 241.344px;">YAGEO(国巨)</td>
<td style="width: 135.609px;">C107040</td>
</tr>
<tr style="height: 13.50pt;">
<td style="height: 13.5pt; width: 74.4531px; text-align: center;" align="right" height="18">4</td>
<td style="width: 89.3594px; text-align: center;" align="right">4</td>
<td style="width: 98.1094px;">1uF</td>
<td style="width: 102.766px;">C5,C6,C7,C9</td>
<td style="width: 108.453px;">C0603</td>
<td style="width: 83.1875px;">1uF</td>
<td style="width: 241.703px;">SAMSUNG(三星)</td>
<td style="width: 135.812px;">C15849</td>
</tr>
<tr style="height: 13.50pt;">
<td style="height: 13.5pt; width: 74.5156px; text-align: center;" align="right" height="18">5</td>
<td style="width: 89.4375px; text-align: center;" align="right">1</td>
<td style="width: 98.1875px;">X6511WV-04H-C60D30</td>
<td style="width: 102.844px;">H1</td>
<td style="width: 108.516px;">HDR-TH_4P-P2.54-V-M</td>
<td style="width: 83.2344px;"> </td>
<td style="width: 241.812px;">XKB Connection(中国星坤)</td>
<td style="width: 135.906px;">C706876</td>
</tr>
<tr style="height: 13.50pt;">
<td style="height: 13.5pt; width: 74.5156px; text-align: center;" align="right" height="18">6</td>
<td style="width: 89.4688px; text-align: center;" align="right">1</td>
<td style="width: 98.2188px;">PBBMAQ2012G-121T08</td>
<td style="width: 102.875px;">L1</td>
<td style="width: 108.531px;">L0805</td>
<td style="width: 83.25px;"> </td>
<td style="width: 241.844px;">PROD(谱罗德)</td>
<td style="width: 135.953px;">C22462042</td>
</tr>
<tr style="height: 13.50pt;">
<td style="height: 13.5pt; width: 74.5px; text-align: center;" align="right" height="18">7</td>
<td style="width: 89.4688px; text-align: center;" align="right">2</td>
<td style="width: 98.2188px;">XL-1608UGC-04</td>
<td style="width: 102.891px;">LED1,LED2</td>
<td style="width: 108.516px;">LED0603-RD_GREEN</td>
<td style="width: 83.25px;"> </td>
<td style="width: 241.859px;">XINGLIGHT(成兴光)</td>
<td style="width: 136.047px;">C965804</td>
</tr>
<tr style="height: 13.50pt;">
<td style="height: 13.5pt; width: 74.5px; text-align: center;" align="right" height="18">8</td>
<td style="width: 89.4688px; text-align: center;" align="right">2</td>
<td style="width: 98.2188px;">SP420361N</td>
<td style="width: 102.891px;">LED3,LED4</td>
<td style="width: 108.516px;">LED-SEG-TH_SP420361N</td>
<td style="width: 83.25px;"> </td>
<td style="width: 241.844px;">ARKLED(方舟)</td>
<td style="width: 136.062px;">C98927</td>
</tr>
<tr style="height: 13.50pt;">
<td style="height: 13.5pt; width: 74.5px; text-align: center;" align="right" height="18">9</td>
<td style="width: 89.4688px; text-align: center;" align="right">1</td>
<td style="width: 98.2188px;">WST3401</td>
<td style="width: 102.891px;">Q1</td>
<td style="width: 108.516px;">SOT-23-3_L2.9-W1.6-P1.90-LS2.8-BR</td>
<td style="width: 83.25px;"> </td>
<td style="width: 241.844px;">WINSOK(微硕)</td>
<td style="width: 136.062px;">C105162</td>
</tr>
<tr style="height: 13.50pt;">
<td style="height: 13.5pt; width: 74.5px; text-align: center;" align="right" height="18">10</td>
<td style="width: 89.4688px; text-align: center;" align="right">3</td>
<td style="width: 98.2188px;">10kΩ</td>
<td style="width: 102.891px;">R1,R6,R7</td>
<td style="width: 108.516px;">R0603</td>
<td style="width: 83.25px;">10kΩ</td>
<td style="width: 241.844px;">UNI-ROYAL(厚声)</td>
<td style="width: 136.062px;">C25804</td>
</tr>
<tr style="height: 13.50pt;">
<td style="height: 13.5pt; width: 74.5px; text-align: center;" align="right" height="18">11</td>
<td style="width: 89.4688px; text-align: center;" align="right">4</td>
<td style="width: 98.2188px;">4.7kΩ</td>
<td style="width: 102.891px;">R2,R3,R4,R5</td>
<td style="width: 108.516px;">R0603</td>
<td style="width: 83.25px;">4.7kΩ</td>
<td style="width: 241.844px;">UNI-ROYAL(厚声)</td>
<td style="width: 136.062px;">C23162</td>
</tr>
<tr style="height: 13.50pt;">
<td style="height: 13.5pt; width: 74.5px; text-align: center;" align="right" height="18">12</td>
<td style="width: 89.4688px; text-align: center;" align="right">1</td>
<td style="width: 98.2188px;">TS-1010-C-A</td>
<td style="width: 102.891px;">SW2</td>
<td style="width: 108.516px;">KEY-SMD_TX-1010-X-X</td>
<td style="width: 83.25px;"> </td>
<td style="width: 241.844px;">XKB Connectivity(中国星坤)</td>
<td style="width: 136.062px;">C692458</td>
</tr>
<tr style="height: 13.50pt;">
<td style="height: 13.5pt; width: 74.5px; text-align: center;" align="right" height="18">13</td>
<td style="width: 89.4688px; text-align: center;" align="right">1</td>
<td style="width: 98.2188px;">STM32G030K6T6</td>
<td style="width: 102.891px;">U1</td>
<td style="width: 108.516px;">LQFP-32_L7.0-W7.0-P0.80-LS9.0-BL</td>
<td style="width: 83.25px;"> </td>
<td style="width: 241.844px;">ST(意法半导体)</td>
<td style="width: 136.062px;">C529331</td>
</tr>
<tr style="height: 13.50pt;">
<td style="height: 13.5pt; width: 74.5px; text-align: center;" align="right" height="18">14</td>
<td style="width: 89.4688px; text-align: center;" align="right">1</td>
<td style="width: 98.2188px;">X1311FR-04-C43D24</td>
<td style="width: 102.891px;">U2</td>
<td style="width: 108.516px;">HDR-TH_4P-P1.27-H-F-W4.5-N</td>
<td style="width: 83.25px;"> </td>
<td style="width: 241.844px;">XKB Connectivity(中国星坤)</td>
<td style="width: 136.062px;">C2881475</td>
</tr>
<tr style="height: 13.50pt;">
<td style="height: 13.5pt; width: 74.5px; text-align: center;" align="right" height="18">15</td>
<td style="width: 89.4688px; text-align: center;" align="right">3</td>
<td style="width: 98.2188px;">SN74HC595PWR</td>
<td style="width: 102.891px;">U3,U4,U5</td>
<td style="width: 108.516px;">TSSOP-16_L5.0-W4.4-P0.65-LS6.4-BL</td>
<td style="width: 83.25px;"> </td>
<td style="width: 241.844px;">TI(德州仪器)</td>
<td style="width: 136.062px;">C273642</td>
</tr>
<tr style="height: 13.50pt;">
<td style="height: 13.5pt; width: 74.5px; text-align: center;" align="right" height="18">16</td>
<td style="width: 89.4688px; text-align: center;" align="right">1</td>
<td style="width: 98.2188px;">32.768kHz</td>
<td style="width: 102.891px;">X1</td>
<td style="width: 108.516px;">CRYSTAL-SMD_L3.2-W1.5-1</td>
<td style="width: 83.25px;">32.768kHz</td>
<td style="width: 241.844px;">YXC(扬兴晶振)</td>
<td style="width: 136.062px;">C5213671</td>
</tr>
</tbody>
</table>
<h3 style="line-height: 1.8;"> </h3>
<h3 style="line-height: 1.8;"><span style="font-size: 14pt;">*7、大赛LOGO验证</span></h3>
<hr />
<p style="line-height: 1.8;"> </p>
<p style="line-height: 1.8;"> </p>
<p style="line-height: 1.8; padding-left: 40px;"><img src="//image.lceda.cn/pullimage/FqOsvsyvt9L7ncMDEcn94hnTk8dBlGmR1AThr6BZ.jpeg" alt="" width="500" height="342" /></p>
<p style="line-height: 1.8;"> </p>
<p style="line-height: 1.8;"> </p>
</div></p>
评论(0)