Skip to the content
2 layers38.2 × 16.5 mmXsens USB Converter Replica, the printed circuit board in 3D

This repository contains all content necessary regarding the data collection time synchronization solutions used by the FRUC team on the collection and processing of their datasets.

Size
38.2 × 16.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
36
Nets
33
Pads
112
Tracks, vias
198, 79
Pours
2
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
26 Nov 2025
Updated
29 Jun 2026

Overview

Xsens USB Converter Replica is an open-source printed circuit board by Forestry-Robotics-UC, from the Forestry-Robotics-UC/rosbag_timesync_utils repository on GitHub. It is a 2-layer board of 38.2 × 16.5 mm with 36 parts on 33 nets, routed with 198 tracks and 79 vias.

It is built around the FT234XD-R. Its parts include 12 capacitors, 7 diodes, 2 ICs, 2 connectors and 2 inductors.

Main components

1

README

README.md

FRUC PHYSICAL SENSOR TIME SYNCHRONIZATION UTILITIES

This repository contains all content necessary regarding the data collection time synchronization solutions used by the FRUC team on the collection and processing of their datasets. It includes both the PCB boards used during data collection, as well as the post processing script used for each bag captured to fix each message timestamp accordingly

Custom Boards

The Designs/ folder contains production-ready files for the two auxiliary boards used during data collection. These files are compatible with majority of manufacturers, but were particularly designed to use with JLCPCB

Inside the root of each board's design folder is a .pdf schematic, a 3D .step file and the images present in this README. Furthermore, there are also two folders:

  • ProductionFiles/, which contains:
    • Gerber files .zip archive
    • Bill of Materials in .xlsx format (for PCB assembly only)
    • Component Placement File in .csv format (for PCB assembly only)
  • DesignFiles/ which contains the full KiCAD EDA software project files ready to open and edit. KiCAD is a free open-source PCB design software, which can be downloaded here. To open a design, simply open the .pro file. The KiCAD project should automatically detect the Libraries/ folder and use the respective design components

1) FRUC Timesync Board

Simple PCB board using a soldered Raspberry Pico in the center, used to generate a total of three individually customizable PWM signals, using a custom firmware also found in this repository. These signals are routed via GPIO pins 2, 6 and 10, to standard JST-SH 3-pin connectors, using pins 1 (left) and 3 for signal and GND respectively

The pre-compiled custom firmware present in this repository outputs the following PWM signals in each connector:

  • LIDAR - 1Hz (GPIO 2)
  • IMU - 1Hz (GPIO 6)
  • CAMERA - 30Hz (GPIO 10)

FRUC Timesync Board

How to flash the Raspberry Pico with custom firmware
  1. Press and hold the BOOTSEL button, and connect the board to a computer via USB
  2. The board will appear as a mass storage device named RPI-RP2
  3. Drag the pico_pwm_generator.uf2 file from Scripts/PWM_Generator/ to the device
  4. The device will automatically restart and disconnect from USB, with the firmware running on it
Firmware compilation from source

For ease of use, the .uf2 binary file is already provided in this repository ready to flash the board, but in case a compile from source is needed, please follow the Raspberry Pi C/C++ SDK repository README and documentation, using the provided CMake files also found in the same folder as the compiled binary

2) Xsens USB Converter Replica

Replica of a UART to USB converter board with exposed copper pads at the end where an Xsens MTi 600-series compatible cable can be soldered (CA-MP-12-OPEN). Contains a standard JST-SH 4-pin connector for full control over the SYNC lines

Xsens USB Converter Replica

Soldering information and wire matching

Only 10 out of the 12 exposed wires from the aforementioned cable are soldered to the custom board. The original cable pinout can be found here. The pad layout marked in the figure (pads 1 to 5 are in the front of the board, 6 to 10 are in the back) is as follows, using the same naming scheme from the cable pinout:

  1. VIN (wire 5)
  2. SYNC_IN1 (wire 3)
  3. SYNC_IN2 (wire 4)
  4. SYNC_OUT (wire 11)
  5. GND (wires 10 and 12)
  6. RS232_CTS (wire 6)
  7. RS232_RxD (wire 7)
  8. RS232_RTS (wire 9)
  9. RS232_TxD (wire 8)
  10. GND (wires 10 and 12)
Sync lines pinout

The pinout order for the SYNC lines JST-SH connector can be seen in the image below

SYNC Lines

Bag Post Processing Script

For accurate bag processing, the messages in the recorded bags needs to have both the header and record timestamp as close to the actual physical capture time as possible. This does not happen by default during capture, so all recorded bags need to be subject to a post processing to fix this

To do so, a Python/ROS2 script is used, located in Scripts/Bag_Processing/. As the script uses ROS2 packages and libraries, it needs to be run inside a ROS2 environment. A ready to use Dockerized version of both ROS2 Humble and Jazzy distros are present in Docker/ROS2, containing both a .Dockerfile to build each image, and a Compose .yml file to create and launch a container for each distro, create the folder bindings, etc.

If you do not have the Docker Engine installed, following the install guide here

Building the image and launching the container

Firstly, the image needs to be built using the provided Dockerfile. Change directory to inside the Dockerfile folder, and run the following command, replacing distro with either humble or jazzy:

text
docker build -f ros2_{distro}.Dockerfile -t ros2_{distro}_docker:latest .

Once finished, create and launch the container using Docker Compose. Change directory back to the root ROS2 folder, and run the following command:

text
docker compose up

Once the container is up, to enter it, run the following command:

text
docker exec -it ros2_{distro}_docker bash

Building the sensor packages/libraries

ROS2 does not natively come with some of the sensor packages used by the FRUC team. Luckily, all of these packages are already cloned and present in the src/ folder, which is mounted as a volume inside the container via the Compose file

As such, upon the first time inside the container, change directory into ros2_ws/, and run the following commands:

text
colcon build
source install/setup.bash

Once finished, all packages are installed and ready to be used by the post processing script

How to run the post processing script

The script supports input arguments, which are used to receive the bag folder path to process. As such, to run the script, use the following command:

text
python3 bag_processor.py <relative_bag_path_file>

The script will then read the bag folder, and process every single bagfile inside by numerical order, with support for bags split into multiple files. This file order is retained on the post-processed bag. The corrected bag will be found in a folder next to the original bag path, with the same name as the original and _Corrected appended at the end

Not all topics are subject to post processing, but for all the ones that are, the messages are published in a new topic with the same name as the original one but with /corrected at the end

Once a bag is processed, it needs to be manually re-indexed. To do so, run the following command inside the container:

text
ros2 bag reindex <relative_bag_path_file>

This will generate a new metadata.yaml file, however, the relative file paths at the end of this file are out of order, so it is recommended for the user to manually re-order the entries in numerical order

NOTE: Depending on the distro used, the script may or not require topic ID to be used when creating the topic metadata. As such, when running the script in ROS2 Humble, make sure line 67 is commented, and uncommented in ROS2 Jazzy

Timestamp corrections routine per sensor

Since each sensor uses a different ROS2 SDK/wrapper, these handle timestamps and headers differently. As such, the script requires a handling routine per each sensor, explained below:

1) RS-Bpearl LiDAR

Messages from this LiDAR sensor are simply the UDP packets received, which come at such a high frequency that the header epoch nanosecond timestamp is accurate enough to simply be re-used as the recording timestamp

2) Ouster LiDAR and IMU

Unlike the previous LiDAR, messages here are in point cloud format, converted by the sensor's own SDK. Since there is a small fluctuation between the actual physical difference between frame capture times and the header times available, timestamp correction here is performed based on an initial reference time

To do so, on the very first message, the internal counter timestamp (time since boot) and the header timestamp are linked in the script. For each subsequent message from this sensor, the delta between the internal counter timestamps is calculated, as this is the most accurate time source present. This delta is added to the reference header timestamp (in epoch format), and this resulting timestamp replaces both the message header, and the recording timestamp

3) Realsense Color Camera

The RealSense camera provides detailed metadata regarding each frame in a separate topic, useful to estimate the physical capture begin timestamp as close as close as possible

As such, metadata and frame messages are decoded in pairs, and a parameter from the metadata is used, called frame_timestamp, which is the moment where the first USB chunk was sent from the camera to the USB host. It is not the exact capture moment, but it is the closest timestamp available to such instance

4) Realsense Depth Camera

The metadata from the depth camera provides even more detail that allows for an even more accurate capture instant calculation. Besides the frame_timestamp metadata parameter, there is also a parameter named actual_exposure, which is the total time in microseconds that the frame capture took

By subtracting this value to the frame_timestamp, and further subtracting 1ms (by visual inspection it was determined that this 1ms was around the delay between end of exposure and first USB chunk sent), we get a timestamp within half a milisecond from the actual physical exposure begin instance

This calculated value then replaces both the header and record timestamps

5) Xsens IMU and Magnetometer

For this sensor, a reference time based timestamp correction is also performed, but it is done during bag recording, meaning that post processing consists only of replacing the record timestamp with the already accurate header timestamp

Parts

36
QtyValueFootprintReferences
8100nFCapacitor_SMD:C_0402_1005MetricC2, C3, C5, C6, C8, C9, C10, C11
782307050029Capacitor_SMD:C_0402_1005MetricD1, D2, D3, D4, D5, D6, D7
21uFCapacitor_SMD:C_0603_1608MetricC7, C12
2GNDProj_FP:SquarePad_1.5x2.0mmTP5, TP10
1100kResistor_SMD:R_0402_1005MetricR1
110nFCapacitor_SMD:C_0402_1005MetricC1
14.7uFCapacitor_SMD:C_0402_1005MetricC4
1742792651Capacitor_SMD:C_0603_1608MetricL1
1744231091Proj_FP:FILTER-SMD_4P-L2.0-W1.2-TLL2
1FT234XDPackage_DFN_QFN:WDFN-12-1EP_3x3mm_P0.45mm_EP1.7x2.5mmU1
1FT_CTS_MT_RTSProj_FP:SquarePad_1.5x2.0mmTP8
1FT_RTS_MT_CTSProj_FP:SquarePad_1.5x2.0mmTP9
1FT_RX_MT_TXProj_FP:SquarePad_1.5x2.0mmTP6
1FT_TX_MT_RXProj_FP:SquarePad_1.5x2.0mmTP7
1SYNC_CONConnector_JST:JST_SH_BM04B-SRSS-TB_1x04-1MP_P1.00mm_VerticalJ2
1SYNC_IN1Proj_FP:SquarePad_1.5x2.0mmTP2
1SYNC_IN2Proj_FP:SquarePad_1.5x2.0mmTP3
1SYNC_OUTProj_FP:SquarePad_1.5x2.0mmTP4
1TRS3122ERGERProj_FP:VQFN-24_L4.0-W4.0-P0.50-TL-EP2.4U3
1USB_AConnector_USB:USB_A_Molex_48037-2200_HorizontalJ1
1VUSBProj_FP:SquarePad_1.5x2.0mmTP1

More from Forestry-Robotics-UC/rosbag_timesync_utils

1
  • 2 layers61.2 × 43.4 mmFRUC Timesync Board, the printed circuit board in 3D

    FRUC Timesync Board

    Forestry-Robotics-UC/rosbag_timesync_utils

    This repository contains all content necessary regarding the data collection time synchronization solutions used by the FRUC team on the collection and processing of their datasets.

    10 parts

Similar boards

  • 4 layers128.5 × 40 mmScalenode cm4-baseboard, the printed circuit board in 3D

    Scalenode cm4-baseboard

    antmicro/scalenode-cm4-baseboard

    Baseboard for Raspberry Pi 4 Compute Module optimized for clustering

    146 parts152Apache-2.0
  • 4 layers172.7 × 135.9 mmJJ65c02, the printed circuit board in 3D

    JJ65c02

    jimjag/JJ6502

    My 6502 Based Breadboard Project

    53 parts26MIT
  • 4 layers150 × 50 mmQI Charger, the printed circuit board in 3D

    QI Charger

    drewsum/QI_Charger

    A DIY QI Wireless Phone Charger

    322 parts20
  • 8 layers100 × 100 mmThermal Camera, the printed circuit board in 3D

    Thermal Camera

    drewsum/Thermal_Camera

    DIY Thermal Camera

    559 parts19
  • 8 layers126 × 117 mmDemo board, the printed circuit board in 3D

    Demo board

    azonenberg/electronics-training

    Training materials for classes etc

    311 parts15
  • 2 layers12 × 31 mmB ART typeU, the printed circuit board in 3D

    B ART typeU

    idt12312/B-ART

    UARTをBLEで飛ばすモジュール

    22 parts11MIT
  • 2 layers24 × 18 mmUsb2serial autovtg, the printed circuit board in 3D

    Usb2serial autovtg

    znuh/usb2serial-autovtg

    USB to serial converter with automatic target voltage detection, buffered IOs, 1.8V to 5V support and backflow current protection

    38 parts9CC-BY-SA-4.0
  • 2 layersController, the printed circuit board in 3D

    Controller

    alvarop/ostur

    This is a work in progress for a cheese cave controller system. The goal is to be able to control a mini fridge to get the right conditions for cheesemaking.

    89 parts8MIT

Questions

How big is the Xsens USB Converter Replica PCB?

It measures 38.2 × 16.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Xsens USB Converter Replica use?

36 parts, built around the FT234XD-R. 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 Xsens USB Converter Replica KiCad files?

From the Forestry-Robotics-UC/rosbag_timesync_utils repository on GitHub, at the commit this page was made from: the board is Designs/Xsens_USB_Converter_Replica/DesignFiles/Xsens_USB_Converter_Replica.kicad_pcb and its schematic Designs/FRUC_Timesync_Board/DesignFiles/FRUC_Timesync_Board.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Xsens USB Converter Replica design in my own project?

Its repository states no licence, so its author keeps all rights: ask Forestry-Robotics-UC before reusing the design.