Hacker News 中文摘要

RSS订阅

设计并组装我的第一块PCB -- Designing and assembling my first PCB

文章摘要

作者分享了自己首次设计并组装PCB的经历,从使用Arduino Nano ESP32开发板、通过Arduino IDE和命令行控制LED,到连接LCD和BME280传感器实现I2C通信,最终成功完成硬件原型搭建。

文章总结

首次PCB设计与组装经验分享

背景与动机
约两个月前,我购入了一块Arduino Nano ESP32开发板,出于对硬件的好奇心开始尝试。尽管我缺乏硬件经验(仅十多年前在物联网公司接触过固件),但凭借Arduino IDE和LLM的帮助,我很快实现了LED闪烁控制,并掌握了通过命令行编译和烧录固件的方法。随后,我添加了LCD屏幕和BME280温湿度传感器模块,通过I2C协议成功与ESP32通信。

从原型到定制PCB
为摆脱面包板原型阶段,我决定设计并制作自己的BME280传感器模块。目标是用自制的PCB替换市售模块,保持原有功能。我选择了开源工具KiCad进行原理图和PCB设计,参考BME280数据手册中的I2C连接图,绘制了原理图并分配了元件封装(如0805尺寸的SMD电阻电容)。PCB布局时,我通过顶层布线、底层接地填充及过孔连接,完成了紧凑设计。

元件采购与PCB制造
元件采购中,BME280芯片缺货,我直接从市售模块上拆解使用。其余电阻电容通过DigiKey购得。PCB文件(Gerber和钻孔文件)提交给JLCPCB生产,成本不到10美元,2-3周到货。

手工焊接与测试
我使用Hakko FX888DX焊台(650°F)和Quick 861DW热风枪(250°C,低风量)进行手工焊接。SMD元件(如0805电阻)通过焊膏和热风焊接,BME280芯片的底部8个焊点需小心避免短路。整个组装耗时约15分钟。

结果与展望
首次通电即成功!自制模块无需修改固件,直接替换市售模块工作。这次端到端体验增强了我的信心,未来计划将LCD、ESP32和BME280集成到单块PCB上,但需解决供电、烧录等复杂问题。尽管项目简单,但完整流程让我对硬件设计有了更深入的理解。

评论总结

根据评论内容,总结如下:

主要观点一:定制PCB制造进入黄金时代,成本低廉且功能先进。 - 评论1(Retr0id):“It's incredible how cheap it is to get custom PCBs made at prototype scale these days, even ones with advanced features. It feels like we're living in a golden era of custom manufacturing.” - 评论2(1024bits):“JLCPCB is often the manufacturer of choice with DIY PCBs, and the reputation is well deserved. I recommend them as well, have never had an issue with what they've made.”

主要观点二:DIY PCB存在痛点,包括物流慢、元件采购繁琐、自制传统被忽视。 - 评论4(dsign):“PCBs are very neat, but that shipping time is a boomer when you are prototyping and you really don't know what you are doing.” - 评论5(LoganDark):“I've been trying to make a PCB but it's just so annoying having to sift through pages and pages of listings in order to find each individual tiny component without minimum order quantities of hundreds or more.” - 评论3(dhosek):“OK, so people are ordering a custom PCB from China for a one-off? Whatever happened to making them at home? I remember my brothers doing this in the bathroom sink...”

主要观点三:设计细节与经验分享,强调接地、电源层、元件布局等优化。 - 评论7(enzo05814648):“Putting a GND pour on the top layer is a good idea. It's lower-impedance than individual skinny traces... A better approach would be to use the bottom layer for +3.3V power instead of a redundant ground pour.” - 评论7(enzo05814648):“Pull-up resistors are usually oriented vertically, too, so they graphically pull 'up'!”

主要观点四:个人成功案例与未来展望,如3D打印电路板。 - 评论6(bschwindHN):“From there on I've made various PCBs, and thankfully they've pretty much all worked on the first try. I do take a lot of extra time to verify the design and double check all the datasheets.” - 评论8(peter_retief):“I wish I could 3d print a board with all its components - instant gratification (which incidentally was one of my half baked projects).”