Guides & TutorialsAI Engineering

LeRobot SO-101 Setup: 7 Steps From Parts to First Dataset

One ordered path through LeRobot SO-101 setup: what to buy and print, how to install LeRobot, set motor IDs, calibrate the leader and follower arms, teleoperate and record a first dataset, plus where setups get stuck.

Toolbit AI - Team
13 min read
LeRobot SO-101 Setup: 7 Steps From Parts to First Dataset

Picture two small robot arms on a desk. You move one by hand, the other copies you, and after enough demonstrations the second one can do the job alone. That is The Robot Studio's SO-101, run by LeRobot, the robot software from Hugging Face.

LeRobot SO-101 setup comes down to seven steps: buy the parts (about $230 for both arms at the parts list's US prices), install LeRobot, find each arm's USB port, give every motor its own ID, assemble and calibrate both arms, teleoperate, then record your first dataset.

LeRobot SO-101 setup: what you are building

You are building a pair of arms that look almost alike but do different jobs. The leader is the one you hold and move by hand, like the controller a puppeteer works. The follower is the puppet: its motors copy every move the leader makes.

Two SO-101 arms in the same pose: a hand moves the leader, the follower copies it
The leader is the puppeteer's controller and the follower is the puppet. Gearing per The Robot Studio's parts list and Hugging Face's SO-101 docs.

That pairing is how LeRobot collects training data. During data collection you steer the robot with a teleoperation device (anything that drives the robot from a distance, such as the leader arm or a keyboard), and LeRobot records the motion. Your hand supplies the skill, and the software writes it down.

Both arms use almost the same off-the-shelf parts, except for the motors. The follower runs six STS3215 servo motors (small motors that turn to an exact angle on command), all with 1/345 gearing.

The leader mixes three gear ratios: three motors at 1/147, two at 1/191 and one at 1/345. Hugging Face's SO-101 page explains why. The mix lets the leader hold up its own weight while you still move it without much force.

The SO-101 is the next version of the older SO-100 arm. It has improved wiring, it is easier to assemble because there is no gear removal, and the leader uses updated motors. So if a guide asks you to pull gears out of a motor, check that it is not an SO-100 guide.

Hold on to the puppet picture. It explains calibration, recording and training in the steps below. It also breaks at the very end, in a good way: a real puppet never learns to move without you, and this one can.

Step 1: Get the parts and print the frame

Your shopping list lives in The Robot Studio's SO-ARM100 repository on GitHub. Its README has the bill of materials (the full parts list) with links to buy each part. It also covers 3D printing, with advice for a first print or for people who do not own a printer.

  • Budget. At the README's listed US prices, the parts for both arms total $229.88. The follower alone comes to $121.94. Plan for the printed parts and any cameras on top of that.
  • Leader motors. The SO-101 leader always uses the 7.4V motors, in the three gear ratios above.
  • Follower motors. The follower's STS3215 comes in two versions. The 7.4V motor has a stall torque (the strongest twist it can make before it stops turning) of 16.5 kg.cm at 6V, and likely a little less on a 5V supply. The 12V motor reaches 30 kg.cm, close to double.
  • A power supply that matches. If you choose the 12V follower motors, you need a 12V supply rated 5A or more instead of a 5V one. Match the supply to the motors you actually bought.
  • Printing. The STL files (the 3D models your printer slices) are ready to print on many FDM printers (the common kind that builds parts from melted plastic). Use a 0.4mm nozzle at 0.2mm layer height, or a 0.6mm nozzle at 0.4mm layer height.
  • One file per arm. All the parts for the leader or the follower sit in a single print file, already turned to need as little support material as possible.
  • Kits. The README also lists kit sellers, and at least one of them sells the arms already assembled.
  • Controller boards. Each arm talks to your computer through its own motor controller board, which the docs call a bus servo adapter. You will meet it in Step 3.

Step 2: Install LeRobot and the motor driver

LeRobot is a Python library built on PyTorch, and a plain install gives you only its core. For the SO-101 you add extras: one for the motors, one for the robot scripts and one for training.

  1. Make a fresh environment with Python 3.12 or newer. LeRobot's installation guide recommends conda through miniforge (a small conda installer). If you prefer uv or venv, that works too, as long as Python is 3.12 or newer.
  2. Add the extras for recording and training. A plain pip install lerobot installs only the core machine-learning dependencies, and most workflows need extras. The core_scripts extra is what lerobot-record, lerobot-replay and lerobot-calibrate need, and the training extra is for training policies.
  3. Add the feetech extra for the motors. The SO-100 and SO-101 need it, because it adds the Feetech SDK (the driver library for their motors).
  4. Install ffmpeg in the same environment. LeRobot decodes video with TorchCodec by default, and TorchCodec needs ffmpeg.
conda create -y -n lerobot python=3.12
conda activate lerobot
pip install 'lerobot[core_scripts,training]'
pip install 'lerobot[feetech]'

These are the installation guide's commands for an install from PyPI, Python's public package index. Extras can also be combined inside one set of brackets. If you cloned the repository instead, the guide's source command for robot workflows is pip install -e ".[core_scripts]".

Two platform catches are worth knowing before they bite:

  • Apple Silicon Macs. PyTorch needs macOS 14 or newer. GPU acceleration through MPS (PyTorch's route to the Mac's graphics chip) needs macOS 15 or newer. On macOS 14, LeRobot falls back to the CPU.
  • Windows. If you install LeRobot inside WSL (Windows Subsystem for Linux), also install the evdev package. In a conda environment, the guide's command is conda install evdev -c conda-forge.

Step 3: Find each arm's USB port

Every later command needs the name of the port each arm's board uses, so you find both names now.

  1. Connect one arm's controller board to the computer by USB, and plug in its power.
  2. Run lerobot-find-port.
  3. When the script asks, unplug that board's USB cable. That is how the script tells which port belongs to the arm. It then prints the port it found.
  4. Write the port down, label the arm, and repeat for the other one.

On Linux the result looks like /dev/ttyACM1. On a Mac it looks like /dev/tty.usbmodem followed by a serial number. In every command below, swap [your-follower-port] and [your-leader-port] for your two results.

Two snags show up at this step:

  • Waveshare board. If you use a Waveshare controller board, set both jumpers to the B channel (USB).
  • Permission denied on Linux. The permanent fix is to add your user to the dialout group (the Linux group allowed to use serial ports), then log out and back in.
sudo usermod -aG dialout $USER

Step 4: Give every motor its own ID before you build

Every motor needs a unique ID before assembly, because all six motors in an arm share one data line and the controller calls each one by number.

New motors all numbered 1, one renumbered alone, then six chained motors numbered 1 to 6
New motors usually all ship as ID 1, so each gets its own number while it is alone on the board. Once chained, the controller reaches every motor by that number.

Picture a street where every house arrives with the number 1 on its door. No letter could ever reach the right house. Brand-new motors are that street: they usually ship with a default ID of 1.

On the bus (the shared cable the motors are chained along), the controller picks out each motor by its unique ID. So you paint a different number on each door before the street is built. With only one motor on the board at a time, there is no doubt which house gets the new number.

The controller and every motor also need the same baudrate, the speed at which data travels on the bus. In street terms, everyone agrees to talk at the same pace.

Both settings are written to the motor's EEPROM (memory that keeps its contents with the power off), so you do this only once. Motors reused from another robot probably need this step too, since their IDs and baudrate likely won't match.

  1. Connect the follower's board by USB and power, and run the first command below with your follower port.
  2. The script then works through the motors one at a time. For each one, connect only that motor to the board, not chained to any other motor, and press Enter.
  3. Check your cabling before every Enter. The docs warn that the power cable can come loose as you handle the board.
  4. Label each motor as you finish it. Six identical follower motors are easy to mix up later.
  5. Repeat for the leader with the second command.
lerobot-setup-motors --robot.type=so101_follower --robot.port=[your-follower-port]
lerobot-setup-motors --teleop.type=so101_leader --teleop.port=[your-leader-port]

Step 5: Assemble, then calibrate both arms

Assembly turns six numbered motors into an arm, and calibration then tells the software where each joint's middle and limits are.

A joint sweeps from middle to both end stops; a pinched cable stops another short
Start in the middle, then sweep each joint to its real end stops. A pinched cable sets a false limit, as NVIDIA's SO-101 troubleshooting guide warns.

Before anything goes together, remove all support material from the printed parts. Route the cables neatly, too. The motors are daisy-chained (each one passes the line on to the next), so one loose connection can affect every motor further down the chain.

Then calibrate. Calibration makes sure the leader and follower report the same position values when they sit in the same physical position. In puppet terms, the controller and the puppet agree on what halfway means.

Hugging Face calls this step "very important because it allows a neural network trained on one robot to work on another."

  1. Run the calibration command for the follower, with an id (a name) you choose.
  2. Move the arm so every joint sits in the middle of its range, then press Enter.
  3. Move each joint through its full range of motion. Take every joint to its real mechanical end stop, not to a cable or an obstacle.
  4. Repeat for the leader with the second command.
lerobot-calibrate --robot.type=so101_follower --robot.port=[your-follower-port] --robot.id=my_follower_arm
lerobot-calibrate --teleop.type=so101_leader --teleop.port=[your-leader-port] --teleop.id=my_leader_arm

The third step is the one that bites. NVIDIA's SO-101 troubleshooting guide notes that a cable pinched between links, or the arm hitting a cable, creates a false minimum or maximum and a wrong calibration. The arm then believes a cable is the edge of its world.

Last, keep those ids. The id you give each arm names its stored calibration file. Use the same id every time you teleoperate, record and evaluate with this setup, because that is how each command finds the right calibration.

Step 6: Teleoperate, the first time it feels alive

Teleoperation is the first moment the pair works as one: you move the leader, and the follower copies it. Run this with both ports and the ids from Step 5.

lerobot-teleoperate \
  --robot.type=so101_follower \
  --robot.port=[your-follower-port] \
  --robot.id=my_follower_arm \
  --teleop.type=so101_leader \
  --teleop.port=[your-leader-port] \
  --teleop.id=my_leader_arm

The command first looks for any missing calibration and starts it if needed. Then it connects both arms and starts teleoperation. So a skipped calibration is not a dead end; you just get the calibration prompts first.

Now try it. Open the leader's gripper slowly, and the follower's gripper should open with it. Sweep the leader's shoulder from side to side and watch the follower track it.

If a joint stops short of where the leader goes, recalibrate that arm before going further.

Then add cameras. The example in Hugging Face's imitation learning tutorial uses two cameras named wrist and top, and keeps that setup from then on. You add them with a --robot.cameras value, and the tutorial shows the exact format.

Settle the names now. A policy (the trained model that will later drive the arm) expects the same camera names and resolution when you deploy it. So you reuse this exact cameras value in every later step.

One more catch: camera indices (the numbers your computer gives each camera) can change whenever you unplug or replug a camera. If wrist and top look swapped, that is why.

Step 7: Record your first dataset

A dataset is a set of episodes, and an episode is one recorded attempt at the task, from start to finish.

Recorded episodes and resets, with synced camera frames, state and action, ending on the Hub
Each episode saves camera video in step with the arm's state and action, then the reset gives you time to set the scene again. Default timers from Hugging Face's imitation learning tutorial.
  1. Log in to Hugging Face. Uploading needs a command-line login with a write-access token, which you create in your Hugging Face settings.
  2. Record 5 practice episodes. The docs' first example records 5 episodes and uploads the dataset to the Hub (Hugging Face's site for shared models and datasets). Give the task a one-line description, such as Grab the black cube.
  3. Mind the timers. By default each episode lasts 60 seconds, and then you get 60 seconds to reset the scene. Press the right arrow key or n to end an episode or a reset early and move on.
  4. Check the result. Replay any recorded episode on the robot. It should repeat movements similar to the ones you made.
  5. Add more later. Re-run the same record command with --resume=true to add episodes to the same dataset.
lerobot-record \
  --robot.type=so101_follower \
  --robot.port=[your-follower-port] \
  --robot.id=my_follower_arm \
  --robot.cameras=[the same cameras value as in Step 6] \
  --teleop.type=so101_leader \
  --teleop.port=[your-leader-port] \
  --teleop.id=my_leader_arm \
  --dataset.repo_id=[your-hf-username]/[dataset-name] \
  --dataset.num_episodes=5 \
  --dataset.single_task="Grab the black cube"

While you record, the data is saved to disk in the LeRobotDataset format, under ~/.cache/huggingface/lerobot/[repo-id] on your machine. By default it is then pushed to your Hugging Face page.

Inside, the format keeps synchronized MP4 videos (or images) of what the cameras saw. Next to them sit Parquet files (a compact table format) with the arm's state and action data. State is where the arm was, and action is the move it was told to make.

What makes a first dataset good enough to learn from?

A dataset a policy can learn from is boring on purpose: one simple task, done the same way, many times.

  • Pick a simple task. Hugging Face suggests grasping an object at different locations and placing it in a bin.
  • Record at least 50 episodes. The suggestion is 10 episodes per location, which means five spots on the table if you stop at 50.
  • Freeze the cameras. Keep them fixed for every recording.
  • Grasp the same way every time. Keep your grasping behavior consistent from the first episode to the last.
  • Pass the camera test. The docs' rule of thumb: "you should be able to do the task yourself by only looking at the camera images."
  • Add variety slowly. Too much variation too quickly may hurt your results.

Where SO-101 setups usually get stuck

The snags below trace back to power, cables, permissions or cameras, and each has a quick check.

SymptomLikely causeFix
No motors found at allUSB carries communication, but the motors need separate powerPlug in the motor power supply
Some motors missingA loose connection in the daisy chain can affect the motors after itReseat the cables, starting at the first missing motor
Permission denied on the port (Linux)Your user is not in the dialout groupAdd it, then log out and back in
Nothing found on a Waveshare boardJumpers not on the B channelSet both jumpers to B (USB)
A joint stops short after calibrationA pinched cable set a false limitFree the cable and recalibrate to the real end stops
Wrist and top views swappedCamera indices changed after a replugRecheck the indices and update the cameras value

Next: teach it a task

Once your dataset is on the Hub, training turns your demonstrations into a policy that drives the follower on its own.

The docs' training example runs lerobot-train with the ACT policy (set with --policy.type=act). It uses --policy.device=cuda to train on an NVIDIA GPU, and you can use mps instead on Apple silicon.

No powerful local GPU? Hugging Face points to an ACT training notebook you can run in Google Colab. The docs say training should take several hours.

When it finishes, lerobot-rollout deploys the trained policy on the robot. Hugging Face says its tutorial gets the arm repeating tasks such as picking up a Lego block and placing it in a bin "with a high success rate."

This is where the puppet picture finally breaks. A puppet never performs without its puppeteer, but after training, the follower can run without the leader. Learning from human demonstrations like this is one of the routes covered in how humanoid robots learn.

Your first move is smaller than that, though. Do not aim for a perfect dataset on day one. Record 5 practice episodes, replay one to check the arm repeats you, then grow toward 50 episodes of one simple task before you train.

The parts prices above come from The Robot Studio's parts list, checked in December 2026, and they can change.

Share this article

Related articles

Continue exploring similar guides and insights