Docs · Tutorial

Build a robot on the bench

The robot bench is a page for putting a small robot together out of real hobby parts: 2020, 2040 and 2060 aluminium extrusion, joining plates, MG996R, MG90S and SG90 servos, their brackets and horns, steppers, gear motors, wheels, rods, bearings and the screws and nuts that hold them. Every part is modelled to its datasheet, with its real mounting features: the holes in a bracket, the spline on a servo's output, the slot along a bar, the bore of a bearing. You never type a coordinate. You hold a part, pick one of the places it fits, and it snaps there, screws and all. The kernel runs in your browser, and nothing is uploaded.

This page builds a servo on a bar by hand, then opens a ready-made pan-tilt head, moves it, reads its checks and takes it home. Every picture is the bench itself, at each step. Open the bench beside this page and follow along.

Step 1

Start with a bar

The bench opens empty, on a grid: the parts drawers on the left, the view in the middle, and on the right the inspector, the joints, the poses and the checks. New empties it again at any time, and Undo and Redo walk back and forward through every change.

The empty bench: the parts drawers on the left, an empty grid in the view, and the inspector, joints, poses and checks on the right

Open the Extrusion drawer and pick the 2020 bar. A part with a size asks for it first: give it a length of 200 mm and hold it. The first part has nothing to snap to, so press Enter to put it down. It becomes the ground, the part every other one is fixed to, and the checks at once give its mass and its centre of gravity.

A 200 mm 2020 aluminium bar on the grid; the checks say every check passes, 100 g

The search box above the drawers filters by name or by a datasheet figure: servo stall_torque_nm>=0.5 leaves only the servos strong enough.

The catalogue has 2040 and 2060 bars as well as the 2020 (two or three slots on each wide face), and a family of joining plates: a five-hole strip that joins two bars end to end, a five-hole T, a five-hole cross, and a flat two-row plate that holds two bars side by side. Under the search, the checkbox Only parts that fit the selected one narrows the drawers: with a part selected, only the entries that can mate with it are listed, judged by the same rules that place a held part. Screws and nuts are never listed, because the bench picks them itself. T-nuts are listed under a plate, which can take one in any of its holes, though a plate fixed in a slot gets its T-nuts from the bench too. Select nothing, or untick the box, and every part is back.

The gantry starter with a 2020 bar selected and the fit filter ticked: the drawers list only the parts that can mate with that bar
Step 2

Hold a part and pick a marker

From the Servo-Bracket drawer, pick the MG996R mount. While you hold it, the bench marks in blue every place on the bench where it fits: here, the ends of the bar's slots, since the mount's base takes a T-nut in a slot.

The MG996R mount held: blue markers at the ends of the bar's slots, and the inspector naming the held part

Click the marker on the bar's top slot. A blue ghost of the mount appears where it would go.

Step 3

Turn, flip and slide the ghost

The ghost is only a proposal, and the inspector shows what can change. R turns it to the next way round the fit allows (Shift+R the other way), F flips it to the other face, and the arrow keys step it to the next hole of a pattern. Where the held part can meet a marker in more than one way, the way that takes the most screws comes first, and Tab tries the next: a bar held over a plate's row of holes lies along it first, and stands on its tapped end after a Tab. In a slot it slides: type 90 in the Along box to put it 90 mm along the bar. Then press Enter, or Place, to put it down; Esc lets go of it.

The mount's blue ghost on the bar's top slot, 90 mm along it; the inspector shows Turn (R) 1/2 and Along 90

Placed, the mount is held to the bar by screws and T-nuts, which the bench picks by itself at a length that fits; select the mount to choose another screw length.

The MG996R mount placed on the bar, with its screws

A placed part can still change: click it, and the same keys turn, flip and step it; Delete takes it off.

Step 4

Add the servo

Pick the MG996R from the Servo drawer. This time the marker is on the mount: the pocket that takes the servo's flange. Click it, and press Enter. The servo drops into the mount, screwed through its flange, and brings the bench's first joint: its output, which shows up under Joints with a slider.

The MG996R servo in its mount on the bar; the joints list shows its output at 90 degrees, and the checks show its load
Step 5

Or open a starter

The nine buttons under Starters, at the bottom of the drawers, each open a whole robot to start from. Pan-tilt head is the servo above with a second one on top: a disc horn on the pan servo carries a U bracket, and the tilt servo in that bracket turns a second horn. It opens with two poses already saved, look left and look up.

The pan-tilt head starter: two servos stacked on the bar, with their two joints, two saved poses and every check passing
Step 6

Move the joints, and save a pose

Drag a joint's slider and the robot follows; each joint stops at its part's real range. Here the pan and the tilt are both at 150°. To keep a position, type a name in the box under Poses and press Save pose. A saved pose is a button: click it to go back to that position, and Play moves the robot through every pose in turn.

The pan-tilt head with the pan and the tilt both turned to 150 degrees
Step 7

Read the checks; sweep a joint

The checks follow every change and every move of a joint. They give the mass and the centre of gravity, the tip margin (how far that centre is inside the robot's footprint), and each joint's load as a torque and a share of its servo's stall torque. When a leg's foot touches the floor, its servos' load is measured with the robot standing on its feet, carrying its share of the body's weight, and when that is the larger load, the servo's row says standing. Above them is the list of problems: a screw too short for what it holds, a loop of parts that does not close, a robot that tips over, a servo asked for more than it has, two parts in each other, a robot sunk into the floor or floating above it. Click a problem and its parts flash red. The first part you put down is lifted onto the floor, but parts added under it later can reach below it: Rest on the floor sets the whole robot down, its lowest point at rest on the floor, and Ctrl+Z takes that back. The exports keep the robot where the bench has it.

The checks look at the pose on screen. To look at every pose a joint can take, pick it beside Sweep: the bench turns it through its whole range and lists where parts would collide, or says it is clear. Here the pose look is saved, and the tilt is clear over its whole range.

The checks for the pan-tilt head at 150 degrees: every check passes, with mass, centre of gravity, tip margin and each joint's load; the saved pose 'look'; and the tilt swept clear over its whole range
Step 8

Take it home

The toolbar over the view writes what you built:

Step 9

The other starters

4-wheel rover: a 2020 bar for a chassis, four TT gear motors with 65 mm wheels, a pack of two 18650 cells and an Arduino Uno on its mount. Each motor's output is a joint, and the tip margin is measured over the four wheels.

The 4-wheel rover starter: a chassis with four gear motors and wheels, four wheel joints and every check passing

6-servo arm: three DS3218 and three MG996R servos, joined by horns and U brackets, on an L of two 2020 bars, with the poses lean and twist. It is the starter where the loads matter: lean it out and watch the shoulder's share of its stall torque climb.

The 6-servo arm starter on two 2020 bars, with six servo joints and two saved poses

2020 gantry: a frame of three 2020 bars, two 8 mm rods in SK8 holders, a carriage plate on two SC8UU linear bearings, and a NEMA 17 stepper with a GT2 pulley. A carriage on a rod is a joint too: its bearing slides along the rod, so its slider is in millimetres, not degrees. The stepper's shaft is a joint of its own, and the belt on its pulley drives the carriage (see Belts, below), so the carriage's slider is greyed: it follows the stepper. The poses move the stepper and the carriage goes with it (home puts it at 60 mm and far at 300 mm), and sweeping the stepper runs the carriage along the rods.

The 2020 gantry starter: a frame of bars, two rods, a carriage and a stepper; the carriage's joint is at 150 mm, driven by the stepper's belt

2WD car: the common acrylic robot car chassis, two TT gear motors on its tabs with their wheels in the plate's cut-outs, a ball caster raised on standoffs to the wheels' height, a two-cell battery holder and an Arduino Uno on top. The chassis comes as a part of its own (a 4WD plate too): its tabs take the motors, its holes the caster, the battery holder and the board.

The 2WD car starter: an acrylic chassis on two wheels and a ball caster, with a battery holder and an Arduino Uno on top

Z axis: a NEMA 17 stepper turning a T8 lead screw, with a carriage on the screw's nut. The stepper's slider turns the screw, and the carriage follows at 8 mm a turn: its own slider is greyed and says the stepper's slider drives it, because the screw sets it. The checks weigh the stepper's load against its 0.42 N·m holding torque, and the URDF writes the carriage as a mimic joint of the stepper's.

The Z axis starter: a NEMA 17 stepper turning a T8 lead screw, with a carriage that follows it

Braccio-style arm: a bench design after the proportions of the Arduino Tinkerkit Braccio, not the kit's own parts. Six SpringRC servos on a 2020 bar, a turntable, a shoulder yoke, two U links, a wrist and a claw, with the poses ready and reach: four SR431 servos for the base, shoulder, elbow and wrist, two SR311 servos for the wrist's rotation and the claw's jaw. Stood straight up it is 52 cm from the base plate to the claw tips, and the claw opens 90 mm. The servos' splines are assumed, and the checks weigh each servo's load against its stall torque.

The Braccio-style arm starter: six servos, a turntable, two U links and a claw on a 2020 bar, with six servo joints and two saved poses

Quadruped and hexapod: spider robots, bench designs after the mePed and Freenove micro-servo legs and after common aluminium-bracket hexapods, not a kit's own parts. Every leg has three joints, a coxa that swings it forward and back, a femur that lifts it and a tibia that bends the knee, and the aluminium brackets are the real off-the-shelf parts while the leg links and the two bodies are bench designs. The quadruped carries twelve MG90S micro servos on a plate with a PCA9685 servo board and an 18650 holder raised over it, with the poses stand, crouch and step. The hexapod carries eighteen MG996R servos in aluminium multi-function and long U brackets, with an LSC-32 servo controller and an 18650 holder, and the same three poses; its body stands 159 mm off the floor. The checks weigh each servo's load against its stall torque.

The quadruped starter: twelve MG90S micro servos in four three-joint legs on a plate, with a PCA9685 servo board and a battery holder, with twelve servo joints and three saved poses The hexapod starter: eighteen MG996R servos in aluminium brackets, six three-joint legs on a plate with an LSC-32 servo controller and a battery holder, with eighteen servo joints and three saved poses
Step 10

Assemblies

An Assemblies drawer heads the drawers: the nine starters and From a file…. Pick one and the inspector asks Bolt on by which part?, listing the parts that can be the one that bolts on, each with how many parts it brings. The assembly comes with that part and everything hanging off it, away from the rest of that project's base: the arm starter, taken by its servo mount, brings its 18 parts and leaves its base bars behind.

The 6-servo arm held as a ghost on the rover's long bar, every part of it drawn translucent on the blue markers of the bar's slot

The whole assembly is held as one ghost on the blue markers of the part it bolts on with, and it moves as one: R, F, the arrow keys and Tab work as they do for a single part. Enter places it. Its parts get free ids, and its saved poses, joint values and belts come along; a pose name you already use gets the source's name in brackets, for example lean (arm). One Ctrl+Z takes the whole assembly back.

A crowded robot may have no clear spot for it. The stock 4-wheel rover's 240 mm bar is too short for the arm's mount, for example; a longer bar works.

Step 11

Belts

A GT2 belt couples joints the way a real one does. The Belt drawer holds the belt cut to length and seven loops. Hold one and a marker appears on every pulley, idler and clamp. Click them in order to lay the path: the ghost draws the belt as you go. Backspace takes back the last stop, Enter finishes, Esc cancels. A path the belt cannot take shows its reason, for example a stop off the belt's plane, a clamp that is not on its run, or a stop named twice.

The gantry starter has one: its stepper's 20-tooth pulley drives the carriage through a belt, 40 mm for every turn, and the idler at the far end follows too. The carriage's slider is greyed and says which joint drives it. Select the belt to read its length, what drives it, what it drives and the ratio.

The gantry starter with its belt selected: the belt is drawn in orange along the carriage's run, and the inspector gives its length, the joint that drives it and 40 mm per turn

A closed loop between two pulleys couples their turns by the tooth ratio: a 20-tooth pulley driving a 40-tooth one turns it half as far. A belt turns every pulley it wraps. A loop that does not fit its pulleys is reported in the checks with the centre distance it needs, so you can move a pulley to match.

Reference

The keys

Next

What the bench does not do yet

No wiring and no dynamics: the checks are static, a robot standing still in each pose. A STEP file does not yet record that one joint drives another, and a belt cannot yet drive a lead screw (one motor turning two screws).

Open the bench · All docs