描述
<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>
<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>
<p><span style="font-family: 宋体;"> <span style="color: #000000; font-family: arial, helvetica, sans-serif;">随着时代的进步和经济的发展,我国的汽车数量也越来越多。在日常生活中,汽车提高了我们的办事效率,汽车成为了一部分人们生活的第二空间。但是汽车空间狭小、密闭性强,如果有害气体超标,对身体健康影响非常大,严重情况下更会导致免疫力下降、肝脏疾病、白血病、癌症等疾病,特别是对孕妇、婴儿、儿童的健康影响比较大。虽然很多汽车厂家针对这些问题研发出了具有空气净化功能的汽车,但在实际使用中,我们无法了解车内空气中的污染物质浓度。虽然有专业的检测结构,可以提供车内空气污染物浓度检测的服务,但是也存在价格昂贵、无法实时检测的弊端。为此,我设计并制作了一款车载环境卫士,可以有效的实时检测车内空气中的污染物是否超标。</span></span></p>
<p><span style="font-family: 宋体;"><span style="color: #000000; font-family: arial, helvetica, sans-serif;"><strong>温湿度检测</strong>:当车内环境温度过高,不仅容易引起中暑等身体损伤,还会导致内饰材料释放VOC等有毒物质,影响驾乘人员的身体健康。当温度过高,车载环境卫士会进行蜂鸣器等报警,提示司机进行降温。</span></span></p>
<p><span style="font-family: 宋体;"><span style="color: #000000; font-family: arial, helvetica, sans-serif;"><strong>湿度检测</strong>:当车内湿度过高,也会影响身体健康,车内也很容易滋生细菌和异味。当湿度过高,车载环境卫士会进行蜂鸣器等报警,提示司机打开空调进行除湿。</span></span></p>
<p><span style="font-family: 宋体;"><span style="color: #000000; font-family: arial, helvetica, sans-serif;"><strong>VOC气体检测</strong>:随着时间的变化和温度的变化,汽车内饰会释放出VOC气体,对身体有伤害。当车内VOC气体过高时,车载环境卫士会进行蜂鸣器等报警,提示司机进行通风或者打开空气净化。</span></span></p>
<p><span style="font-family: 宋体;"><span style="color: #000000; font-family: arial, helvetica, sans-serif;"><strong>CO2气体检测</strong>:车内空间狭小,当车内CO2达到一定值时,人就会出现昏迷和脑缺氧,导致犯困、反应速度降低。当车内CO2气体过高时,车载环境卫士会进行蜂鸣器等报警,提示司机进行通风。</span></span></p>
<p><span style="font-family: 宋体;"><span style="color: #000000; font-family: arial, helvetica, sans-serif;"> 此外设计了<strong>孕婴模式</strong>,在设置中开启孕婴模式后,各个指标的报警值会更低,报警更灵敏,为孕妇和婴儿的身体健康保驾护航。还可以设置蜂鸣器报警的时长或者关闭蜂鸣器。适应不同的应用场景。另外可以设置温度的显示单位为摄氏度或者华氏度,适应不同的应用场景和使用习惯。</span></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;">*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: #000000; font-size: 18px;">本项目的创意和所有设计均为作者原创,第一版本设计作品在《无线电》杂志2024年第3期发表。</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: #000000; font-size: 18px;"><strong>注意:</strong>此次比赛作品为优化升级后的全新设计版本,外壳、电路板、显示界面、操作逻辑均进行了全新的设计和制作。</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;">* 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: #000000; font-size: 14px; font-family: arial, helvetica, sans-serif;">GPL3.0开源协议,开源原理图及代码部分。</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;"><strong><span style="color: #0093e6;">请在竞赛阶段填写 ↓</span></strong></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>
<p> </p>
<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: #000000; font-size: 16px;">工作原理介绍:</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/JyTgwDy6e9heydKG4enZbVUGSRzQM0Ol81uYuR6w.jpeg" alt="" width="606" height="270"></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;"> 工作原理如上图所示,通过电容触摸串口屏进行人机交互,主板部分的MCU为主控,通过获取传感器的数据,将其经过逻辑判断后,显示在屏幕上面或者通过蜂鸣器报警,还可以通过PWM控制风扇的转速,风扇用于产生气流,让环境的气体流经传感器。整个系统通过Type-C接口供电即可。</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;"> 电容触摸串口屏选用的是迪文科技的COF屏,型号是DMG40960F040_01WTC。通过简单的开发即可实现好看的界面。屏幕的分辨率是400*960,通过FPC座与主板连接。信号为TTL电平的USART接口,与MCU直接连接即可。</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/ExZAprACtzhTjmNi44wA4yk2d75jiV8XIvfDl6R7.jpeg" alt="" width="399" height="230"></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;"> 主板的MCU为STM32G030C8T6,该MCU有48个引脚,属于32位MCU微控制器,基于高性能Arm®Cortex®-M0+32位RISC核心,工作频率高达64mhz。</p>
<div class="dpu8C _2kCxD ">
<p>包括一个内存保护单元(MPU),一个高速嵌入式存储器(8kbytes的SRAM和一个高达64kbytes的Flash程序存储器,具有读取保护和书写保护),一个广泛的系统功能,一个增强的I/O和外围设备。该设备提供标准通信接口(两个i2c,两个spi/一个I2S和两个USARTS),一个12位ADC(2.5MSPS)多达19通道,一个低功耗RTC,一个先进的控制PWM定时器,四个通用16位定时器,两个看门狗定时器和一个Systick定时器。</p>
</div>
<div class="dpu8C _2kCxD ">
<p>STM32G030C8T6的环境温度为-40~85°C,电源电压为2.0V~3.6V。结合一套综合节电模式,优化动态消耗,允许设计低功耗应用。VBAT直接电池输入允许RTC和备份寄存器供电。下图为MCU电路的原理图,包含了MCU及程序烧录接口、复位电路、外部晶振电路。</p>
<p>这里的晶振推荐使用<strong><span style="font-size: 18px;">扬兴晶振</span></strong>。</p>
<p><img src="//image.lceda.cn/pullimage/Cr3bD6YN0tbMuNysU2rvQaOzV5laRR7heRJFi2gf.jpeg" alt="" width="543" height="464">传感器部分主要采用的是<strong><span style="font-size: 18px;">盛思锐SENSIRION</span></strong>的温湿度、二氧化碳、VOC传感器。传感器的供电均为DC3.3V,信号均为IIC通信,由于三个传感器有着不同的IIC地址,所以可以将传感器的IIC进行并联通信。</p>
<p><img src="//image.lceda.cn/pullimage/PQHzP1iviMWnOjVJcwEsTNju267R6EMAuRYgHr6C.jpeg" alt="" width="489" height="626"></p>
<p><span style="font-family: arial, helvetica, sans-serif;"> 温/湿度传感器采用的是瑞士盛思锐的SHT40,它一款数字式温/湿度传感器,可以测量环境中的温度和湿度数据,同时具备高精度和快速响应的特点。此外,SHT40采用I2C总线通信,支持多种封装形式,可以满足各种应用场景的需求。在产品规格方面,SHT40的温度测量范围是-40~125 ℃,温度测量精度为±0.2 ℃,湿度测量范围是0~100%RH,湿度测量精度为±1.8%RH。</span></p>
<p><span style="font-family: arial, helvetica, sans-serif;"><img src="//image.lceda.cn/pullimage/sIEaqZzPW3YmxlE1VHB2NUUQtt0tGu6j92a63pTq.jpeg" alt="" width="112" height="95"><br></span></p>
<p><span style="font-family: arial, helvetica, sans-serif;"> VOC传感器选用的是瑞士盛思锐的SGP40(见图4),它是盛思锐新推出的数字VOC传感器,可轻松集成到空气处理设备和空气质量监测器中。SGP40基盛思锐的 CMOSens技术, 具有数字I²C接口、由温度控制的微型加热板以及经湿度补偿处理的室内空气质量信号,能够在单个芯片上提供完整的传感器系统。结合盛思锐强大的VOC算法,传感器信号可直接用于室内空气质量评估。它还具有内部温/湿度补偿算法,会自动适应环境,从而实现独特的长期稳定性,以及低漂移和设备间差异。它可以直接输出处理后的VOC指数,使用寿命可长达10年。</span></p>
<p><span style="font-family: arial, helvetica, sans-serif;"><img src="//image.lceda.cn/pullimage/LRkc0iixqamz4rhwAarD7zcFKcjEu6Xadf09j6rJ.png" width="262" height="164"></span></p>
<p><span style="font-family: arial, helvetica, sans-serif;"> CO2传感器选用的是瑞士盛思锐的SCD40(见图5)是盛思锐推出的新一代微型CO2传感器,具有较高的性价比。它是基于光声传感原理以及盛思锐的PASens和CMOSens专利技术,体积小巧、性能卓越。SMD兼容性和紧凑的设计使客户能够以优异的成本和空间效益进行集成,显著提升设计自由度。不仅如此,电源电压范围为2.4~5.5 V,稳定向好,并且可调节功耗。</span></p>
<p><span style="font-family: arial, helvetica, sans-serif;"><img src="//image.lceda.cn/pullimage/9wiPrF3DOqFbhZVrVkVAVkjyDutKGXHGomE8xGiI.png"></span></p>
<p><strong><span style="font-family: 宋体;"><span style="color: #000000; font-family: arial, helvetica, sans-serif;">其他传感器:此外大家可能还会关注车内PM2.5、甲醛的检测,由于盛思锐的新产品还未上市,笔者暂时没有设计,建议关注以下两款传感器:</span></span></strong></p>
<p><strong><span style="font-family: 宋体;"><span style="color: #000000; font-family: arial, helvetica, sans-serif;">SFA40:外形小巧,具有超高的甲醛选择性和超长的使用寿命。</span></span></strong></p>
<p><strong><span style="font-family: 宋体;"><span style="color: #000000; font-family: arial, helvetica, sans-serif;"><img src="//image.lceda.cn/pullimage/3LgbVim0afuFic8EFt8LGtuvOvRSNDF3yN37Rah8.jpeg" alt="" width="209" height="136"><br></span></span></strong></p>
<p><strong><span style="font-family: 宋体;"><span style="color: #000000; font-family: arial, helvetica, sans-serif;">SEN6x系列传感器,体积小,融合PM2.5、温湿度等多种气体检测。</span></span></strong></p>
<p><strong><span style="font-family: 宋体;"><span style="color: #000000; font-family: arial, helvetica, sans-serif;"><img src="//image.lceda.cn/pullimage/aakiafFtU1xv6fL8izLuMSbjIZNxGRirLckGm2R4.jpeg" alt="" width="248" height="169"><br></span></span></strong></p>
<p> </p>
<p>电源部分介绍:</p>
<p>电源输入为DC5V,输入前段有过压、短路、防反接保护,BT1是自恢复保险丝,保持电流为500mA,跳闸电流为1A。D2是双向TVS二极管,可以吸收电源的浪涌,也可以做过压保护。D1是肖特基二极管SS14,主要做防反接的作用。</p>
<p>后端通过LDO芯片SPX3819降压到3.3V,最大输出电流为500mA。</p>
<p><img src="//image.lceda.cn/pullimage/lkpKftQdod9XEGXrIyiOlnD5ZrPz6ORcCWIvZZol.jpeg" alt="" width="917" height="246"></p>
<p>风扇使用的是DC5V供电的2507超薄静音风扇,尺寸为25*25*7mm。</p>
<p><img src="//image.lceda.cn/pullimage/zpvITi13I8Q6CztfE9nnkVPRxHObWsDyYymxIZLo.jpeg" alt="" width="486" height="319"></p>
<p>Type-C供电使用的是Type-C 2P注胶直压式母座线。可以直接输出DC 5V电压。</p>
<p><img src="//image.lceda.cn/pullimage/2BtkzrixOKMaT0FK8dzqTqBz7L0pN1xY9xR4Hweo.jpeg" alt="" width="497" height="348"></p>
</div>
<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: #000000;"><span style="font-size: 14px;">电路板焊接:</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;"><span style="color: #95a5a6;"><span style="font-size: 14px;"><img src="//image.lceda.cn/pullimage/tSjtWOvWcRWlsbWcHjLosUdZz1uKFjuzytUwmMQb.jpeg" alt="" width="478" height="382"></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;"><span style="color: #000000; font-size: 16px;">使用SolidWorks进行的外壳设计:</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="font-size: 14px;"><img src="//image.lceda.cn/pullimage/AnjcSKRMGFVIlNvAYp1d5VpfUM7dhpQlunnDToiE.jpeg" alt="" width="567" height="319"></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;"><span style="color: #000000; font-size: 16px;">嘉立创3D打印的外壳:</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="font-size: 14px;"><img src="//image.lceda.cn/pullimage/V4chwIuCGyWe0KtvHlqXU0qCUtvYhenzXxWels5q.jpeg" alt="" width="569" height="475"></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;"><span style="font-size: 16px; color: #000000;"><strong><span style="font-family: arial, helvetica, sans-serif;">嘉立创3D打印精度高、速度快、价格合适,推荐使用嘉立创3D打印。</span></strong></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: #000000; font-size: 16px;">作品组装:</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;">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 pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/3jvBbDFqmAjUQyGZ5WXKhwH7oHh4wP6fgSWawHdk.jpeg" alt="" width="581" height="326"></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;"><img src="//image.lceda.cn/pullimage/pPFhD9WTcAnZ9OUyDrIWFC8VVpw661159hYdFxFW.jpeg" alt="" width="580" height="371"></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/mnWHWKJ2Kczl1kouEEar2Z1zL0nK5fQKV0ZGtghL.jpeg" alt="" width="579" height="367"></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、安装Type-C接口</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/z2J054BnqE5qfhOYlw8xPkxEajlxI7oFL06fnZwT.jpeg" alt="" width="584" height="328"></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、安装电路板,并连接内部的所有接线。</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/784AhBeiHMBnmRHrQUDX7CUQUnJAeeelAux6fOQA.jpeg" alt="" width="585" height="318"></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;">7、烧录MCU程序,安装底板并通电测试。</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/bjHAUpfabvWPynd1bcx5zaaEea4wMhtbClMFVdNl.jpeg" alt="" width="585" height="354"></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;">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/4dp6GK4qoB7gQIIiW1AXsvIJzpkPzeTYxrCnNcYQ.jpeg" alt="" width="591" 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/hEhxYgHSjrmztQtz521R2qB8sjLQJyaib2OJWg0R.jpeg" alt="" width="593" height="333"></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;"><span style="color: #000000; font-size: 16px;">界面设计:</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: #000000; font-size: 16px;">一、立创电赛界面</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="font-size: 14px;"><img src="//image.lceda.cn/pullimage/3gI6YCzL879lGBoUcjiKPEkaMWChZ5wF2M2G2OhT.jpeg" alt="" width="401" height="167"></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;"><span style="color: #000000; font-size: 16px;">二、欢迎界面</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; font-size: 14px;"><img src="//image.lceda.cn/pullimage/ApIn5c1TQYHZSu249ipdwyvHYtdFj1SRPKMMnDVy.jpeg" alt="" width="406" height="169"><span style="font-size: 16px; color: #000000;">三、主界面</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;"><img src="//image.lceda.cn/pullimage/0nlu7EX6IkdoVrTUoPFTEXX1LHNIPXn3q0YLtYkc.jpeg" alt="" width="408" height="170"></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: #000000; font-size: 16px;">四、设置界面</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/UYruY3Gd8GYetlo6iyW4W5C5FJg5EfuldxZg2Uff.jpeg" alt="" width="410" height="171"></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: #000000; font-size: 16px;">五、报警界面</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/CEPG84la98SVZx7oIgEWfS8k82zI51OFynbWzHyZ.jpeg" alt="" width="410" height="171">共有四个报警界面,以CO2报警界面为例。</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>
<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;">初始化:主要对HAL库、时钟、外设、屏幕、传感器等进行初始化。</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="font-size: 12px;"> HAL_Init();//HAL库初始化</span><br><span style="font-size: 12px;"> SystemClock_Config();//系统时钟初始化</span><br><span style="font-size: 12px;"> MX_GPIO_Init();//GPIO初始化</span><br><span style="font-size: 12px;"> MX_DMA_Init();//DMA初始化</span><br><span style="font-size: 12px;"> MX_I2C2_Init();//IIC2初始化</span><br><span style="font-size: 12px;"> MX_USART1_UART_Init();//串口初始化</span><br><span style="font-size: 12px;"> USR_UART_Init();</span><br><span style="font-size: 12px;"> DW_Screen.ID = 0;//切换界面ID </span><br><span style="font-size: 12px;"> DW_PAGE_TURN(0);//屏幕切换界面</span><br><span style="font-size: 12px;"> HAL_Delay(3000);</span><br><span style="font-size: 12px;"> DW_Screen.ID = 1;//切换界面ID </span><br><span style="font-size: 12px;"> DW_PAGE_TURN(1);//屏幕切换界面</span><br><span style="font-size: 12px;"> HAL_Delay(3000);</span><br><span style="font-size: 12px;"> //读取配置信息</span><br><span style="font-size: 12px;"> Set_Congif_Read();</span><br><span style="font-size: 12px;"> DEV_ModuleInit();</span><br><span style="font-size: 12px;"> Temp_SDA40[0] = SCD4x_COMMAND_STOP_PERIODIC_MEASUREMENT >> 8;</span><br><span style="font-size: 12px;"> Temp_SDA40[1] = (u8)SCD4x_COMMAND_STOP_PERIODIC_MEASUREMENT;</span><br><span style="font-size: 12px;"> HAL_I2C_Master_Transmit(&hi2c2, SCD4x_ADDR_WRITE, (uint8_t*)&Temp_SDA40, 2, 0x00FF);</span><br><span style="font-size: 12px;"> delay_ms(600);</span><br><span style="font-size: 12px;"> //软件重启 SCD4x_COMMAND_REINIT</span><br><span style="font-size: 12px;"> Temp_SDA40[0] = SCD4x_COMMAND_REINIT >> 8;</span><br><span style="font-size: 12px;"> Temp_SDA40[1] = (u8)SCD4x_COMMAND_REINIT;</span><br><span style="font-size: 12px;"> HAL_I2C_Master_Transmit(&hi2c2, SCD4x_ADDR_WRITE, (uint8_t*)&Temp_SDA40, 2, 0x00FF);</span><br><span style="font-size: 12px;"> delay_ms(20);</span><br><span style="font-size: 12px;"> //开启周期性测量</span><br><span style="font-size: 12px;"> Temp_SDA40[0] = SCD4x_COMMAND_START_PERIODIC_MEASUREMENT >> 8;</span><br><span style="font-size: 12px;"> Temp_SDA40[1] = (u8)SCD4x_COMMAND_START_PERIODIC_MEASUREMENT;</span><br><span style="font-size: 12px;"> HAL_I2C_Master_Transmit(&hi2c2, SCD4x_ADDR_WRITE, (uint8_t*)&Temp_SDA40, 2, 0x00FF);</span><br><span style="font-size: 12px;"> FAN_OPEN//打开风扇</span><br><span style="font-size: 12px;"> HAL_Delay(500);</span><br><span style="font-size: 12px;"> DW_Screen.ID = 2;</span><br><span style="font-size: 12px;"> DW_SCRREN_RUN();//切换界面ID </span><br><span style="font-size: 12px;"> DW_PAGE_TURN(2);//屏幕切换界面</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;"><span style="font-size: 12px;"> SHT40_Read_Dat(SHT40_data); //读取温湿度数据</span><br><span style="font-size: 12px;"> SHT40_Dat_To_Float(SHT40_data,&WenDu,&ShiDu); //数据转换</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="font-size: 12px;"> HAL_Delay(200);</span><br><span style="font-size: 12px;"> voc1 = SGP40_MeasureRaw(WenDu, ShiDu); //读取VOC数据</span><br><span style="font-size: 12px;"> voc2 = SGP40_MeasureVOC(WenDu, ShiDu); //读取VOC指数数据</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="font-size: 12px;"> SCD40_Get_CO2(); //读取SCD40数据</span><br><span style="font-size: 12px;"> SCD40_data_Check();//CO2数据检查和计算</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;"><span style="font-size: 12px;">DW_Date_return();//处理屏幕的数据返回</span><br><span style="font-size: 12px;">DW_SCRREN_RUN();//刷新界面的显示</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;"><strong>代码烧录说明:</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;"><strong>MCU代码烧录接口是SWD接口,请使用JLINK或者STLINK进行烧录。附件提供代码的bin文件,可直接烧录使用。</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;"><strong>屏幕程序需要使用专用的程序烧录板进行烧录,将附件里的文件拷贝到TF卡的文件夹里。具体的烧录方式需要参考屏幕的相关说明文档。</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 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">
<table style="border-collapse: collapse; width: 1113.53pt;" width="2227">
<tr style="height: 14.00pt;">
<td style="height: 14.00pt; width: 54.00pt;" width="108" height="28">ID</td>
<td style="width: 104.50pt;" width="209">Name</td>
<td style="width: 235.00pt;" width="470">Designator</td>
<td style="width: 230.50pt;" width="461">Footprint</td>
<td style="width: 49.00pt;" width="98">Quantity</td>
<td style="width: 145.00pt;" width="290">Manufacturer Part</td>
<td style="width: 130.50pt;" width="261">Manufacturer</td>
<td style="width: 54.00pt;" width="108">Supplier</td>
<td style="width: 111.00pt;" width="222">Supplier Part</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">1</td>
<td>NSMD050-30V</td>
<td>BT1</td>
<td>F1206</td>
<td align="right">1</td>
<td>nSMD050-30V</td>
<td>台湾陆海</td>
<td>LCSC</td>
<td>C455450</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">2</td>
<td>2700Hz</td>
<td>BUZZER1</td>
<td>BUZ-SMD_L9.6-W9.6-LS10.0-R</td>
<td align="right">1</td>
<td>MLT-9650</td>
<td>华能</td>
<td>LCSC</td>
<td>C96127</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">3</td>
<td>100nF</td>
<td>C1,C5,C6,C8,C9,C10,C11,C13,C14,C17,C18</td>
<td>C0603</td>
<td align="right">11</td>
<td>CC0603KRX7R9BB104</td>
<td>YAGEO(国巨)</td>
<td>LCSC</td>
<td>C14663</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">4</td>
<td>10uF</td>
<td>C2,C7,C12</td>
<td>C0603</td>
<td align="right">3</td>
<td>HGC0603R5106M250NTHJ</td>
<td>Chinocera(华瓷)</td>
<td>LCSC</td>
<td>C7472961</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">5</td>
<td>22uF</td>
<td>C3,C4</td>
<td>C0805</td>
<td align="right">2</td>
<td>CL21A226MOQNNNE</td>
<td>SAMSUNG(三星)</td>
<td>LCSC</td>
<td>C98190</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">6</td>
<td>20pF</td>
<td>C15,C16</td>
<td>C0603</td>
<td align="right">2</td>
<td>CC0603JRNPO9BN200</td>
<td>YAGEO(国巨)</td>
<td>LCSC</td>
<td>C105621</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">7</td>
<td>100uF</td>
<td>C19,C20</td>
<td>CAP-SMD_L3.5-W2.8-R-RD</td>
<td align="right">2</td>
<td>CA45-B010K107T</td>
<td>湘怡中元/湘江</td>
<td>LCSC</td>
<td>C122644</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">8</td>
<td>ZX-XH2.54-2PZZ</td>
<td>CN1,CN3</td>
<td>CONN-TH_2P-P2.50_HX25003-2A</td>
<td align="right">2</td>
<td>ZX-XH2.54-2PZZ</td>
<td>Megastar(兆星)</td>
<td>LCSC</td>
<td>C7429632</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">9</td>
<td>ZX-XH2.54-4PZZ</td>
<td>CN2</td>
<td>CONN-TH_4P-P2.50_4PIN</td>
<td align="right">1</td>
<td>ZX-XH2.54-4PZZ</td>
<td>Megastar(兆星)</td>
<td>LCSC</td>
<td>C7429634</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">10</td>
<td>SS14</td>
<td>D1</td>
<td>SMA_L4.2-W2.6-LS5.3-RD</td>
<td align="right">1</td>
<td>SS14</td>
<td>MDD(辰达半导体)</td>
<td>LCSC</td>
<td>C2480</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">11</td>
<td>SMBJ5.0CA_C726851</td>
<td>D2</td>
<td>SMB_L4.6-W3.6-LS5.3-BI</td>
<td align="right">1</td>
<td>SMBJ5.0CA</td>
<td>TWGMC(台湾迪嘉)</td>
<td>LCSC</td>
<td>C726851</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">12</td>
<td>RS1M_C84573</td>
<td>D3,D4</td>
<td>SMA_L4.3-W2.6-LS5.2-FD</td>
<td align="right">2</td>
<td>RS1M</td>
<td>onsemi(安森美)</td>
<td>LCSC</td>
<td>C84573</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">13</td>
<td>AFC01-S50FCA-00</td>
<td>FPC1</td>
<td>FPC-SMD_AFC01-S50FCC-00</td>
<td align="right">1</td>
<td>AFC01-S50FCA-00</td>
<td>JS(钜硕电子)</td>
<td>LCSC</td>
<td>C262676</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">14</td>
<td>S8050_C20069125</td>
<td>Q1,Q2</td>
<td>SOT-23-3_L2.9-W1.3-P1.90-LS2.3-BR</td>
<td align="right">2</td>
<td>S8050</td>
<td>宏迦橙</td>
<td>LCSC</td>
<td>C20069125</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">15</td>
<td>1kΩ</td>
<td>R1,R11</td>
<td>R0603</td>
<td align="right">2</td>
<td>0603WAF1001T5E</td>
<td>UNI-ROYAL(厚声)</td>
<td>LCSC</td>
<td>C21190</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">16</td>
<td>10kΩ</td>
<td>R2,R3,R4,R5,R10</td>
<td>R0603</td>
<td align="right">5</td>
<td>0603WAF1002T5E</td>
<td>UNI-ROYAL(厚声)</td>
<td>LCSC</td>
<td>C25804</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">17</td>
<td>4.7kΩ</td>
<td>R6,R7</td>
<td>R0603</td>
<td align="right">2</td>
<td>0603WAF4701T5E</td>
<td>UNI-ROYAL(厚声)</td>
<td>LCSC</td>
<td>C23162</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">18</td>
<td>10Ω</td>
<td>R8,R9</td>
<td>R0603</td>
<td align="right">2</td>
<td>0603WAF100JT5E</td>
<td>UNI-ROYAL(厚声)</td>
<td>LCSC</td>
<td>C22859</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">19</td>
<td>SHT40-AD1B-R2</td>
<td>U2</td>
<td>DFN-4_L1.5-W1.5-P0.8</td>
<td align="right">1</td>
<td>SHT40-AD1B-R2</td>
<td>Sensirion(瑞士盛思锐)</td>
<td>LCSC</td>
<td>C2909890</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">20</td>
<td>SCD40-D-R2_C3659421</td>
<td>U3</td>
<td>LGA-20_L10.1-W10.1-P1.25-TL</td>
<td align="right">1</td>
<td>SCD40-D-R2</td>
<td>Sensirion(瑞士盛思锐)</td>
<td>LCSC</td>
<td>C3659421</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">21</td>
<td>SGP40-D-R4</td>
<td>U4</td>
<td>DFN-6_L2.4-W2.4-P0.80-TL-EP</td>
<td align="right">1</td>
<td>SGP40-D-R4</td>
<td>Sensirion(瑞士盛思锐)</td>
<td>LCSC</td>
<td>C2874215</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">22</td>
<td>SPX3819M5-L-3-3/TR</td>
<td>U6</td>
<td>SOT-23-5_L3.0-W1.7-P0.95-LS2.8-BL</td>
<td align="right">1</td>
<td>SPX3819M5-L-3-3/TR</td>
<td>MaxLinear(迈凌)</td>
<td>LCSC</td>
<td>C9055</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">23</td>
<td>STM32G030C8T6</td>
<td>U8</td>
<td>LQFP-48_L7.0-W7.0-P0.50-LS9.0-BL_1</td>
<td align="right">1</td>
<td>STM32G030C8T6</td>
<td>ST(意法半导体)</td>
<td>LCSC</td>
<td>C529329</td>
</tr>
<tr style="height: 14.00pt;">
<td style="height: 14.00pt;" align="right" height="28">24</td>
<td>8MHz</td>
<td>X1</td>
<td>OSC-SMD_4P-L3.2-W2.5-BL</td>
<td align="right">1</td>
<td>X32258MOB4SI</td>
<td>YXC(扬兴晶振)</td>
<td>LCSC</td>
<td>C2682775</td>
</tr>
</table>
<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;"> </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/37CRK51Xx2sW7YcOTOg2vIBcKnjoZl3qrUeKULhX.jpeg" alt="" width="566" height="438"></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;"><span style="color: #000000; font-size: 16px;">已上传以下视频:</span></p>
<p style="line-height: 1.8;"><span style="color: #000000; font-size: 16px;">立创电赛:《车载环境卫士》-想法来源介绍</span></p>
<p style="line-height: 1.8;"><span style="color: #000000; font-size: 16px;">立创电赛:《车载环境卫士》-功能介绍</span></p>
<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>
<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="font-size: 14px;"><a href="/posts/de460543d4cf4dacb5f0326612455578" target="_blank">前往查看更多详情 ></a></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>
</div>
评论(0)