

LevelShiftFet
Demo for diode boards
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 3
- Nets
- 4
- Pads
- 7
- Tracks, vias
- 14, 4
- Routed
- Yes
- KiCad
- KiCad 9.0 (file 20241229)
- Created
- 26 Aug 2025
- Updated
- 5 May 2026
Overview
LevelShiftFet is an open-source printed circuit board by dioderobot, from the dioderobot/demo repository on GitHub. It is a 2-layer board with 3 parts on 4 nets, routed with 14 tracks and 4 vias.
It is built around the BSS138-7-F-ES. Its parts include 2 resistors and 1 transistor.
Main components
1README
README.mdDiode PCB boards
This repository contains schematics and boards built using the pcb command line utility by Diode, using the Zener language and open source compiler
Prerequisites
For the most up to date information, visit our documentation at docs.pcb.new
The open source PCB compiler is available at github.com/diodeinc/pcb
- KiCad 9.0
- Required for PCB layout
- Download from KiCad website
Project Structure
.
├── README.md
├── components # Auto-generated component definitions (do not edit)
├── modules # User-authored reusable modules (.zen files)
├── boards # Board designs that use modules (.zen files)
└── pcb.toml # Project configurationUsage Guidelines
Building Projects
- Build your project using:
bash pcb build
Important Rules
-
Dependencies
- Always use
pcb addfor dependencies - Never modify pcb.toml directly
- Only add dependencies to directories with a
pcb.tomlfile
- Always use
-
Best Practices
- Components in
components/are auto-generated - never edit them manually - Create reusable modules in
modules/directory - Board designs go in
boards/directory - Use generic components for basic elements (capacitors, resistors, inductors)
- Consult component datasheets when available
- Components in
-
Project Files
- Build artifacts are stored in
.pcb/directory - Project configuration is in
pcb.toml - Component files use
.zenextension
- Build artifacts are stored in
Zener Language Reference
Zener is a Starlark-based language for defining electronic components, modules, and boards as code. Starlark is a simplified dialect of Python designed for configuration files.
Key Concepts
-
Components (in
components/directory)- Auto-generated using
pcb search <PART_NUMBER> - Never edit these manually
- Stored as
.zenfiles
- Auto-generated using
-
Modules (in
modules/directory)- User-authored reusable logic
- Combine components and define connections
- Named as
<module_name>.zen
-
Boards (in
boards/directory)- Instantiate modules for real-world use
- Define the final PCB design
- Named as
<board_name>.zen
Basic Syntax
Since Zener is based on Starlark, it follows Python-like syntax:
- Variables and functions follow Python conventions
- Comments use
# - Indentation matters
- No type annotations required
For detailed syntax and examples, refer to the Diode PCB documentation
Component Management
Components are managed through the pcb command line tool:
- Use
pcb pro search <PART_NUMBER>to find components - Components are automatically downloaded and stored in
components/ - Each component includes symbol, footprint, 3D model, and datasheet information
Contributing
When contributing to this repository, please:
- Follow the project structure
- Use the provided tools for component and module creation
- Ensure all components are properly documented
- Test your changes with
pcb build
Parts
3| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | ERJ-2RKF1002X | R_0402_1005Metric:R_0402_1005Metric | R1, R2 |
| 1 | BSS138-7-F | SOT96P240X115-3N:SOT96P240X115-3N | Q1 |
More from dioderobot/demo
12- 4 layers115 × 234.4 mm

- 6 layers24.9 × 51.5 mm

- 6 layers62.1 × 56.2 mm

- 4 layers15 × 51.1 mm

- 4 layers37 × 17 mm

- 4 layers34.3 × 17 mm

- 4 layers32 × 14 mm

- 2 layers

- 2 layers

- 2 layers

- 2 layers

- 2 layers

Similar boards
- 6 layers45.5 × 96 mm

- 4 layers128.5 × 40 mm

Scalenode cm4-baseboard
antmicro/scalenode-cm4-baseboard
Baseboard for Raspberry Pi 4 Compute Module optimized for clustering
146 parts152Apache-2.0 - 2 layers180.1 × 180.3 mm

- 4 layers58 × 135 mm

Oculink to pcie adapter
antmicro/oculink-pcie-adapter
PCB design which converts an OCuLink connector into x16 PCIe slot
165 parts22Apache-2.0 - 4 layers46.4 × 99.8 mm

Trimix Analyzer
magnus188/aegir
Open-source ESP32-P4 trimix analyzer prototype for technical diving,
171 parts14 - 8 layers227.5 × 104 mm

Com express-7-baseboard
antmicro/com-express-7-baseboard
This project contains open hardware design files for a baseboard supporting COM Express 7 modules. The board breaks-out major communications and peripheral interfaces provided by the standard.
815 parts12Apache-2.0 - 4 layers110 × 85 mm

Preview
Takazudo/zudo-pd
P15 r1 is the common 27 × 40 mm STUSB4500 15 V / 3 A module for LED first, then PD15. The same PCB, population and NVM image serve both. Source: board-p15-draft.kicadpcb and ../../scripts/schgen/boardp15spec.py.
285 parts1 - 4 layers100 × 96 mm

Questions
What parts does the LevelShiftFet use?
3 parts, built around the BSS138-7-F-ES. 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 LevelShiftFet KiCad files?
From the dioderobot/demo repository on GitHub, at the commit this page was made from: the board is modules/LevelShiftFet/layout/LevelShiftFet/layout.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the LevelShiftFet design in my own project?
Its repository states no licence, so its author keeps all rights: ask dioderobot before reusing the design.