Scientific version · Article 1

Experimental characterisation of the Raspberry Pi HQ's Sony IMX477

12-bit RAW acquisition protocol, conversion and noise models, effective capacity, multiple gains and limitations of dark-background measurements. Results concern this module in the EIP chain.

IMX477RAW12BGGRMulti-gain

What relationship can be established between RAW signal, measured charge and this camera's limitations? This version presents the protocol, estimators and results of the initial characterisation. It separates the final synthesis from complementary experiments that tested interpretations of the dark background.

Summary report — IMX477 characterisation6 October 2026Measurements, figures and conclusions from the EIP campaign. Read the PDF report

1. Scientific question and scope

The Raspberry Pi HQ uses a 12.3-megapixel Sony IMX477 with a C/CS mount. This study characterises this module, in the EIP acquisition chain and under the stated conditions: conversion, read noise, saturation, dynamic range and dark signatures. It is not a universal specification for every IMX477.

These measurements, made for astronomy, characterise the sensor within EIP, a general-purpose embedded imaging platform. They concern raw values; display settings are not analysis parameters.

2. RAW12 signal and usable range

The raw data (RAW) are acquired full field at 4056 × 3040, 12 bits, with a colour filter array (CFA) BGGR layout (blue-green / green-red). The four phases R, G1, G2 and B are kept separate before aggregation; colour demosaicing is not used for the statistics.

An ADU is a digital unit produced by the analogue-to-digital converter. The reference black level is 256 ADU in RAW12: the source level of 64 on a 10-bit scale is mapped to this scale. The digital white code is 4095.

U = 4095 − 256= 3839 ADU
RAW12 range: black level 256 ADU, digital white 4095 ADU and nominal range 3839 ADU.
Nominal encoding is distinct from the ceiling observed in the campaign. A constant black-level offset does not change the PTC slope, but matters to the effective-capacity convention.

Twelve bits describe quantisation, not physical dynamic range or noise. The pedestal measured in an image may also vary around this reference; it should not be confused with photoelectric charge.

3. Experimental protocol

The camera is deliberately used at ordinary ambient temperature, around 23 to 24 °C, without active Peltier cooling. Forced ventilation, with two additional fans directed at the back of the circuit board, limits self-heating during sustained acquisition.

Measurement datasets and complementary checks.
DatasetAcquisitionPurpose
Multi-gain PTC8 gains; 12 levels per gain; 20 images per level, giving 10 pairs.Conversion and saturation: 960 pairs in total.
Read noise50 short dark frames per gain, giving 25 pairs.200 pairs in total; conversion using K at the same gain.
Final long-exposure dark framesGain 1; 0.1, 1, 5, 10, 30, 60, 120 and 300 s; 10 images per level.80 images; 16,060 tracked positions covering all four CFA phases.
Historical complementary studyGain 1; 60, 120, 150, 180, 240 and 300 s; 20 images per level.120 RAW frames; variance and structure checks, separate from the final 10-image product.

Final long-exposure levels alternate durations and include 60 s pauses between levels to limit heating. The 72 available temperatures across 80 images cover 25–27 °C; the first image at each level lacks thermal telemetry and is retained. No missing value is interpolated. Readings are quantised to degrees; decimal averages do not improve that resolution.

These temperatures do not describe all acquisitions: the gain-1 PTC covers 24–27 °C, and gain-1 read-noise pairs cover 23–26 °C. Temperature variation may be confounded with the effect studied in the gain-1 PTC. Alternating durations and rests limit this bias without constituting randomisation or independent thermal trials.

In the historical twenty-image study, all 114 available temperatures across 120 RAW frames are 27 °C; analogue gain is 1 and digital gain is constant, close to 1. Defect pixel correction (DPC) is disabled in this controlled study. This state is not extended without evidence to every acquisition.

The 6 October summary report documents the final campaign. The complementary spatial-structure report (text) documents the historical twenty-image dataset. Their sample sizes and results remain separate below.

4. Conversion gain and PTC

The photon transfer curve (PTC) relates temporal variance estimated from pair differences to mean signal under stable illumination. For comparable images A and B, and each CFA phase:

S = ⟨(A + B) / 2⟩V = Var(A − B) / 2

S is the mean RAW level in ADU, including black; V is variance in ADU². Moments are calculated over positions in the relevant phase, then averaged over the level's ten pairs. Differences remove fixed structure identical in both images, provided they are comparable.

V = aS + bK = 1 / a

The slope a is expressed in ADU/e⁻; its inverse is the conversion gain K in e⁻/ADU. The intercept b is free: with a RAW axis that includes black, it should not be interpreted directly as read-noise variance.

Selection excludes levels whose global fraction of white-code pixels reaches 0.0001, then retains the longest initial sequence, ordered by signal, compatible with a positive slope and R² ≥ 0.99, using at least four levels. At gain 1, nine of twelve levels are retained; three are rejected near saturation. The retained mean green range extends from 463.5 to 3116.0 ADU, including black.

Final PTC: signal in ADU on the horizontal axis and temporal variance in ADU squared on the vertical axis; nine retained green points and three rejected red points.
Photon transfer curve from the final campaign. Green points are retained for fitting within the linear range; red points are rejected near saturation. At analogue gain 1, the fit gives K = 2.3271 ± 0.0011 e⁻/ADU with R² = 1.0000.

The global K is the mean of the G1 and G2 phase coefficients. The published standard error is the mean of their fit standard errors; it is not a complete instrumental uncertainty budget. Unrounded R² is 0.99999848.

A precise fit ≠ unconditional validation. The report labels the PTC “to be confirmed”, particularly because of temperature variation at gain 1. Fitted values remain published with this limitation. An R² close to 1 does not test every possible bias.

5. Read noise

Differences between pairs of short dark frames estimate read noise. Assuming independent, equal-variance fluctuations and negligible dark signal at this exposure:

σread, ADU = σ(A − B) / √2
σread, e = K × σread, ADU

Twenty-five pairs per gain provide the read-noise estimator; conversion uses K at the same gain. At gain 1, the global result is 1.511603 ADU, or 3.517646 e⁻ (3.52 e⁻ rounded). A correlation between frames or another temporal contribution would limit interpretation as read noise alone.

Read noise in the four CFA phases and overall at analogue gain 1.
At gain 1 the four CFA phases give similar levels. This chart describes readout dispersion, not dark current or fixed structure.

6. Effective capacity and dynamic range

The digital saturation is observed: the maximum global fraction of clipped pixels is 0.27032, above the 0.000100 threshold. This global fraction does not separately describe clipping in each CFA phase.

The report defines capacity from the observed ceiling Wobs and reference black level Bref on the RAW scale:

Qeff = (Wobs − Bref) × K

At gain 1, Wobs = 3827.1167 ADU, Bref = 256 ADU and K = 2.327096 e⁻/ADU give Qeff = 8310.33 e⁻. This ceiling is neither the nominal white code 4095 nor the last retained PTC point. It is an effective instrumental capacity, not a universal physical photosite capacity.

DRstops = log2(Qeff / σread, e)
DRdB = 20 log10(Qeff / σread, e)

The dynamic range reaches 11.206 stops, or 11.21 rounded, equivalent to 67.47 dB. The ratio is dimensionless; one stop represents a factor of 2. These derived quantities retain the limitations of K and the saturation convention; a total uncertainty budget has not been established.

7. Behaviour across gains

Eight effective analogue gains — rounded final values, instrumental capacity.
Effective gainK (e⁻/ADU)Noise (e⁻)Qeff (e⁻)DR (stops)
1.0002.32713.5188 31011.206
1.5561.50802.9284 44910.569
2.4270.97202.4923 63910.512
3.7790.62762.2122 1239.907
5.8850.40481.9621 5459.621
9.1430.26141.8419619.028
14.2220.16921.7535468.284
22.2610.10881.6694137.951

The gains above are measured effective gains, not simply setpoints. The eight PTCs contain 960 pairs, with none rejected for non-comparability; this does not mean every level is retained in each fit. The number of retained levels varies from six to nine with gain.

K and electron-referred read noise decrease with gain; effective capacity and dynamic range also fall. The selected behaviour is continuous, with no statistically established break in this range.

The continuous model fits log K with a polynomial in log gain; degree 3 is preferred among the candidates and remains monotonic. The Bayesian information criterion (BIC) is 9.436 for this model versus 17.488 for the model with a break. Under the convention ΔBIC = BICcontinuous − BICbreak, ΔBIC = −8.052 therefore favours the continuous model.

The resampling with 2000 repetitions gives p = 0.51524. The decision rule requires ΔBIC ≥ 6, p ≤ 0.01 and independent confirmation to establish a break. Those criteria are not met. A transition outside the range or below the protocol's sensitivity is not excluded; thermal confounding flagged at gain 1 remains a model limitation.

8. Long exposures and dark current

Different estimators

The dark current physically generates charge even without light. Mean level, temporal variance, the common mode and fixed structure nevertheless measure different things.

In the final campaign, the ten images at each level are averaged at each of the 16,060 positions. A regression over the eight durations then describes this level:

yi(t) = ai + mit

yi is the mean level in ADU, t is duration in seconds, ai is the intercept and mi an apparent slope in ADU/pixel/s. It can mix dark charge and background shifts; it is not automatically a physical current.

Complementary checks also examined variance at the same pixel across frames. Under an ideal model of independent Poisson dark charge, constant read noise and no other temporal contribution:

VarADU(t) = Varread, ADU+ (Idark / K2) × t

Idark is in e⁻/pixel/s. This equation is a model to test, not evidence that every variance slope comes from typical dark current. Common variation between images or readout effects can add a contribution.

What the checks establish and their limits

A targeted series compares 198.590, 216.242, 225.068, 242.721 and 300 s around the line-length change. The variance decrease is already visible before the transition near 225 s, without a clear break at that transition. Reconstructed duration error at 300 s is below 0.001%: a simple exposure-time or line-length error cannot explain the observed effect.

An eleven-level series between 30 and 300 s, with five RAW frames per level in non-monotonic order, followed by the six-level, twenty-RAW control described in section 3, expanded temporal coverage and sample sizes. Model-selection criteria do not give a consistent signature across all four CFA phases and common-level corrections. The corrected median, trimmed mean at 5% and pair differences therefore do not support demonstrated intrinsic sublinearity of dark current.

In the twenty-image control, effective exposure errors remain below 0.003%. Common-mode corrections change some slope ratios by more than 3 in absolute value, without a comparable break in the mean pedestal around 120–150 s. This concerns the whole chain; attribution to photosites alone is not established.

Final result and decision criterion

The global baseline slope is −0.001092 ± 0.000922 ADU/pixel/s with R² = 0.189. The criterion specifically seeks a positive slope exceeding 1.96 times its standard error:

mglobal > 1.96 σm

σm is the global slope's standard error. This is not a two-sided test for the absence of all drift. A negative slope does not meet the search for a positive slope; it does not represent a negative physical current.

Conclusion: typical current unresolved. The observations do not reliably separate typical dark current from instrumental contributions. Neither zero current, a negative physical value nor a validated upper bound is inferred. Intermediate estimators from the investigation are not retained as the final result.

9. Hot pixels and distributions

The distribution of individual slopes has a median of −0.00544 ADU/pixel/s, a p90 of 0.00903 and a p99 of 0.04031 ADU/pixel/s. These quantiles describe the population and its positive tail; they do not provide a physical measurement for a typical pixel.

Temporal outlier positions are selected when their slope exceeds the adaptive threshold T:

T = max(10 × |m̃|,6 × 1.4826 × MAD)

m̃ is the median slope; the MAD is the median absolute deviation from that median. The resulting threshold is 0.05443 ADU/pixel/s. It flags 75 hot pixels out of 16,060 positions, or 0.47%. The result depends on tracked positions and threshold; it is not a full-sensor inventory.

The hot-pixel population and background shift can affect a mean differently from a median. They must be separated before a descriptive slope is converted to electrons.

10. Spatial background structures

Final master and derived maps

The final product combines ten 300 s RAW frames using a temporal median into a full-sensor master at 4056 × 3040, gain 1, BGGR CFA. Spatial statistics average the four positions of each 2 × 2 Bayer cell, then estimate local levels using medians of 32 × 32-cell blocks, equivalent to 64 × 64 photosites. Values beyond p99.9 and saturated values are masked.

Reduced greyscale view of the full-sensor master of ten 300 s exposures.
Final ten-image master, area-averaged for display. Contrast is amplified around black; the reduced view does not replace native values.
Low-frequency map of the final 300 s master, with a darker centre and visible cells.
Derived low-frequency component displayed block by block. Cells represent the estimator's grid, not physical square regions of the sensor.
Residual of the final master after removal of the low-frequency, horizontal and vertical components; large deviations appear dark.
Display residual of the master of 10 RAW frames at 300 s, after removal of background components. Contrast is amplified: large deviations appear dark. This view does not measure typical dark current.

For this final ten-image product, native profiles follow Bayer averaging, local-block subtraction and a median along each axis, then centring on their mean. Population RMS values are 0.244533 ADU for rows and 0.031310 ADU for columns. Curves in the PDF's reduced display must not be treated as these native profiles.

Complementary twenty-image study: gradient and anisotropy

The following figures and metrics come from the historical dataset with twenty RAW frames per level, not the final ten-image product. The p99.9 mask and 64 × 64-photosite grid isolate aggregated structure. At 300 s, the median master gives 255.25 ADU at the centre, 255.75 at the edges and 256.00 in the corners, or +0.50 and +0.75 ADU relative to the centre. All four sides have the same median: the geometry is mainly radial.

Differences from centre: edges +0.50 ADU and corners +0.75 ADU at 300 s in the twenty-image study.
Complementary study: median master of 20 RAW frames at 300 s. The aggregated differences are small but become visible in the stretched image. The selected fit classifies the gradient's change with exposure time as linear.

After local-background removal, the row profile reaches 0.251227 ADU RMS and 1.25 ADU peak-to-peak, compared with 0.033076 ADU RMS for columns. The candidate dominant period is 19.87 rows according to Fourier analysis; autocorrelation gives 24 rows. This suggests modulation on roughly 20 to 24 rows without establishing a unique periodic mechanism.

Row RMS 0.251 ADU versus column RMS 0.033 ADU in the historical dataset.
Anisotropy is measured on the historical twenty-image master; these are spatial statistics, not temporal variance.
Effect of aggregation — historical twenty-image dataset at 300 s.
QuantityMedian masterMean master
Row RMS (ADU)0.2512270.246258
Row peak-to-peak (ADU)1.2500001.168750
Edges − centre (ADU)0.5000000.487488

Modulation is quantifiable mainly in G1 and R; B and G2 remain below the row-median quantisation in this dataset. How the wave amplitude changes with duration remains inconclusive: the quantised median modestly favours a non-linear model, while the unrounded mean evolves almost linearly. Individual RAW values remain quantised to 1 ADU; fractions of an ADU come from aggregation. Averaging twenty images retains a temporal step of 0.05 ADU.

Repeatability and testing in another room

At 300 s, mean correlation between a frame's profile and the historical master's profile reaches 0.821867 (minimum 0.808510), versus 0.216330 at 60 s. Between the 240 and 300 s profiles, r = 0.913480; between 60 and 300 s, r = 0.336182. Phase becomes repeatable at long exposures, but its stability across the whole exposure range remains inconclusive.

Correlation of the 60 and 240 s profiles with the 300 s reference in the historical study.
Correlations between profiles of median masters of 20 RAW frames per exposure time. The 240 s profile closely resembles the 300 s profile; at 60 s, noise limits the diagnostic. This difference alone does not establish a physical transition.

A single 300 s cross-check capture after moving to another room gives r = 0.877660 for the low-frequency structure and r = 0.864081 for the horizontal profile after masking extremes. The low-amplitude vertical profile gives r = 0.314272. No new gradient associated with the room's lighting appears.

Map and profile correlations between two rooms, with strong low-frequency and horizontal similarity.
Cross-check using two individual 300 s RAW frames, one per room: the patterns persist after moving to another room. This check makes an external light leak highly unlikely, without ruling it out completely.

The structure is compatible with a fixed signature of the sensor/readout chain. Background shading and a horizontal component are observed; electronic or thermal glow remains a hypothesis, not a demonstrated cause.

Fixed structure and temporal variance

Vart(Xi − ci) = Vart(Xi)

At a position i, subtracting the same fixed map ci from every frame does not change temporal variance. Structures do affect spatial statistics and estimators that mix positions. Their presence alone cannot explain a temporal slope, and their relationship to common mode remains unestablished.

11. Limitations and hypotheses

For deep-sky imaging, preserving RAW12 data, monitoring temperature and using comparable calibration frames helps address repeatable patterns. Dithering between exposures can help reject defects after alignment. This study yields no universally optimal exposure duration.

12. Conclusion

Final summary: fitted values, observations and limitations.
QuantityValue / resultStatusMain limitation
Conversion gain at gain 12.3271 ± 0.0011 e⁻/ADUFittedFit standard error; qualified PTC status.
Read noise at gain 11.512 ADU; 3.518 e⁻MeasuredPair differences and K at the same gain.
Effective capacity at gain 18 310.33 e⁻DerivedInstrumental convention, not universal physical capacity.
Dynamic range at gain 111.21 stops; 67.47 dBDerivedDerived from Qeff and noise; inherits K's limitations.
Breakpoint across gainsNo statistically established breakNot detectedProtocol range and sensitivity.
Typical dark currentNo reliable physical valueUnresolvedInsufficient separation of temporal contributions.
Temporal hot-pixel positions75 / 16 060; 0.47%MeasuredSample and adaptive threshold.
Low-frequency structureEdges +0.50; corners +0.75 ADU at 300 s (complementary 20-image study)ObservedAggregated structure; cause not established.
Horizontal modulationRMS 0.251227 ADU (complementary 20-image study)ObservedFinal 10-image RMS: 0.244533 ADU; distinct datasets.
Physical cause of the patternsSignature compatible with the sensor/readout chainOrigin not establishedExternal leak highly unlikely, not proven impossible.

Characterisation establishes useful values for this chain and repeatable structures. It does not provide a reliable physical value for typical dark current.

The next study compares fan cooling alone with Peltier cooling: the same questions in a different thermal regime, without assuming that a comparison alone establishes causality.

Continue reading

Other version

Discovery version · Revisit the concepts through images and intuition.

In this series

  1. Article 1 · ScientificExperimental characterisation of the IMX477
  2. Article 2 · ScientificHow Peltier cooling affects IMX477 characterisation
  3. Article 3 · Coming laterHow do you measure an almost invisible dark current?