Automated Robotic Linkage
An Arduino lights pairs of colored buttons in random order. My mechanism had to hit each correct pair as fast as possible with a small acrylic paddle, fully on its own, starting from wherever the instructors placed it.

Requirements
The game: each correct pair pressed scores +1, a wrong color scores −2, and the green bonus button scores +3.
Course requirements
- All motion driven by a single 12 V DC motor under encoder-based closed-loop position control (Pololu #4752, 30:1).
- Motion must come from a four-bar linkage.
- Range of motion must reach every button.
- Correct button logic: both buttons of the lit color pressed and released together.
- Blue, red and yellow buttons pressed only with the supplied 2 × ½ × ¼ in acrylic piece.
- One limit switch and one toggle switch, and at most one additional actuator.
- Fully autonomous after start; touching the mechanism costs major points.
- Must find its reference from a random start position.
- Bolted rigidly to the field using the provided pattern, with minimum possible volume, on a small parts budget.
Design targets
- Score 120+ points.
- Lowest inertia and fastest linkage possible.
- Robust, low-friction joints and durable links.
- Serviceable joints that can be adjusted or replaced without full disassembly.
- Tolerance-robust geometry: ±0.25 mm errors in link length or hole position still press the buttons.
- No critical coaxial or coplanar alignments that are hard to hold in student machining.
Process
Linkage synthesis
I wrote a program with a GUI that sweeps standard dyad parameters and scores each candidate four-bar on reach, footprint, inertia, and transmission angle, and used it to come up with the linkage geometry. The final linkage reaches every button in 0.18 s in a 43 in² footprint, and keeps all three transmission angles between 30° and 150°, with the two end positions at 107° and 101°, close to the ideal 90°. A 12 g EMAX servo on a 3D-printed coupler mount swings the paddle between the main buttons and the bonus button.
CAD
The final design uses waterjet-cut 6061 aluminum links, an SLS nylon-12 servo mount and paddle, SLS hard stops and spacers, and a base plate offset so the links can overlap.

Joint design
Every joint uses the same stack: shoulder bolt, washer, thrust bearing, press-fit bearing, thrust bearing, washer, into a tapped hole. That's eight thrust bearings across four joints. The press-fit bearing carries radial load from bending and shear, and the thrust bearings carry axial preload, so the joint can be made stiff without adding rotational friction.

Transmission
I computed the linkage's moment of inertia at three positions across its range (10,884, 21,165 and 18,241 g·cm²) and took the worst case. Inertia matching and a mechanism-resolution check (input link R1 = 16.21 cm gives N ≈ 1.06) both pointed to direct drive. I chose a 2:3 ratio to leave margin for startup torque. A belt drive with 10- and 15-tooth XL pulleys made motor packaging easy, and a custom tensioning pulley on a shoulder bolt and thrust bearing slides in a slot in the base plate.

Build fixes
An over-tensioned belt raised friction at the pulley and sleeve bearing and the radial load on the input shaft. The 3 N button force deflected the linkage on every press, because the original thrust bearings couldn't take the preload needed to tighten the joints. I swapped them for bearings rated for higher axial loads.
Controls
I modeled the motor, belt and linkage as a position plant, estimated K and τ from encoder step tests, and placed the closed-loop poles (Kp = 0.18, Kd = 0.0019, Ki = 1.05). A fast third pole keeps the belt's compliance from dominating. I then tuned separate gains for each button path.
Results
The finished mechanism fits in 6.4 × 13.6 × 4.9 in (424 in³), came in at $86.21 of a $100 parts budget, and scored 157 points against a 120-point target.

