Chromapi web app

The web app lets you control Chromapi: it runs continuously on the robot and opens in the browser of a phone or computer, with nothing to install.

Connecting

On the same network as the robot, open https://chromapi.local:5000, or https://<robot-name>.local:5000 if there are several robots.

  • Access code: the first visitor chooses it (at least 6 characters), following devices must enter it. It can be changed in Settings › Access, which disconnects the other devices.
  • Forgotten code: over SSH on the robot, run chromapi access reset. The next visitor will choose a new one.
  • One driver at a time: if someone is already driving, other devices see the camera and the robot’s state without being able to control it.

Driving Chromapi with the app

Press Wake up to make Chromapi stand up, press again to make it lie down. Once it is standing, here is what each element of the interface does:

Chromapi web app interface

No.ElementEffect
1Wake up / Lie downWake Chromapi up or make it lie down
2Walk joystickMove in any direction (Shift in Lean mode: shifts the body)
3Turn joystickTurn in place (Lean in Lean mode: tilts the body)
4Speed sliderChange the walking speed (from 25 to 200%, capped at 100% when the battery is low)
5Height sliderChange the body height (from -40 to +20 mm)
6Top barBattery (tap it to show the charge on the eye), Raspberry Pi temperature, motherboard link, number of viewers
7Smiley buttonOpen the Emotes menu
8☰ buttonOpen the menu
9Microphone buttonHold to talk through Chromapi’s speaker
10Headphones buttonListen through Chromapi’s microphone
11Gear buttonOpen the settings
12Camera buttonTake a photo
13Red buttonRecord a video
14Lightning buttonSwitch Chromapi’s eye to flashlight mode
15Power buttonPower off, restart or switch to developer mode

Tip

On a computer, Chromapi can also be driven with the keyboard:

KeyEffect
W A S D (Z Q S D on AZERTY)Move, like the left joystick
Arrow keysTurn or tilt the body, like the right joystick
EnterWake up / Lie down
EscClose the open menu or window

Web app menu

Movement mode

  • Turn mode: Chromapi’s default movement mode. In this mode, the left joystick makes Chromapi walk and the right joystick makes it turn.
  • Lean mode: in this mode, Chromapi stays in place. The left joystick shifts its body, while the right joystick tilts it.

Did you know?

In Lean mode, Chromapi keeps its body as level as possible. If it is standing on a board, try tilting it gently to see the result!

Detailed robot state

Diagnostics panel shown on the video

The Diagnostics on the video option shows or hides an information panel over the camera feed:

LineMeaning
LinkState of the link with the motherboard
BatteryBattery charge, voltage, current and power
ServosNumber of servos responding
HottestTemperature of the hottest servo
PiRaspberry Pi temperature
TiltBody tilt
FeetFeet on the ground (in simulation)

All of this information is also available in the settings.

Robot gait

Chromapi has two gaits:

  • Trot mode: Chromapi’s default gait. Fast, two diagonal legs move together.
  • Crawl mode: Chromapi takes a slower, more stable gait, with only one leg moving at a time.
Chromapi trottingChromapi crawling
TrotCrawl

Chromapi’s eye color

Chromapi's eye colors

The slider lets you pick any color for Chromapi’s eye. The Idle button restores Chromapi’s default purple color, and the Rainbow button gives it a rainbow color.

Internal fan

The fan regulates Chromapi’s internal temperature. Set to Auto by default, the robot adjusts the fan speed based on its temperature. Moving the slider sets the fan speed manually.

The Gallery button gathers the photos and videos taken with the camera. They are stored on the robot, where you can view, download and delete them.

Settings

SectionContent
MaintenanceThe first start tools: firmware update, servo and IMU calibration, new servo setup, downloadable support report. The app tells you when a new firmware is available.
ControllerConnected controller, pairing, tilting the robot with the controller
AccessChange the robot’s access code (disconnects the other devices)
DiagnosticsDetails of the robot’s state, like the panel on the video
AboutRobot name, SDK and firmware versions. Identify helps you recognize one robot among several with a sound.

Power

The power button offers three options. In every case, Chromapi lies down first.

  • Power off: Chromapi shuts down properly. You can then flip its switch to cut the power.
  • Restart: Chromapi restarts. The page reconnects after about a minute.
  • Developer mode: an option for developers. The app stops, freeing the serial port so you can work on Chromapi over SSH. The web interface comes back with sudo systemctl start chromapi@$USER or the next time the robot is turned on.

Driving Chromapi with a controller

Chromapi driven with a controller

Chromapi can also be controlled with a Bluetooth controller.

Pairing

  1. In Settings › Controller, choose Pair a controller.
  2. Hold the controller’s pairing button until its light blinks quickly, then press Start.

Once paired, the controller reconnects automatically on power-up.

In Lean mode, the Lean with the controller’s tilt option (in Settings › Controller) lets you tilt the robot by tilting the controller.

When the controller’s battery drops below 20%, it vibrates and the app shows a message.

Buttons

ButtonEffect
Left stickWalk (Turn mode) or shift the body (Lean mode)
Right stickTurn (Turn mode) or tilt the body (Lean mode)
CrossWake the robot up or make it lie down
SquareWave, alternating left and right
TrianglePaw swipe, alternating left and right
CirclePlay a mood
L2 / R2Choose a mood (the controller’s light bar takes its color)
L1Turn the flashlight on or off
L3Change gait: Trot or Crawl
R3Change movement mode: Turn or Lean
ShareShow the battery charge on the eye and on the controller’s light bar
D-pad up / downRaise or lower the body
D-pad left / rightIncrease or decrease the speed (in 25% steps)
Hold START for 3 sTurn the robot off