Skip to main content
Back to Writing

Project Reflection

Designing the Information Before Designing the Algorithm

How sensor geometry creates directional information before a controller has to make a decision.

Context 3 min readUpdated
  • Solar Tracker
  • Sensor Geometry
  • Measurement
  • Embedded Control
In this article

A controller cannot reliably respond to a physical condition that its measurements fail to distinguish. This principle becomes surprisingly clear in a simple solar-tracking system.

Our Arduino-based prototype used two light-dependent resistors to determine which direction the tracker should move. The controller compared their readings and adjusted a servo toward the more strongly illuminated side.

The comparison itself required little computational complexity. The more interesting engineering problem was creating measurements that contained useful directional information.

Two measurements are not necessarily directional information

Consider two light sensors placed side by side under directional illumination. If their orientations and surrounding conditions are nearly identical, both may produce similar readings even when the light arrives predominantly from one side.

The controller can determine that light is present, but the measurements may provide insufficient evidence about its direction. Adding another sensor does not automatically make the desired physical property observable.

In our tracker, a divider between the sensors helped create a difference in illumination. When the light arrived at an angle, the divider shaded one sensor more than the other.

The physical geometry translated the direction of the light into a difference that the controller could interpret. Part of the information-processing task had therefore occurred before the software executed a single comparison.

Conceptual comparison of angled illumination on two adjacent light sensors. Without a divider both receive similar light. With the divider the downstream sensor is shaded.
Illustrative sensor geometry: a divider converts directional illumination into measurable contrast. Not measured sensor data.

The relationship between sensing and control

The controller also used a deadband to avoid unnecessary movement when the difference between the sensor readings was small.

A deadband is useful for preventing reactions to minor variations, but its effectiveness depends on the quality of the information reaching the controller. If the physical arrangement produces insufficient contrast, a large deadband may suppress meaningful directional information. If the threshold is too small relative to ordinary measurement variation, the system may respond unnecessarily.

The software parameter cannot be considered independently of the measurement system. Sensor placement, shielding, environmental conditions, and control logic collectively influence the tracking behavior.

A wider engineering principle

The solar tracker demonstrates a broader relationship between physical design and computation. In robotics, instrumentation, and automated systems, algorithms depend on measurements that reveal the properties they are intended to estimate or control.

A more sophisticated algorithm cannot guarantee the recovery of information that the available measurements do not contain. This does not mean software is less important than hardware. It means their responsibilities must be designed together.

Before deciding how an algorithm should process its inputs, an engineer should consider how those inputs are produced, what physical information they represent, and what ambiguity remains.

Sometimes the most valuable improvement to an algorithm begins outside the code.

All articles