标准版
#第七届立创电赛#智能台灯

创建时间:2年前

8781 5

描述

<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> <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;">* 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;">本设计是一个基于N32G430C8L7设计的智能台灯。功能有1、台灯的开关,,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" 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;">*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;"> </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;">GPL 3.0</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;">*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;">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" style="line-height:1.8;">采样4颗150ma的暖黄灯珠</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;">2、控制板</p> <ul><li 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;">电流源电路</li> <li 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;">N32G430最小系统</li> <li 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;">ina180电流检测电路</li> <li 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;">电源采集电路</li> <li 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;">编码器电路</li> <li 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;">nmos开关电路</li> </ul><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;">*5、软件部分</h3> <hr class="horizontal-splitline normal-bold-2"><p>编译环境 keil 5.37</p> <p>烧录方式:使用DAPLINK直接在keil软件里面在线烧录</p> <p>底层驱动:</p> <p>PWM -- nmos开关电路控制</p> <p>ADC双通道 --- 一路采集INA180的out,一路采集电源分压电阻后的电压</p> <p>EXTI --- 编码器旋钮</p> <p>GPIO --- 编码器按键</p> <p>应用层逻辑:</p> <p>首次上电,</p> <p>20ms调度一次编码器按键检测,判断是否按下,按下第一次执行关灯,下一次执行开灯。关灯时会保存当前的亮度值,下一次开灯会恢复关灯前的亮度。</p> <p>100ms调度一次电源电压检测</p> <p>10ms调度一次电流监测</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;">20ms调度一次获取编码器转向,正向亮度增加,反向减小</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;">10ms调度一次pid算法,利用计算出来的电流值反馈调节pwm的占空比</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;">100ms调度一次功率检测,</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;"> </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"><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/rzzyrVYnuY4pju453AOidbJrQKShqpr9ECqcvkpQ.jpeg" alt="" width="757" height="478"></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> <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;"><img src="//image.lceda.cn/pullimage/RCf1s4uRd2f2c0nPMJu9JxPCjWw4M5Zv74036f5L.jpeg" alt="" width="303" height="242"></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> </div>

文档

n32控制板

PCB_#第七届立创电赛#智能台灯

BOM

ID Name Designator Footprint Quantity Manufacturer Part Manufacturer Supplier Supplier Part
1 104 C1,C2,C3,C5,C6,C7,C8,C11,C12,C13,C16,C18 C0603 12
2 106 C4,C15 C0603 2
3 12P C9,C10 C0603 2
4 105 C14 C0603 1
5 4.7UF C17 C0603 1
6 SD103AW S4 D1 SOD-123_L2.7-W1.6-LS3.7-RD-1 1
7 HDR-F-2.54_1x4 H1 HDR-F-2.54_1X4 1
8 HDR-F-2.54_1x3 H2 HDR-F-2.54_1X3 1
9 AO3400_C841146 Q1 SOT-23-3_L2.9-W1.3-P1.90-LS2.4-BR 1
10 4.7k R2 R0603 1
11 100k R3 R0603 1
12 1k R4,R5,R6,R7 R0603 4
13 0.01Ω R8 R2512 1
14 4.7K R9 R0603 1
15 10k R10 R0603 1
16 30K R11 R0603 1
17 EC11E09444A8 SW3 SW-TH_EC11E09444A8 1
18 M3铜柱 TP1,TP2,TP3,TP4 M3铜柱 4
19 N32G430C8L7 U1 LQFP-48_L7.0-W7.0-P0.50-LS9.0-BL 1
20 KF301-5.0-2P U2 CONN-TH_P5.00_KF301-5.0-2P 1
21 AMS1117-ADJ_C963410 U3 SOT-89-3_L4.5-W2.5-P1.50-LS4.2-BR 1
22 INA180A2IDBVT U4 SOT-23-5_L3.0-W1.7-P0.95-LS2.8-BR 1
23 KH-TYPE-C-16P USB1 USB-C-SMD_KH-TYPE-C-16P 1
24 - X1 OSC-SMD_4P-L5.0-W3.2-BL 1

附件

附件名 下载
202208232336.mp4
TIM_PWM_Output.hex

评论(2)

  • 表情
    emoji
    小嘉工作篇
    小嘉日常篇
  • 图片
成功
工程所有者当前已关闭评论
立创电赛 回复
<p>板子上记得打立创电赛logo哟~</p>
yang_alex 回复
<p>支持一下。</p>
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