Skip to the content
4 layers60 × 99.3 mmOBike, the printed circuit board in 3D

open source bike telemetry project using an nrf58240

Size
60 × 99.3 mm
Copper layers
4
Thickness
1.6 mm
Parts
73
Nets
93
Pads
319
Tracks, vias
610, 108
Pours
4
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
30 Apr 2024
Updated
26 Oct 2026

Overview

OBike is an open-source printed circuit board by Kleptobot, from the Kleptobot/bike_telemetry repository on GitHub, published under the MIT licence. It is a 4-layer board of 60 × 99.3 mm with 73 parts on 93 nets, routed with 610 tracks and 108 vias.

It is built around the DPS368XTSA1, W25N01GVZEIGTR and MAX40200AUK, with the 74HC14, LC76G and PCF85063AT/A among its other parts. Its parts include 24 resistors, 20 capacitors, 10 ICs, 8 connectors and 7 diodes. It belongs with the SAM D and SAM boards of this library.

Main components

10

README

Readme.md

OBike — Open Bicycle Telemetry Platform

OBike is an open-source hardware and firmware project for building a DIY bike computer that feels closer to a purpose-built cycling device than a generic microcontroller project. It combines a colour display, GPS, Bluetooth sensors, barometric altitude, and SD-card logging into a single platform you can build, modify, and improve.

If you like the idea of a compact, open bike computer that can log rides, display live metrics, and be extended with new sensors or UI ideas, this repository is a good place to start.

OBike v3 assembly

What this project does

OBike is intended to capture and present ride data such as:

  • speed and distance
  • cadence and power
  • heart rate
  • GPS position and track history
  • barometric altitude and sensor-derived data

It presents that information on a colour screen and can log sessions to microSD in FIT, TCX, or CSV formats.

It also supports common Bluetooth cycling peripherals that implement the CSC, HRM, and CPS profiles.

What is in this repository

  • src/ — firmware source in C++
    • src/App.* — main application state and control flow
    • src/HAL/ — hardware abstraction for GPS, SD, Bluetooth, buttons, and sensors
    • src/ui/ — UI screens and widgets
    • src/Loggers/ — FIT, TCX, and CSV logging implementations
    • src/display/ — display driver and rendering wrappers
  • kicad/ — KiCad schematic and PCB layout files
  • 3D_CAD/ — enclosure and mounting CAD files for 3D printing
  • sim/ — desktop simulator for trying the firmware logic without hardware
  • platformio.ini — PlatformIO build configuration

Hardware overview

The current hardware target is a compact embedded bike-computer build based on:

  • MCU: Seeed Studio XIAO nRF52840 (Sense)
  • GNSS: Quectel LC76G module
  • Display: ST7789-based full-colour 240×320 SPI panel
  • Sensors: RTC, barometric pressure sensor, IMU, and SD card storage
  • IO: debounced physical controls and Bluetooth cycling-device support

Quick start

Build the firmware

  1. Install PlatformIO.

  2. From the repository root, run:

    bash
    platformio run
  3. To upload to the target board:

    bash
    platformio run --target upload

Try it without hardware

The repository includes a desktop simulator under sim/ that can exercise much of the application logic and UI without needing the embedded board.

Software features

  • Firmware built with PlatformIO and the Arduino framework
  • Telemetry aggregation from BLE sensors, GPS, and onboard sensors
  • Logging to microSD in FIT, TCX, and CSV formats
  • GPS control and NMEA handling for the LC76G module
  • A simple UI for ride data and device interaction
  • Bluetooth device discovery, pairing, and connection management

Dependencies

The firmware depends on a number of Arduino and embedded libraries, including:

  • Adafruit_GFX
  • Adafruit_ST7789
  • RTClib
  • MCP23017 support for the I/O expander
  • LSM6DS3
  • XENSIV pressure-sensor support
  • ArduinoJson
  • TinyGPSPlus

Key files to inspect

  • src/HAL/LC76G.cpp and src/HAL/LC76G.hpp — GNSS driver, NMEA handling, and command flow
  • src/display/Display.hpp and src/display/Display.cpp — display wrapper and rendering layer
  • src/Loggers/TCXLogger.cpp and src/Loggers/CSVLogger.cpp — ride logging implementations
  • src/App.cpp — main application loop and state handling
  • kicad/ — schematic and PCB design files
  • 3D_CAD/ — printable enclosure and mounting hardware

Troubleshooting and debugging

  • Serial logs are useful during development and can help trace GPS and device activity.
  • Raw NMEA data can be captured to the SD card for debugging GPS behavior.
  • The LC76G path has previously been sensitive to malformed or long NMEA streams, so keeping firmware updates current is important if you hit GPS issues.

Notes for first-time visitors

This project is best viewed as a hands-on, open-source bike-computer platform rather than a polished consumer product. It is a strong fit if you want to learn embedded firmware, PCB design, logging formats, BLE peripherals, and how a compact cycling computer can be assembled from open parts.

If you are curious about building your own ride-data device, this repository is a practical starting point for both the hardware and software sides of the project.

Parts

73
QtyValueFootprintReferences
1410KResistor_SMD:R_0805_2012MetricR1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R22, R23, R24, R25
91.0uFCapacitor_SMD:C_0805_2012MetricC2, C4, C5, C6, C7, C8, C9, C12, C14
51N4148WDiode_SMD:D_SOD-123D1, D2, D3, D4, D5
40.1uFCapacitor_SMD:C_0805_2012MetricC1, C3, C11, C13
3100KResistor_SMD:R_0603_1608MetricR11, R16, R17
3MAX40200AUKPackage_TO_SOT_SMD:SOT-23-5U6, U8, U10
2100nFCapacitor_SMD:C_0603_1608MetricC17, C20
210KResistor_SMD:R_0603_1608MetricR18, R37
210uFCapacitor_SMD:C_0603_1608MetricC10, C19
21KResistor_SMD:R_0603_1608MetricR15, R38
233pFCapacitor_SMD:C_0603_1608MetricC16, C21
2Conn_01x02Connector_PinHeader_2.00mm:PinHeader_1x02_P2.00mm_VerticalJ6, J8
2ESDA051-1JYDiode_SMD:D_SOD-323D6, D7
2SS8050Package_TO_SOT_SMD:SOT-23Q1, Q2
10RResistor_SMD:R_0603_1608MetricR14
12R2Resistor_SMD:R_0603_1608MetricR12
14.7uFCapacitor_SMD:C_0603_1608MetricC18
147RResistor_SMD:R_0603_1608MetricR36
15_position_tactile5_pos:5-positionSW1
174HC14Package_SO:SOIC-14_3.9x8.7mm_P1.27mmU4
1Conn_01x02Connector_JST:JST_PH_S2B-PH-K_1x02_P2.00mm_HorizontalJ3
1Conn_01x04Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ4
1Conn_01x05Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ7
1CrystalJauch:OSCSC320X150X90Y1
1DPS368XTSA1Infineon Technologies:PG-VLGA-8-2_INFU1
1F34G-1A7Q1-E8C40amphenol:AMPHENOL_F34G-1A7Q1-E8C40J1
1LC76Gquectel:XCVR_LC76GU7
1MCP23017_SOPackage_SO:SOIC-28W_7.5x17.9mm_P1.27mmU3
1Micro_SD_Card_Det1CUI:CUI_MSD-4-AJ2
1PCF85063ATPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU2
1Seeed Studio XIAO SAMD21xiao:XIAO-nRF52840-Sense-14P-2.54-21X17.8MMU5
1U.FL-R-SMT-1_10_Hirose:HRS_U.FL-R-SMT-1_10_J5
1W25N01GVZEIG_TRwindbond:SON127P800X600X80-9NU9

Similar boards

  • 2 layers85.2 × 107.8 mmVCU Module, the printed circuit board in 3D

    VCU Module

    VikingMotorsports/2027-SAE-Electric-VCU

    temp VMS VCU repo

    66 parts3
  • 4 layers98 × 98 mmAds b, the printed circuit board in 3D

    Ads b

    beam-ttm/simulaciones

    Simulaciones electromagnéticas Full-Wave (Sonnet EM) y diseño final de antena patch ADS-B 1090 MHz RHCP — Proyecto CubeSat BEAM (UNLaM)

    53 parts
  • 4 layers20.3 × 53.6 mmSense trinket, the printed circuit board in 3D

    Sense trinket

    UCSD-SEELab/light-approx

    light-approx - machine-learning - src - data - output - sensor-station - src - design - sensor-trinket - src - design - feature-extraction - sdsc-weather - src - data - gps-context - src - data

    43 parts1
  • 4 layers100.1 × 60.2 mmHades, the printed circuit board in 3D

    Hades

    pms67/HadesFCS

    Complete flight control system designed from scratch. Hardware designed with KiCad.

    215 parts1kBSD-3-Clause
  • 2 layers38.1 × 3.8 mmShio, the printed circuit board in 3D

    Shio

    uw-x/clearbuds-hw

    Errata: The design contains some errors that can be addressed in future revisions. The errors do not affect function, but do affect robustness. 1. Add 0.1uF decoupling capacitor to PDM mic (ICS-41350) Vcc. 2.

    86 parts17

Questions

How big is the OBike PCB?

It measures 60 × 99.3 mm and has 4 copper layers, 1.6 mm thick.

What parts does the OBike use?

73 parts, built around the DPS368XTSA1, W25N01GVZEIGTR, MAX40200AUK and 74HC14. 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 OBike KiCad files?

From the Kleptobot/bike_telemetry repository on GitHub, at the commit this page was made from: the board is kicad/OBike.kicad_pcb and its schematic kicad/OBike.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the OBike design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).