# Actuators specificationsChromapi's 12 Feetech STS3215-C001 servomotors, the half-duplex TTL bus wiring between them, and the servo polling rate.

## Servomotors

| Property | Value |
| :--- | :--- |
| Model | Feetech STS3215-C001 (7.4V version) |
| Quantity | 12 |
| Supply voltage | ≈ 6.0-8.4V |
| Gear ratio | 1:345 |
| Stall torque | 19.5 kg.cm at 7.4V |
| No-load speed | 0.22 s/60° at 7.4V |
| Weight | 55 g |
| Position sensor | 12-bit magnetic encoder (4096 steps/rev, ≈ 0.088°/step) |
| Available feedback | Position, speed, load, voltage, temperature, current |

## Leg layout

Each of Chromapi's legs has three joints, named according to the convention below:

| Joint | Name | Axis | Range of motion |
| :--- | :--- | :--- | :--- |
| Hip | coxa (`*_1`) | Yaw | ±75° |
| Hip | femur (`*_2`) | Pitch | ±100° |
| Knee | tibia (`*_3`) | Pitch | ±100° |

Servomotor IDs on the bus are assigned leg by leg:

| Leg | Coxa | Femur | Tibia |
| :--- | :---: | :---: | :---: |
| `tl` (front left) | 1 | 2 | 3 |
| `bl` (back left) | 4 | 5 | 6 |
| `br` (back right) | 7 | 8 | 9 |
| `tr` (front right) | 10 | 11 | 12 |

## Communication bus

| Property | Value |
| :--- | :--- |
| Bus type | Half-duplex serial (Feetech protocol) |
| Baud rate | 1 Mbps |
| Bus cycle | 200 Hz (synchronized write of the targets, then synchronized read of the 12 servomotors) |

Every 5 ms, the STM32 first sends the pending position and torque targets to the 12 servomotors in a single synchronized write frame, then reads their position, speed, load, voltage, temperature and current back with a single synchronized read frame. The resulting state is then streamed to the Raspberry Pi at the end of each cycle. Other commands sent by the Raspberry Pi are re-encoded into Feetech frames and relayed on the bus: see the [communication protocol]({{< relref "chromapi/hardware/protocol/" >}}) for more details on how communication works.

## Resources

* Firmware driver: [`sts3215_hal.c`](https://github.com/Mowibox/chromapi_motherboard/blob/main/firmware/chromapi_stm32_core/Core/Src/sts3215_hal.c), [`sts3215_protocol.c`](https://github.com/Mowibox/chromapi_motherboard/blob/main/firmware/chromapi_stm32_core/Core/Src/sts3215_protocol.c) and [`sts3215_regs.h`](https://github.com/Mowibox/chromapi_motherboard/blob/main/firmware/chromapi_stm32_core/Core/Inc/sts3215_regs.h)
