Skip to the content
2 layers41 × 20 mmZenith tag, the printed circuit board in 3D

Zenith Tag is a compact embedded altitude logger built around the NXP NHS3100 and Bosch BMP388. It captures relative max flight altitude from barometric pressure and writes the result as an NFC URI record, so the value can be read by a phone with no wired interface.

Size
41 × 20 mm
Copper layers
2
Thickness
1.6 mm
Parts
18
Nets
25
Pads
80
Tracks, vias
195, 26
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
14 Jul 2026
Updated
14 Jul 2026

Overview

Zenith tag is an open-source printed circuit board by calakmul1, from the calakmul1/zenith-tag repository on GitHub. It is a 2-layer board of 41 × 20 mm with 18 parts on 25 nets, routed with 195 tracks and 26 vias.

It is built around the BMP388, NHS3100/A1Z and BK-870, with the TC2030-IDC-NL among its other parts. Its parts include 6 resistors, 4 capacitors, 2 ICs, 2 switches and 1 diode. It belongs with the radio and wireless and interfaces and adapters boards of this library.

Main components

4

README

README.md

Zenith Tag - NFC Flight Altitude Logger

Zenith Tag is a compact embedded altitude logger built around the NXP NHS3100 and Bosch BMP388. It captures relative max flight altitude from barometric pressure and writes the result as an NFC URI record, so the value can be read by a phone with no wired interface.

PCB Altitude meter UI
PCB LayoutAltitude Meter UI

What This Repository Contains

This repository is split into three main parts:

  • hw/: KiCad design files, custom libraries, 3D models, and datasheets
  • sw/: NHS3100 firmware project (MCUXpresso style) and source modules
  • web/: Vue 3 web app served from the NFC URI that visualises the recorded altitude

High-Level Features

  • BMP388 pressure and temperature acquisition over I2C
  • Full BMP388 calibration and compensation implementation in firmware
  • Relative altitude computation using barometric equation
  • Push-button controlled measurement session
  • LED status signaling (idle, actively measuring, and error indication)
  • NFC Type-2 compatible NDEF URI payload written to NHS3100 shared memory
  • Web app landing page that parses the height query parameter and renders an animated altitude bar

Repository Structure

Hardware (hw/)

  • Main KiCad project files:
    • hw/hw.kicad_sch
    • hw/hw.kicad_pcb
    • hw/hw.kicad_pro
  • Custom part libraries:
    • hw/footprints/ and hw/hw.pretty/ for footprint definitions
    • hw/symbols/ for custom symbol definitions
    • hw/models/ for STEP 3D models
  • Engineering references:
    • hw/datasheets/ for component PDFs and reference image files
    • hw/calculations/NFC-Antenna-Calculation.xlsx for antenna-related design calculations

Firmware (sw/)

  • Application source tree: sw/src/
  • Core application entry point: sw/src/main.c
  • Board and low-level init:
    • sw/src/board/inc/board.h
    • sw/src/board/src/board.c
  • Functional components:
    • sw/src/components/button/
    • sw/src/components/led/
    • sw/src/components/pressure/
    • sw/src/components/nfc/
  • Device/library code:
    • sw/src/lib/lib_chip_nss/
    • sw/src/lib/startup/

Web App (web/)

A Vite + Vue 3 single-page app hosted at the NFC URI target.

  • Entry point: web/src/App.vue
  • Reads the height query parameter from the URL (e.g. ?height=12.34)
  • Renders an animated vertical bar showing the recorded altitude, clamped to ±30 m
  • Styled with Bulma

To run locally:

sh
cd web
npm install
npm run dev

To build for production:

sh
npm run build

Firmware Behavior

The main loop in sw/src/main.c follows this sequence:

  1. Initialize board/peripherals and BMP388.
  2. Wait for button press to start a measurement session.
  3. Collect a short pre-takeoff pressure baseline (PRE_TAKEOFF_MEASUREMENTS).
  4. Repeatedly sample pressure while session is active, tracking the minimum pressure reached.
  5. End session with a second button press.
  6. Compute signed relative altitude from both pressure_min and pressure_max versus baseline pressure, choose the larger magnitude, then apply a -0.50 m offset.
  7. Store the measured value over NFC as a URI query parameter: https://example.com/?height=<value>.

Current default timing constants are defined in sw/src/config.h:

  • Debounce: 5 ms
  • Measurement interval: 20 ms
  • LED toggle during active measurement: 500 ms
  • Baseline sample count: 10

Hardware/Firmware Interface Summary

  • MCU: NXP NHS3100 (integrated NFC + Cortex-M0+)
  • Pressure sensor: Bosch BMP388 on I2C address 0x77
  • Key pin usage in firmware:
    • PIO0_1: button input
    • PIO0_2: status LED output
    • PIO0_4: I2C SCL
    • PIO0_5: I2C SDA

NFC Output Format

The NFC module (sw/src/components/nfc/nfc.c) writes a compact NDEF URI record into NHS3100 NFC shared memory. The payload encodes a URL in this form: https://example.com/?height=<value>.

Example payload:

https://example.com/?height=12.34

Build and Flash Notes

This project is structured like an MCUXpresso/Eclipse embedded project.

  • Recommended workflow:
    • Import the sw/ project into MCUXpresso IDE
    • Build using IDE-managed toolchain/configuration
    • Program/debug using LinkServer and the provided launch configuration
  • Command-line makefiles are auto-generated and may contain absolute machine-specific paths in linker/library references.

Included References

  • Component datasheets and design references: hw/datasheets/

Typical Use

  1. Manufacture the PCB.
  2. Configure GUI_BASE_URL in config.h with the URL of the web application that should open after the NFC tag is scanned.
  3. Build and flash the firmware to the NHS3100 board.
  4. Power on the tag and wait for idle-ready indication.
  5. Press the button to start logging.
  6. Press the button again to stop logging.
  7. Tap a phone to the NFC antenna area — the phone opens the stored URI in a browser.
  8. The web app reads the height query parameter and displays the recorded altitude.

Parts

18
QtyValueFootprintReferences
2100nCapacitor_SMD:C_0402_1005MetricC1, C2
2150RResistor_SMD:R_0402_1005MetricR3, R4
24K7Resistor_SMD:R_0402_1005MetricR1, R2
11KResistor_SMD:R_0402_1005MetricR5
11nCapacitor_SMD:C_0402_1005MetricC4
1470nCapacitor_SMD:C_0402_1005MetricC3
1680RResistor_SMD:R_0402_1005MetricR6
1BK-870hw:BK870BAT1
1BMP388hw:BMP388-QFN_BMP388_BOSU1
1LEDhw:LED_NCD0805R1_FNOD1
1NFC Antennahw:NFC_ANTENNA10x15L1
1NHS3100hw:NHS3100-QFN50P400X400X100-25NU2
1ON/OFFhw:SK12D07VG4SW1
1PUSHhw:B3U-1000P_OMRSW2
1TC2030-IDC-NLhw:TAG_TC2030-IDC-NLJ1

Similar boards

  • 8 layers38.5 × 38.5 mmFlight Controller, the printed circuit board in 3D

    Flight Controller

    rishikesh2715/STM32F7_FC

    STM32F722RET6 Based Flight Controller with ICM-42688-P IMU, BMP388 Barometer, and much more!

    133 parts57MIT
  • 4 layers56.5 × 99.8 mmBitaxeGamma, the printed circuit board in 3D

    BitaxeGamma

    bitaxeorg/bitaxeGamma

    Bitaxe based on the BM1370 from the S21 Pro

    147 parts432CERN-OHL-S-2.0
  • 4 layers84.5 × 129.5 mmBitaxeHex, the printed circuit board in 3D

    BitaxeHex

    bitaxeorg/ultraHex

    multi-ASIC Bitcoin miner

    369 parts190CERN-OHL-S-2.0
  • 2 layers109 × 71 mmGamma split, the printed circuit board in 3D

    Gamma split

    ahtn/keyboard_pcb

    156 parts96
  • 4 layers72.6 × 170 mmOpenJBOD RP2040, the printed circuit board in 3D

    OpenJBOD RP2040

    OpenJBOD/rp2040

    This repository contains the hardware design files OpenJBOD RP2040 Baseboard.

    129 parts87CERN-OHL-P-2.0
  • 6 layers65 × 112 mmBitaxeGT, the printed circuit board in 3D

    BitaxeGT

    bitaxeorg/BitaxeGT

    Bitaxe Gamma Turbo 2x BM1370 ASIC ESP32 powered Bitcoin miner

    187 parts70CERN-OHL-S-2.0
  • 2 layers178.6 × 99.4 mmQuefrency right-65, the printed circuit board in 3D

    Quefrency right-65

    keebio/quefrency-rev1-pcb

    Quefrency Rev. 1 Keyboard PCB =============================

    162 parts45MIT

Questions

How big is the Zenith tag PCB?

It measures 41 × 20 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Zenith tag use?

18 parts, built around the BMP388, NHS3100/A1Z, BK-870 and TC2030-IDC-NL. 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 Zenith tag KiCad files?

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

Can I use the Zenith tag design in my own project?

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