Back to Automation & Control

Automation Fundamentals

Finding the Sun: Calculation Versus Light Sensors

Compare solar-position prediction with measurement from a partitioned dome.

  • By MySunDirection
  • 15 min read
Share this explanation
One-minute answer

You must choose between real alternatives covered by “Finding the Sun: Calculation Versus Light Sensors” for a defined machine, circuit or installation.

Compare time-and-location solar-position calculation with differential light sensing, including calibration, cloud, reflections, noise, mechanical position knowledge and hybrid control.

Select or check first
Define the required outcome, operating conditions and exact component or system boundary before choosing a part or method.
Controlling assumption
Sensors, controller logic, actuator limits, timing, fault response and environmental conditions are defined together.
Top risk
Sun sensing is not a safe-limit system. Optical channels can fail together or be deceived by the environment. Travel limits, wind stow, collision avoidance and maintenance safety need independent risk-based measures. Never let a brightness comparison override a hard mechanical or safety constraint.
Proof
Check the exact manufacturer data, units and limits, then verify the result by calculation, measurement or a controlled acceptance test.
Start with the basics Optional foundation before “Finding the Sun: Calculation Versus Light Sensors”

Automation-and-control basics

An automatic system measures a condition, decides what it means and commands an actuator while checking whether the expected result actually happened.

Sensor
A sensor converts a physical condition into a signal. Its range, uncertainty, response time, environment and failure behaviour matter as much as its nominal output.
Controller
A controller reads inputs, applies logic or a control law and issues outputs. Software cannot correct missing measurements, inadequate hardware authority or unsafe architecture.
Actuator
An actuator turns a command into physical action, such as motor torque, valve position or switching. Its real limits depend on load, supply, drive and duty.
Feedback
Feedback compares measured behaviour with the desired state so error can be corrected. Open-loop command assumes the action occurred; closed-loop control checks it.
Fault and safe state
A fault is an abnormal condition that may invalidate control. The safe response must be defined from the hazard and may require independent hardware, not only software.

How to use this article: Trace one complete chain—physical condition, sensor, signal conditioning, controller, drive, actuator and feedback—then ask how each link can fail.

On this page
  1. Calculation and measurement answer different questions
  2. Partitions turn light imbalance into a direction estimate
  3. A hybrid controller can let each method do its best job

A tracker can aim from a predicted solar position, from measured light direction, or from both. Prediction uses time, location and an astronomical model; it can provide a target even when the Sun is hidden. A light sensor observes its local optical environment; it can correct installation offsets but may follow a bright reflection, cloud edge or partial shadow. The better architecture depends on the error budget and failure behavior, not on declaring one method universally superior.

Calculation and measurement answer different questions

The calculated direction describes where the Sun should be; the optical measurement describes how light reaches the local sensor. Comparing them exposes different errors.
Diagram description

The diagram is architectural and does not prescribe a specific fusion algorithm.

Know what each source depends on
QuestionCalculated positionLight-direction measurement
InputsAccurate time, coordinates and solar-position algorithmSensor signals, optics, calibration and local illumination
Works through cloud?Still returns geometric directionMay lose directional contrast or follow diffuse brightness
Installation-offset awarenessOnly if coordinate alignment is calibratedCan reveal optical/mechanical offset relative to local light
Affected by reflection/shadowNo direct optical effectYes—nearby surfaces, dirt and partial shading can bias it
Long-term driftClock/location/configuration errorsSensor ageing, gain mismatch, contamination and mechanical shift
Best diagnosticCompare predicted angle with calibrated machine positionInspect total light, channel balance and plausibility

NREL's Solar Position Algorithm is a documented high-accuracy method for solar zenith and azimuth from time and location. That algorithmic accuracy is not the same as tracker pointing accuracy: clock error, coordinates, axis alignment, structural deflection, backlash and position-sensor calibration still lie between the computed Sun vector and the panel plane.

Partitions turn light imbalance into a direction estimate

Internal walls create directional shading. Channel differences can estimate direction after calibration; the shown values are arbitrary teaching data, not measurements.
Diagram description

The plate warns to calibrate sensors and check misleading reflections.

Normalized differential signal

d_x = (S_right − S_left) / (S_right + S_left)

Normalization can reduce sensitivity to overall brightness, but only when the sum is sufficiently above noise and the paired channels are calibrated. A similar top-bottom signal can estimate a second direction. Geometry maps these signals to angles and may be nonlinear.

d_x
dimensionless left-right imbalance
S_right
calibrated right-side light signal
S_left
calibrated left-side light signal
A direction estimate needs a confidence estimate
ConditionWhat readings may doControl response to design
Uniform overcastAll channels become similar and directional contrast fallsHold calculated target or park according to policy
Cloud edgeBright localized scattering can pull the estimateFilter, rate-limit and compare with predicted direction
ReflectionOne zone becomes bright from the wrong directionPlausibility window and site optical review
Partial dirt or shadowPersistent channel biasCalibration check and maintenance alarm
Low Sun or obstructionLow signal and changing geometryMinimum-signal confidence threshold
Sensor saturationDifferences collapse or clipDetect rail values and reject invalid correction

A hybrid controller can let each method do its best job

A robust pattern uses calculation as the wide-range reference and accepts optical correction only when signal level, contrast and disagreement are plausible. The correction is bounded so a reflection cannot command a large excursion. At commissioning, measured machine position establishes axis zero and orientation; during operation, the controller records predicted angle, sensor correction, actual axis position and confidence. At night or severe weather it follows an explicit park strategy rather than chasing noise.

Correction requires evidence
CheckReason
Total sensor level above thresholdDirection is unreliable near the noise floor
No channel clippedSaturation invalidates relative differences
Difference within calibrated fieldOptical mapping is not valid everywhere
Disagreement with prediction boundedRejects reflection and gross faults
Machine position validA correct Sun estimate cannot correct an unknown axis coordinate
Wind and mechanical limits satisfiedPointing command must remain subordinate to equipment protection

The predicted daily geometry is introduced in How the Sun Moves Across Your Solar Roof. The control distinction between a target and actual axis position is developed in Open-Loop Commands Versus Real Feedback.

Selection boundary and evidence to keep with the decision

Treat “Finding the Sun: Calculation Versus Light Sensors” as a selection problem, not only a definition. Record the required result, alternatives considered, the controlling assumption and the condition that would change the choice.

Keep evidence proportional to consequence: Check the exact manufacturer data, units and limits, then verify the result by calculation, measurement or a controlled acceptance test. Revisit the decision when the load, environment, duty, interface, regulation or maintenance plan changes.

One-minute questions

Questions to answer before you apply this lesson

What should I select or check first for Finding the Sun: Calculation Versus Light Sensors?

Define the required outcome, operating conditions and exact component or system boundary before choosing a part or method.

Which assumption can change the conclusion?

Sensors, controller logic, actuator limits, timing, fault response and environmental conditions are defined together.

What can go wrong if I copy the example directly?

Sun sensing is not a safe-limit system. Optical channels can fail together or be deceived by the environment. Travel limits, wind stow, collision avoidance and maintenance safety need independent risk-based measures. Never let a brightness comparison override a hard mechanical or safety constraint.

How do I verify the result in the real system?

Check the exact manufacturer data, units and limits, then verify the result by calculation, measurement or a controlled acceptance test.

Sources and further reading

  1. Solar Position Algorithm for Solar Radiation ApplicationsNational Renewable Energy Laboratory · 2026-10-13Primary NREL technical report reviewed for time/location-based solar zenith and azimuth calculation and stated algorithm scope.
  2. Solar Resource Data and ToolsNational Renewable Energy Laboratory · 2026-10-13Official tool catalogue reviewed for SPA, SAMPA and SOLPOS roles.
Educational image