版本协议

Public Domain

专业版
#第九届立创电赛#温湿度检测仪

创建时间:9个月前

110 0

描述

<p><h3 style="line-height: 1.8;"><em> 1、项目功能介绍</h3> <hr /> <p style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">它最基础也最重要的功能就是测量和监测环境中的温度和湿度。无论是炎炎夏日还是寒冷冬季,无论是干燥的空气还是潮湿的环境,它都能精准捕捉并显示当前的温湿度状况。这样一来,我们就能根据这些数据来调节环境,让生活或工作空间更加舒适。</span></p> <h3 style="line-height: 1.8;"></em>2、项目属性</h3> <h3 style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">不是首次公开</span></h3> <p style="line-height: 1.8;">&nbsp;</p> <h3 style="line-height: 1.8;"><em> 3、开源协议</h3> <hr /> <p style="line-height: 1.8;">GPL3.0开源协议</p> <p style="line-height: 1.8;">&nbsp;</p> <p style="line-height: 1.8;">&nbsp;</p> <h3 style="line-height: 1.8;"></em>4、硬件部分</h3> <hr /> <p>信号采集:通过温度传感器和湿度传感器分别采集环境的温度和湿度信号。</p> <p>信号处理:将采集到的信号进行放大、滤波等处理,以提高信号的稳定性和准确性。</p> <p>模数转换:将处理后的模拟信号转换为数字信号,以便进行显示和存储。</p> <p>显示与输出:将转换后的数字信号通过显示屏显示出来,</p> <h3 style="line-height: 1.8;"><em>5、软件部分</h3> <p style="line-height: 1.8;">从机(传感器端)代码使用STM32CubeIDE 1.8.0编辑;接收端代码使用Keil5 MDK编辑。<br />STM32Cube端部分代码如下:</p> <p>/</em> 64Mhz时钟时,当ulCount为1,函数耗时3个时钟,延时=3<em>1/64us </em>/<br />__asm void SysCtlDelay(unsigned long ulCount)<br />{<br />&nbsp; &nbsp; SUBS r0,#1;<br />&nbsp; &nbsp; BNE SysCtlDelay;<br />&nbsp; &nbsp; BX lr;<br />}</p> <p>/<em><br />&nbsp; &nbsp; 函数内容:数码管显示数据函数<br />&nbsp; &nbsp; 函数参数:uint8_t row----行号<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uint8_t column-列号<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uint8_t value--显示数据<br />&nbsp; &nbsp; 返回值:无<br /></em>/<br />void ShowNum(uint8_t row, uint8_t column, uint8_t value)<br />{<br />&nbsp; &nbsp; if(row == 1)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; switch(column)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 1: &nbsp; &nbsp;//如果是第一排第一个<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SN74HC595_Send_Data(SN_DIG,0xFE);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SN74HC595_Send_Data(SN_LED1,sgh_value[value]);//显示值对应16进制数<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 2:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SN74HC595_Send_Data(SN_DIG,0xFD);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SN74HC595_Send_Data(SN_LED1,(sgh_value[value]|0x80));<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 3:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SN74HC595_Send_Data(SN_DIG,0xFB);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SN74HC595_Send_Data(SN_LED1,sgh_value[value]);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; SysCtlDelay(1000); &nbsp; &nbsp;//大致延时50us<br />&nbsp; &nbsp; &nbsp; &nbsp; SN74HC595_Send_Data(SN_LED1,0x00); &nbsp; &nbsp;//消影,防止错位<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; else<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; switch(column)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 1:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SN74HC595_Send_Data(SN_DIG,0xF7);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SN74HC595_Send_Data(SN_LED2,sgh_value[value]);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 2:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SN74HC595_Send_Data(SN_DIG,0xEF);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SN74HC595_Send_Data(SN_LED2,(sgh_value[value]|0x80));<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 3:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SN74HC595_Send_Data(SN_DIG,0xDF);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SN74HC595_Send_Data(SN_LED2,sgh_value[value]);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; SysCtlDelay(1000); &nbsp; &nbsp;//大致延时50us<br />&nbsp; &nbsp; &nbsp; &nbsp; SN74HC595_Send_Data(SN_LED2,0x00);<br />&nbsp; &nbsp; }<br />}</p> <p style="line-height: 1.8;">&nbsp;</p> <h3 style="line-height: 1.8;"><em>6、BOM清单</h3> <hr /> <p style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">请输入内容&hellip;<img src="//image.lceda.cn/oshwhub/966ed2c98775499193faafbf53f6e816.png" alt="" width="1693" height="750" /></span></p> <p style="line-height: 1.8;">&nbsp;</p> <p style="line-height: 1.8;">&nbsp;</p> <p style="line-height: 1.8;">&nbsp;</p> <h3 style="line-height: 1.8;"></em>7、大赛LOGO验证</h3> <hr /> <p style="line-height: 1.8;"><img src="//image.lceda.cn/oshwhub/2f47cb68ea1a4fd6adb0151e48650825.png" alt="" width="1420" height="884" /></p> <p style="line-height: 1.8;">&nbsp;</p> <h3 style="line-height: 1.8;">* 8、演示您的项目并录制成视频上传</h3> <hr /> <p style="line-height: 1.8;">第九届立创电赛:《温湿度检测仪》</p> <p style="line-height: 1.8;">&nbsp;</p> <p style="line-height: 1.8;"><span style="font-size: 14px;"><a href="/posts/de460543d4cf4dacb5f0326612455578" target="_blank" rel="noreferrer noopener">前往查看更多详情 ></a></span></p> <p style="line-height: 1.8;">&nbsp;</p></p>

文档

BOM

暂无

附件

附件名 下载
第九届立创电赛:《温湿度检测仪》.mp4
Project(1).7z

成员

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