Calibration & Accuracy
TouchScale estimates mass by reading normalized 3D Touch strain-sensor output from Mobile Safari and applying an empirical linear calibration curve derived against a digital reference scale (documented in How It Works).
How WebKit Reports Force
In native iOS apps (UITouch), touch.force is normalized so that 1.0 represents the pressure of an average touch, up to maximumPossibleForce (6.66667). In Safari’s DOM Touch Events API, event.changedTouches[i].force is already divided by maximumPossibleForce, yielding a floating-point value in the interval [0.0, 1.0].
Because iOS scales this normalized value according to the user’s system-wide 3D Touch sensitivity setting, the ceiling weight at force = 1.0 and the minimum quantization step both change with sensitivity:
| iOS 3D Touch Setting | Multiplier | UITouch Step Granularity | Approximate Ceiling (force = 1.0) |
|---|---|---|---|
| Light | 0.8 |
0.0208333 (~1.0g step) |
~325g |
| Medium (iOS default) | 1.0 |
0.0166666 (~1.0g step) |
~405g |
| Firm | 1.2 |
0.0138888 (~1.0g step) |
~485g |
Conversion Formula
Given the summed normalized force across active touches, a stored tareForce offset, and the sensitivity multiplier m (0.8, 1.0, or 1.2), TouchScale computes weight in grams as:
var netForce = force - tareForce;
var grams = netForce * 405.257 * m + 2.056 * m;
if (grams < 12) {
grams -= 2.056 * m;
}
The 2.056 * m intercept compensates for the small activation deadband required before the capacitive glass registers initial deflection above ~12g, while keeping zero and near-zero readings anchored cleanly at 0.00g.
Weighing Non-Capacitive Objects with Tare
Because capacitive touch screens only register conductive objects (such as fruit, skin, or metal), dry non-conductive items will not trigger a touch event on their own. On a supported 3D Touch iPhone:
- Place a smooth, flat-bottomed conductive container (such as a small metal measuring cup with a microfiber cloth or thin paper layer underneath if needed, provided touch contact is still registered) inside the dashed weighing area.
- Wait one second for the reading to settle, or tap Tare while holding a constant reference pressure to zero out the baseline offset.
- Add the item into the conductive container without touching the glass with your fingers.
Sources of Error & Practical Limits
- Single vs. multi-point contact: TouchScale sums
forceacross active touch points, but iOS interpolates strain unevenly when multiple touches sit close together. Single-point centered contact produces the most repeatable readings. - Center vs. edge stiffness: Because the display glass is bonded around its perimeter frame, pressing near the border of the screen requires slightly more physical weight to produce the same backlight deflection as pressing dead center inside the dashed box.
- Capacitive baseline drift: iOS periodically recalibrates stationary touches that remain motionless for extended periods, believing them to be accidental palm contact. Taking readings promptly within 2–5 seconds of placing an object avoids drift reset.
- Screen safety: Never place hard, sharp, or abrasive objects directly on display glass, and never exceed the ~385g sensor ceiling, which simply saturates
Touch.forceat1.00. TouchScale is an experimental demonstration of 3D Touch hardware rather than a certified laboratory or kitchen instrument.