描述
<p><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;">注:<em> 为必填项</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>
<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;"></em> 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;"> </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;">作品的主控电路采用了STM32G030,搭配了传感器模块等多个模块,可实现测量环境的温度和湿度。</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;"><em>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;"> </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;">原创,未获奖,未答辩</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>
<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;"></em> 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;"> </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;">public</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> </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;"><strong><span style="color: #0093e6;">请在竞赛阶段填写 ↓</span></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;"> </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;"><em>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;"><img src="//image.lceda.cn/oshwhub/f6dc990ccfdb43399bfa66d9a1503470.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;"><img src="//image.lceda.cn/oshwhub/990d9968362c424d8695d750325fca45.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;"></em>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>
<div>#include "main.h"</div>
<div>#include "gpio.h"</div>
<div> </div>
<div>void SystemClock_Config(void);</div>
<div> </div>
<div>int main(void)</div>
<div>{</div>
<div>//HAL¿â³õʼ»¯</div>
<div> HAL_Init();</div>
<div>//ϵͳʱÖÓ³õʼ»¯</div>
<div> SystemClock_Config();</div>
<div>//GPIO³õʼ»¯</div>
<div>Init_GPIO();</div>
<div> while (1)</div>
<div> {</div>
<div> </div>
<div> }</div>
<div> </div>
<div>}</div>
<div> </div>
<div>/<strong></div>
<div> <em> @brief System Clock Configuration</div>
<div> </em> @retval None</div>
<div> */</div>
<div>void SystemClock_Config(void)</div>
<div>{</div>
<div> RCC_OscInitTypeDef RCC_OscInitStruct = {0}; //¾§ÕñʱÖÓ³õʼ»¯½á¹¹Ìå</div>
<div> RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; //×ÜÏßʱÖÓ³õʼ»¯½á¹¹Ìå</div>
<div> </div>
<div> //ÅäÖÃÖ÷ÄÚ²¿ÎÈѹÆ÷Êä³öµçѹ</div>
<div> HAL_PWREx_ControlVoltageScaling(PWR_REGULATOR_VOLTAGE_SCALE1);</div>
<div> </div>
<div>//³õʼ»¯Íⲿ¾§Õñ¸ù¾ÝÖ¸¶¨µÄ²ÎÊý£¬ÔÚ¾§ÕñʱÖÓ³õʼ»¯½á¹¹ÌåÉÏ</div>
<div> RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI; //Ñ¡ÔñHSIʱÖÓ-16Mhz</div>
<div> RCC_OscInitStruct.HSIState = RCC_HSI_ON; //¿ªÆôHSIʱÖÓ</div>
<div> RCC_OscInitStruct.HSIDiv = RCC_HSI_DIV1; //HSI²»·ÖƵ</div>
<div> RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT; //HSIУ׼ֵ</div>
<div> RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; //¿ªÆôPLL</div>
<div> RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI; //PLLÔ´À´×ÔHSI</div>
<div> RCC_OscInitStruct.PLL.PLLM = RCC_PLLM_DIV1; //PLL VCOÊäÈëʱÖӵķÖƵÒò×Ó</div>
<div> RCC_OscInitStruct.PLL.PLLN = 8; //PLL VCOÊä³öʱÖӵı¶ÆµÒò×Ó£¬8±¶Æµ 16*8 = 128Mhz</div>
<div> RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2; //PLL2·ÖƵ£¬Êä³ö²»Äܳ¬¹ý64M£¬</div>
<div> RCC_OscInitStruct.PLL.PLLR = RCC_PLLR_DIV2; //PLLÊä³ö¸øϵͳʱÖÓ×ÜÏߣ¬²»³¬¹ý64Mhz£»</div>
<div> if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) //µÈ´ýÅäÖÃÍê³É</div>
<div> {</div>
<div> Error_Handler();</div>
<div> }</div>
<div> </div>
<div> /</strong> Initializes the CPU, AHB and APB buses clocks</div>
<div> */</div>
<div> RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK</div>
<div> |RCC_CLOCKTYPE_PCLK1; //×ÜÏßʱÖÓÀàÐÍ£¬ÏµÍ³Ê±ÖÓ£¬AHB¡¢APBʱÖÓ</div>
<div> RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; //ϵͳʱÖÓÖ±½ÓÀ´×ÔPLLʱÖÓ</div>
<div> RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; //AHB×ÜÏßʱÖÓ²»·ÖƵ</div>
<div> RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1; //APB1×ÜÏß²»·ÖƵ</div>
<div> </div>
<div> if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK) //µÈ´ýÅäÖÃÍê³É</div>
<div> {</div>
<div> Error_Handler();</div>
<div> }</div>
<div>}</div>
<div> </div>
<div>/*<em></div>
<div> </em> @brief This function is executed in case of error occurrence.</div>
<div> <em> @retval None</div>
<div> </em>/</div>
<div>void Error_Handler(void)</div>
<div>{</div>
<div> /<em> USER CODE BEGIN Error_Handler_Debug </em>/</div>
<div> /<em> User can add his own implementation to report the HAL error return state </em>/</div>
<div> while(1) </div>
<div> {</div>
<div> }</div>
<div> /<em> USER CODE END Error_Handler_Debug </em>/</div>
<div>}</div>
<div> </div>
<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;"><em>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;"> </p>
<p><img style="max-width: 100%;" src="//image.lceda.cn/oshwhub/199694ea87d24f4591a1781455d6b0f5.png" alt="IMG_256" /></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;"> </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;"></em>7、大赛LOGO验证</h3>
<hr class="horizontal-splitline normal-bold-2" />
<p style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/L9BIQOorCci2ujcigNugU1xR7VYGuqdqXzvRoS5V.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;"> </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>
<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;"><a title="实物演示视频" href="<a href="https://share.weiyun.com/fX45aV7p%22>https://share.weiyun.com/fX45aV7p</a></p" target="_blank">https://share.weiyun.com/fX45aV7p">https://share.weiyun.com/fX45aV7p</a></p</a>>
</div></p>
评论(0)