
Altimeter2
klownfish/wren-altimeter
A tiny altimeter for 18mm rockets. Assembled by JLCPCB and written in Rust

A tiny altimeter for 18mm rockets. Assembled by JLCPCB and written in Rust
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.
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

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.
MCU: A low-power nRF52833.
Accelerometer: A LIS2DH rotated 45° allowing it to measure accelerations up to 22.5G instead of the typical 16G limit.
Barometer: A BMP390 for altitude measurements.
Flash Memory: 4Mbit of onboard flash. Should log ~10 flights at 50Hz.
Battery: LiPo charging at 30mA.

The onboard firmware is developed in Rust using the Embassy framework.
Before flashing the firmware, you must first flash the bootloader. Navigate to the firmware/bootloader/ directory and run:
cargo run --releaseOnce the bootloader is installed, navigate to the firmware/ directory and run the same command:
cargo run --releaseNote: You only need to flash the bootloader once unless you modify it.
Once the bootloader is flashed, you can update the firmware directly over USB.
Generate a binary file suitable for flashing:
cargo objcopy --release -- -O binary firmware.binThis will create firmware.bin in the current directory.
Connect the board to a USB port.
Run the firmware updater script:
python firmware_updater.py ../firmware/firmware.binPower cycle the board – The updater intercepts the boot process to load the new firmware.
To run a native test build with mock drivers, use:
cargo run --target x86_64-unknown-linux-gnu(Or any other architecture that supports the Rust standard library.)

To fetch data and manage the altimeter, use the dashboard:
python dashboard/main.py
| Qty | Value | Footprint | References |
|---|---|---|---|
| 7 | 0.1u | Capacitor_SMD:C_0402_1005Metric | C1, C3, C4, C5, C7, C11, C18 |
| 6 | 4.7u | Capacitor_SMD:C_0402_1005Metric | C2, C9, C10, C12, C13, C17 |
| 2 | 10p | Capacitor_SMD:C_0402_1005Metric | C15, C16 |
| 2 | 470 | Resistor_SMD:R_0402_1005Metric | R6, R7 |
| 2 | 5.1k | Resistor_SMD:R_0402_1005Metric | R1, R3 |
| 2 | 51k | Resistor_SMD:R_0402_1005Metric | R5, R8 |
| 2 | MountingHole_Pad | custom:square | H2, H3 |
| 1 | 100k | Resistor_SMD:R_0402_1005Metric | R2 |
| 1 | 100p | Capacitor_SMD:C_0402_1005Metric | C6 |
| 1 | 1u | Capacitor_SMD:C_0402_1005Metric | C14 |
| 1 | 32MHz | Crystal:Crystal_SMD_2016-4Pin_2.0x1.6mm | Y1 |
| 1 | 33u | Capacitor_SMD:C_0805_2012Metric | C19 |
| 1 | BMP390L | BMP390L:XDCR_BMP390L | U3 |
| 1 | Conn_01x05_MountingPin | Connector_JST:JST_SH_BM05B-SRSS-TB_1x05-1MP_P1.00mm_Vertical | J2 |
| 1 | LIS2DH | Package_LGA:LGA-14_2x2mm_P0.35mm_LayoutBorder3x4y | U5 |
| 1 | LOGO | LOGO | G*** |
| 1 | MCP73832T-2 | Package_TO_SOT_SMD:SOT-23-5 | U2 |
| 1 | MountingHole | MountingHole:MountingHole_2.2mm_M2 | H1 |
| 1 | SW_SPDT | Button_Switch_SMD:SW_SPDT_CK_JS102011SAQN | SW2 |
| 1 | USB_C_Receptacle_USB2.0_16P | Connector_USB:USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_Horizontal | J1 |
| 1 | W25X40CLUXIG | Package_SON:Winbond_USON-8-1EP_3x2mm_P0.5mm_EP0.2x1.6mm | U4 |
| 1 | blue | LED_SMD:LED_0402_1005Metric | D1 |
| 1 | nRF52833_QDxx | Package_DFN_QFN:QFN-40-1EP_5x5mm_P0.4mm_EP3.6x3.6mm | U1 |
| 1 | red | LED_SMD:LED_0402_1005Metric | D2 |

klownfish/wren-altimeter
A tiny altimeter for 18mm rockets. Assembled by JLCPCB and written in Rust


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.


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.



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

Ansariricky/Unochopper
designing and building a fully fledged fpv drone system from scratch
It measures 12 × 34 mm and has 4 copper layers, 1.6 mm thick.
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.
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.
Its repository states no licence, so its author keeps all rights: ask klownfish before reusing the design.