

Leany
STM32 ARM Core-M3 based inclinometer
- Size
- 80.4 × 49.3 mm
- Copper layers
- 4
- Thickness
- 1.6 mm
- Parts
- 83
- Nets
- 84
- Pads
- 321
- Tracks, vias
- 530, 160
- Pours
- 21
- Routed
- Yes
- KiCad
- KiCad 10.0 (file 20260206)
- Created
- 28 Sep 2023
- Updated
- 23 Sep 2026
Overview
Leany is an open-source printed circuit board by gilleshenrard, from the gilleshenrard/leany repository on GitHub. It is a 4-layer board of 80.4 × 49.3 mm with 83 parts on 84 nets, routed with 530 tracks and 160 vias.
It is built around the CH340N, AP2112K-3.3 and BQ25619RTW, with the DW01A, ICM-42688-P and AO3401A among its other parts. Its parts include 27 capacitors, 26 resistors, 6 ICs, 5 transistors and 5 switches. It belongs with the STM32 boards of this library.
Main components
9CH340N
SOP-8-20℃~+70℃ 1 2Mbps 3.3V、5V USB 2.0 USB to serial SOP-8 USB Converters ROHSWCH (Nanjing Qinheng Microelectronics)USB ConvertersAP2112K-3.3
SOT253.3V 600mA CMOS Low Dropout Linear Regulator with EnableDiodes IncorporatedUncategorisedBQ25619RTW
WQFN-24-EP(4x4)-40℃~+85℃ 1 1.5A 4.52V 4V~13.5V 9.5uA Charging IC I2C Lithium Battery Support Support WQFN-24-EP(4x4) Battery Management ROHSTexas InstrumentsBattery ManagementDW01A
SOT-23-6L-40℃~+85℃ 1 2.5V 300mV~10V 3uA 4.3V Protection IC Support SOT-23-6L Battery Management ROHSPUOLOPBattery ManagementICM-42688-P
LGA-14(2.5x3)-40℃~+85℃ 1.71V~3.6V 16bit 2KB 7.5uA IMU (accelerometer + gyroscope) SPI、I2C X,Y,Z X,Y,Z ±16g ±2000dps Motion Event Detection, Synchronization, Timestamp Support LGA-14(2.5x3) Accelerometers ROHSTDK InvenSenseAccelerometersAO3401A
SOT-231 P-Channel 14nC@10V 30V 47mΩ@10V、60mΩ@4.5V、85mΩ@2.5V 4A 55pF 645pF 80pF 900mV SOT-23 MOSFETs ROHSAlpha & Omega SemiconductorMOSFETsAO3400A
SOT-23-55℃~+150℃ 1 N-channel 1.45V 1.4W 30V 48mΩ@2.5V 5.7A 50pF 630pF 75pF 7nC@10V N-Channel SOT-23 MOSFETs ROHSAlpha & Omega SemiconductorMOSFETsNH-B2020RGBA-HF
SMD,2.1x2.1mm-30℃~+85℃ 110° 1mm 2.1mm 2.1mm B:25mcd、R:45mcd、G:160mcd Common Anode R:2V、G:2.7V、B:2.8V R:48mW、G:64mW、B:64mW R:622nm、G:525nm、B:468nm R:8mA、G:5mA、B:3mA Top-mount SMD,2.1x2.1mm RGB LEDs ROHSFoshan NationStar OptoelectronicsRGB LEDsPT8810
TSSOP-81.15nF 145pF 15nC@0V 185pF 1V 2 N-Channel 20V 35mΩ@1.8V 7A Common Drain SOT-23-6L MOSFETs ROHSPUOLOPMOSFETs
README
pcb/README.mdLeany Project PCB Documentation
Revision: 0.3
Welcome to the Leany project's PCB documentation. This repository contains all the necessary files and information related to the PCB schematics and layouts for the Leany project.

Table of Contents
Introduction
This documentation provides an overview of the PCB schematics and layouts used in the Leany project. It includes detailed information on the design, components, and assembly instructions.
Generate the production files (Linux only)
- Download KiCad from the official website.
- Go to the pcb/ directory
- Run the generation script located under resources/
PCB fabrication
-
Once the production files are generated, head to JLCPCB
-
Upload the zipped Gerber file, then, when the website is done processing it, choose the following non-default options :
- Surface finish : LeadFree HASL
- Enable PCB Assembly
-
Then, click Next until arriving at the Bill Of Materials page.
-
Upload the BOM and CPL files and click "Process BOM&CPL".
-
Check that no error is shown on the components list page, and click Next.
-
On the Components Placement page, move the components which are misplaced, then click Next.
-
On the final page, click Save to Cart.
Directory Structure
pcb/
├── 3d-models
└── resources
└── generate_production_files.sh3d-models
This directory contains the additional 3D models needed to export the PCB as an STL file. All the models are organised as [source]/[author]/[file]
resources
Contains additional resources :
generate_production_files.sh: A script to automatically generate and organise production files, with respect to JLCPCB standards.
CI/CD workflows
The PCB files are instected by a Github Action upon push and pull request to run the Electrical Rules Check and Design Rules Check ensure the production files are easily generated.
Gallery

Contributing
Contributions to improve the PCB design and documentation are welcome. If you have any suggestions or improvements, please create a pull request or open an issue on the repository.
License
The PCB files are licensed under CERN Open Hardware Licence Version 2 - Permissive. See the CERN-OHL-P-2.0 file for more details.
Parts
83| Qty | Value | Footprint | References |
|---|---|---|---|
| 12 | 100n | leany_footprints:C_0402_1005Metric | C2, C6, C7, C8, C9, C10, C12, C17, C21, C25, C26, C28 |
| 8 | 10k | leany_footprints:R_0402_1005Metric | R1, R2, R7, R10, R13, R14, R16, R18 |
| 5 | 10u | Capacitor_SMD:C_0805_2012Metric | C1, C11, C18, C19, C24 |
| 4 | 1u | leany_footprints:C_0402_1005Metric | C5, C14, C22, C23 |
| 4 | 4k7 | leany_footprints:R_0402_1005Metric | R11, R12, R23, R24 |
| 3 | 100k | leany_footprints:R_0402_1005Metric | R8, R15, R17 |
| 3 | AO3401A | Package_TO_SOT_SMD:SOT-23 | Q1, Q3, Q4 |
| 2 | 150R | Resistor_SMD:R_0603_1608Metric | R4, R5 |
| 2 | 20p | leany_footprints:C_0402_1005Metric | C3, C4 |
| 2 | 56k | Resistor_SMD:R_0603_1608Metric | R21, R22 |
| 2 | 5k1 | leany_footprints:R_0402_1005Metric | R19, R20 |
| 1 | +BATT | leany_footprints:TestPoint_Pad_1.0x1.0mm | TP5 |
| 1 | 100R | leany_footprints:R_0402_1005Metric | R25 |
| 1 | 18k | Resistor_SMD:R_0603_1608Metric | R6 |
| 1 | 1M | leany_footprints:R_0402_1005Metric | R9 |
| 1 | 1k | leany_footprints:R_0402_1005Metric | R26 |
| 1 | 1uH | Inductor_SMD:L_1008_2520Metric | L1 |
| 1 | 220R | leany_footprints:R_0402_1005Metric | R3 |
| 1 | 22n | leany_footprints:C_0402_1005Metric | C20 |
| 1 | 22u | Capacitor_SMD:C_0805_2012Metric | C13 |
| 1 | 3.3V | leany_footprints:TestPoint_Pad_1.0x1.0mm | TP7 |
| 1 | 4.7u | Capacitor_SMD:C_0805_2012Metric | C16 |
| 1 | 47n | Capacitor_SMD:C_0603_1608Metric | C15 |
| 1 | 8MHz | leany_footprints:Crystal_SMD_Abracon_ABM3-2Pin_5.0x3.2mm | Y1 |
| 1 | AO3400A | Package_TO_SOT_SMD:SOT-23 | Q2 |
| 1 | AP2112K-3.3 | Package_TO_SOT_SMD:SOT-23-5 | U5 |
| 1 | BATT | leany_footprints:wago_2059-302_998-403 | J4 |
| 1 | BOOT | leany_footprints:SW_Push_1P1T_XKB_TS-1187A | SW4 |
| 1 | BQ25619 | Package_DFN_QFN:Texas_RGE0024H_VQFN-24-1EP_4x4mm_P0.5mm_EP2.7x2.7mm_ThermalVias | U4 |
| 1 | CH340N | leany_footprints:SOP-8_3.9x4.9mm_P1.27mm | U2 |
| 1 | DEBUG_OUT | leany_footprints:TestPoint_Pad_1.0x1.0mm | TP1 |
| 1 | DW01A | Package_TO_SOT_SMD:SOT-23-6 | U6 |
| 1 | GND | leany_footprints:TestPoint_Pad_1.0x1.0mm | TP2 |
| 1 | HOLD | leany_footprints:SW_Push_1P1T_NO_6x6mm_H9.5mm | SW2 |
| 1 | ICM-42688-P | Package_LGA:LGA-14_3x2.5mm_P0.5mm_LayoutBorder3x4y | U3 |
| 1 | NH-B2020RGBA-HF | leany_footprints:NH-B2020RGBA-HF | D1 |
| 1 | POWER | Button_Switch_THT:SW_Tactile_SPST_Angled_PTS645Vx31-2LFS | SW5 |
| 1 | PT8810 | Package_TO_SOT_SMD:SOT-23-6 | Q5 |
| 1 | RESET | leany_footprints:SW_Push_1P1T_XKB_TS-1187A | SW3 |
| 1 | ST7735S | leany_footprints:ST7735S | J1 |
| 1 | STM32F103C8Tx | Package_QFP:LQFP-48_7x7mm_P0.5mm | U1 |
| 1 | SWD | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Horizontal | J2 |
| 1 | USB C | leany_footprints:USB_C_Receptacle_HRO_TYPE-C-31-M-12 | J3 |
| 1 | VBATT | leany_footprints:TestPoint_Pad_1.0x1.0mm | TP4 |
| 1 | VBUS | leany_footprints:TestPoint_Pad_1.0x1.0mm | TP3 |
| 1 | Vin | leany_footprints:TestPoint_Pad_1.0x1.0mm | TP6 |
| 1 | ZERO | leany_footprints:SW_Push_1P1T_NO_6x6mm_H9.5mm | SW1 |
Similar boards
- 2 layers52 × 42 mm

- 4 layers65 × 100 mm

Macropad
mcskny/wireless-he-macropad
A wireless, 12-key Hall-effect macropad built around a custom PCB, an ESP32-C6 sender, an ESP32-S3 USB receiver, and a native macOS companion app.
165 partsGPL-3.0 - 2 layers165.1 × 95.3 mm

Pico concole v2 daughter board
Crem2y/pico-console-v2-pcb
pico console v2 board (firmware : https://github.com/Crem2y/pico-console-v2)
232 parts1MIT - 2 layers94 × 34.3 mm

- 4 layers85.9 × 85.9 mm

Pd1180-epr r0.3
techmannih/pd1180-epr
PD1180-EPR — NEMA 34 Smart Motor-Mounted Stepper Controller with USB-C PD 3.1 EPR
277 parts - 4 layers115.5 × 96.2 mm

Closed deck x4
OpenLogicEFI/Hardware
Hardware is based off an open source project called Speeduino by Josh Stewart.
245 parts19 - 4 layers118 × 76 mm

Smart led badge
zgeez/Pixel-Badge
Wearable 32x32 LED badge with Zephyr firmware, BLE control, passive NFC, and a Flutter Android app, built around a custom nRF52840 PCB.
1,236 partsMIT - 2 layers100 × 100 mm

Internship
neilgibsonpinto-art/litewing-65-flight-controller
An ultra-low SWaP-C (Size, Weight, Power, and Cost) monolithic flight computer and decentralized micro-UAV swarm reconnaissance architecture engineered by Neil Gibson Pinto at Sahyadri College of Engineering &…
87 parts
Questions
How big is the Leany PCB?
It measures 80.4 × 49.3 mm and has 4 copper layers, 1.6 mm thick.
What parts does the Leany use?
83 parts, built around the CH340N, AP2112K-3.3, BQ25619RTW and DW01A. 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 Leany KiCad files?
From the gilleshenrard/leany repository on GitHub, at the commit this page was made from: the board is pcb/leany.kicad_pcb and its schematic pcb/leany.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Leany design in my own project?
Its repository states no licence, so its author keeps all rights: ask gilleshenrard before reusing the design.