From Sensor to Motor: The Data Path of an LLM Controlling a Robot Arm

October 14, 2026

RoboCurve · Inspect Robots · SO-101

Three flow diagrams answer three questions: from which sensor each piece of data the LLM receives comes, and what processing it goes through; how the LLM combines its history to make a decision by the 11th decision turn; and, for an SO-101, what each servo reads and writes. The first two diagrams follow RoboCurve’s RoboDojo-RC Tier 1 configuration on the I2RT YAM dual arms (end-effector pose control, 10 Hz).

  • Sensor / hardware interface
  • Capture, drivers, kinematics
  • Inspect Robots plugin code
  • LLM decision
  • Actuator motors
  • Configuration / task text
  • Hypothetical extension (not in RoboCurve)

Version 1: What the LLM Receives, and Who It Hands the Decision To

On the left, five inputs (3 cameras, 14 joint encoders, and the task configuration) each go through capture and encoding, and are combined at message assembly into one API request. The LLM outputs just one tool call; the 7 stages on the right break that single target into at most 100 control steps at 10 Hz and distribute them to 14 motors.

① Sensors / inputs ② Capture and drivers ③ Plugin encoding (inspect-robots-agent) ④ Message assembly ⑤ LLM ⑥ Turning one decision into motion ⑦ Actuator motors Top camera · RealSense D435 Color RGB only (V4L2) Sees the whole table → YUYV 640×480 @30fps Capture thread Overwritten with the latest frame Frame age > 0.5 s raises an error Resized to 224×224 → uint8 (224,224,3) _png.py image encoding Compressed to PNG (zlib) → base64 camera 'top_cam' (step N): → data:image/png;base64,… Left wrist · RealSense D405 Stereo camera Depth computed on-camera → rgb8 + z16 depth @30fps Capture subprocess + rs.align Depth aligned to the color image z16 × depth_scale → meters Nearest resize + scaled K → RGB + float32 depth (m) _png.py + _depth.py Clips 2–98%; near bright, far dark bright 0.09 m -> dim 1.41 m, 87% valid, center 0.31 m → RGB PNG + depth PNG + text Right wrist · RealSense D405 Same as the left wrist → rgb8 + z16 depth @30fps Capture subprocess + rs.align Same as the left wrist → RGB + float32 depth (m) _png.py + _depth.py Same as the left wrist → RGB PNG + depth PNG + text 14 joint encoders Per arm: 6 joints + 1 gripper Built into the DM-series motors → CAN 1 Mbit/s (can0 / can1) i2rt driver + forward kinematics get_joint_pos() reads 14 values FK gives each arm’s tip pose Gripper normalized to 0–1 → eef_state, 14 values (m / rad) _state_lines state text With dimension names, 4 decimals + steps the guardrail changed last turn → state[eef_state]: left_x=0.312… Task and config (not sensors) Task instruction Step / call budget Experience file from the last trial → Text and numbers bind_task + reset() Runs once at the start of each trial Loads robot description, limits → System-prompt fragment System prompt Robot description + frame conventions Per-dim [lo, hi] + fixed dims prior_learnings ≤ 32 KiB → system message policy.py assembly All text history is kept: each turn’s note, tool result, guardrail log Images only for the last 2 observations (image_horizon = 2); older ones become [N camera frame(s) elided] The wire client translates to each provider’s API format: messages responses / chat LLM opus-5.5 / gpt-6-astra … effort = medium ≤ 40 calls per trial Exactly 1 tool call per turn: move_to {   targets: {     left_x: 0.31,     left_z: 0.12, …},   note: "I see… so…" } or done / give_up {summary, hindsight} Call _tools.py validation Out of range / fixed dimension / over 10 s → returns error text to the LLM Linear interpolation, np.linspace Tier 1 speed cap of 25%: ≤ 2.5% of range per step (x≈8 mm)* → ActionChunk, ≤ 100 steps @10 Hz DefaultController Asks the LLM only after the chunk plays No re-planning during playback Guardrail Approver chain Clamp limits → DeltaLimit ≤ 5% of range per step YAM inverse kinematics (per step) i2rt ik, 20 iterations, warm start ≤ 0.2 rad per joint per step _send dispatch Clip to joint limits, de-normalize gripper → 14 values → left 7 + right 7 i2rt driver → CAN command_joint_pos Motor-internal PD not published Tool call Error text → retry 3 in a row ends the trial Left arm (can0) J0 base rotation J1 shoulder J2 elbow J3 wrist pitch J4 wrist yaw J5 wrist roll Gripper (linear, 95 mm) Right arm (can1) J0 base rotation J1 shoulder J2 elbow J3 wrist pitch J4 wrist yaw J5 wrist roll Gripper (linear, 95 mm) Joint targets Whole motion finishes → capture a new frame + read new joint positions → back to ① for the next turn (≤ 10 s per turn) * The per-step displacement for the 25% speed cap is derived from the code formula, not quoted from the page. The motor model and PD parameters sit inside the i2rt driver and are not published.
Depth is not computed from ordinary images: the two wrist D405 cameras are stereo cameras, and the depth is computed on the camera chip. The plugin only draws it as a grayscale image and attaches one line of distance text. The LLM gets no point cloud and does not need camera extrinsics, because move_to uses each arm’s own base coordinate frame.

The diagram is wide; on a narrow screen you can scroll it sideways.

Version 2: Turn 11, What the LLM Can See When It Decides

Here a “step” means one LLM decision turn, and each turn executes up to 100 control steps. Solid lines are mechanisms that actually exist in the RoboCurve code. Dashed lines are the requested “predict the next 20 steps” and “compare the past 10 steps with 5 steps of the previous cycle”; RoboCurve does not implement them, and the diagram shows where they would attach if added.

Previous cycle (previous trial) LLM decision turns (this trial) Control steps, 10 Hz (robot moving) What the LLM can see: images What the LLM can see: text history Comparison Future planning T1 T2 T3 T4 T5 T6 T7 T8 T9 T10 T11 = now Future → P1 Key step P2 Key step P3 Key step P4 Key step P5 Key step hindsight → prior_learnings Lessons written at the last done / give_up Compiled by hand into a file (≤ 32 KiB) Put into this trial’s system prompt Pick 5 steps T1 move_to + note Elided elided T2 move_to + note Elided elided T3 move_to + note Elided elided T4 move_to + note Elided elided T5 move_to + note Elided elided T6 move_to + note Elided elided T7 move_to + note Elided elided T8 move_to + note Elided elided T9 move_to + note Elided elided T10 move_to + note 3 RGB +2 depth Each turn = 1 target, interpolated into ≤ 100 control steps (≤ 10 s); the LLM is not involved during playback Full text history (never truncated) Per turn: that turn’s observation text · note (what was seen / why) · tool result (N steps executed) · guardrail change log T11 integrated decision Input: · System prompt + experience file · All text from T1–T10 · Images from T10 and T11 · Current state, state[eef_state] · Remaining budget, step 11 / 40 LLM internal reasoning (effort=medium) Output (actual): 1 move_to target + note Experience goes into the system prompt Comparator (hypothetical extension) Last 10 turns (motion, outcome) vs 5 key steps of previous cycle → Judge: is it repeating the last failure, or making progress? Comparison result (hypothetical) Actual: 1 target → linear interpolation ≤ 100 control steps at 10 Hz (≤ 10 s) No new images mid-way; back at T12 only after playback Tier 1: at most 900 control steps per trial Actual output F1 F10 F20 Predict the next 20 steps (hypothetical): waypoint + expected view per step Output (hypothetical) At T12: prediction vs actual Compute residuals → correct the remaining 19 steps; roll forward, always looking 20 steps ahead Solid: exists in the RoboCurve code Dashed: hypothetical extension that was requested but is not implemented in RoboCurve
In the actual system, the LLM sees images only from the last two observations, but it sees the text of all 10 turns (its own notes, tool results, and guardrail records). The previous trial affects this one only through the hindsight experience file, and no specific steps are kept. Each turn outputs only one end point, which the tool interpolates linearly; there is no multi-step prediction and no “prediction vs actual” comparison.

Version 3: SO-101, What Each Servo Reads and Writes

The SO-101 has no separate joint sensors: the 6 Feetech STS3215 servos are at once the motors and the position, current, voltage, and temperature sensors. The host addresses them one by one by ID on a single bus, through a board that converts USB to half-duplex serial.

Host (Linux computer) → USB → servo bus Inspect Robots · so_arm state joint_pos, 6 values: 5 joints (degrees) + gripper 0–100 Action: 6 absolute targets @30 Hz No move_to (you must add IK yourself) LeRobot SOFollower get_observation():   sync_read Present_Position send_action():   sync_write Goal_Position FeetechMotorsBus conversion degrees = (raw − midpoint) × 360/4095 gripper = (raw−min)/(max−min)×100 Calibration JSON: homing_offset, range_min / range_max scservo_sdk packing FF FF ID LEN INSTR PARAMS CHK Example: read servo 1’s current position FF FF 01 04 02 38 02 BE Sync read 0x82 / sync write 0x83 Waveshare bus servo board USB serial ↔ half-duplex TTL single wire 1 Mbps, 8N1 Linux: /dev/ttyACM0 Power: 5 V (7.4 V servos) or 12 V 5 A Top arrows: the host sends targets (degrees → raw 0–4095 → byte packet); bottom arrows: positions read back (reply → raw → degrees) Front USB camera (UVC) One more wrist camera can be added → MJPEG / YUYV 640×480 @30 OpenCVCamera.read_latest() Decoded to RGB → uint8 (480, 640, 3) Observation 'front' One 3-wire daisy chain: data + power + ground; 6 servos share one bus and are addressed by ID ID 1 · base rotation shoulder_pan STS3215, follower gear ratio 1/345 URDF range ±1.92 rad P/I/D = 16 / 0 / 32 → shoulder_pan.pos (deg) ID 2 · shoulder lift shoulder_lift STS3215, follower gear ratio 1/345 URDF range ±1.75 rad P/I/D = 16 / 0 / 32 → shoulder_lift.pos (deg) ID 3 · elbow bend elbow_flex STS3215, follower gear ratio 1/345 URDF range ±1.69 rad P/I/D = 16 / 0 / 32 → elbow_flex.pos (deg) ID 4 · wrist pitch wrist_flex STS3215, follower gear ratio 1/345 URDF range ±1.66 rad P/I/D = 16 / 0 / 32 → wrist_flex.pos (deg) ID 5 · wrist rotation wrist_roll STS3215, follower gear ratio 1/345 URDF range −2.74…2.84 rad P/I/D = 16 / 0 / 32 → wrist_roll.pos (deg) ID 6 · gripper open/close gripper STS3215, follower gear ratio 1/345 URDF range −0.17…1.75 rad Torque limit 50%, protection current 250 → gripper.pos (0–100) Zoom in on one STS3215 servo: what the host writes and what it reads back (address / bytes / unit) Input (host writes registers) Goal_Position 42 2B 0.087°/step Torque_Enable 40 1B 0 / 1 Acceleration 41 1B 8.7°/s² per unit P / I / D 21–23 16 / 0 / 32 Operating_Mode 33 1B 0 = position mode Torque_Limit 48 2B 0–1000 (0.1%) Min/Max_Pos 9/11 2B written at calibration Homing_Offset 31 2B written at calibration Output (host reads registers) Present_Position 56 2B 0–4095 (12-bit) Present_Velocity 58 2B ≈0.732 RPM/unit Present_Load 60 2B 0.1% of full scale Present_Voltage 62 1B 0.1 V Present_Temperature 63 1B °C Present_Current 69 2B 6.5 mA/unit LeRobot reads only Present_Position each loop Inside the servo (the closed loop runs in the servo; the host is not involved) Target position Position-loop PID Motor driver Gearbox 1/345 12-bit encoder · 4096 counts/rev Actual position feedback Current / voltage / temperature sensors are also on the servo board; results are written to the registers on the right Write Read What happens on the bus in one 30 Hz control cycle (about 33 ms) sync_read 1 broadcast packet reads 6 Present_Position values 6 reply packets Each servo replies in turn with a 2-byte position Convert + capture image raw → degrees; camera takes the latest frame Policy decision LLM or VLA outputs 6 targets sync_write 1 broadcast packet writes 6 Goal_Position values; no wait for replies Note: the register units come from a third-party compilation of the Feetech control table and were not checked item by item against the official manual. If an LLM wants to give end-effector coordinates with move_to, you must add an inverse-kinematics layer yourself (for example placo + so101_new_calib.urdf).
The position loop closes inside the servo: the host writes only the target position (Goal_Position), and the servo tracks it with its own PID. LeRobot reads back only the position each cycle; registers for current, load, and temperature exist but are not read by default.
ID Joint Motion Follower gear ratio Leader gear ratio URDF range (rad) LeRobot reading
1 shoulder_pan Base rotation 1/345 1/191 ±1.92 Degrees
2 shoulder_lift Shoulder lift 1/345 1/345 ±1.75 Degrees
3 elbow_flex Elbow bend 1/345 1/191 ±1.69 Degrees
4 wrist_flex Wrist pitch 1/345 1/147 ±1.66 Degrees
5 wrist_roll Wrist rotation 1/345 1/147 −2.74 … 2.84 Degrees
6 gripper Gripper open/close 1/345 1/147 −0.17 … 1.75 0–100

Sources

github.com/robocurve/inspect-robots (agent plugin _tools.py, _depth.py, _png.py, policy.py), inspect-robots-yam, inspect-robots-so101, huggingface/lerobot (so_follower, motors/feetech), TheRobotStudio/SO-ARM100, and the robocurve.org Tier 1 and RoboHarm pages. The material was read on 2026-10-14; file line numbers change between versions.