描述
<p><strong>1.实物图</strong></p>
<p><strong><img src="//image.lceda.cn/pullimage/VlRqoMRqTXC0JFswP15zKNJ8PWtuL8d8cAunswQq.jpeg" alt="" width="273" height="364"><img src="//image.lceda.cn/pullimage/qEhPdoqc4dbLAxuFvLSlUf6SB6aJkR7qwvzS589t.jpeg" alt="" width="364" height="273"></strong></p>
<p><strong>2.原理图</strong></p>
<p><strong> 1.电源输入与PD协议</strong></p>
<p><strong> <img src="//image.lceda.cn/pullimage/kVeAdV7EM32x0rHrqtINqQOnQlpDS55WlqsuBCn6.png" alt="" width="800" height="178"></strong></p>
<p><strong> 采用CH224K进行PD诱骗,用短接焊盘选择电压</strong></p>
<p><strong> 2.3V3/5V/12V供电</strong></p>
<p><strong> <img src="//image.lceda.cn/pullimage/JIECP0FyieiCjsUMWvF9XXOVWLifySASMcCEmF8t.png" alt="" width="800" height="268"></strong></p>
<p><strong> </strong><strong>TPS5430DDAR输入10~30V降压至5V,5V->12V给栅极驱动芯片供电,5V->3V3给MCU供电</strong></p>
<p><strong> 3.参考电压芯片</strong></p>
<p><strong> <img src="//image.lceda.cn/pullimage/rHBU9oWmk4GUgcj14KMkbEYbz83efVlaVKHzVkse.png" alt="" width="600" height="275"></strong></p>
<p><strong> 给MCU提供精确的参考电压</strong></p>
<p><strong> 4.运放采用电路</strong></p>
<p><strong> <img src="//image.lceda.cn/pullimage/MCgPMyNOWSdY41UZTVmL0XyTLICblUr59IMJTylC.png" alt="" width="900" height="303"></strong></p>
<p><strong> 输入采样</strong></p>
<p><strong> IRES_CY+采样输入电压(Vout=VIN*1/10),IRES_CY+/CY+采样输入电流(Vout=(IRES_CY+ - IRES_CY-)*50)</strong></p>
<p><strong> <img src="//image.lceda.cn/pullimage/PU12IcueQF0KTq3lcLZxysrYTXJUn8qy9R0NoW4x.png" alt="" width="800" height="283"></strong></p>
<p><strong> 输出采样</strong></p>
<p><strong> 和输入同理(<span style="color:#e03e2d">此采样电路出现异常,尚未解决,因此程序的CC模式没有完善</span>)</strong></p>
<p><strong> 5.栅极驱动</strong></p>
<p><strong> <img src="//image.lceda.cn/pullimage/qUqM6j9lMolWjOW1NedmL5zjDleEhcfXvEt4sro0.png" alt="" width="1303" height="485"></strong></p>
<p><strong> R26/R34为采用电阻,为了采样精度,对采样电阻焊盘做了一点处理,参考链接如下</strong></p>
<p><strong> https://www.analog.com/en/resources/analog-dialogue/articles/optimize-high-current-sensing-accuracy.html</strong></p>
<p><strong> R27~R31为负载,用于关闭电源后释放电容</strong></p>
<p><strong> U19及其附属电路用于开关U12,决定是否进行输出</strong></p>
<p><strong>3.MCU外围及其思路</strong></p>
<p><strong> 外围都是老生常谈,晶振,复位,按键,SWD,串口,LCD接口</strong></p>
<p><strong> 这次采用ADC,DAC,COMP,PWM来简易控制电压电流输出</strong></p>
<p><strong> STM32G431CBU6内置了4个COMP,这4个COMP可以硬件刹车PWM,非常高效,通过调整DAC可以控制COMP刹车的具体情况,我设计为输入4A,输出10A(但是因为采样运放电路有小毛病,所以未能实现)</strong></p>
<p><strong> ADC获取输入输出电压电流</strong></p>
<p><strong>4.测试</strong></p>
<p><strong> 1.3V3测试</strong></p>
<p><strong> <img src="//image.lceda.cn/pullimage/ho5KFloAjJNmmdlcSqbpYBpDE4I048N2uXfqm2JT.jpeg" alt="" width="480" height="272"></strong></p>
<p><strong> 3V3-1.5A</strong></p>
<p><strong> <img src="//image.lceda.cn/pullimage/va2mKOGif1MO6GLzF8ZeebrK5Ri5h26QrvJiTJ1i.jpeg" alt="" width="480" height="272"></strong></p>
<p><strong> 3V3-3A</strong></p>
<p><strong> <img src="//image.lceda.cn/pullimage/C7qSdY4AqUljb8rnMydEmUMwPo3YVgTGQlY7Sxlt.jpeg" alt="" width="480" height="272"></strong></p>
<p><strong> 3V3响应</strong></p>
<p><strong> 2.5V测试</strong></p>
<p><strong> <img src="//image.lceda.cn/pullimage/zwfSPNN3lPgpGsP8Z25KpjtlP7kvHUV1JoP85Bqe.jpeg" alt="" width="480" height="272"></strong></p>
<p><strong> 5V-1.5A</strong></p>
<p><strong> <img src="//image.lceda.cn/pullimage/ih7b5vwCnrW91VNBULrmr5g3V9NI0tGzHWn54mw6.jpeg" alt="" width="480" height="272"></strong></p>
<p><strong> </strong><strong> 5V-1A</strong></p>
<p><strong> <img src="//image.lceda.cn/pullimage/Zf1994N6XoSpHtKuxrnLG07YLJGn4jbKdqDYSX9a.jpeg" alt="" width="480" height="272"></strong></p>
<p><strong> 5V响应</strong></p>
<p><strong> 3.9V测试</strong></p>
<p><strong> <img src="//image.lceda.cn/pullimage/sxCteKKf8Tg07DuCPCmTKI5b7v5XLaLebx1SQzFA.jpeg" alt="" width="480" height="272"></strong></p>
<p><strong> 9V-1A</strong></p>
<p><strong> <img src="//image.lceda.cn/pullimage/ZHiQIRzERLqDfYTGSeDw5jXJUZuJK0tRnUSS0o5W.jpeg" alt="" width="480" height="272"></strong></p>
<p><strong> 9V响应</strong></p>
<p><strong> 4.12V测试</strong></p>
<p><strong> <img src="//image.lceda.cn/pullimage/k12Y6NYaa3tsxc7aApF4CKliBvAEN0zPsWxqrHIo.jpeg" alt="" width="480" height="272"></strong></p>
<p><strong> 12V-1A</strong></p>
<p><strong> <img src="//image.lceda.cn/pullimage/PqsdSQ9VvyS3RTDp5dKQyq6MD5sZgclOrFm0aJHW.jpeg" alt="" width="480" height="272"></strong></p>
<p><strong> 12V响应</strong></p>
<p><strong> 5.15V测试</strong></p>
<p><strong> <img src="//image.lceda.cn/pullimage/inLGMcbgFDcGjovsaFjZXRld0Gb8Ee0a7aK3H8hh.jpeg" alt="" width="480" height="272"></strong></p>
<p><strong> 15V-1A</strong></p>
<p><strong> <img src="//image.lceda.cn/pullimage/y3f5gqr95Bi1kl8YVGDiaULGYSnCKtUnpr3EOt4O.jpeg" alt="" width="480" height="272"></strong></p>
<p><strong> 15V响应</strong></p>
<p><strong> <span style="color:#e03e2d"> 由于接线不太好,噪声非常大,图中的尖峰基本上为噪声,后续测试,情况好很多</span></strong></p>
<p><strong>5.程序与视频</strong></p>
<p><strong>程序已上传至附件</strong></p>
<p><strong>视频:</strong><strong>https://www.bilibili.com/video/BV1iBtpeWEfe/</strong></p>
评论(0)