Skip to the content
2 layers80 × 50 mmAmplifier, the printed circuit board in 3D

A discrete BJT amplifier — Darlington emitter follower into a cascode gain stage, four PN2222A transistors on a +24 V supply — originally designed in PSpice for a course, then re-implemented as a KiCad PCB.

Size
80 × 50 mm
Copper layers
2
Thickness
1.6 mm
Parts
33
Nets
12
Pads
67
Tracks, vias
66, 0
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
24 Sep 2026
Updated
25 Sep 2026

Overview

Amplifier is an open-source printed circuit board by eb363, from the eb363/4-Stage-BJT-Amplifier repository on GitHub. It is a 2-layer board of 80 × 50 mm with 33 parts on 12 nets, routed with 66 tracks and 0 vias.

It is built around the PN2222A. Its parts include 9 resistors, 8 capacitors, 4 transistors and 3 connectors. It belongs with the audio and music boards of this library.

Main components

1

README

README.md

4-Transistor BJT Amplifier PCB

A discrete BJT amplifier — Darlington emitter follower into a cascode gain stage, four PN2222A transistors on a +24 V supply — originally designed in PSpice for a course, then re-implemented as a KiCad PCB. The first physical build was dead-bug on copper clad and it died on test day from an under-rated resistor. This repo is the rebuild: the same circuit, with the failure understood, the bias problem found in simulation before ordering, and the whole thing laid out on a proper board. The board and parts are ordered; nothing is assembled or measured yet, so every number here is simulated and labeled as such.

Board render

3D render of the KiCad layout. Not a photo — the board has not arrived yet.

Specification

SpecTargetSimulatedMeasured
Voltage gain≥ 35 V/V38.8 V/V at 1 MHzpending bring-up
Gain at test frequency≥ 35 V/V at 10 MHz38.1 V/Vpending bring-up
Input impedance≥ 300 kΩ934 kΩ at low frequencypending bring-up
Power into 1 kΩ load≥ 10 mW11.0 mW at 127 mV inputpending bring-up
−3 dB bandwidth≥ 50 MHz64.5 MHz unloadedpending bring-up
Supply current—36.7 mApending bring-up
THD at 10 MHz—5.4 %pending bring-up

Simulated figures are from ngspice (sim/spice/amp_sanity_ngspice.cir) using the classic PSpice Q2N2222 model. The input impedance figure is from the original PSpice run; it is a low-frequency number and falls below 300 kΩ around 70 kHz.

The bandwidth target started at 200 MHz, which assumed a breadboard implementation. That was not practical at these frequencies, so the target was revised to 50 MHz and the design was pushed to about 60 MHz in simulation to leave margin for losses on the bench.

Circuit

Schematic

Stage 1 — Q1/Q2 Darlington emitter follower. Biased through R1 (1 MΩ). The Darlington multiplies the input resistance by both betas, which is what buys the ≥ 300 kΩ input impedance. Gain is just under 1; this stage exists to not load the source.

Stage 2 — cascode. Q4 is the common-emitter gain device, Q3 is common-base stacked on top of it. Q3 holds Q4's collector at a nearly fixed voltage, so Q4's collector-base capacitance sees almost no voltage swing. That kills the Miller multiplication that would otherwise dominate the high-frequency rolloff, and it is the reason a 60 MHz bandwidth is reachable with parts this cheap.

R7 (1 kΩ) is the collector load, C4 couples to the 1 kΩ load resistor R9, which lives on the board so the amplifier can be tested without hanging a load off the SMA jack.

PSpice nameKiCad refValueNote
Rb1R11 MΩstage 1 bias
ReR2910 Ω, 2 Wthe part that killed the first build
R3aR310 kΩQ4 bias divider, top
R3bR4360 ΩQ4 bias divider, bottom — bench-tuned
R4aR5100 kΩQ3 base divider, top
Rb4R622 kΩQ3 base divider, bottom
RcR71 kΩ 1%collector load
Re3R810 ΩQ4 emitter degeneration
RLoadR91 kΩ 1%on-board load
C2C1100 nFinput coupling
C4C2100 nFinterstage coupling
C1C3100 nFQ3 base bypass
C3C4100 nFoutput coupling

Also on the board: C5 (10 µF) and C6–C8 (100 nF) for supply decoupling, J1/J2 SMA jacks, J3 screw terminal for +24 V, and TP1–TP5 bias test points.

The design story

Test-day failure

The first build was dead-bug on copper clad. It was destroyed during testing.

Root cause, found afterward: R2, the stage-1 emitter resistor, carries the whole Darlington bias current. At 910 Ω and about 24 mA that is

text
P = I²R = (0.024)² × 910 ≈ 0.52 W

It was a 1/4 W part. It ran at roughly twice its rating, overheated, and took the board with it. Nothing in the simulation flagged this, because a PSpice resistor has no power rating — the number was right there in the operating point the whole time and I never divided it out.

The board was rebuilt dead-bug afterward, on my own time, and it worked. I did not record numbers from that rebuild, so nothing from it is quoted here.

What the PCB does about it

  • R2 is now a 2 W part (KOA MOS2, 910 Ω), mounted raised off the board so it can shed heat into air instead of into the substrate
  • supply decoupling: 10 µF plus 100 nF at the input, 100 nF at each stage
  • TP1–TP5 test points on the bias nodes, so the DC state can be checked before a signal ever goes in
  • solid ground plane on the bottom layer
  • SMA jacks instead of clip leads, and the load resistor on the board

Pre-order sanity check: the output was clipping

Before sending the board out, I re-ran the design in ngspice and LTspice and found a second problem, quieter than the first one.

The output stage biased at about 6.6 mA. The most positive swing a common-emitter stage can deliver is limited by that bias current into the AC load:

text
V_peak(max) = I_bias × (R7 ∥ R9) = 6.6 mA × 500 Ω = 3.3 V

Getting 10 mW into 1 kΩ needs 4.47 V peak. So the positive half of the output ran out of current before it reached the target. That is exactly the lopsided +3 V / −5.2 V waveform in the original PSpice output-power plot, and why that run read about 9.6 mW instead of 10 mW, with about 13 % distortion. I had read that plot as "close enough" at the time. It was not close enough — it was clipping.

The fix is values only, no layout change:

PartCourse designPCBEffect
R8 (Q4 emitter)9.1 Ω10 Ωsets stage gain and degeneration
R4 (bias divider, bottom)330 Ω360 Ωraises Q4 bias current

That moves the output-stage bias from about 6.6 mA to about 10.6 mA, which puts the positive swing limit above what 10 mW needs. Reproduced in ngspice:

R4 = 330, R8 = 9.1R4 = 360, R8 = 10
Q4 bias current6.6 mA10.6 mA
Output swing+3.02 V / −5.27 V+4.08 V / −5.14 V
Power into 1 kΩ9.54 mW11.0 mW
THD at 10 MHz13.2 %5.4 %
Gain at 1 MHz37.1 V/V38.8 V/V
Supply current32.8 mA36.7 mA

The schematic and the ordered BOM carry the fixed values. Swap the .param line in the ngspice netlist back to R4v=330 R8v=9.1 to reproduce the clipped case.

R4 is still marked bench-tuned, because this bias point is genuinely twitchy: it is set by a sub-1 V divider working against one Vbe drop. A ±5 % part tolerance on R4 moves the collector current by roughly ±25 %, and warming Q4 by 25 °C adds roughly another 30 %. A resistor value is not a substitute for actually measuring the node.

TODO: full re-simulation of the as-built values with a second transistor model, with screenshots. The figures above are from a single-model ngspice run.

Bring-up plan

Nothing below has been done yet.

  1. Set the bench supply to 24 V with a 50 mA current limit before connecting anything. Expected draw is about 37 mA; anything near the limit means a fault.
  2. Check the DC test points with no input signal against the table below.
  3. Tune R4 to bring Q3_C to its target. This is the trim that sets output headroom — too low and the positive half clips again, too high and the negative half does.
  4. Set the function generator to High-Z output mode. In 50 Ω mode it will deliver half the amplitude it displays, which would make the gain read 2× low.
  5. Measure gain at 1 MHz and 10 MHz with a properly compensated 10× probe.

Expected DC test points (simulated, no signal)

Test pointNodeExpected
Q2_Estage-1 emitter21.6 V
Q4_BQ4 base0.81 V
Q3_BQ3 base3.37 V
Q4_CQ4 collector2.67 V
Q3_Coutput stage collector13.5 V — R4 trim target

TODO: measured column, once the board is populated.

Measurement caveats

The output node sits at about 500 Ω (R7 ∥ R9). A 10× scope probe adds 10–15 pF there, and that capacitance against 500 Ω forms a pole well below the amplifier's own bandwidth. The bench will not measure 64 MHz, and that is the probe, not the board:

Probe capacitanceGain at 1 MHzGain at 10 MHz−3 dB bandwidth
none (ideal)38.838.164.5 MHz
10 pF38.835.522.4 MHz
15 pF38.833.316.6 MHz

All simulated. A 1× probe or a length of coax into a 1 MΩ input is far worse — roughly 115 pF — and would put the corner near 2 MHz. Gain at 1 MHz is unaffected, so that is the honest number to compare against the 35 V/V spec.

Status and roadmap

  • PSpice design, course version
  • Dead-bug build — destroyed on test day
  • Root cause found: R2 power rating
  • Dead-bug rebuild, worked (no numbers recorded)
  • KiCad schematic and layout, DRC clean
  • Pre-order simulation check, bias fix applied to the schematic
  • PCB ordered from JLCPCB
  • Parts ordered from DigiKey
  • Board and parts arrive
  • Assemble
  • Bench bring-up: test points, R4 trim
  • Measure gain, bandwidth, output power, input impedance
  • Full re-simulation with a second transistor model, with screenshots
  • Photos of the assembled board and scope captures

Repository layout

text
hardware/   KiCad project (schematic, PCB, footprints)
sim/pspice/ original PSpice screenshots and parts list from the course design
sim/spice/  LTspice sanity netlist and its ngspice port
docs/       exported schematic, 3D renders, photos
fab/        gerbers, drill files, BOM
scripts/    export.sh, regenerates everything in docs/ and fab/

Regenerate all artifacts after a KiCad change:

sh
./scripts/export.sh

Run the simulation:

sh
ngspice -b sim/spice/amp_sanity_ngspice.cir

TODO: docs/photos/ is empty. Dead-bug build photo, assembled PCB, and scope captures go there.

Tools

KiCad 10.0.5 (schematic, layout, fabrication output), PSpice (original course design), LTspice and ngspice 47 (pre-order verification).

Notes on the simulation files

sim/spice/amp_sanity.cir is the LTspice version: one analysis at a time, with .meas cards read out of the SPICE error log. sim/spice/amp_sanity_ngspice.cir is the ngspice port — SINE( becomes SIN(, and the .meas cards move into a .control block so all three analyses run in a single pass.

sim/pspice/ holds the original course-design screenshots. Two things to know about them: outputpower.png is the pre-fix run showing the clipped ~9.6 mW result, and a fourth screenshot (schematicRe2_2kBiasPoints.png) was removed because it was mislabeled — it showed the 910 Ω bias numbers, not the 2.2 kΩ ones.

Parts

33
QtyValueFootprintReferences
7100nF 50VCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC1, C2, C3, C4, C6, C7, C8
5TestPointTestPoint:TestPoint_Keystone_5000-5004_MiniatureTP1, TP2, TP3, TP4, TP5
4MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
4PN2222APackage_TO_SOT_THT:TO-92_Inline_WideQ1, Q2, Q3, Q4
21k 1/4WResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR7, R9
2SMAConnector_Coaxial:SMA_Amphenol_132134_VerticalJ1, J2
110 1/4WResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR8
1100k 1/4WResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR5
110k 1/4WResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR3
110uF 50VCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC5
11M 1/4WResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1
122k 1/4WResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR6
1360 1/4WResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR4
1910 2WResistor_THT:R_Axial_DIN0414_L11.9mm_D4.5mm_P20.32mm_HorizontalR2
1Screw_Terminal_01x02TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_HorizontalJ3

Similar boards

  • 2 layers152.4 × 101.6 mm8088-FE2010A SBC, the printed circuit board in 3D

    8088-FE2010A SBC

    skiselev/micro_8088

    Micro 8088 - IBM XT Compatible Processor Board based on Faraday FE2010 chipset

    72 parts412GPL-3.0
  • 2 layers33.7 × 66 mmSmartbell, the printed circuit board in 3D

    Smartbell

    Staacks/there.oughta.be

    Projects featured on my blog at https://there.oughta.be

    27 parts108GPL-3.0
  • 4 layers100 × 100 mm2063-Z80, the printed circuit board in 3D

    2063-Z80

    Z80-Retro/2063-Z80

    Retro Z80 CPU Board

    86 parts96
  • 2 layers30.7 × 76.1 mmRepeater v2, the printed circuit board in 3D

    Repeater v2

    plusvic/simplebus2-intercom

    General description of the Simplebus2 protocol used by some Comelit's intercoms. Hardware for retransmitting Simplebus2 messages over UART.

    17 parts95CC0-1.0
  • 2 layers28.8 × 43.8 mmAdv pcb, the printed circuit board in 3D

    Adv pcb

    Vail-CW/vail-adapter

    Adapter for cw morse keys to USB

    13 parts81MIT
  • 2 layers23.2 × 52.1 mmOpenC64Saver, the printed circuit board in 3D

    OpenC64Saver

    SukkoPera/OpenC64Saver

    Protect your Commodore 64 from killer power supplies!

    17 parts79
  • 4 layers184.2 × 169.5 mmSB mini II, the printed circuit board in 3D

    SB mini II

    simonboak/SB-mini-II

    A homebrewed Apple II clone

    97 parts76MIT
  • 2 layers49.5 × 30 mmAirpcb smd old, the printed circuit board in 3D

    Airpcb smd old

    issalig/toshiba_air_cond

    AB protocol decoder for toshiba air conditioners

    30 parts65

Questions

How big is the Amplifier PCB?

It measures 80 × 50 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Amplifier use?

33 parts, built around the PN2222A. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Amplifier KiCad files?

From the eb363/4-Stage-BJT-Amplifier repository on GitHub, at the commit this page was made from: the board is hardware/Amplifier.kicad_pcb and its schematic hardware/Amplifier.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Amplifier design in my own project?

Its repository states no licence, so its author keeps all rights: ask eb363 before reusing the design.