Guide · Video 9:12
How to design a robot arm with linkages, by describing it to AI
A robot arm with linkages keeps its motors in the base and drives the joints through belts and push rods, while parallelograms keep the tool mount level in every pose. Instead of working out link lengths, dead points and collisions by hand, you can describe the arm to SOMA AI, the agent built into SOMA: it lays out the linkage around your real motor, animates the full range of motion, checks every pose for parts that touch and narrows the joint limits where needed. The result is a first layout, not a tested robot: check torques, fits and loads before you build one.

What you need
- SOMA, free and open source, for Windows, macOS or Linux.
- A sign-in for SOMA AI: a ChatGPT Plus or Pro plan, or an API key from Anthropic (Claude), OpenAI, Google Gemini, OpenRouter or OpenCode. SOMA is free, the AI runs on your plan or key. The cheapest way to start is an OpenCode Go subscription for about $10 a month.
- A STEP file of your motor, if you want the real one in the model. The video uses a NEMA 17 stepper from the FreeCAD Parts Library.
- Your main numbers: the reach, the payload and how the parts will be made. The video uses about 250 mm reach, later 300 mm, a 200 g payload and 3D printed links.
- Time: a full arm is a big job. In the video SOMA AI worked on its own for about an hour on each of the bigger steps.
Step by step
1Import the motor as a STEP file
Start a new model. The video names it Robot arm.
The arm should get real motors, so first import a NEMA 17 stepper as a STEP file. It lands in the inputs folder. Click it in the file browser to see it in the viewer; Back to model returns to your model.

2Describe the arm in plain words
Open the SOMA AI tab, pick the model and the effort. The video uses GPT-6.1 Sol with High effort, so it thinks longer before it acts.
Then describe the arm: what kind of arm it is, where the motors sit and which file to use for them, how the joints are driven, the reach and payload, how the parts are made, and which values you want to change later. Naming a known design such as a Dobot or uArm helps SOMA AI understand the layout you mean. End with a request to ask about anything that is unclear.
Design a desktop robot arm like a Dobot or uArm. All motors sit in the base: one stepper turns the base, two more drive the shoulder and, through push rods, the elbow. Use the NEMA 17 from inputs/NEMA_17_with_connector.step for all three motors. A parallelogram keeps the gripper mount level in every pose. Reach about 250 mm, payload 200 g, 3D printed links, ball bearings and standard screws at the pivots. Make the base, shoulder and elbow angles parameters, and group the parts clearly in the structure tree. Ask me about anything that is unclear before you start.
3Answer its questions
SOMA AI asks its questions all at once, each with a recommended answer. In the video there were two: what the level wrist should carry, and how the two arm motors pass on their motion.
The video takes the recommendations: a mounting plate for your own gripper for now, and timing belts to gear down the two arm motors. Click an answer or write your own, then Send answers.

4Let it lay out the linkage
Then SOMA AI works on its own, in the video for almost an hour. It lays out the links, the push rods and the belts, places the three motors, replaces screws that were too long, and checks the arm in ten poses for parts that touch. Every time it changes the model, SOMA builds it and shows it.
In the video the arm has 238 parts. The structure tree groups them from the fixed base and the rotating base up to the shoulder, the elbow drive, the leveling links and the wrist. Its summary lists 125 mm upper and forearm links, paired elbow push rods and two parallelograms that keep the mounting plate level.

5Look at the motors inside
Make the two base groups see-through with the half circle next to their names, and the motors show: three copies of the imported NEMA 17.
In the video one sits under the turntable and turns the whole arm with a belt. The other two ride on the turntable, back to back, and drive the shoulder and the elbow through timing belts. From the side you see the linkage: paired push rods drive the elbow from the base.

6Animate the range of motion with a collision check
Does the linkage actually work? Ask for an animation of the full range of motion, with a collision check. SOMA AI writes the motion and checks every pose with the whole assembly, motors and screws included.
In the video that found contacts its first check had missed: the elbow axle touched the leveling links at steep angles, and screw heads hit the drive. So it moved the screws and narrowed the shoulder and elbow travel: shoulder 25 to 55 degrees, elbow 35 to 80 degrees. The base still turns ±150 degrees.
Open the Animation tab, pick the animation and press play. The push rods and the parallelograms follow, and the mounting plate stays level the whole time. The report: no collisions at 441 positions.
Make an animation of the full range of motion: the base turns, then shoulder and elbow sweep to their limits while the gripper mount stays level. Check that no link hits another part, and limit the angles if needed.

7Change it in words: more reach and a parallel gripper
Changes work the same way. Ask for more reach and a gripper whose jaws both move and stay parallel.
SOMA AI asked three questions first: where to measure the reach, which servo, and how wide the jaws should open. The video picks the reach to the center of the grip, a generic 9 gram servo for now, and 30 mm.
Then it worked for almost an hour: it lengthened the arm, built the gripper, extended the animation and checked everything again. The micro servo sits under the wrist plate and turns a small gear; two racks mesh with it from opposite sides, and each carries one jaw, so both jaws move the same distance in opposite directions. The collision check passed again, and so did the 14 builds at the ends of every parameter range.
I need more reach: make it 300 mm, and add a simple gripper with a micro servo. Both jaws should move and stay parallel to each other while they open and close. Keep the animation working, and show the gripper opening and closing in it. Ask me about anything that is unclear before you start.

8Pose it with sliders
Because the prompt asked for it, the joint angles are parameters, and so are the reach and the jaw opening. You find them in the Parameters tab.
Drag a slider and SOMA rebuilds the arm in that pose, without the AI and without code: the push rods and the parallelograms follow, and the gripper stays level. Reset all brings the arm back to its home pose.

9Redo the gripper from scratch
Look closely at what you got. In the video the first gripper opened and closed, but it was not usable: the jaws barely reached past the wrist, and every gripping force went through thin rods into the racks and the gear.
So start a new conversation and ask for a new gripper from scratch, with the jaws in their own guide that takes the forces. SOMA AI asked one thing first: the guide can take the bending and lifting loads, but something still has to hold the grip closed. The video picks the servo.
After 1 h 10 min of work there is a guide housing in which each jaw carriage runs on two T-shaped shoes, held in by a bolted lid. The fingers reach 48 mm beyond the housing, 40 mm further forward than before, and both jaws still move parallel, 0 to 30 mm. The racks are bolted on separately and, as chosen, still carry the closing force. To keep 300 mm of reach to the grip center, SOMA AI made the upper arm and the forearm shorter on its own.
The gripper isn't usable yet. Please redo the complete gripper from scratch, don't keep the old geometry. The jaws should run in their own guide (a slide or rail housing) that takes all the gripping forces, so the racks and the gear only make the movement and never carry load. Also make the jaws reach further forward, so it can actually pick something up. Both jaws should still move parallel, driven by the servo.

Tips
- Import the real parts you want to use, like the motor, as STEP files first. Then the design is built around their true size.
- Ask for the joint angles as parameters from the start. Then you can pose the arm with sliders and the animation can use the same angles.
- Ask for a collision check of the whole assembly with every animation, and read the report. In the video it found contacts a simpler check had missed.
- Look at the result with a critical eye. A gripper that opens and closes is not yet one that can hold something; say what is wrong and ask for a new one.
- A new part adds weight. In the video the new gripper has about 136 g of printed parts, so little of the 200 g payload is left for the object. Test the real servo and the grip before you build.
- For the best results the user guide recommends Opus 5.5 (with an API key) or GPT-6.2 Astra (with ChatGPT), with High effort or more.
Related guides
Transcript of the video
A robot arm with every motor in its base. Belts, push rods and parallelograms drive the joints, and the gripper stays level in every pose. Laying out those linkages by hand is painful: link lengths, dead points, parts that crash into each other. Today I'll show you how to design one with SOMA AI by simply describing it, and then watch it move. No CAD knowledge needed. We use SOMA. It's free and open source, and you can download it at somacad.app. SOMA itself is free. For SOMA AI, you bring your own AI: a ChatGPT subscription or an API key. We start with a new model, Robot arm. The arm should get real NEMA 17 steppers, so first I import a NEMA 17 as a STEP file.
It lands in the inputs folder.
You can view a STEP file by clicking it in the file browser: it shows up in the viewer.
Everything is prepared. Now we design the arm with SOMA AI: I click its tab, and pick the model, GPT-6.1 Sol.
For a design like this, I set the effort to High: it thinks longer before it acts.
Then I describe the arm in plain words: a desktop arm like a Dobot or uArm, all motors in the base, the imported NEMA 17 for all three, push rods to the elbow, a parallelogram that keeps the gripper level, and about 250 millimeters of reach. And it should ask me first if anything is unclear.
And it does: two questions at once, each with a recommended answer. I take them: a mounting plate for my own gripper for now, and timing belts to gear down the two arm motors.
Then it works on its own, for almost an hour. It lays out the links, the push rods and the belts, places the three motors, replaces screws that were too long, and checks the arm in ten poses for parts that touch. Here's the arm: 238 parts. The structure tree groups them, from the fixed base and the rotating base up to the shoulder, the elbow drive, the leveling links and the wrist. Make the two base groups see-through, and the motors show: three copies of the imported NEMA 17. One sits under the turntable and turns the whole arm with a belt. The other two ride on the turntable, back to back, and drive the shoulder and the elbow, also through timing belts.
From the side, you see the linkage: paired push rods drive the elbow from the base, and two parallelograms keep the mounting plate level.
But does the linkage actually work? Let's ask for an animation of the full range of motion, with a collision check.
SOMA AI writes the motion and checks every pose with the whole assembly, motors and screws included. That finds contacts its first check missed: the elbow axle touches the leveling links at steep angles, and screw heads hit the drive. So it moves the screws, and narrows the shoulder and elbow travel. The animation is in the Animation tab: pick it, and press play. Here it runs twice as fast.
The base turns 150 degrees each way. Then the shoulder sweeps from 25 to 55 degrees, and the elbow bends from 35 to 80. The push rods and the parallelograms follow, and the mounting plate stays level the whole time.
And the report: no collisions at 441 positions, checked with the whole assembly, motors, bearings and screws included.
Now a change, in words again: more reach, 300 millimeters, and a simple gripper with a small servo. Both jaws should move, and stay parallel to each other.
Again it asks first: where to measure the reach, which servo, and how wide the jaws should open. I pick the reach to the center of the grip, a generic 9-gram servo for now, and 30 millimeters.
Then it works for almost an hour: it lengthens the arm, so that the center of the grip reaches 300 millimeters, builds the gripper, extends the animation, and checks everything again for collisions. Here's the gripper. The micro servo sits under the wrist plate and turns a small gear on top. Two racks mesh with that gear from opposite sides. Each rack carries one jaw, so both jaws move the same distance in opposite directions, and they always stay parallel.
SOMA AI also made a separate animation of the gripper: it opens to 30 millimeters, and closes again.
And the arm's animation still works with the longer arm. The collision check passes again, and the 14 builds at the ends of every parameter range pass too.
First the base turns. Then the shoulder and the elbow sweep to their limits, and then both move together, while the gripper stays level.
Near the end, the camera moves in: the servo turns the gear, and both jaws open and close together. The joint angles are parameters, and so are the reach and the jaw opening. You find them in the Parameters tab.
Shoulder down to 35 degrees: SOMA rebuilds the arm in that pose.
Elbow to 45 degrees: the push rods and the parallelograms follow, and the gripper stays level. The base turns by 45 degrees.
And the jaws open to 30 millimeters.
Reset all brings the arm back to its home pose.
Now look closer at the gripper. It opens and closes, but it isn't usable yet: the jaws barely reach past the wrist, and every gripping force goes through thin rods into the racks and the gear.
So I start a new conversation with SOMA AI, again with GPT-6.1 Sol and High effort.
So I ask for a new gripper from scratch: the jaws run in their own guide that takes all the forces, the gear and the racks only make the movement, and the jaws reach further forward.
SOMA AI asks one thing first: the guides can take the bending and lifting loads, but something still has to hold the grip closed. The servo should do that, so I pick the servo-held grip. An hour and ten minutes of work. SOMA AI throws the old gripper away and builds a new one: a guide housing, two jaw carriages, separate racks and a new gear. Then it checks the motion of the whole arm again. Here is the new gripper. The jaws now run in a guide housing: each jaw carriage has two T-shaped shoes, held in by a bolted lid. The housing takes the bending, lifting and twisting loads. The fingers reach 48 millimeters beyond the housing, 40 millimeters further forward than before, with flat parallel faces at the tips.
With the housing made see-through, you can see the gear and the two racks: they only move the jaws. The racks are bolted on separately, and as I chose, they still carry the closing force. One thing it decided on its own: to keep the reach at 300 millimeters to the grip center, it made the upper arm and the forearm shorter. The arm is now more compact. And both jaws still move parallel, driven by the servo. The new gripper is heavier: about 136 grams of printed parts, so little of the 200 gram target is left for the object. The real servo and the grip still need a test. This was a simple example, made in a short time.
With more work and planning, you can build something like this: a robot dog, designed earlier in SOMA together with an agent, over several sessions.
Each leg has three joints, and each one has its own motor with a 6:1 planetary gearbox. The motor turns the sun gear, the planets roll inside the fixed ring gear, and the carrier turns the leg. Describe it, check it, change it, all in plain words. Get SOMA for free at somacad.app.
NEMA 17 stepper motor STEP model ("NEMA_17_with_connector") by Charles Fox, FreeCAD Parts Library, licensed under CC BY 3.0 (https://creativecommons.org/licenses/by/3.0/), used unchanged. Voice: Kyutai Pocket TTS. Music: "Inspirational Technology" by AtlasAudio (Pixabay). Sounds: Kenney Interface Sounds (CC0).
Questions
Why put all the motors of a robot arm in the base?
Motors are heavy. When they sit in the base, the moving arm carries less weight, so it needs less torque, can move faster and bends less. The joints are then driven through belts, push rods or linkages. Desktop arms such as the Dobot and uArm use this layout.
How does a parallelogram keep the gripper level?
In a parallelogram linkage, opposite links always stay parallel to each other. If one side is fixed to the base and the opposite side carries the tool mount, the tool mount keeps the same angle while the arm moves. Two parallelograms in a row, one per arm segment, keep it level over the whole reach.
Can AI check a robot arm for collisions?
Yes, in SOMA. SOMA AI animates the arm through its full range of motion and checks the poses with the whole assembly, motors, bearings and screws included. In the video it checked 441 positions, found contacts, moved screws and narrowed the joint limits until nothing touched.
How does a parallel gripper with one servo work?
The servo turns a small gear. Two racks mesh with it from opposite sides, and each rack carries one jaw, so both jaws move the same distance in opposite directions and stay parallel. In the final version of the video the jaws run in a guide housing that takes the bending, lifting and twisting loads.
Is an AI-designed robot arm ready to build?
Treat it as a first layout. The geometry is exact and checked for collisions, but it is not a tested robot. In the video the servo is a placeholder; check the torques, the fits and the loads, and test the real servo and the grip before you print and assemble the parts.
Try it
SOMA is free and open source, and SOMA AI is built in: describe what you need, no CAD or coding skills needed.