Skip to the content
4 layers12 × 34 mmAltimeter, the printed circuit board in 3D

A tiny altimeter for 18mm rockets. Assembled by JLCPCB and written in Rust

Size
12 × 34 mm
Copper layers
4
Thickness
1.6 mm
Parts
40
Nets
44
Pads
184
Tracks, vias
432, 70
Pours
5
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
29 Sep 2024
Updated
26 Apr 2025

Overview

Altimeter is an open-source printed circuit board by klownfish, from the klownfish/wren-altimeter repository on GitHub. It is a 4-layer board of 12 × 34 mm with 40 parts on 44 nets, routed with 432 tracks and 70 vias.

It is built around the BMP390L, W25X40CLUXIG and LIS2DH. Its parts include 18 capacitors, 7 resistors, 5 ICs, 2 diodes and 2 connectors. It belongs with the nRF52 and nRF5x boards of this library.

Main components

3

README

README.md

Wren

Wren is an altimeter small enough to fit in a standard 18mm model rocket. It is designed to be assembled by JLCPCB for as low of a price as possible. The altitude, velocity and acceleration are sampled and saved at 50Hz. The battery should last for tens of hours while waiting for a launch and is charged through USB-C

Hardware

A 12mm x 34mm 4 layer PCB, designed to only use components from JLCPCB's stock. Single sided assembly with only a debug connector and battery pads on the back.

  1. MCU: A low-power nRF52833.

  2. Accelerometer: A LIS2DH rotated 45° allowing it to measure accelerations up to 22.5G instead of the typical 16G limit.

  3. Barometer: A BMP390 for altitude measurements.

  4. Flash Memory: 4Mbit of onboard flash. Should log ~10 flights at 50Hz.

  5. Battery: LiPo charging at 30mA.

Firmware

The onboard firmware is developed in Rust using the Embassy framework.

Flashing the Firmware

1. Flash the Bootloader

Before flashing the firmware, you must first flash the bootloader. Navigate to the firmware/bootloader/ directory and run:

bash
cargo run --release

2. Flash the Firmware

Once the bootloader is installed, navigate to the firmware/ directory and run the same command:

bash
cargo run --release

Note: You only need to flash the bootloader once unless you modify it.

Updating via USB

Once the bootloader is flashed, you can update the firmware directly over USB.

1. Build the Firmware Binary

Generate a binary file suitable for flashing:

bash
cargo objcopy --release -- -O binary firmware.bin

This will create firmware.bin in the current directory.

2. Upload the Firmware

  1. Connect the board to a USB port.

  2. Run the firmware updater script:

    bash
    python firmware_updater.py ../firmware/firmware.bin
  3. Power cycle the board – The updater intercepts the boot process to load the new firmware.

Testing

To run a native test build with mock drivers, use:

bash
cargo run --target x86_64-unknown-linux-gnu

(Or any other architecture that supports the Rust standard library.)


Software

Dashboard Interface

To fetch data and manage the altimeter, use the dashboard:

bash
python dashboard/main.py

WIP bluetooth version

Parts

40
QtyValueFootprintReferences
70.1uCapacitor_SMD:C_0402_1005MetricC1, C3, C4, C5, C7, C11, C18
64.7uCapacitor_SMD:C_0402_1005MetricC2, C9, C10, C12, C13, C17
210pCapacitor_SMD:C_0402_1005MetricC15, C16
2470Resistor_SMD:R_0402_1005MetricR6, R7
25.1kResistor_SMD:R_0402_1005MetricR1, R3
251kResistor_SMD:R_0402_1005MetricR5, R8
2MountingHole_Padcustom:squareH2, H3
1100kResistor_SMD:R_0402_1005MetricR2
1100pCapacitor_SMD:C_0402_1005MetricC6
11uCapacitor_SMD:C_0402_1005MetricC14
132MHzCrystal:Crystal_SMD_2016-4Pin_2.0x1.6mmY1
133uCapacitor_SMD:C_0805_2012MetricC19
1BMP390LBMP390L:XDCR_BMP390LU3
1Conn_01x05_MountingPinConnector_JST:JST_SH_BM05B-SRSS-TB_1x05-1MP_P1.00mm_VerticalJ2
1LIS2DHPackage_LGA:LGA-14_2x2mm_P0.35mm_LayoutBorder3x4yU5
1LOGOLOGOG***
1MCP73832T-2Package_TO_SOT_SMD:SOT-23-5U2
1MountingHoleMountingHole:MountingHole_2.2mm_M2H1
1SW_SPDTButton_Switch_SMD:SW_SPDT_CK_JS102011SAQNSW2
1USB_C_Receptacle_USB2.0_16PConnector_USB:USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_HorizontalJ1
1W25X40CLUXIGPackage_SON:Winbond_USON-8-1EP_3x2mm_P0.5mm_EP0.2x1.6mmU4
1blueLED_SMD:LED_0402_1005MetricD1
1nRF52833_QDxxPackage_DFN_QFN:QFN-40-1EP_5x5mm_P0.4mm_EP3.6x3.6mmU1
1redLED_SMD:LED_0402_1005MetricD2

More from klownfish/wren-altimeter

1
  • 4 layers14 × 30 mmAltimeter2, the printed circuit board in 3D

    Altimeter2

    klownfish/wren-altimeter

    A tiny altimeter for 18mm rockets. Assembled by JLCPCB and written in Rust

    14 parts

Similar boards

  • 4 layers50 × 70 mmSTM32-FC, the printed circuit board in 3D

    STM32-FC

    NARAE-INHA-UNIV/NARAEON-hw

    STM32-based flight controller designed with KiCAD.

    111 parts3
  • 4 layers30.5 × 27 mmTrustflight hardware, the printed circuit board in 3D

    Trustflight hardware

    korken89/trustflight_hardware

    A small and simple flight controller to be used with the trustflight firmware flight controller firmware, which is focusing on safety by using the Rust programming language.

    69 parts1
  • 4 layers34.5 × 56 mmKfly hat, the printed circuit board in 3D

    Kfly hat

    korken89/kfly_hat

    90 parts
  • 4 layers40 × 100 mmNNCpro, the printed circuit board in 3D

    NNCpro

    PlanAndBuild/NoNameComputer-2.0

    The NoNameComputer 2.0 AKA NNCpro is being designed for mid-high power rockets and other flying vehicle. It will be equipped with various sensors like barometers, IMUs, magnetometer, current sensing etc.

    263 parts2
  • 4 layers65.5 × 39 mmHeli avionics, the printed circuit board in 3D

    Heli avionics

    1-max-1/heli-avionics

    Electronics and software for a mini RC helicopter

    78 parts1
  • 4 layers42 × 44.4 mmSTM32 FlightController, the printed circuit board in 3D

    STM32 FlightController

    JLjoestar23/STM32_FlightController

    PCB, software, firmware, and other files related to a custom made STM32-based flight controller.

    56 parts1

Questions

How big is the Altimeter PCB?

It measures 12 × 34 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Altimeter use?

40 parts, built around the BMP390L, W25X40CLUXIG and LIS2DH. 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 Altimeter KiCad files?

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

Can I use the Altimeter design in my own project?

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