4-Bar Walking Linkage Optimizer
Posted by Wade
This interactive simulator allows you to quickly check how changing the linkage's bar lengths affect the path it draws as the crank is rotated.
This interactive simulator allows you to quickly check how changing the linkage's bar lengths affect the path it draws as the crank is rotated.
Here is the a video of the simulator in action, and the actual simulator can be found at the bottom of this page
Jeep2003's awesome mechanical ostrich uses a similar 4-bar linkage:
And the below "Spot Micro" uses the linkage dimensions shown in the image to the right, scaled by 1/20th of the simulator's bar lengths so that the crank length (bar b1) equals 3 LEGO holes. A building tutorial is on our LEGO Spot Micro page. |
Version 2 below is a bit bigger to better accommodate a motor with RC control:
Below are the linkage dimensions we used for Spot Micro Ver 2, scaled up by 20x the LEGO version to allow the linkage to be more finely tuned. Its dimensions are the same as the GIF at the top of this page except for shorter legs so that the front/rear feet don't collide when the crank is in the 12 o'clock position. (NOTE: we used our 6-bar linkage optimizer and set bar B5 to 0, and bar B7 to 20)
Below is the interactive simulator. It allows you to simulate between 1 and 4 legs to make it easier to gauge the amount of foot contact at each corner of the robot. The sim is started by clicking the green flag. You can also run it on MIT's site where you can modify the Scratch code. After changing a bar's length, click somewhere other than a slider bar and then press the space bar to see the new linkage, and use your keyboard's left/right arrows to rotate the crank. Standard caveat: just because something looks good in a simulation does not necessarily mean it work well when built, at least not without some tinkering such as mitigating the tendency of this linkage's knee joint to hyperextend inward. |
A description of the algorithms, and how we used them to simulate linkages, is here.
When building a simulated linkage in LEGO, remember to use beams with one more hole than the bar's length. For example, a bar of length 8 requires a LEGO beam with 9 holes, because when determining the length of LEGO beams, the first hole is always counted as zero.