Skip to main content

Featured Post

Why I Wrote The Sheet Mechanic (And Why Calculations Aren’t Enough)

For engineers who already know the math—but still lose projects. For the last few years, I’ve been sharing technical guides here on Mechanical Design Handbook —how to size a motor, how to calculate fits, and (as you recently read) how to choose between timing belts and ball screws. But after 25 years in industrial automation, I realized something uncomfortable: Projects rarely fail because the math was wrong. They fail because: The client changed the scope three times in one week. A critical vendor lied about a shipping date (and no one verified it). The installation technician couldn’t fit a wrench into the gap we designed. University taught us the physics. It didn’t teach us the reality. That gap is why I wrote my new book, The Sheet Mechanic . This is not a textbook. It is a field manual for the messy, political, and chaotic space between the CAD model and the factory floor. It captures the systems I’ve used to survive industrial projec...
NEW RELEASE: Stop trying to be a Hero. Start being a Mechanic. Get "The Sheet Mechanic" on Amazon »
Disclosure: As an Amazon Associate, I earn from qualifying purchases.

Design Hoeken’s Linkage in Excel (with Free VBA Simulator)


Figure 1: Geometry of the Hoeken’s straight-line linkage and resulting coupler-point trajectory. The lower portion of the curve approximates straight-line motion over ~180° of crank rotation.

The Hoeken’s Linkage is a mechanical engineer's favorite magic trick. It is a four-bar mechanism that converts simple rotational input into a near-perfect straight-line output.

Unlike the Watt Linkage (which traces a figure-8), the Hoeken’s Linkage creates a "tear-drop" shape with a long, flat bottom (see Figure 1). This makes it the standard choice for walking robots and intermittent linear actuators.

But how do you find the link lengths? If you guess, you get a wobble. This guide provides practical "Golden Ratios" and an Excel VBA tool to simulate the motion path.

Advertisement

1. The Geometry: Practical Design Ratios

To achieve a usable straight line, link lengths must follow specific proportions relative to the Crank Radius (R). While optimal ratios vary depending on stroke requirements, a widely used set for general-purpose design is shown below.

Component Variable Practical Ratio Formula
Input Crank L1 1.0 (Reference)
Ground Distance L4 2.0 × L1
Coupler Arm L2 2.5 × L1
Follower L3 2.5 × L1
Coupler Extension L2_ext 5.0 × L1 (Total length to tip)

Engineering Note: These ratios are a widely used practical approximation that produces a very good straight-line segment. Exact Hoeken dimensions depend on optimization criteria such as flatness length, deviation tolerance, and usable crank angle.

Design Example:
If you have a motor with a 10mm crank arm:
  • Ground Pins spacing = 20mm
  • Coupler & Follower length = 25mm
  • Total Coupler Length (to the tip) = 50mm

2. Simulating the Path in Excel (VBA)

Before you 3D print your parts, you should visualize the "Teardrop" curve to ensure the straight-line portion meets your stroke requirements.

This VBA script calculates the X,Y coordinates of the linkage tip for a full 360° rotation.

The VBA Code

Function HoekenPath(CrankLen As Double, AngleDeg As Double, OutputType As String) As Variant
    ' Hoeken Linkage Kinematics Solver
    ' Uses standard optimization ratios: Ground=2*Crank, Coupler=2.5*Crank
    
    Dim rad As Double
    Dim L1 As Double, L4 As Double, L2 As Double, L3 As Double, L2_total As Double
    Dim Ax As Double, Ay As Double
    Dim dist As Double
    Dim Px As Double, Py As Double
    
    ' 1. Define Geometry
    L1 = CrankLen
    L4 = 2 * CrankLen       ' Ground
    L2 = 2.5 * CrankLen     ' Coupler (Pivot to Pivot)
    L3 = 2.5 * CrankLen     ' Follower
    L2_total = 5 * CrankLen ' Full Coupler Length
    
    ' 2. Convert Input Angle to Radians
    rad = AngleDeg * 3.14159 / 180
    
    ' 3. Calculate Crank Position (Point A)
    Ax = L1 * Cos(rad)
    Ay = L1 * Sin(rad)
    
    ' 4. Calculate Ground Pivot for Follower (Point D is at x=L4, y=0)
    ' We need intersection of circle from A (radius L2) and D (radius L3)
    
    ' Distance between A and D (Ground Pivot)
    dist = Sqr((L4 - Ax) ^ 2 + (0 - Ay) ^ 2)
    
    ' ---> GEOMETRY VALIDITY CHECK
    ' This check ensures the two circles can actually intersect.
    If dist > (L2 + L3) Or dist < Abs(L2 - L3) Then
        HoekenPath = CVErr(xlErrNum)
        Exit Function
    End If
    
    ' Circle Intersection Math
    Dim a As Double, h As Double
    Dim x0 As Double, y0 As Double
    Dim Bx_sol As Double, By_sol As Double
    
    ' 'a' is the distance from Point A to the midpoint between the intersection points
    a = (L2 ^ 2 - L3 ^ 2 + dist ^ 2) / (2 * dist)
    
    ' 'h' is the distance from that midpoint to the intersection points
    h = Sqr(L2 ^ 2 - a ^ 2)
    
    ' (x0, y0) is the midpoint
    x0 = Ax + a * (L4 - Ax) / dist
    y0 = Ay + a * (0 - Ay) / dist
    
    ' Calculate Intersection Point B (Connecting Pivot)
    ' Hoeken uses the "lower" intersection in standard orientation
    Bx_sol = x0 - h * (0 - Ay) / dist
    By_sol = y0 + h * (L4 - Ax) / dist
    
    ' 5. Calculate Tip Position (Point P)
    ' P is extending along the line defined by A and B
    Dim dx As Double, dy As Double
    Dim lenAB As Double
    
    dx = Bx_sol - Ax
    dy = By_sol - Ay
    lenAB = Sqr(dx * dx + dy * dy)
    
    ' Project Point P by the total coupler length
    Px = Ax + (dx / lenAB) * L2_total
    Py = Ay + (dy / lenAB) * L2_total
    
    ' Return X or Y coordinate
    If UCase(OutputType) = "X" Then
        HoekenPath = Px
    Else
        HoekenPath = Py
    End If

End Function

Usage in Excel:

  1. Open the VBA Editor (ALT + F11) and Insert a Module.
  2. Paste the code above.
  3. In Cell A1, type your Crank Length (e.g., 10).
  4. In Column B, list angles 0 to 360.
  5. In Column C, use =HoekenPath($A$1, B2, "X").
  6. In Column D, use =HoekenPath($A$1, B2, "Y").
  7. Highlight Columns C and D and Insert > Scatter Chart (with smooth lines).
Engineering Note:
This VBA solver intentionally selects the open Hoeken configuration. Advanced users may modify the circle-intersection sign to explore other configurations. If Excel returns a #NUM! error, the linkage has likely reached an impossible or toggle position due to invalid input lengths.

This model assumes ideal planar motion and neglects joint clearance, elastic deformation, and manufacturing tolerances.

Figure 2: The plotted output. Note the perfectly flat bottom section of the curve.

Advertisement
Video: A simulation I created using "Linkage" software. Note the link lengths displayed and the resulting motion.

3. Practical Applications

Why go through this trouble? The Hoeken’s Linkage is favored because it creates a long, straight path while maintaining low velocity variation during the straight-line phase. This is critical for:

  • Walking Robots: The "flat" part of the curve becomes the foot's contact with the ground, providing stable traction. The curve part lifts the leg up and forward.
  • Pick and Place Units: Creating linear insertion motion using a cheap rotary motor.
  • Film Advancers: (In legacy projectors) pulling film down frame-by-frame.

Ready to build? All you need is a 3D printer and some basic rod ends.

FAQ: Is Hoeken’s Linkage Better Than a Slider-Crank?

It depends on the application. A slider-crank creates perfectly straight motion but requires a sliding prismatic joint, which introduces friction and requires lubrication. A Hoeken’s Linkage creates *approximate* straight motion using only revolute (pin) joints, which are lower friction, easier to seal, and require less maintenance, making them ideal for dusty or harsh environments.

Conclusion

The Hoeken’s Linkage proves that complex motion doesn't require complex control systems. With simple geometry (Ratio 1 : 2 : 2.5 : 2.5), you can achieve precise linear motion.

Related Guides:

Disclosure: As an Amazon Associate, I earn from qualifying purchases.

Comments

Popular posts from this blog

Hoeken's Linkage: Kinematics and Walking Robot Design

Figure 1: Animated simulation of the Hoeken’s Linkage showing the characteristic "tear-drop" coupler curve. 🚀 New Design Guide Available Don't just read about it—build it. Check out our new tutorial: How to Design a Hoeken’s Linkage in Excel (with Free VBA Simulator) » Introduction to the Hoekens Linkage The Hoekens linkage is a specialized four-bar mechanism designed to convert rotational motion into an approximate straight-line motion. While it serves a similar purpose to other straight-line generators, its unique coupler curve—a "tear-drop" shape—makes it exceptionally useful for intermittent motion and walking machines. One of the most fascinating aspects of kinematic theory is the concept of "Cognates." The Hoekens linkage is actually a cognate linkage of the Chebyshev Straight-line Mechanism . This means that while the physical structure and link lengths differ, they can generate...

Dowel Pins & Locating Pins: The Basics of Fixture Design

Dowel pins are precision cylindrical pins used for accurate part alignment in assemblies. They control position, not clamping force. This guide explains tolerances, fits, sizing rules, and design best practices. Figure 1: A typical fixture setup. Notice how dowel pins (silver) provide precise location, while bolts (not shown here) provide the clamping force. In the world of Precision Engineering , the difference between a high-quality product and a scrap part often comes down to microns. While bolts hold parts together, they are terrible at positioning them. This is where Dowel Pins and Locating Pins become essential components in industrial tooling . Advertisement What is a Dowel Pin? Dowel pins are precision-ground fasteners used to secure the relative position of two parts. They are typically machined to extremely tight tolerances (often within 0.0001 inches) and are available in materials like: Hardened Steel: For high-wea...

Engineer's Guide to Keyless Bushings: Zero Backlash Connections

Figure 1: Keyless bushings eliminate keys and keyways, providing a zero-backlash interference fit for precision motion control. The Evolution of Shaft Connections In the world of Precision Power Transmission and Motion Control , the connection between the shaft and the hub is often the weakest link. While traditional methods like keyed shafts have served the industry for centuries, modern high-speed and high-torque applications require a superior solution. This guide explores the engineering advantages of Keyless Bushings (such as those from Fenner Drives, Ringfeder, or Tollok) and why they are rapidly replacing traditional interference fits and keyed connections in automation and robotics. Search for Keyless Locking Assemblies Advertisement The Hidden Costs of Traditional Methods 1. Keys, Keyways, and Splines The industry standard for decades, the keyway is simple but flawed. Figure 2: The "Notch Effect....