认识TP223电容式触摸传感器Getting To Know The TP223 Capacitive Touch Sensor


AI free token/AI免费积分
认识TP223电容式触摸传感器

如今,机械开关因容易损坏而显得过时;而且,人们已经习惯了在手机和其他设备上使用触摸屏。那么,为何不在下一个项目中使用触摸传感器呢?[Tarantula3]详细介绍了如何用TP223替代普通开关。

这些廉价模块可透过塑料、玻璃或木材工作,为前面板设计打开了许多有趣的可能性。当然,模块上方表面越厚,开关灵敏度越低,但这并不总是坏事;尤其在某些情况下,你可能本就希望降低灵敏度。加厚面板、缩小触摸垫尺寸或添加外部电容,都可以减小传感器的感应范围。

你可能会担心大量电子开关会耗尽电池。但据[Tarantula3]介绍,这些模块在待机状态下耗流不足2微安。你可以用我们最喜爱的“脚本语言”——焊锡——来配置模块。模块上有两个跳线,初始状态未焊接,从而形成四种可能状态。默认情况下,当有人触摸传感器时输出变高,并在松开前一直保持高电平。

不过,焊接跳线A可使输出反相。跳线B则使开关输出在每次按下时翻转。当然,也可以同时处理两个跳线,从而实现翻转,同时默认状态相反。如果出现误触发,可考虑添加一个小电容,对模块供电进行滤波。

这些模块非常适合在3D打印设计中直接嵌入,以便添加开关功能。稍加改造,你甚至可以将它们用作电源开关。

本文来源:https://hackaday.com/2026/10/09/getting-to-know-the-tp223-capacitive-touch-sensor/
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。

Mechanical and prone to failure, switches can seem quaint these days. Plus, everyone is used to having touch screens on their phones and other devices. So why not use touch sensors on your next project? [Tarantula3] has details on using the TP223 instead of ordinary switches .

These inexpensive modules work through plastic, glass, or wood, opening up many interesting possibilities for building a front panel. Of course, the thicker the surface above the module, the less sensitive the switch is, but that’s not always a bad thing. In particular, you may want to reduce sensitivity anyway. Thicker panels, reducing the size of the touch pad, or adding an external capacitor can reduce the sensor’s range.

You may be worried about eating up batteries with a bunch of electronic switches. But according to [Tarantula3], the modules consume less than 2 microamps at rest. You can configure the modules with our favorite scripting language: solder. There are two jumpers, initially unsoldered, and this results in four possible states. By default, the output goes high when someone is touching the sensor and stays high until they release.

Getting To Know The TP223 Capacitive Touch Sensor

However, you can solder jumper A to invert the output. Jumper B causes the switch output to toggle on each press. Of course, you can also do both jumpers, which toggles but has the opposite default state. If you get false triggers, consider adding a small capacitor to filter the power supply to the module.

These would be great “drop ins” for 3D printing to add switches to your designs. You might even be able to use these as power switches with a little work .

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

📮 需求咨询📮 Inquiry