CHANGE GAIN WITH A PARTIAL EMITTER BYPASS — BC547BBU

Before connecting any input or output cables, connect the RIGOL DHO804’s rear Ground Terminal to earth ground using the supplied ground cable, as required by the DHO800 User Guide. Its Type-C power input does not ground the instrument through the power cord. Use the supplied power adapter and keep the AFG1022’s and SPD3303X’s protective earth connected. The G0 signal-return connections described below do not replace this separate chassis earth lead.

This is a local design and host-tested analysis package. No physical measurements,
firmware binary, WordPress import or publication are claimed. Read the full article
for wiring, limits, offset/range setup, controls and the stop procedure.

REQUIREMENTS AND COMMANDS

Python 3 standard library only. Extract into a new directory. Do not overwrite a
real capture directory. Run:

  python3 -m unittest -v test_emitter_bypass.py
  python3 make_constructed.py constructed-example
  python3 emitter_bypass.py constructed-example
  python3 emitter_bypass.py physical-blank

The last command MUST exit 2 until measured controls and all trace files exist.
Exit 0 means valid JSON, which may remain unresolved. Check controls_passed and
gain_increase_resolved. Exit 2 prints an input error to stderr and no JSON.

REAL FIXTURE

Use exact onsemi BC547BBU, current case 135AN: pin 1 collector, pin 2 base,
pin 3 emitter. Use a 5.00 V common-reference supply, a 47 kΩ/15 kΩ base divider,
a 4.7 kΩ collector resistor, and 180 Ω then 820 Ω in series from emitter to G0.
Add/remove a 4.7 µF, 63 V film capacitor across only the 820 Ω resistor. Feed the
1 kHz generator through 1 kΩ plus a 1 µF capacitor to the base. Add the 100 nF
supply bypass. Both scope tips remain installed: CH1 base, CH2 collector. Both
returns and the supply/generator common connect to G0. Both channel Invert
functions must be OFF.

Use DHO804/PVP2350 probes at 10×: displayed 10 mV/div at the base and 200 mV/div
at the collector, fixed DC coupling and offsets, Normal acquisition, no averaging,
and the 20 MHz bandwidth limit. Warm up for 30 minutes and compensate the probes.
Use approximately 20 mV peak at the actual base, rather than the generator display.
No clipping contrast is required.

For branch changes, turn both outputs OFF, wait at least 1 second and check the
residual voltage. Unexpected current-limit operation, heating, unstable bias or
overload means outputs OFF and a wiring inspection.

PHYSICAL WORKSHEET — REAL DATA ONLY

Copy physical-blank to a fresh capture directory. controls.csv has this exact header:

 state,edge,vcc_v,vb_v,ve_v,vc_v

Fill 6 rows: open_before, bypassed and open_restore, each with before and after
readings. Enter VCC, VB, VE and VC manual Fluke 87V MAX readings in volts with the
generator at enabled DC 0 V. Detach the DMM before capturing. Blank numeric cells
are deliberately not substitutes for measurements.

captures.csv has this exact header:

 state,kind,repeat,file,native_sha256,normalized_sha256,overload

Fill exactly 12 rows: each state has blank repeat 0 and active repeats 1, 2 and 3.
All file names and (state,kind,repeat) keys must be unique. overload is the literal
false or true, never a default observation: inspect the scope. An actual overload
yields an unresolved report and requires stopping the bench procedure.

For each normalized file <stem>.csv, retain untouched <stem>.native.csv beside it.
Keep each acquisition's setup screenshot and notes outside this bounded analysis
manifest. Hashes prove byte consistency, not separate physical acquisitions.
Record each SHA-256 using, for example:

 python3 -c "import hashlib,pathlib;print(hashlib.sha256(pathlib.Path('FILE').read_bytes()).hexdigest())"

Use the real filename instead of FILE, then fill both exact lowercase 64-hex-digit
digests. The analyzer checks actual consumed bytes and equality of the native and
normalized numeric rows.

NORMALIZATION BOUNDARY

The normalized waveform header is exactly time_s,base_v,collector_v. Seconds and
probe-tip volts are mandatory. Keep every numeric row and value exactly; remove
only documented native metadata/units and rename the header. Do not rescale,
subtract DC offsets, interpolate, filter or average. These untouched native
3-column headers are supported, case insensitive with surrounding spaces trimmed:

 time_s,base_v,collector_v
 X,CH1,CH2
 Time,CH1,CH2
 Time(s),CH1(V),CH2(V)

An optional units row may be Second,Volt,Volt or s,V,V. At most 100 metadata rows
may precede the header; thereafter only supported optional units and the complete
numeric rows are allowed. Other format/unit exports are unsupported and require
a documented, reviewed adapter rather than a silent assumption. The native
3-column numeric values must match the normalized numeric triples exactly.
Generated example 'native' files are explicitly labelled CONSTRUCTED SURROGATE,
rather than presented as RIGOL exports.

FINITE INPUT

controls/captures files are each limited to 65536 bytes. Each waveform/native file
is limited to 2097152 bytes. Waveforms require 1000..20000 rows, 10..30 periods at
1 kHz, at least 50 samples per period, and increasing times with no more than 0.1%
step variation. A 1e-9 relative step allowance handles floating-point roundoff at
exactly 50 samples per period.

The analyzer rejects NaN/infinity, duplicated/reordered/missing headers,
extra/missing fields, malformed quotes, invalid UTF-8, URL/traversal/symlink paths
and reused capture names. Retain the true source DC in both channels: zero-mean
or AC-coupled exports cannot satisfy the manual DC comparison just by having a
plausible amplitude.

INTERPRETATION AND LIMITS

The analyzer fits a constant plus sine and cosine at 1 kHz. It reports peak
fundamentals, complex gain/phase and residuals. Its full-scale additive allowances
are:

 CH1: chosen 4% × 80 mV = 3.2 mV
 CH2: 1% × 1.6 V = 16 mV

The maker's CH1 gain specification at its underlying range is typical, rather than
guaranteed. The chosen 4% budget is an engineering assumption, not certified
coverage. The coefficient sensitivity sum(hypot(sineweight,cosineweight)) propagates
pointwise additive error without dividing fixed error by sqrt(N).

The additional 1% probe attenuation budget is a chosen engineering assumption.
The PVP2350 guide gives input resistance ±1%, not a certified attenuation-ratio
accuracy; do not derive the gain budget from resistance tolerance. Add the chosen
probe 1%, converted to reading error, the observed blank fundamental plus maximum
residual, and the active maximum residual.

Observed blank/residual values are chosen working screens, not future error
guarantees or probability/confidence intervals. Do not infer certified THD, noise
or calibration. If the input amplitude interval reaches 0, gain is unresolved.
Fixed small-output range error remains; repeats do not erase it. The phase screen
requires an absolute phase of at least 135 degrees, with only a 1e-9 degree
numerical allowance; the exact model phase is not required. Both channel Invert
functions must remain OFF. Fitted-base matching at 5% does not establish 5%
absolute accuracy.

DC readings use ±(.05% of reading + 1 mV) normal 6 V meter limits. Chosen ranges and
DC agreement use conservative two-reading errors. The chosen fitted-DC/manual
consistency screens of 60 mV at the base and 120 mV at the collector are engineering
thresholds, not certified offset bounds. The chosen 5% background/residual, 10%
restoration and 0.4 V collector-headroom screens may leave correct wiring
unresolved. No gain factor or clipping is forced. The conditional beta = 200,
VBE = .65 model is not a maker beta guarantee at .53 mA.

ARCHIVE CONTENTS

emitter_bypass.py / test_emitter_bypass.py / make_constructed.py
README-experiment.txt / physical-blank/controls.csv / physical-blank/captures.csv
partial-emitter-bypass.svg / partial-emitter-bypass.png

The original editable SVG and clean full-size PNG are circuit/model illustrations,
not photographs of a built fixture. All constructed files remain separate from
physical worksheets. The local article retains complete code and source
qualification.
