Skip to the content
2 layers30 × 30 mmBNO086 ROS2Board, the printed circuit board in 3D

BNO086 ROS2Board

YamamotoSoya/reRoBot

Autonomous navigation robot for the Tsukuba Challenge

Size
30 × 30 mm
Copper layers
2
Thickness
1.6 mm
Parts
64
Nets
79
Pads
270
Tracks, vias
813, 195
Pours
24
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
19 Mar 2026
Updated
6 Nov 2026

Overview

BNO086 ROS2Board is an open-source printed circuit board by YamamotoSoya, from the YamamotoSoya/reRoBot repository on GitHub. It is a 2-layer board of 30 × 30 mm with 64 parts on 79 nets, routed with 813 tracks and 195 vias.

It is built around the NJW1933F1-AT-TE2 and BNO086. Its parts include 23 capacitors, 16 resistors, 7 diodes, 5 ICs and 5 connectors. It belongs with the STM32 boards of this library.

Main components

2

README

README.md

reRoBot

Autonomous navigation robot for the Tsukuba Challenge

Documentation

  • docs/TODO.md — 今取り組むこと (ジャンル別)
  • docs/README.md — docs/ 全体の地図 (調査記録・設計文書・解説書・月別変更履歴の索引)
  • 運用手引き (詳細版 README) — 全体像・セットアップ・基本パラメータ・起動と手動操作・bag 記録・SLAM (slam_toolbox / GLIM / LIO-SAM)・2D 地図変換・Nav2 / amcl・つくチャレ当日手順・トラブルシューティング・ソフトウェア構成図
  • CLAUDE.md — 開発規約・ビルド規則・アーキテクチャ要約
  • docs/text/ — テーマ別解説書
  • docs/monthly/ — 月別の変更履歴 (何を・なぜ変えたか、2026-03〜)

Setup

clone

Please add '--recursive' option when you clone this repository

bash
$ git clone --recursive https://github.com/YamamotoSoya/reRoBot.git

If submodules are missing (cloned without --recursive):

bash
$ git submodule update --init --recursive

docker

bash
$ xhost +local:docker          # set host before activate docker
$ ./scripts/build.sh images    # build images one by one (never `docker compose build` with no args)
$ docker compose up -d main    # activate (main only; other profiles when needed)
$ docker exec -it rerobot_env bash # enter
$ docker compose down          # deactivate

colcon build

bash
$ cd /workspace
$ rosdep update
$ rosdep install --from-paths src --ignore-src --simulate # check dependencies

$ colcon build --symlink-install --executor sequential
$ source install/setup.bash

Hardware setup

  • USB-CAN アダプタ (CANUSB) — can0 は挿すだけで自動起動

セットアップ済みのマシンでは、USB-CAN アダプタ (FTDI FT232, 0403:6001) を挿すと udev ルール → /dev/ttyCANUSB 作成 → systemd サービス canusb-up.service → slcand (1 Mbps) + can0 up まで全自動で行われる。手動操作は不要。状態確認・復旧は ./scripts/can_up.sh。

bash
$ ip link show can0        # 動作確認 (UP になっていれば OK)
$ ./scripts/can_up.sh      # 落ちているときの確認 + 復旧
新しいマシンをセットアップする手順 (初回のみ)
  1. can-utils のインストール
bash
$ sudo apt-get update && sudo apt-get install can-utils
  1. カーネルモジュールの自動ロード設定 — /etc/modules-load.d/can.conf に以下を記述
text
can
can_raw
slcan
  1. udev ルール — /etc/udev/rules.d/99-hokuyo-devices.rules (新規なら任意の .rules ファイル) に追記。 アダプタに固定名 /dev/ttyCANUSB を与え、挿入時に systemd サービスを起動させる
text
# CANUSB
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="ttyCANUSB", MODE="0666", TAG+="systemd", ENV{SYSTEMD_WANTS}="canusb-up.service"
  1. systemd サービス — /etc/systemd/system/canusb-up.service を作成
ini
[Unit]
Description=Setup CANUSB interface (can0)
After=dev-ttyCANUSB.device
BindsTo=dev-ttyCANUSB.device

[Service]
Type=oneshot
RemainAfterExit=yes
# 2026-09-19: USB 再列挙直後に自動起動した slcand が「can0 UP・送信可・受信ゼロ」の半死状態を
# 作ることがある (同日 3 回: 15:35, 17:16, 17:59。手動 restart で毎回復帰)。sleep 2 を入れても
# 17:59 に再発したので、待ち時間ではなく「起動後に受信を確認し、無ければ slcand をやり直す」で対処する。
ExecStartPre=/bin/sleep 2
ExecStart=/bin/bash -c 'slcand -o -c -s8 /dev/ttyCANUSB can0 && ip link set can0 up'
# EPOS のロジック電源が入っていれば heartbeat (2 ノード × 0.5 Hz) が 4 s 以内に届く。届かなければ 1 回やり直す。
ExecStartPost=/bin/bash -c 'sleep 4; [ "$(cat /sys/class/net/can0/statistics/rx_packets)" -gt 0 ] || { killall slcand; sleep 1; slcand -o -c -s8 /dev/ttyCANUSB can0 && ip link set can0 up; }'
ExecStop=/bin/bash -c 'ip link set can0 down; killall slcand'

[Install]
WantedBy=dev-ttyCANUSB.device

既にセットアップ済みのマシンで行を足すときは、上のファイルを編集してから sudo systemctl daemon-reload (アダプタの挿し直しで反映)。半死状態の検知と復旧は ./scripts/can_up.sh でも行える (3 s 間 送信ありで受信ゼロなら service を再起動する)。 ⚠️ 再列挙のたびに can0 は作り直され、稼働中の ros2_canopen master は旧 can0 を掴んだままになる (epos4_controller が「can0 が作り直された … 再 launch が必要」を ERROR で出す) → scripts/stop.sh → 再 launch。

  1. 有効化と動作確認
bash
$ sudo systemctl daemon-reload
$ sudo systemctl enable canusb-up.service
$ sudo udevadm control --reload
# アダプタを挿し直して:
$ ip link show can0

※ slcand -s8 が 1 Mbps 指定。can0 は slcan インターフェースなので、ビットレートを ip link set ... type can bitrate ... で変更することはできない (slcand 側で決まる)。

  • 3D LiDAR (R-Fans-16, Ethernet) — 挿すだけで自動接続

セットアップ済みのマシンでは、LiDAR 用 USB-Ethernet アダプタ (enx6c1ff7be7a78) を挿すと NetworkManager プロファイル rfans が自動適用され、ホストに静的 IP 192.168.0.100/24 が付く。 LiDAR 実機は 192.168.0.3 で、データは UDP 2014 へブロードキャストされる (ホスト側 IP を LiDAR に教える必要はない)。 コンテナは network_mode: host なので、ホストに IP が付けば追加設定なしで届く。

bash
$ ip -br addr show enx6c1ff7be7a78   # 192.168.0.100/24 が付いていれば OK
$ ping -c 3 192.168.0.3              # LiDAR 疎通確認
新しいマシン / 別のアダプタをセットアップする手順 (初回のみ)

NetworkManager に「このアダプタが現れたら固定 IP を付ける」プロファイルを 1 度作るだけ。 ip addr add と違い再起動・抜き差しをまたいで自動適用される。

  1. LiDAR 用アダプタを挿し、インターフェース名を確認 (enx + アダプタの MAC。個体固有で、 どの USB ポート/ハブ経由でも同じ名前になる)
bash
$ ip -br link      # 例: enxcce1d5021885
  1. プロファイル作成 (ifname は上で確認した名前に差し替える)
bash
$ nmcli connection add type ethernet \
    con-name rfans \
    ifname enxcce1d5021885 \
    ipv4.method manual \
    ipv4.addresses 192.168.0.100/24 \
    connection.autoconnect yes \
    connection.autoconnect-priority 100
$ nmcli connection up rfans   # 初回のみ即時有効化 (以後は挿すだけで自動)
  1. 疎通確認
bash
$ ip -br addr show <ifname>   # 192.168.0.100/24 が付いていること
$ ping -c 3 192.168.0.3

※ gateway を指定していないのでデフォルトルートは奪わず、Wi-Fi のインターネット接続と共存できる。 ※ ifname 紐付けは MAC 由来名なので「この個体 = LiDAR 係」の専用化が前提。アダプタを 別個体に交換したら手順 1〜2 をやり直す (nmcli con delete rfans で旧設定を消してから)。 ※ autoconnect-priority 100 は、ifname 指定なしの汎用「Wired connection」系プロファイルとの 競合時に rfans を勝たせるための指定。

  • 2D LiDAR (HOKUYO UTM-30LX) — 挿すだけで固定名 /dev/ttyUSB-utm-30lx

udev ルールにより、挿すと固定名 /dev/ttyUSB-utm-30lx (権限 0666) が作られる。 この名前は rerobot_bringup_2d.launch.py の serial_port デフォルト値と一致しているので、 挿すだけで 2D bringup がそのまま動く (systemd サービス等は不要 — シリアル直結なので 名前と権限さえ固定できればよい)。

bash
$ ls -l /dev/ttyUSB-utm-30lx    # symlink が ttyUSB* を指していれば OK
新しいマシンをセットアップする手順 (初回のみ)

CANUSB と同じ /etc/udev/rules.d/99-hokuyo-devices.rules に追記:

text
# UTM-30LX
SUBSYSTEM=="tty", ATTRS{idVendor}=="15d1", ATTRS{idProduct}=="0000", SYMLINK+="ttyUSB-utm-30lx", MODE="0666"
bash
$ sudo udevadm control --reload
# 挿し直して:
$ ls -l /dev/ttyUSB-utm-30lx

※ MODE="0666" は「dialout グループに入っていなくても読み書きできる」ようにするため。 これが無いと urg_node が Permission denied で落ちる。

  • IMU (BNO086 ボード) — 挿すだけで固定名 /dev/bno086

udev ルールにより、通常動作 (firmware 書き込み済み) のボードを挿すと固定名 /dev/bno086 (権限 0666) が作られる。番号が変動する /dev/ttyACM* を追いかける必要はない。 bno086_imu_driver の port パラメータ既定値は /dev/ttyACM0 なので、起動時は port:=/dev/bno086 を指定する。

bash
$ ls -l /dev/bno086             # symlink が ttyACM* を指していれば OK
新しいマシンをセットアップする手順 (初回のみ)

ルールはドライバ同梱の ros2_ws_main/src/drivers/BNO086_ROS2Board-main/tools/99-bno086.rules と同内容。/etc/udev/rules.d/99-hokuyo-devices.rules に追記でも、同梱ファイルの sudo cp でもよい:

text
# bno086
# Running firmware: USB CDC. Note that 0483:5740 is ST's generic CDC pair, so
# any other STM32 CDC device would match too - drop the SYMLINK line if you
# have more than one plugged in at once.
SUBSYSTEM=="tty", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", MODE="0666", SYMLINK+="bno086"

# ROM bootloader (S2 BOOT + S1 RESET), so STM32_Programmer_CLI / dfu-util can
# flash without sudo.
SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="0666"

# ST-Link, for SWD flashing via OpenOCD / st-flash.
SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374b", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", MODE="0666"
bash
$ sudo udevadm control --reload
# 挿し直して:
$ ls -l /dev/bno086

3 ブロックの役割:

ブロックボードの状態用途
0483:5740 (CDC)通常動作 (firmware 実行中)IMU データ読み取り。/dev/bno086 を作る
0483:df11 (DFU)ROM ブートローダ (S2 BOOT + S1 RESET で起動)STM32_Programmer_CLI / dfu-util での firmware 書き込みを sudo なしで
0483:374b / 3748 (ST-Link)— (書き込み器側)OpenOCD / st-flash での SWD 書き込みを sudo なしで

※ 0483:5740 は ST 汎用の CDC ID なので、別の STM32 CDC デバイスを同時に挿すと そちらにも /dev/bno086 が付き得る。複数挿す運用になったら SYMLINK 行を外すか シリアル番号 (ATTRS{serial}) で絞る。

Parts

64
QtyValueFootprintReferences
130.1uCapacitor_SMD:C_0402_1005MetricC1, C3, C8, C9, C10, C11, C12, C15, C16, C17, C18, C19, C20
810kResistor_SMD:R_0402_1005MetricR3, R4, R5, R6, R7, R8, R10, R11
55.1kResistor_SMD:R_0402_1005MetricR1, R2, R12, R13, R14
410uCapacitor_SMD:C_0603_1608MetricC2, C21, C22, C23
440V1ADiode_SMD:D_SOD-123FD1, D2, D3, D7
212.5pFCapacitor_SMD:C_0402_1005MetricC6, C7
21uCapacitor_SMD:C_0402_1005MetricC4, C5
28pFCapacitor_SMD:C_0402_1005MetricC13, C14
1120Resistor_SMD:R_0402_1005MetricR9
112kResistor_SMD:R_0402_1005MetricR16
122uHInductor_SMD:L_Taiyo-Yuden_MD-4040L1
132.768kHzCrystal:Crystal_SMD_3215-2Pin_3.2x1.5mmY1
139kResistor_SMD:R_0402_1005MetricR15
18MHzCrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY2
1BNO086BNO086:IC_BNO086U4
1BOOTSKRPACE010 2:SW_SKRPACE010S2
1CANConnector_JST:JST_SH_BM03B-SRSS-TB_1x03-1MP_P1.00mm_VerticalJ5
1LED_1LED_SMD:LED_0603_1608MetricD5
1LED_2LED_SMD:LED_0603_1608MetricD6
1NJW1933F1-AT-TE2NJW1933F1-AT-TE2:SOT95P280X130-6NIC1
1POWERLED_SMD:LED_0603_1608MetricD4
1PS0Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mmJP1
1PS1Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mmJP2
1RESETSKRPACE010 2:SW_SKRPACE010S1
1STM32F042C6UxPackage_DFN_QFN:QFN-48-1EP_7x7mm_P0.5mm_EP5.6x5.6mmU3
1SWDConnector_PinHeader_1.00mm:PinHeader_2x03_P1.00mm_VerticalJ3
1TLV74033PDBVRPackage_TO_SOT_SMD:SOT-23-5U2
1UARTConnector_JST:JST_SH_BM04B-SRSS-TB_1x04-1MP_P1.00mm_VerticalJ4
1USB_C_Receptacle_USB2.0_16PConnector_USB:USB_C_Receptacle_HCTL_HC-TYPE-C-16P-01AJ1
1VINConnector_JST:JST_SH_BM02B-SRSS-TB_1x02-1MP_P1.00mm_VerticalJ2
1VINJumper:SolderJumper-3_P1.3mm_Bridged12_Pad1.0x1.5mmJP3
1~Package_TO_SOT_SMD:SOT-23-8U5

Similar boards

  • 6 layers50 × 35 mmRobotrace, the printed circuit board in 3D

    Robotrace

    fTomo-robot/Robotrace

    112 parts
  • 2 layers50 × 90 mmESC Device Hub v0, the printed circuit board in 3D

    ESC Device Hub v0

    tmcit-ararobo-2026a/esc-control-hub

    141 partsMIT
  • 4 layers60 × 100 mmMIDAS MK1, the printed circuit board in 3D

    MIDAS MK1

    ISSUIUC/ISS-PCB

    Building custom flight computers

    221 parts33
  • 6 layers100 × 60 mmAether, the printed circuit board in 3D

    Aether

    nasheed-x/aether

    Aether is a versatile flight computer for testing flight hardware and software, focusing on sensor fusion to monitor rocket states and interface with on-board systems.

    180 parts10
  • 4 layers162.6 × 61.5 mmVersaSens HeEx, the printed circuit board in 3D

    VersaSens HeEx

    esl-epfl/VersaSens

    VersaSens: An Extendable Multimodal Platform for Next-Generation Edge-AI Wearables

    335 parts9
  • 4 layers92.5 × 101.6 mmVCU, the printed circuit board in 3D

    VCU

    formulaslug/fs-4-schematics

    Electrical Design Repository for fs-4 schematics and PCBs

    225 parts7
  • 4 layers76 × 121 mmBeta main, the printed circuit board in 3D

    Beta main

    BETA-KNH/beta

    Humanoid robot repository.

    93 parts5
  • 4 layers90 × 50 mmIkeda MainBoard, the printed circuit board in 3D

    Ikeda MainBoard

    ararobo/ROBOCON_2025_A_PCB

    164 parts3MIT

Questions

How big is the BNO086 ROS2Board PCB?

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

What parts does the BNO086 ROS2Board use?

64 parts, built around the NJW1933F1-AT-TE2 and BNO086. 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 BNO086 ROS2Board KiCad files?

From the YamamotoSoya/reRoBot repository on GitHub, at the commit this page was made from: the board is ros2_ws_main/src/drivers/BNO086_ROS2Board-main/PCB/BNO086_ROS2Board/BNO086_ROS2Board.kicad_pcb and its schematic ros2_ws_main/src/drivers/BNO086_ROS2Board-main/PCB/BNO086_ROS2Board/BNO086_ROS2Board.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the BNO086 ROS2Board design in my own project?

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