Once the OS is installed, the next step is to open the web app to prepare and calibrate Chromapi for assembly.

Steps 1 to 3 below are done before assembling the robot, with at least the Raspberry Pi, the motherboard and the batteries. Steps 4 to 6 require the fully assembled robot.

1. Opening the web app

From a phone or a computer (on the same network as the one set in Raspberry Pi Imager), open:

https://chromapi.local:5000

or https://<robot-name>.local:5000.

Security warning

On the first connection, the browser will flag a certificate it does not know. This is expected, as each robot generates its own. To access the web interface, select “Advanced” then “Continue to site”.

On your first visit, the app will ask you to choose a code of at least 6 characters. It will be asked on every new device that wants to drive the robot.

Choosing the access code

2. Updating the firmware

When you receive your board, it does not yet contain the program that drives Chromapi’s motors. The firmware can be installed on the motherboard from the web app.

Settings › Maintenance › Update the firmware

In Settings › Maintenance, click Update the firmware. The app installs the latest firmware on the motherboard.

Caution

Do not cut the robot’s power while the update is running!

The installed versions are shown in the About section.

3. Setting up the servos

Each servo has an ID that tells it apart when movements are requested. Out of the box, all twelve servos share the same ID (ID = 1), so each one must be given its own, one servo at a time.

To do so, click Set up new servos. The tool guides you leg by leg and tells you at each step which servo to plug in and on which connector.

Once this step is done, you can turn off your robot and start assembling it by following the Assembly & wiring page.

4. Calibrating the servos

Once Chromapi is assembled, calibration tools are available to correct small defects due to assembly, part manufacturing, etc. In particular (and I have no doubt about your assembly skills!), servos are never screwed in at exactly the same angle: a few degrees of difference from one motor to the next is enough for the robot not to stand straight. Calibration measures these offsets and compensates for them, so that all legs start from the same reference.

Run the Calibrate the servos tool. It takes a few minutes. During calibration, Chromapi looks for the center of each joint by sweeping its legs to their mechanical end stops.

During calibration

Hold the robot by its chassis or raise it so that no leg can touch anything.

5. Calibrating the inertial measurement unit (IMU)

An IMU is a sensor that measures Chromapi’s orientation relative to the horizontal. As with the servos, assembly is never perfect: the motherboard, which carries the sensor, may be slightly tilted inside the robot. Calibration measures this offset so that Chromapi knows when it is truly level.

Run the Calibrate the IMU tool so that Chromapi measures and corrects the tilt of its board relative to the horizontal.

During calibration

  • Place Chromapi on a flat floor.
  • Keep Chromapi still during the 5 seconds of calibration.

6. Checking

To make sure Chromapi works properly, open Settings › Diagnostics. This section summarizes the state of the motherboard, the battery, the servos and the Raspberry Pi. All good? Chromapi is ready to move! Learn how to drive the robot with the web app. If problems remain, check the troubleshooting page.

Command line

For developers, each step on this page can be done without the web interface, directly with the chromapi command over SSH:

StepCommand
Update the firmwarechromapi flash
Set up the servoschromapi motors setup
Calibrate the servoschromapi calibrate servos --all
Calibrate the IMUchromapi calibrate imu
Check the robot’s healthchromapi health
SDK and firmware versionschromapi version

Warning!

The app holds the motherboard’s serial port. Before using these commands, stop it via Settings › Power › Developer mode. To restart it, run sudo systemctl start chromapi@$USER, or reboot the robot.

The chromapi health command lists what is wrong and what to do. If you are stuck, chromapi report (or Settings › Maintenance › Support report) writes a report on your robot’s state that you can share on Discord.