Calibration means choosing a scale

A slider sends the same reading to two scales. The comparison shows where each bar responds and where it reaches its limit.

Technology and computing
A knob connected to a row of illuminated points.
A knob connected to a row of illuminated points. AI-generated illustration.

A cursor indicates 300. On the first indicator, a quarter of the bar is lit up, while on the second, half is lit. The input value is the same. The behaviour changes because with the second scale, I decided that the maximum value is reached first. Before asking the cursor if it’s giving the correct number, I want to understand what I asked the two indicators.

From 100 to what extreme?

In the test, the readings are concise and range from 0 to 1,000 units. I associate 100 with the minimum value of the bar in both mappings. For the first, I define the range from 100 to 900. For the second, the range is from 100 to 500. Between these extremes, the output increases linearly. The bar stops at 0 and 100% outside the range. Therefore, each reading has a defined outcome, even if it exceeds the maximum I had chosen.

With a 300 setting, I can view 200 out of the 800 available units, or 200 out of the 400 in the narrower range. A 25% and a 50% bar provide a clear visual representation without requiring further calculations. At 500, the second bar is full, and the first reaches 50%. If I increase the reading to 700, in the first case, I can still see the difference compared to 500. In the second case, I see an identical bar.

The Arduino documentation separates the scaling performed by map() from the limiting performed by constrain(). The map() function uses integer arithmetic and can produce values outside the target range. In the web application, I use division to limit the bar’s result, with rounding to the displayed number. This is a deliberate choice, made to allow for comparison between the two scales without the fill exceeding its limits. On the device, however, I might need to report the exceeding as an event.

Calibrating an instrument requires a reference, for example, two known physical conditions to which the readings can be associated. In this case, I can only confidently discuss the subsequent step, which involves mapping existing readings from the filling. Assuming identical synthetic readings, neither of the two scales has any advantage over the other in terms of being considered a measurement. The scale can be chosen based on what the user needs to be able to distinguish and use an independent comparison to determine whether the input value is measuring what we believe it is.

Two horizontal gauges with different fill levels.
Two horizontal gauges with different fill levels. AI-generated illustration.

The control also preserves the raw value.

You can hover the cursor over 300 and then move it to 500. I can then read both percentages together, and return to a value below 100 to see the lower limit. The starting number remains displayed even when one of the bars stops changing. If it disappeared, two very different readings might appear to be the same observation simply because they have the same visual outcome.

I left the cursor with increments of ten units. Trying values of 490 and 510 makes it easier to find the edge of the saturation of the second bar. If the graph shows a rounded percentage, even two very close readings may appear the same before that edge. The raw value still allows you to notice this. In a more refined test, I should decide whether the reading resolution and the output resolution are worth declaring together.

One synthetic reading, two scales

Examples of the two mappings
Raw readingScale 100–900Scale 100–500
00%0%
30025%50%
50050%100%
70075%100%
900100%100%

A useful bar for showing small differences should be chosen with consideration for the area it needs to leave space for. I imagine an installation where a hand rests on it. If I can achieve a visible change even at the beginning of the pressure, the gesture is easy to find. When the signal exceeds the upper limit, the response remains static, and the rest of the pressure loses its meaning. Another scale could have a less obvious starting point and leave more room for someone who wants to modulate the gesture. The test focuses on this aspect of relinquishment. The fictional units do not describe a force or a specific sensor.

In a real-world system, I also need to understand what constitutes a gesture. A brief fluctuation around the lower limit could cause a bar to appear and disappear around zero. It is possible to average the readings over time, or to choose two distinct thresholds for entering and exiting a state. These are different from simply choosing an interval. If I hide them within the same word, “calibration,” it becomes more difficult to determine why a hand was recognized late.

Sometimes it’s useful to ask the two extremes what they represent. In our comparison, they don’t have a history beyond the chosen values. In a physical table, the minimum could correspond to an empty panel, and the maximum to a repeatable pressure, defined with a declared reference. Readings of the vacuum on different days could change. I would keep the initial measurements, the method used to obtain them, and the chosen ranges, before establishing a scale for a second day. This is a process of verifying the instrument, which is different from calibrating its behaviour.

Excess may mean something

For decorative lighting, I can set the value to its maximum and allow the saturation to go unnoticed. However, if the bar represents the quality of a reading, a simple full can make the improvement itself invisible. The raw value next to it avoids any confusion for those with access to the controls. For those who only see the output, a clear signal would be needed. Even a value below 100 deserves a similar decision, especially when the input is disconnected and the device returns a number that seems valid.

Another possible approach could involve a slower increase near the minimum and a faster increase towards the maximum. Before trying this, I would keep the extremes fixed. Changing both the shape of the curve and the maximum value simultaneously would make it unclear where the new sensation comes from. The linear comparison leaves the leverage visible without forcing its use every time. We need to change one thing at a time to understand which part of the gesture we have altered.

This demonstrates how a difference in input can still translate into a difference in the user experience. Moving the cursor to 900 fills both bars. Returning to 700 creates space in only one. This small experiment helps me to discuss the sensitivity of the system with others, without assuming that more sensitivity is always better. First, I would decide which action or piece of information we want to allow to change.

Two horizontal gauges with different fill levels.
Two horizontal gauges with different fill levels. AI-generated illustration.