Can distance sensor
nlbutts·can_distance_sensor·electronics/can_distance_sensor.kicad_pcb
About the Can distance sensor PCB
Can distance sensor is an open source STM32 PCB design by nlbutts, published on GitHub under the MIT license. It is a 4-layer board measuring 46 × 30 mm, with 57 components from 32 distinct parts.
Its main chip is the STM32G0B1KBUx, from the STM32 family. Other key parts include the USBLC6-2SC6, L78M05ABDT-TR, TPS7A0508PDBZ, TCAN1044A-Q1 and VL53L3CXV0DH/1. By type, the board carries 18 capacitors, 16 resistors, 8 ICs, 8 diodes, 4 connectors and 1 transistor.
It belongs with the sensors and power & battery designs in this gallery.
From the project
This is a small CAN based Time-of-Flight (TOF) sensor. It determines the distance to an object and sends the resulting message on the CAN bus.
This is a small CAN based Time-of-Flight (TOF) sensor. It determines the distance to an object and sends the resulting message on the CAN bus.
The buck generates 5V which is used for the CAN transceiver. The 5V is fed to two LDO's to generate 3.3V for the processor and 2.8V for the TOF sensor.
There are two status LEDs on the board. An STM32G431 processor powers everything.

Main components on the Can distance sensor
Can distance sensor bill of materials (BOM)
57 components, 32 distinct parts — part numbers from the project's BOM.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | USBLC6-2SC6 | SOT-23-6 | U1 |
| 1 | L78M05ABDT-TR | VREG_L78M05ABDT-TR | U2 |
| 2 | TPS7A0508PDBZ | SOT-23 | U3, U4 |
| 1 | TCAN1044A-Q1 | VSON-8-1EP_3x3mm_P0.65mm_EP1.6x2.4mm | U6 |
| 1 | VL53L3CXV0DH/1 | LGA12_STM | U7 |
| 1 | TCA9509DGKR | DGK8 | U8 |
| 1 | STM32G0B1KBUx | QFN-32-1EP_5x5mm_P0.5mm_EP3.45x3.45mm | U9 |
| 1 | AO3401A | SOT-23 | Q2 |
| 1 | Crystal_GND24 | Crystal_SMD_3225-4Pin_3.2x2.5mm | Y1 |
| 1 | Conn_ARM_JTAG_SWD_10 | Tag-Connect_TC2050-IDC-NL_2x05_P1.27mm_Vertical_with_bottom_clip | J2 |
| 1 | Conn_01x04 | JST_PH_S4B-PH-K_1x04_P2.00mm_Horizontal | J3 |
| 1 | Conn_01x06 | JST_PH_S6B-PH-K_1x06_P2.00mm_Horizontal | J4 |
| 1 | USB_C_Receptacle | CONN_105450-0101_MOL | J5 |
| 1 | PTS645SK50SMTR92LFS | PTS645SK50SMTR92LFS_CNK | SW1 |
| 2 | D_Schottky | D_SOD-123 | D1, D5 |
| 2 | LED | LED_0603_1608Metric | D2, D3 |
| 1 | D_Zener | D_SOD-123 | D6 |
| 3 | SP0502BAHT | SOT-23 | D7, D8, D9 |
| 6 | 4.7u | C_0603_1608Metric | C1, C15, C17, C26, C27, C28 |
| 6 | 0.1u | C_0402_1005Metric | C2, C3, C8, C23, C24, C25 |
Show 12 more
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | 2.2u | C_0603_1608Metric | C4 |
| 2 | 15p | C_0402_1005Metric | C9, C10 |
| 2 | 10u | C_0603_1608Metric | C16, C20 |
| 1 | 1u | C_0402_1005Metric | C22 |
| 2 | 1K | R_0402_1005Metric | R2, R6 |
| 2 | 100k | R_0402_1005Metric | R3, R16 |
| 2 | 22 | R_0402_1005Metric | R4, R5 |
| 1 | 4.7k | R_0402_1005Metric | R7 |
| 2 | 330 | R_0402_1005Metric | R8, R9 |
| 4 | 10k | R_0402_1005Metric | R17, R19, R20, R22 |
| 1 | 120 | R_0402_1005Metric | R18 |
| 2 | 2.2k | R_0402_1005Metric | R21, R23 |
Can distance sensor design files
The KiCad project lives in the nlbutts/can_distance_sensor repository on GitHub; these links point at the commit this page was built from.
Can distance sensor: common questions
What microcontroller does the Can distance sensor use?
The Can distance sensor is built around the STM32G0B1KBUx, from the STM32 family.
How big is the Can distance sensor PCB?
The Can distance sensor measures 46 × 30 mm, has 4 copper layers and is 1.6 mm thick.
How many components are on the Can distance sensor?
57 components, from 32 distinct parts, with part numbers taken from the project's own BOM. The full bill of materials is listed on this page.
Where can I download the Can distance sensor design files?
From the nlbutts/can_distance_sensor repository on GitHub, which has the KiCad layout, the schematic and the BOM; the links under Design files point to each one.
Can I use the Can distance sensor design in my own project?
Yes, under the terms of its MIT license, which nlbutts chose for the repository.
Can I test firmware for the Can distance sensor without the hardware?
Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug STM32 firmware against it before you order a PCB.
Similar boards
STM32
LumenPnP Motherboard
opulo-inc
149 × 95 mm296 parts4LCC-BY-SA-4.03.7kSTM32
Type g
google
169 × 30 mm24 parts2LApache-2.02.9kSTM32
Base
google
52.3 × 52.3 mm36 parts2LApache-2.02.9kSTM32
Main panel
google
234 × 84 mm26 parts4LApache-2.02.9kSTM32
Type a
google
150 × 30 mm14 parts2LApache-2.02.9kSTM32
Type c
google
188 × 30 mm17 parts2LApache-2.02.9k