How I Built and Trained My First Robot Arm
By Samar
I’ve been interested in robotics for a while, but I wanted to go beyond programming simulations or building something that I controlled manually. I wanted to train a physical robot to learn a task from demonstrations.
For my first project, I assembled an SO-101 robot arm and trained it to pick up a block and place it into a bowl.
Pick-and-place trials: Watch on YouTube
Model and datasets on Hugging Face
The project took me through the whole robot-learning pipeline: build the robot → teleoperate it → collect data → train a model → deploy the model → test it on the physical robot.
1. Building the robot
I used the SO-101, an open-source robotic arm supported by Hugging Face’s LeRobot project. The setup uses two arms: a leader arm that I move by hand, and a follower arm that copies its movements. Each arm has six motors controlling its joints and gripper.
I ordered the parts, assembled the arms, bolted everything together, connected the motors and controller boards, and connected the system to my computer. Even before doing machine learning, there was a lot of hardware setup.
2. Configuring and calibrating the arms
Once the hardware was assembled, I installed LeRobot. The motors had to be identified and configured so the software knew which motor controlled each joint. I then calibrated both arms, moving the joints through their ranges so the leader’s positions mapped correctly to the follower’s.
After calibration, I could move the leader arm by hand and have the follower arm reproduce my movements.
3. Teaching the robot a task
The task was simple to describe: pick up a block and put it in a bowl. I wanted the robot to learn it from examples instead of programming the block’s coordinates and each motor movement.
I moved the leader arm toward the block, positioned and closed the gripper, lifted the block, moved it over the bowl, and released it. The follower mirrored my movements. LeRobot recorded what the robot saw and what its motors did.
4. Collecting the training data
The dataset records a camera view, the robot’s joint positions, and the actions I demonstrated. I tried several versions of the dataset while getting the setup working. The recorded task was “Pick up the block and put it in the bowl.”
The demonstrations had to be reasonably consistent, the camera had to see the important parts of the task, and poor demonstrations could become poor training data.
5. Training the model
I trained an ACT (Action Chunking Transformer) imitation-learning policy. Instead of predicting only one motor command at a time, ACT predicts chunks of future actions.
I used LeRobot to train the policy. The camera observations and motor states were the inputs, and the demonstrated actions were what I wanted it to learn to predict.
6. Deploying the policy
After training, I wanted to see whether the model could control the physical robot. It used the camera image and robot state to generate commands for the follower arm. I was no longer moving the leader arm; the follower was acting autonomously.
7. Testing it
I placed the block on the table and ran the trained policy. Sometimes it worked. Sometimes it didn’t. The videos show successful pick-and-place attempts as well as retries and resets before another run.
Possible failure causes include a different starting position, an approach angle that leads to a weak grasp, small errors accumulating during movement, or a camera view unlike the demonstrations. I haven’t isolated and measured each cause yet.
The next step I want to try is collecting more varied demonstrations around failure cases, retraining, and evaluating again across controlled starting positions and objects. I’d like to track success rates rather than just record a few successful runs.
What I learned
Before this project, I thought of robotics mostly as mechanical engineering and programming. Now I see robot learning as a loop: hardware → sensing → human demonstrations → data → model → physical evaluation → more data.
Getting the entire system working together was the project. The SO-101 and LeRobot made it possible for me to work through that pipeline at home, but even this small block-to-bowl task took careful setup, data collection and testing.
My next goal is to work on harder manipulation problems, collect larger and more varied datasets, and learn how researchers systematically evaluate why robot policies succeed or fail.