What happens between light reaching a photosite and the number recorded in the file? To understand this, I follow that path using the Raspberry Pi HQ and EIP, my embedded imaging platform. Astronomy provides a testbed here; the questions also apply to a camera used as a measuring instrument.
Summary report — IMX477 characterisationMeasurements, figures and conclusions from the EIP campaign. Read the PDF report1. Twelve megapixels: what else matters?
The Raspberry Pi High Quality Camera, introduced on 30 April 2020, combines a 12.3-megapixel Sony IMX477 with a C/CS lens mount. It lets you choose optics rather than being limited to a small fixed lens.

Counting pixels does not tell us how much light they can measure, what noise readout adds, when they stop distinguishing intensities, or what appears in darkness. Do all pixels behave alike? That is why I characterised this camera: to measure its capabilities and limitations within this acquisition chain. The results therefore do not describe every IMX477.
2. Light fills a tiny container
Imagine a small container beneath each point in the image. Light can generate electrical charge that accumulates during the exposure. This container represents a photosite. Not every received photon necessarily creates measurable charge: the process is probabilistic, not a rule that one photon equals one electron.
Increasing illumination or duration can accumulate more charge. Beyond a limit, the chain no longer distinguishes a further increase in signal: it saturates. That ceiling matters for very bright objects.
3. 12 bits and 12 megapixels are different things
The same number, two jobs. Megapixels count image points; bits describe how the value recorded at each point is encoded.
The RAW (raw data) file preserves raw values before colour rendering and display settings. Here, 12 bits provide 4096 possible values, from 0 to 4095. This describes each sample's encoding, not the image's pixel count.
One ADU is a unit of the recorded digital value: it stands for Analog-to-Digital Unit. It is neither an electron nor a quantity of light on its own.
In this chain, reference black is not zero but approximately 256 ADU. This offset, called the black level, reserves encoding headroom. Above it, the nominal range is 4095 − 256 = 3839 ADU.
4. From electrons to numbers
We now need to relate a change in recorded value to a change in charge. The link is the conversion gain, written K, in electrons per ADU: e⁻/ADU.
At analogue gain 1, the campaign fit gives K = 2.3271 ± 0.0011 e⁻/ADU. A change of one ADU therefore represents about 2.3 electrons here. This coefficient depends on the setting and chain; it is not independent of gain.
To measure it, I compare mean signal and fluctuations in illuminated frames. This method is the photon transfer curve (PTC). The Scientific version explains the fitted line and which levels are retained.
5. Even in darkness, readings fluctuate
Imagine repeated readings of a constant level: 256, 257, 255, 256… This is an illustration, not a series taken from the data. Readings do not return exactly the same number each time.
Some fluctuations come from the electronics reading the sensor: this is read noise. But not all image dispersion is read noise; light, dark charge and common variations can also contribute. Short dark exposures and suitable comparisons are needed to isolate it.
At gain 1, the campaign measures 1.512 ADU, or about 3.52 e⁻ of read noise.
6. Between the floor and the ceiling
At the bottom, faint signal merges with readout fluctuations. At the top, a strong signal reaches saturation. Between them lies a usable range: the dynamic range describes the ratio of that ceiling to read noise.
Effective capacity inferred from observed saturation is about 8,310 e⁻ at gain 1. It describes the usable limit of this measurement chain, not a universal physical capacity of the silicon.
Dividing it by read noise gives a dynamic range of 11.21 stops. Each stop represents a factor of 2: gaining one stop doubles that ratio. The file's 12 bits and the 11.21 stops therefore describe different things.
These quantities depend on conversion gain and observed saturation. They inherit the measurement's uncertainties and limitations; they are not guarantees for all HQ cameras.
7. Raising gain: a trade-off, not a miracle
Increasing analogue gain amplifies the signal before encoding. The campaign tested eight levels. Fewer electrons then correspond to one ADU; electron-referred read noise falls from about 3.52 to 1.67 e⁻ between the tested extremes.
In return, saturation headroom and dynamic range decrease in this chain. Gain does not create missing photons: it changes the trade-off between readout sensitivity and usable ceiling.
Try the gain control
Read noise falls, but the saturation ceiling drops much faster.
in stops above the noise
- 1 ADU represents
- 2.33 e⁻Conversion gain K
- Read noise
- 3.52 e⁻As gain rises, the noise floor falls slightly.
- Saturation headroom
- 8 310 e⁻Effective capacity of the chain.
- Dynamic range
- 11.21 stopsGap between noise and saturation.
Noise is slightly higher, but the measurement window remains very wide.
Gain does not create missing photons.
The slider is continuous for ease of use. The eight reference gains are the actual measured points; intermediate values are interpolated for display. The three signals are illustrative and stay fixed in electrons.
Observed behaviour is continuous across these eight settings. No gain break is statistically demonstrated within the tested range. The full table is in the Scientific version.
8. Now put the lens cap on
So far, light has been doing the work. Now I fit the lens cap: is the tour over? Not quite.

Even without light, small amounts of charge can appear over time. This temperature-related contribution is called dark current. A dark exposure is therefore not necessarily empty; it also contains the baseline and read noise.
I placed the camera at an ordinary ambient temperature of roughly 23 to 24 °C, without active Peltier cooling. Forced ventilation limits heating during sustained acquisitions. Long exposures in the final campaign span 0.1 to 300 s; available temperatures lie between 25 and 27 °C.
The trap is to treat every background increase as charge generated in the photosites. The baseline can shift for many pixels at once: this is a common mode variation. Checks on mean level, variance and differences between images did not cleanly separate these contributions.
Measurements do not reliably isolate a typical pixel's dark current. This implies neither zero, a negative physical value, nor a value below a validated upper bound.
9. A few pixels like to stand out
A small population can change much faster in darkness than the majority. These hot pixels lie at the upper end of the distribution: a few high values can pull up a mean without describing a typical pixel.
Temporal analysis flags 75 positions out of 16,060, or about 0.47% using a threshold calculated from the measured population. This is neither a full-sensor count nor a universal defect proportion.
A hot position identified by its behaviour over exposure time is also different from a bright point detected in one spatial map.
10. Darkness has a shape
Combining several 300 s exposures reveals a slightly darker centre and horizontal band modulation. The background therefore contains fixed patterns.


A complementary study with twenty images per level confirms a radial gradient and much stronger modulation along rows than columns. Its numerical results remain separate from the final ten-image product.
I also moved PiNox to another room and repeated a 300 s exposure. Low-frequency structure and bands remained strongly correlated. This check makes an external light leak highly unlikely, without ruling it out completely.
The pattern is compatible with a fixed signature of the sensor/readout chain. Its exact physical origin is not established: observing a shape does not establish glow or a thermal cause.
What this characterisation tells us
What the campaign can quantify
- RAW12: 3839 nominal ADU above black.
- At gain 1: K ≈ 2.33 e⁻/ADU and noise ≈ 3.52 e⁻.
- Effective capacity ≈ 8,310 e⁻; dynamic range ≈ 11.21 stops, subject to the PTC limitations.
- Eight gains with no demonstrated discontinuity; reproducible hot-pixel locations and fixed structures.
What it cannot yet tell us
- A reliable value for typical dark current.
- The exact physical cause of the patterns.
- A universal capacity for every IMX477, or a thermal law derived from this campaign alone.
In practice, for long exposures
For deep-sky imaging, retaining RAW12 and calibrating with comparable dark frames helps address fixed patterns. The value of extending an exposure also depends on the sky, tracking, saturation and temperature; this study does not establish a universal ideal duration. Dithering between exposures can help reject defects after star alignment.
The next question follows naturally: if heat contributes to the signal in darkness, what do we gain by cooling the camera? That is the experiment in Article 2, without assuming in advance what cooling will allow us to measure.
Continue reading
Other version
Scientific version · Protocol, measurements, models and limitations.