Skip to main content
Hardware & Sensors
← Return to Counter Tool

Capacitive Touch Counter

Tally detected capacitive activations.

Live Counter

Tap, click or press Space to keep count.

0

Tap anywhere inside or press Space

CPS: 0.0•Peak: 0
Step:

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.

  1. Connect the sensor: Use a capacitive module, such as a TTP223 pad or an MPR121 board, or a microcontroller touch pin.
  2. Read the baseline: The tool records the untouched reading as the baseline.
  3. Set the threshold: Set the change that counts as a touch, such as 30% above baseline.
  4. 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.

Touch = (Reading − Baseline) > Threshold | C = ε₀ × εᵣ × A ÷ d
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 materialRelative permittivity (εᵣ)1 mm (0.04 in) cover3 mm (0.12 in) cover
Air gap1.00.9 pF0.3 pF
Acrylic (PMMA)2.72.4 pF0.8 pF
Polycarbonate2.92.6 pF0.9 pF
Glass6.05.3 pF1.8 pF
Wood (dry)2.01.8 pF0.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