Samar

Teaching My Robot Arm to Place a Block on a 2 × 2 Grid

By Samar

In my first robot arm project, I trained my SO-101 to pick up a block and drop it into a bowl. For this follow-up, I wanted to see if I could tell the arm exactly where to put the block.

I drew a 2 × 2 grid on paper, labeled the squares A1, A2, B1 and B2, and taped it to the work surface. I marked a separate spot with blue tape so I could start the red block in the same place each time. For the run shown in the video, I selected A1 from my laptop.

How I choose a square

I set up the Python controller to associate each square with its own LeRobot ACT model. When I enter A1, the controller looks for the saved model named act_grid_a1 and prepares the command to run it. The square label tells the controller which model to load. The model then uses the camera image and the arm’s current joint positions to predict several movements at a time.

I can preview the command in the terminal before moving the arm. To start a run, the controller checks that LeRobot is available, that it can see the arm’s USB port and get a camera frame, and that the selected model folder exists. It then asks me to type a confirmation for that square. After the run, I check where the block actually landed.

What I tested

My training plan starts with 40–50 successful demonstrations per square. I can vary the block’s position a little within the pickup area while keeping the camera, lighting and grid fixed. Keeping those fixed makes it easier to tell whether a missed grasp or a wrong-square placement is something I need to address in the demonstrations or investigate in the setup.

Around 0:46, the gripper closes on the block at the pickup spot. The arm lifts it, swings over the board, lowers it into A1 and opens the gripper. By 0:54, the arm has cleared the board and the block is sitting inside A1.

What I want to try next

I’d like to test each square several times and record successful placements, missed grasps, drops and wrong-square placements. The next step toward a chess-playing robot is to give the arm two squares, like A1 to B2, so it can pick up a piece that’s already on the board. A separate model for each destination is manageable with four squares. For a full chessboard, I’d like to find a way to reuse what the arm learns across squares.

Demo video: Watch on YouTube

Read about my first robot arm project

View the controller code on GitHub