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.
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.
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.
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.
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.
Click the marker on the bar's top slot. A blue ghost of the mount appears where it would go.
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.
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.
A placed part can still change: click it, and the same keys turn, flip and step it; Delete takes it off.
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.
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.
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.
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.
Take it home
The toolbar over the view writes what you built:
- STEP: the robot as a STEP assembly, every part and fastener in place, for any CAD program. Its drives go in too, as coupled pairs (a screw pair for a lead screw, a rack and pinion for a belt to a carriage, a gear pair for pulley to pulley), so a program that reads AP242 kinematics moves the carriage when you turn the motor.
- URDF: a zip with the robot's URDF and a mesh per link, its joints with their limits, for ROS and robot simulators.
- MJCF: a zip with the robot as a MuJoCo model,
robot.xmland a mesh per link. Servos and steppers become position actuators at their datasheet torque (a stepper also carries the motor's own inertia), and TT gear motors become velocity actuators whose torque falls to zero at the motor's no-load speed. Carriages, pulleys and idlers a motor drives follow it by equality constraints. A robot with driven wheels gets a free base standing on a floor, so it can drive away, and so does a robot standing on its legs: the quadruped and the hexapod stand on the floor on their feet. The simulation uses MuJoCo's implicitfast integrator. - BOM: the bill of materials as a CSV: every part, screw and nut counted, with its mass and where it comes from.
- Save: the project itself, a small JSON file that Open reads back. The bench also keeps your work in the browser between visits. A project from an older bench, with a part the catalogue no longer has, opens repaired, and the bench says what it took out.
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.
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.
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.
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.
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.
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.
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.
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 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.
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.
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.
The keys
Enter: place the held part (loose, if no marker is picked).Esc: let go of the held part.R,Shift+R: turn the held or selected part to the next way round, or the one before.F: flip it to the other face.Tab,Shift+Tab: meet the picked marker another way, with another face of the held part (a bar along a plate's row of holes, or standing on its end).←,→: step it to the previous or next hole of a pattern.DeleteorBackspace: take the selected part or belt off.Ctrl+Z: undo.Ctrl+YorCtrl+Shift+Z: redo.- In the view: drag to orbit, right-drag to pan, the wheel to zoom; click a part to select it.
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).