Build Instructions
Bill of Materials (BOM)
-
Print all parts in PETG (345,06g incl. support) (116kr) Bicycledata v2.3mf
- Box Body
- Box Bottom
- Pi Tray
- Top Rail
- Rear Mount
- USB Mount (part A)
- USB Mount (part B)
- Switch Mount
- Box Top
-
Core Electronics (4383kr)
- 1x Raspberry Pi 5 (4GB RAM) price: 829kr
- 1x microSD card (32GB) price: 149kr
- 1x USB GPS module price: 249kr
- 1x LiDAR sensor TFMini-S price: 769kr
- 1x Garmin Varia RVR315 price: 1599kr
- 1x Powerbank Anker Nano price: 699kr
- 1x RTC-batteri för Raspberry Pi 5 price: 89kr
-
USB & Power Components
- 1× USB-C female connector
- 1× USB-C female connector with CC support
- 1× USB-C male connector with CC support
- Data cable + connectors (e.g. Molex)
-
User Interface Components
- 1x 4-pin on-off switch
- 1x push button
- 3x led
- 1x push button (for OT)
-
Mechanical & Mounting Hardware
- 4× M2.5×6 screws (for mounting the Raspberry Pi)
- 1× 60×80×1 mm metal plate (metallplåt)
- 1× M5×20 bolt + lock nut (rear mount)
- 12× M4×10 bolts + lock nuts (for the enclosure / lock) link
- 1× Garmin SEAT RAIL MOUNT KIT price: 459kr
-
Enclosure & Display Parts
- 1x 24x35x2mm plastic glass (plexiglas / plastglas)
Pin Schema
-
LiDAR
- PIN 04: 5v
- PIN 06: Ground
- PIN 08: GPIO 14: UART0 TX
- PIN 10: GPIO 15: UART0 RX
From the back, connector on the top: Ground, 5V. TX, RX
-
Button OT
- D+ -> PIN 14: Ground
- D- -> PIN 16: GPIO 23
-
Button Power-off:
- PIN 30: Ground
- PIN 32: GPIO 12
-
LEDs
- PIN 34: Ground
- PIN 36: GPIO 16 (wifi)
- PIN 38: GPIO 20 (gps)
- PIN 40: GPIO 21 (radar)
-
USB-C (for power supply)
- V
- G
- CC1: A5
- CC2: B5
Build Steps
- Print Bicycledata v2.3mf
- Remove the supports and insert 12 M4 lock nuts into the bottom and top covers.
- Mount the Raspberry Pi to the Pi tray using 4 M2.5x6 mm screws.
- Insert the plastic window into the bottom cover (e.g., secure it with CA glue).
- Place the power bank with the screen facing up on top of the plastic window inside the bottom cover.
- Prepare the buttons, USB-C connectors, and LEDs with Molex connectors (TODO: add more detailed instructions).
- ...
Power Supply
The box is powered by a USB-C power bank. To allow recharging without opening the enclosure, a USB-C receptacle is mounted to the housing.
An ON–OFF–ON switch is used to select between charging mode and operating mode. This ensures that only one active power connection is present at a time — or none when the switch is in the neutral (center) position.
Wiring
Each USB-C power connection requires four wires: V, G, CC1 (A5), and CC2 (B5). The switch must connect V to V, G to G, CC1 to CC1, and CC2 to CC2.
The common (middle) terminal of the switch is connected to a usb-c receptacle which is connected to the USB-C output/input cable of the power bank. (important: not the output/input port)
The two ON positions are wired as follows:
Charging mode Connects the power bank to the external USB-C receptacle on the housing (for charging the power bank).
Operating mode Connects the power bank to the USB-C connector connected to the Raspberry Pi (to power the system).
In the center (OFF) position, the power bank is disconnected from both circuits.
Note
This wiring solution is functional but not ideal from an electrical design perspective. Improvements such as power-path management, proper load sharing, or protection circuitry may increase safety and reliability. Suggestions for enhancement are welcome.
Switch schema
###
# ON ---> usb-c receptacle -> charging
# OFF --> usb-c receptacle -> power bank's cable
# ON ---> usb-c connector -> raspberry pi
###