Capacitive Touch Counter
Tally detected capacitive activations.
Tap, click or press Space to keep count.
Tap anywhere inside or press Space
How the Capacitive Touch Counter Works
The Capacitive Touch Counter tallies activations detected by a capacitive sensor, which senses the change in capacitance when a finger comes near or touches an electrode. A reading above the set threshold counts as 1 activation.
- Connect the sensor: Use a capacitive module, such as a TTP223 pad or an MPR121 board, or a microcontroller touch pin.
- Read the baseline: The tool records the untouched reading as the baseline.
- Set the threshold: Set the change that counts as a touch, such as 30% above baseline.
- Count activations: Each crossing of the threshold from below adds 1.
Capacitive Touch Counter Formula
The Capacitive Touch Counter detects a touch when the reading minus the baseline exceeds the threshold. A parallel-plate model gives the capacitance a finger adds.
- Reading, Baseline
- Current and untouched sensor values
- C
- Capacitance in farads
- ε₀
- 8.854 × 10⁻¹² F/m
- εᵣ
- Relative permittivity of the cover material
- A, d
- Overlap area and distance between finger and electrode
Example: A finger area of 1 cm² (1 × 10⁻⁴ m²) over a 1 mm (0.001 m) acrylic cover with εᵣ = 2.7 adds C = 8.854 × 10⁻¹² × 2.7 × 10⁻⁴ ÷ 0.001 = 2.4 pF.
Capacitive Touch Counter Reference Table
The Capacitive Touch Counter conversion table shows how cover material and thickness change the added capacitance for a 1 cm² touch.
| Cover material | Relative permittivity (εᵣ) | 1 mm (0.04 in) cover | 3 mm (0.12 in) cover |
|---|---|---|---|
| Air gap | 1.0 | 0.9 pF | 0.3 pF |
| Acrylic (PMMA) | 2.7 | 2.4 pF | 0.8 pF |
| Polycarbonate | 2.9 | 2.6 pF | 0.9 pF |
| Glass | 6.0 | 5.3 pF | 1.8 pF |
| Wood (dry) | 2.0 | 1.8 pF | 0.6 pF |
About the Capacitive Touch Counter
A Capacitive Touch Counter is a hardware counter that tallies touches sensed by a change in capacitance. Capacitive sensing is the same principle behind phone touchscreens.
A finger adds only a few picofarads (pF), so cover thickness and material matter. Thinner covers and higher-permittivity materials such as glass give stronger signals and more reliable counts.
Ways to Use the Capacitive Touch Counter
There are 5 main uses of the Capacitive Touch Counter, including hidden touch buttons and interactive art.
- Hidden touch buttons: Designers place sensors behind wood or acrylic panels.
- Interactive art: Artists count touches on conductive paint or foil.
- Fruit pianos: Students count touches on fruit wired to a board.
- Waterproof controls: Engineers count touches through sealed covers.
- Sensor tuning: Makers test thresholds before building a product.
Tool Details
- Category
- Hardware & Sensors
- Controls
- Taps and keys
- Input Support
- Touch, Pen, Mouse, Keys
- Offline Ready
- On your device