Skip to content

smabo-brain

Set up smabo-brain — the hub that relays all components and runs advanced processing like image recognition and AI.

This page is the guide for the "smabo-brain" node on the roadmap below.

This page explains the setup procedure for "smabo-brain".

smabo-brain serves as:

  • The hub relaying all components
  • Running advanced tasks such as image processing and AI

smabo-brain can be set up on:

  • External PC
    • Install smabo-brain on a separate PC (not smabo itself)
  • SBC (Single Board Computer)
    • Attach an SBC to smabo and install smabo-brain on it


The smabo-brain setup is the same for both. The SBC option additionally requires:

  • 3D printing the SBC mounting parts
  • Attaching the SBC to smabo

(Note: the 3D printing steps for the SBC mounting parts are covered in Creating the Base Parts.)

We recommend starting with the External PC option.


Parts required to implement this feature:

Part Product URL Notes
[Optional] Raspberry Pi 4 or 5 - Required only for SBC setup

There are no parts to print this time.

There is no assembly this time.

There is no wiring this time.

The finished robot does not change this time.

The following explains the setup steps for smabo-brain.

From here, you will need to enter commands using the "terminal".

First, set up an environment for using the terminal.


We will use Visual Studio Code (VSCode), a popular code editor.


Download and install VSCode from the official site, selecting the installer for your operating system:

https://code.visualstudio.com


Once the download is complete, install and launch VSCode.

The TERMINAL tab at the bottom of the window is the terminal.

TERMINAL tab at the bottom of VS Code

Whenever a command appears in this guide, enter it in this tab.

If you are using a Windows PC, please install WSL.


WSL (Windows Subsystem for Linux) lets you run a Linux environment inside Windows.

  • Run a Linux environment on Windows

Linux is widely used in robotics development, so working inside WSL is recommended for future convenience.

For WSL installation instructions, refer to the following article:

WSL2 のインストールとアンインストール

By default, WSL2 cannot communicate with external devices on your network.

Since smabo requires communication with the smartphone and ESP32, configure WSL2 in mirrored network mode. Refer to the following article:

wsl2 mirroredネットワーク、WindowsとLinuxの良いとこどり!

After installing WSL, install the following extension in VSCode:

  • WSL

Installing the WSL extension in VS Code

After installing the extension:

  1. Click the "><" icon in the bottom-left corner
  2. Click "Connect to WSL"

Connecting VS Code to WSL


If "WSL: Ubuntu" is shown in the bottom-left corner, you are connected. The TERMINAL tab at the bottom of the window is now your terminal.

VS Code TERMINAL tab connected to WSL

Whenever a command appears in this guide, enter it in this terminal.

Clone the smabo-brain repository with the following commands.

# Move to home directory
cd ~
# Clone smabo-brain repository
git clone https://github.com/smabo-smartphone-robot/smabo-brain

Install the packages required to run the programs.

cd ~/smabo-brain
pip3 install -r requirements.txt

Follow the startup procedure here.


If smabo-brain starts without errors, setup is complete.

Next, follow the guide for: