开源线性电容编码器:STM32 实现 40 微米级位移测量An Open Source Linear Capacitive Encoder


AI free token/AI免费积分
开源线性电容编码器:STM32 实现 40 微米级位移测量

如果你拆过数显卡尺,大概会为里面那颗完成全部测量工作的电容编码器赞叹不已。其实同样的技术你自己也能用——[Nick] 就展示了一款他自己设计的开源电容编码器。

传感 PCB 的原理是:在一块 PCB 上蚀刻八根发射天线组成网格,下方是一块更大的接收天线。发射天线在传感 PCB 移动时脉冲式发出图案,信号从固定不动的反射 PCB 上反弹回来。反射元件相对传感 PCB 的位置不同,电容随之变化,打到接收天线上的脉冲强度也随之变化。单片机——这里是 STM32——读取这些脉冲,就能以相当精细的程度确定传感 PCB 相对反射板的位移,本例中精度达到 40 微米,相当不错。

如果你在做的项目需要超精细的线性位移追踪,这个项目或许很有用。文件已发布在 GitHub 上,附有一篇很棒的原理讲解,详细解释电容耦合如何变成位置读数。你还可以研究我们此前报道过的廉价数显卡尺拆解,进一步充实自己的知识储备。如果你在打造自己的惊艳车间设备或其零部件,别忘了通过 tipsline 告诉我们!

(信息来源:Hackaday,2026-10-22)

本文来源:https://hackaday.com/2026/10/22/an-open-source-linear-capacitive-encoder/
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。

If you’ve ever pulled apart a set of digital calipers, you’ve probably marvelled at the capacitive encoder that does all the measuring work. There’s nothing stopping you from using the same techniques yourself, as [Nick] demonstrates with an open-source capacitive encoder of his own design.

The sensor PCB works by by having a grid of eight transmitting antennas, etched into a PCB, beneath a larger receiving antenna. The transmitting antennas pulse out a pattern as the sensor PCB moves, with the signals bouncing back from the reflector PCB which is fixed in place. The varying capacitance caused by the position of the reflector elements relative to the sensor PCB varies the strength of the pulses hitting the receiving antenna. A microcontroller—in this case an STM32—can read those pulses to determine the displacement of the sensor PCB relative to the reflector down to a very fine degree. In this case, to an accuracy of 40 micrometers. Not bad!

If you need ultra-fine linear tracking for something you’re building, you might find this project very useful. Files are available on Github for the curious, along with a great explainer on exactly how the capacitive coupling becomes a positional reading. You can also study previous teardowns we’ve featured on cheap digital calipers, just to round out your education further. If you’re working on your own impressive workshop equipment, or subcomponents of such things therein, don’t hesitate to let us know on the tipsline!

An Open Source Linear Capacitive Encoder

暂无评论,快来发表第一条评论吧!No comments yet. Be the first!

📮 需求咨询📮 Inquiry