描述
<h2>题目要求</h2>
<p><span class="colour" style="color:#999aaa;">使用N32G430为主控的多功能DC电源</span></p>
<h2>题目分析</h2>
<p><span class="colour" style="color:#999aaa;">提示:对整个题目或对主要部分题目内容进行分析说明</span></p>
<h2> </h2>
<p><span class="colour" style="color:#999aaa;"><br><img src="https://image.lceda.cn/images/2022-1/60a95ddd36204044a43bc9a6c62a828a.png" alt="image.png"></span></p>
<h2>原理图设计说明</h2>
<p style="text-align:center;">电压采集</p>
<p><img style="margin-left:auto;margin-right:auto;" src="//image.lceda.cn/pullimage/FxZKpL9xdDi20AWECzW2xLM9kKywo90QrezNrqje.png" alt="FxZKpL9xdDi20AWECzW2xLM9kKywo90QrezNrqje.png"></p>
<p style="text-align:center;"><img src="//image.lceda.cn/pullimage/C1klXuNmkEFvWvCI2AyQzoScgPlojqL0W71pQYy2.png" alt="C1klXuNmkEFvWvCI2AyQzoScgPlojqL0W71pQYy2.png"></p>
<p style="text-align:center;"><img src="//image.lceda.cn/pullimage/CUr9aH27caGZwIY7r0ZYIovtBZXiMs1DjtfLHHAq.png" alt="CUr9aH27caGZwIY7r0ZYIovtBZXiMs1DjtfLHHAq.png"></p>
<h2>PCB设计说明</h2>
<p><img src="//image.lceda.cn/pullimage/GTRt5rJfsb8jxSomRNtsBpn4yd4a80aquIqoIsOl.png" alt="GTRt5rJfsb8jxSomRNtsBpn4yd4a80aquIqoIsOl.png"></p>
<p style="text-align:center;">大电流部分采用150mil线宽且双层布线。</p>
<h2>软件说明</h2>
<p>void ADC_Initial(void)<br>{<br> ADC_InitType ADC_InitStructure;<br> <br> /* Enable peripheral clocks ------------------------------------------------*/<br> /* Enable GPIO ADC clock*/<br> RCC_AHB_Peripheral_Clock_Enable(RCC_AHB_PERIPH_GPIOA|RCC_AHB_PERIPH_GPIOB|RCC_AHB_PERIPH_GPIOC|RCC_AHB_PERIPH_GPIOD|RCC_AHB_PERIPH_ADC);<br> /* RCC_ADCHCLK_DIV16*/<br> ADC_Clock_Mode_Config(ADC_CKMOD_AHB, RCC_ADCHCLK_DIV16);<br> RCC_ADC_1M_Clock_Config(RCC_ADC1MCLK_SRC_HSE, RCC_ADC1MCLK_DIV8); //selsect HSE as RCC ADC1M CLK Source<br> <br> <br> /* ADC configuration ------------------------------------------------------*/<br> ADC_InitStructure.MultiChEn = DISABLE;<br> ADC_InitStructure.ContinueConvEn = DISABLE;<br> ADC_InitStructure.ExtTrigSelect = ADC_EXT_TRIGCONV_REGULAR_SWSTRRCH;<br> ADC_InitStructure.DatAlign = ADC_DAT_ALIGN_R;<br> ADC_InitStructure.ChsNumber = ADC_REGULAR_LEN_1;<br> ADC_Initializes(&ADC_InitStructure);</p>
<p> /* Enable ADC */<br> ADC_ON( );<br> /* Check ADC Ready */<br> while(ADC_Flag_Status_Get(ADC_RD_FLAG ,ADC_FLAG_AWDG ,ADC_FLAG_RDY) == RESET)<br> ;<br> /* Start ADC1 calibration */<br> ADC_Calibration_Operation(ADC_CALIBRATION_ENABLE);<br> /* Check the end of ADC1 calibration */<br> while (ADC_Calibration_Operation(ADC_CALIBRATION_STS) == SET)<br> ;<br>}</p>
<p> </p>
<p>uint16_t ADC_GetData(uint8_t ADC_Channel)<br>{<br> uint16_t dat;<br> ADC_Channel_Sample_Time_Config(ADC_Channel ,ADC_SAMP_TIME_55CYCLES5);<br> ADC_Regular_Sequence_Conversion_Number_Config(ADC_Channel, ADC_REGULAR_NUMBER_1);<br> /* Start ADC Software Conversion */<br> ADC_Regular_Channels_Software_Conversion_Operation(ADC_EXTRTRIG_SWSTRRCH_ENABLE);<br> while(ADC_Flag_Status_Get(ADC_RUN_FLAG ,ADC_FLAG_ENDC ,ADC_FLAG_RDY)==0){<br> }<br> ADC_Flag_Status_Clear(ADC_FLAG_ENDC);<br> ADC_Flag_Status_Clear(ADC_FLAG_STR);<br> dat=ADC_Regular_Group_Conversion_Data_Get();<br> return dat;<br>}</p>
<h2><code>
</code></h2>
<h2>实物展示说明</h2>
<p><img style="margin-left:auto;margin-right:auto;" src="//image.lceda.cn/pullimage/081GjmMeyYzGnVpqw5G9cfsOFzxEumf4Q2kw2qUu.jpeg" alt="" width="403" height="302"></p>
<p>OLED下方有两个电位器(烧毁了一个电位器,新的电位器快递还没到),可通过该电位器调节电压并显示到OLED上。</p>
<h2>注意事项</h2>
<p><span style="color:#999aaa;">OUT2部分电压最大值为12V。OUT1无限刷,最大可为电池电压。</span></p>
<h2>演示视频</h2>
<p><span class="colour" style="color:#999aaa;">提示:演示视频上传附件即可,附件最大只能长传50M的文件,大于50M的文件可放置在其他网盘或视频网站上,只需把地址链接放入这里即可</span></p>
<h2>其它附件上传</h2>
<p><span class="colour" style="color:#999aaa;">提示:参加活动的作品必须把工程相关的程序附件上传至开源平台或个人的代码存储云端,附件最大支持50M上传(请勿在立创工作区上传,有限制)<br></span></p>
评论(9)