Skip to the content
PCBKitNew board
2 layers61.5 × 41.5 mmGen hf, the printed circuit board in 3D

An educational project of a compact RF oscillator based on a single S9018 NPN transistor. The PCB was designed in KiCad 10 and is intended for 9 V power supply, a trimmer capacitor, and an external wire antenna.

Size
61.5 × 41.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
11
Nets
5
Pads
23
Tracks, vias
60, 0
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
4 Aug 2026
Updated
4 Aug 2026

Overview

Gen hf is an open-source printed circuit board by Eugen98, from the Eugen98/RF-Oscillator repository on GitHub. It is a 2-layer board of 61.5 × 41.5 mm with 11 parts on 5 nets, routed with 60 tracks and 0 vias.

It is built around the S9018. Its parts include 4 capacitors, 3 resistors, 1 transistor and 1 inductor.

Main components

1

README

README

S9018 RF Oscillator — KiCad

An educational project of a compact RF oscillator based on a single S9018 NPN transistor. The PCB was designed in KiCad 10 and is intended for 9 V power supply, a trimmer capacitor, and an external wire antenna.

This project is intended for learning analog electronics and PCB design. The actual oscillation frequency depends on component values, tolerances, PCB layout, antenna length, parasitic capacitances, and assembly quality.


Features

  • 9 V power supply
  • S9018 transistor in TO-92 package
  • RF resonant circuit using L1 and C4
  • Frequency adjustment with trimmer capacitor C4
  • 120 nH 0805 SMD inductor
  • External antenna connector
  • Manually routed PCB
  • GND copper pour on the bottom (B.Cu) layer
  • Closed board outline on the Edge.Cuts layer

Repository Structure

text
gen_hf.kicad_pro   KiCad project
gen_hf.kicad_sch   Schematic
gen_hf.kicad_pcb   PCB layout
gen_hf.kicad_prl   Local PCB editor settings
fp-lib-table       Custom footprint library table
README.md          Project documentation

The custom footprint for C4 must be stored in the library referenced by fp-lib-table. Before opening the project on another computer, make sure this library is included in the repository or replace it with a standard KiCad footprint.


Circuit Overview

Main components:

  • Q1 (S9018) — RF oscillator transistor
  • L1 + C4 — Tunable LC resonant circuit
  • C1 — RF feedback capacitor
  • R2 and R3 — Base bias network
  • R1 — Emitter resistor
  • C2 — Base bypass capacitor
  • C3 — Power supply decoupling capacitor
  • ANT1 — Antenna connector
  • +9V1 — Power input

Bill of Materials (BOM)

ReferenceValue / TypeRecommended Package
Q1S9018TO-92, pinout E-B-C (1-2-3)
R1220 ΩTHT, 0.25 W
R215 kΩTHT, 0.25 W
R33.9 kΩTHT, 0.25 W
C18 pFC0G/NP0, THT
C210 nFCeramic, THT
C3100 nFCeramic, THT
C45–20 pFThrough-hole trimmer capacitor, 5 mm pitch
L1120 nHHigh-Q RF inductor, 0805
+9V12-pinScrew terminal, 5 mm pitch
ANT12-pinANT + GND, 2.54 mm pitch

Important Note About Q1

Always verify the S9018 pinout using the manufacturer's datasheet before assembly.

This project assumes:

text
Pin 1 — Emitter
Pin 2 — Base
Pin 3 — Collector

Connections

Power Supply

text
+9V1 Pin 1 → +9 V
+9V1 Pin 2 → GND

Antenna

text
ANT1 Pin 1 → ANT
ANT1 Pin 2 → GND

For initial testing, use only a short piece of wire as the antenna.

Do not connect a large external antenna until the oscillator frequency has been verified and local radio transmission regulations have been considered.


Opening the Project

  1. Install KiCad 10 (or a compatible newer version).
  2. Clone the repository:
bash
git clone <REPOSITORY_URL>
cd <REPOSITORY_FOLDER>
  1. Open gen_hf.kicad_pro.
  2. If KiCad reports a missing footprint for C4, verify the path in fp-lib-table and add the custom footprint library.

PCB Verification

Before manufacturing, perform the following checks in the PCB Editor:

  1. Run Inspect → Design Rules Checker (DRC).
  2. Refill all copper zones by pressing B.
  3. Verify that:
    • Unconnected items = 0
    • Shorts = 0
    • Clearance violations = 0
    • The Edge.Cuts outline is closed
    • The B.Cu copper zone is assigned to GND
    • All components are inside the board outline
  4. Inspect the PCB using the 3D Viewer.

At the time of publishing, the project passes DRC with no errors after manual routing, board outline creation, and GND copper pour. Re-run DRC after every modification.


Gerber Generation

Open:

text
File → Fabrication Outputs → Gerbers

For a standard two-layer PCB, generate:

  • F.Cu
  • B.Cu
  • F.Mask
  • B.Mask
  • F.SilkS
  • Edge.Cuts

Then generate the drill files using Generate Drill Files.


First Power-Up

Before applying power:

  • Inspect all solder joints.
  • Verify the transistor orientation.
  • Confirm component values.
  • Check the trimmer capacitor orientation.
  • Measure for shorts between +9 V and GND.

Power the circuit from a regulated 9 V supply.


RF Design Notes

This PCB is intended as an educational project.

For improved RF performance:

  • Keep the LC tank components close together.
  • Keep RF traces as short as possible.
  • Use a continuous GND plane.
  • Minimize loop areas.
  • Use high-Q inductors and NP0/C0G capacitors.
  • Place the decoupling capacitor close to the power input.

License

This project is provided for educational purposes.

Use it at your own risk.

Ensure compliance with local laws and regulations regarding RF transmitters before operating the circuit.

Parts

11
QtyValueFootprintReferences
1+9VTerminalBlock_Altech:Altech_AK100_1x02_P5.00mm+9V1
1100nFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC3
110nFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC2
1120nHInductor_SMD:L_0805_2012MetricL1
115kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR2
1220RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1
13k9Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR3
15...20pFTrimmer_5-20pF:Trim5-20C4
18pFCapacitor_THT:C_Disc_D3.0mm_W2.0mm_P2.50mmC1
1GNDConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalANT1
1S9018Package_TO_SOT_THT:TO-92_InlineQ1

Questions

How big is the Gen hf PCB?

It measures 61.5 × 41.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Gen hf use?

11 parts, built around the S9018. 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 Gen hf KiCad files?

From the Eugen98/RF-Oscillator repository on GitHub, at the commit this page was made from: the board is gen_hf/gen_hf.kicad_pcb and its schematic gen_hf/gen_hf.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Gen hf design in my own project?

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

Similar boards

  • 2 layers187.3 × 109.5 mmZ80RP2350b, the printed circuit board in 3D

    Z80RP2350b

    kysilv/z80-rp2350b-zx-compatible

    Retrocomputer compatible with ZX Spectrum based on real Z80 + discrete RAM/ROM + rp2350b as ULA

    131 parts9GPL-3.0
  • 2 layers73.7 × 99.1 mmElecraft K1 Remake, the printed circuit board in 3D

    Elecraft K1 Remake

    Yurihou/BY1QH_K1_Remake

    CQ DE BH9DWE! Elecraft is a famous amateur radio manufacturer but its rather expensive to afford. These days I tried to read and understood the original equipment Elecraft K1's principle and managed to modify it.

    114 parts2
  • 2 layers60 × 30 mmController, the printed circuit board in 3D

    Controller

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    11 parts3kApache-2.0
  • 2 layers103 × 30.5 mmTS Front Endcap, the printed circuit board in 3D

    TS Front Endcap

    EEVengers/ThunderScope

    ThunderScope GitHub Repo

    11 parts1.3kMIT
  • 2 layers26 × 30 mmExpansion Card, the printed circuit board in 3D

    Expansion Card

    FrameworkComputer/ExpansionCards

    Reference designs and documentation to create Expansion Cards for the Framework Laptop

    11 parts1.1kCC-BY-4.0
  • 2 layers53.9 × 23.2 mmBuffer, the printed circuit board in 3D

    Buffer

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    11 parts1kGPL-3.0
  • 2 layers10 × 20 mm2 connector Sensor Board, the printed circuit board in 3D

    2 connector Sensor Board

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    11 parts915
  • 2 layersFet module, the printed circuit board in 3D

    Fet module

    ByteWelder/Decktility

    A handheld PC

    11 parts855CC-BY-SA-4.0