๐ ๏ธ LEGOยฎ Technic 4-Bar Linkage Motion Simulator¶
Welcome to the FLL Robot Simulator Interactive Worksheets! This motion simulator lets FIRST LEGO League (FLL) teams, coaches, and students build, visualize, and experiment with Four-Bar Linkages using authentic LEGOยฎ Technic beam sizes (measured in holes, not metric units).
๐ฏ What is a 4-Bar Linkage & What Problems Does It Solve?¶
A four-bar linkage is one of the most powerful and popular mechanical inventions in robotics. It consists of four rigid bars connected together by four pivot pins in a closed loop:
- One bar stays fixed to your robot chassis (the Ground Frame).
- One bar is turned by your motor (the Driver / Crank).
- The third bar floats in the air (the Bridge / Coupler).
- The fourth bar swings and does the work (the Follower / Rocker).
[Pivot B] โโโโโโโโ Coupler Bar (Yellow) โโโโโโโโ [Pivot C]
/ \
Crank / \ Follower
(Red) / \ (Blue)
/ \
[Pivot A] โโโโโโโโโโโโ Ground Base (Grey) โโโโโโโโโโโโโโ [Pivot D]
(Motor) (Pivot)
๐ก Why do FLL teams use 4-Bar Linkages?¶
- Keep Cargo Level (Parallel Lifter): If opposite bars have the same length, your attachment will lift straight up without tilting. Your game pieces won't slide off!
- Reach Far Over Obstacles: A linkage can lift an arm up, reach over a tall mission wall, and drop down directly on top of a mission model.
- Turn Spinning Motors into Pushing / Kicking: A motor spins in continuous circles. A 4-bar linkage turns that spinning circle into back-and-forth flapping, swiping, or kicking without complex gear trains!
- Snap & Lock (Toggle Clamps): When bars straighten out, they can lock into place with huge mechanical leverage, holding heavy mission levers without your SPIKE motor stalling.
๐ฎ Interactive 4-Bar Linkage Simulator¶
Use the controls below to pick your LEGO Technic beam lengths. Drag the red motor crank directly with your mouse or finger, or hit โถ Play to watch the mechanism move!
๐ง The 4 Parts of Every Linkage (For 10-Year-Old Builders)¶
Think of a four-bar linkage like four friends holding hands in a playground circle:
| Bar Name | Color in Simulator | LEGO Equivalent | What Does It Do? |
|---|---|---|---|
| 1. Ground Frame (\(L_1\)) | ๐ชจ Slate Grey | Chassis / Robot Frame | The stationary foundation. Bolted firmly to the robot base so it never moves. |
| 2. Motor Crank (\(L_2\)) | ๐ด Bright Red | Short Liftarm on Motor Axle | The driver! Connected directly to your SPIKE Prime motor to get turned in circles. |
| 3. Coupler Bridge (\(L_3\)) | ๐ก Bright Yellow | Floating Cross Beam | The bridge! Never connects to the robot chassis; floats through the air connecting the crank to the follower. |
| 4. Follower Rocker (\(L_4\)) | ๐ต Bright Blue | Output Working Arm | The tool! Swings, kicks, or lifts your competition attachment. |
๐ฎ The "Spin or Swing" Test (Grashof's Rule Made Simple!)¶
Have you ever built a cool mechanism with your motor, only to turn it on and have the motor immediately get stuck and groan bzzzzz? That happens when your bar lengths don't follow Grashof's Rule!
You can test whether your LEGO beams can do a full \(360^\circ\) circle in 10 seconds:
Step 1: Measure all 4 bars by counting their holes.
Step 2: Find the Shortest bar (S) and Longest bar (L). Add them: S + L
Step 3: Add the other two bars together: P + Q
The 4 Linkage Personalities¶
flowchart TD
A["Does S + L <= P + Q?"] -->|YES: Grashof Linkage| B["Which bar is the SHORTEST (S)?"]
A -->|NO: Non-Grashof| C["๐ก Double-Rocker\n(Arms only swing back & forth)"]
B -->|"S is the Motor Crank (L2)"| D["๐ Windshield Wiper (Crank-Rocker)\nMotor spins 360ยฐ, arm sweeps!"]
B -->|"S is the Ground Frame (L1)"| E["๐ช๏ธ 360ยฐ Drag-Link (Double-Crank)\nBoth arms do full circles!"]
B -->|"S is the Coupler Bridge (L3)"| F["๐ข Coupler Rotator\nBoth chassis arms rock back & forth"]
B -->|"Opposite Bars Equal (L1=L3, L2=L4)"| G["๐ฆ Parallel Lifter (Parallelogram)\nKeeps attachment 100% level!"]
- The Windshield Wiper (Crank-Rocker):
- How to build it: Make your motor crank (\(L_2\)) the shortest bar.
- What it does: Your motor can spin non-stop in one direction, while the output arm sweeps back and forth smoothly! Perfect for pushing obstacles or sweeping mission elements into scoring zones.
- The Parallel Lifter (Parallelogram):
- How to build it: Make opposite bars the exact same hole count (e.g., Ground = 9H, Coupler = 9H; Crank = 5H, Follower = 5H).
- What it does: As the motor lifts the arm, the coupler bar stays at the exact same horizontal angle through the entire swing. No spilled cargo!
- The Walking Leg (Chebyshev Straight-Line):
- How to build it: Proportions like Ground = 8H, Crank = 4H, Coupler = 10H, Follower = 10H.
- What it does: The tip of the coupler travels in a flat, straight line along the ground, then lifts up, arcs forward, and steps down again. It turns a circular motor into a walking robot!
- The Playground Swing (Triple-Rocker / Non-Grashof):
- How to build it: \(S + L > P + Q\).
- What it does: The motor cannot make a full spin. If you try, it will jam and stall. You must program the motor to rotate forward \(60^\circ\), stop, and rotate backward \(60^\circ\).
โ ๏ธ Real-Life LEGOยฎ Caveats & Gotchas¶
Building linkages in computer software is easy, but real plastic LEGO bricks have quirks! Here are the 4 biggest traps FLL teams fall into:
1. Dead Points & Toggle Locks¶
When two bars straighten out into a single flat line (\(180^\circ\)), your linkage hits a Dead Point (like reaching the very top of a Ferris wheel). If your motor pushes on the bar when it's completely straight, it won't know whether to fold up or down! * The Fix: Never design your attachment so the motor has to push through a perfectly straight line under load. Use mechanical stop pins so the linkage never flattens beyond \(165^\circ\).
2. Friction Pins vs Friction-Less Pins¶
- โ The Mistake: Using Black or Blue friction pins with little ridges on moving joints.
- Why it hurts: 4 friction pins add up to huge resistance. Your SPIKE motor will draw 1.5 Amps, overheat, and drain your battery!
- โ The Fix: ALWAYS use smooth Light-Grey or Tan friction-less pins (or smooth axles with bushings) for the pivot joints!
3. Pin Slop & Backlash¶
Every LEGO pin hole has about \(0.15\,\text{mm}\) of wiggle room so pins can slide in easily. But when you chain 4 bars together: $\(4 \times 0.15\,\text{mm} = 0.6\,\text{mm} \text{ of play at the joints!}\)$ By the time that wiggle reaches the tip of a long 15-hole arm, the claw might wobble by \(5\text{ to }10\,\text{mm}\)! * The Fix: Build "sandwich" joints (Double-Shear): place two thin liftarms on either side of the pivot pin rather than hanging a heavy arm off a single pin.
4. Bar Collisions (Layering in 3D)¶
In 2D diagrams, bars pass right through each other like ghosts. In real life, LEGO beams are \(7.8\,\text{mm}\) thick! If two beams try to cross the same path, they will smash into each other and crack! * The Fix: Build each bar on a different layer (plane) using axle bushings or half-stud spacers so they slide past each other cleanly.
5. Transmission Angle & Mechanical Jamming (Firgelli Rule)¶
One of the most important concepts in real machine design (highlighted by industrial motion companies like FIRGELLI Automations) is the Transmission Angle (\(\mu\)): * What is it?: The angle between the floating Coupler bar (Yellow) and the Follower arm (Blue). * The Sweet Spot (\(90^\circ\)): When the coupler pushes at a right angle (\(90^\circ\)), 100% of the motor's force turns into rotational leverage! * The Danger Zone (\(< 30^\circ\) or \(> 150^\circ\)): If the transmission angle gets too shallow, the coupler is pushing almost directly along the length of the follower arm. Instead of rotating the arm, it squeezes straight into the pivot pin! This creates huge friction, binds the mechanism, and stalls your motor. * The Rule of Thumb: Keep your transmission angle between \(40^\circ\) and \(140^\circ\) across the entire movement!
6. Rotary Motors vs Linear Actuators¶
- Rotary Drive (FLL Style): In FLL robotics, your SPIKE Prime motor usually turns the red crank bar (\(L_2\)) directly on its axle.
- Linear Actuator Drive (Industrial Style): In construction diggers, car hood lifts, and TV lifts, an electric linear actuator or hydraulic piston pushes between a mounting bracket and the crank arm. The 4-bar geometry converts the extending rod's straight push into a swinging or curling rotation!
๐ Real-Life Machines Using 4-Bar Linkages¶
You see 4-bar linkages every single day in the real world:
- Car Windshield Wipers: A tiny continuous electric motor under the hood spins full circles, while a 4-bar linkage sweeps the wiper blades back and forth across your windshield.
- Excavator Backhoes & Bulldozers: Look closely at the metal bucket on an excavator. The hydraulic cylinder doesn't connect directly to the bucket; it pushes a 4-bar linkage so the bucket curls all the way in and scoops dirt!
- Anglepoise Desk Lamps: The parallel spring-loaded arms keep the lampshade pointing downward no matter how high or low you pull the lamp.
- Airplane Landing Gear: Heavy commercial jets use toggle linkages that snap into a dead-lock when wheels extend. Even if the hydraulic pumps lose all power, the mechanical toggle lock prevents the wheels from folding during landing!
- Oil Well "Nodding Donkeys": The giant counterweighted beam in oil fields is a crank-rocker mechanism pumping oil from underground.
๐ Want to Learn More? (Deep Dives & Math References)¶
For older students, high school mentors, and coaches who want to explore the engineering mathematics behind linkages:
- FIRGELLI Automations: Four-Bar Linkage Calculator & Guide: An outstanding engineering calculator and technical article by Robbie Dickson covering circle intersection methods, vector loop closure, acute transmission angle limits, and linear actuator driving.
- Grashof's Condition (Wikipedia): Comprehensive mathematical proof of the four-bar planar revolute mobility theorem.
- Freudenstein's Equation: The foundational algebraic equation developed by Ferdinand Freudenstein relating input and output angles of a four-bar linkage.
- 507 Mechanical Movements: Classic mechanical encyclopedia with animated illustrations of cams, linkages, ratchets, and gears.
- Chebyshev's Lambda Mechanism: How Russian mathematician Pafnuty Chebyshev discovered how to generate straight-line motion without rails or sliding tracks.
- Yoshihito Isogawa's LEGO Technic Idea Books: Visual bibles of hundreds of working mechanical contraptions, linkages, and gearboxes built with standard LEGO parts.
- Sariel's LEGO Technic Gear & Mechanics Guide: In-depth physical tutorials on mechanical advantage, gear ratios, and Technic building techniques.