Skip to the content
2 layersLevelShiftFet, the printed circuit board in 3D

LevelShiftFet

dioderobot/demo3

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

1

README

README.md

Diode 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

  1. KiCad 9.0

Project Structure

text
.
├── 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 configuration

Usage Guidelines

Building Projects

  • Build your project using:
    bash
    pcb build

Important Rules

  1. Dependencies

    • Always use pcb add for dependencies
    • Never modify pcb.toml directly
    • Only add dependencies to directories with a pcb.toml file
  2. 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
  3. Project Files

    • Build artifacts are stored in .pcb/ directory
    • Project configuration is in pcb.toml
    • Component files use .zen extension

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

  1. Components (in components/ directory)

    • Auto-generated using pcb search <PART_NUMBER>
    • Never edit these manually
    • Stored as .zen files
  2. Modules (in modules/ directory)

    • User-authored reusable logic
    • Combine components and define connections
    • Named as <module_name>.zen
  3. 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:

  1. Follow the project structure
  2. Use the provided tools for component and module creation
  3. Ensure all components are properly documented
  4. Test your changes with pcb build

Parts

3
QtyValueFootprintReferences
2ERJ-2RKF1002XR_0402_1005Metric:R_0402_1005MetricR1, R2
1BSS138-7-FSOT96P240X115-3N:SOT96P240X115-3NQ1

More from dioderobot/demo

12
  • 6 layers24.9 × 51.5 mmDM0001, the printed circuit board in 3D

    DM0001

    dioderobot/demo

    Demo for diode boards

    147 parts3
  • 6 layers62.1 × 56.2 mmDM0003, the printed circuit board in 3D

    DM0003

    dioderobot/demo

    Demo for diode boards

    82 parts3
  • 4 layers15 × 51.1 mmDM0002, the printed circuit board in 3D

    DM0002

    dioderobot/demo

    Demo for diode boards

    73 parts3
  • 4 layers37 × 17 mmRenfield, the printed circuit board in 3D

    Renfield

    dioderobot/demo

    Demo for diode boards

    42 parts3
  • 4 layers34.3 × 17 mmFeign, the printed circuit board in 3D

    Feign

    dioderobot/demo

    Demo for diode boards

    38 parts3
  • 4 layers32 × 14 mmSeward, the printed circuit board in 3D

    Seward

    dioderobot/demo

    Demo for diode boards

    34 parts3
  • 2 layersHallEncoder, the printed circuit board in 3D

    HallEncoder

    dioderobot/demo

    Demo for diode boards

    14 parts3
  • 2 layersTPS74x01P, the printed circuit board in 3D

    TPS74x01P

    dioderobot/demo

    Demo for diode boards

    7 parts3

Similar boards

  • 6 layers45.5 × 96 mmLinht hw, the printed circuit board in 3D

    Linht hw

    M17-Project/LinHT-hw

    LinHT - Linux-based, SDR handheld transceiver.

    258 parts221
  • 4 layers128.5 × 40 mmScalenode cm4-baseboard, the printed circuit board in 3D

    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 mmLibreRouter MegaBoard, the printed circuit board in 3D

    LibreRouter MegaBoard

    LibreRouterOrg/board

    LibreRouter hardware repository

    237 parts55AGPL-3.0
  • 4 layers58 × 135 mmOculink to pcie adapter, the printed circuit board in 3D

    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 mmTrimix Analyzer, the printed circuit board in 3D

    Trimix Analyzer

    magnus188/aegir

    Open-source ESP32-P4 trimix analyzer prototype for technical diving,

    171 parts14
  • 8 layers227.5 × 104 mmCom express-7-baseboard, the printed circuit board in 3D

    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 mmPreview, the printed circuit board in 3D

    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 mmMagfield hub, the printed circuit board in 3D

    Magfield hub

    airpocket-soundman/magfield-nodes

    173 partsMIT

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.