Marvelous Mechanisms: The Ubiquitous Four Bar Linkage

The four bar linkage is a type of mechanical linkage that is used in many different devices. A few examples are: locking pliers, bicycles, oil well pumps, loaders, internal combustion engines, compressors, and pantographs. In biology we can also find examples of this linkage, as in the human knee joint, where the mechanism allows rotation and keeps the two legs bones attached to each other. It is also present in some fish jaws that evolved to take advantage of the force multiplication that the four bar mechanism can provide.

How It Works

Deployable mirror with scissor linkages. By [Catsquisher] via Wikimedia Commons
The study of linkages started with Archimedes who applied geometry to the study of the lever, but a full mathematical description had to wait until the late 1800’s, however, due to the complexity of the resulting equations, the study and design of complex linkages was greatly simplified with the advent of the digital computer.

Mechanical linkages in general are a group of bodies connected to each other to manage forces and movement. The bodies, or links, that form the linkage, are connected to each other at points called joints. Perhaps the simplest example is the lever, that consists of a rigid bar that is allowed to pivot about a fulcrum, used to obtain a mechanical advantage: you can raise an object using less force than the weight of the object.

Two levers can be connected to each other to form the four bar linkage. In the figure, the levers are represented by the links a (A-D) and b (B-C).  The points A and B are the fulcrum points.  A third link f (C-D) connects the levers, and the fourth link is the ground or frame g (A-B) where the mechanism is mounted. In the animation below, the input link a (the crank) performs a rotational motion driving the rocker rod b and resulting in a reciprocating motion of the link b (the rocker).

This slider-crank arrangement is the heart of the internal combustion engine, where the expansion of gases against a sliding piston in the cylinder drives the rotation of the crank. In a compressor the opposite happens, the rotation of the crank pushes the piston to compress the gas in the cylinder. Depending on how the mechanism is arranged, it can perform the following tasks:

  • convert rotational motion to reciprocating motion, as we just discussed above.
  • convert reciprocating motion to rotational motion, as in the bicycle.
  • constrain motion, e.g. knee joint and car suspension.
  • magnify force, as in the parrotfish jaw.
Locking pliers mechanism. Image from [Engineering made easy]

Some Applications

One interesting application of the four bar linkage is found in locking pliers. The B-C and C-D links are set at an angle close to 180 degrees. When force is applied to the handle, the angle between the links is less than 180 (measured from inside the linkage), and the resulting force in the jaws tries to keep the handle open. When the pliers snap into the locked position that angle becomes less than 180, and the force in the jaws keeps the handle in the locked position.

In a bicycle, the reciprocating motion of the rider´s legs is converted to rotational motion via a four bar mechanism that is formed by the two leg segments, the bicycle frame, and the crank.

An example from nature, the Moray eel. Image from [Matthew West]
As with many other inventions of humankind, we often find that nature has already come up with the same idea via evolution. The parrotfish lives on coral reefs, from which it feeds, and has to grind the coral to get to the polyps inside. For that job, they need a very powerful bite. The parrotfish obtains a mechanical advantage to the muscle force by using a four bar linkage in their jaws! Other species also use the same mechanism, one is the Moray eel, shown in the image, which has the very particular ability to launch its jaws up in the mouth to capture its prey, much like the alien from the film series.

The joints connecting the links in the linkage can be of two types. A hinged joint is called a revolute, and a sliding joint is called a prismatic. Depending on the number of revolute and prismatic joints, the four bar linkage can be of three types:

  • Planar quadrilateral linkage formed by four links and four revolute points. This is shown in the animation above.
  • Slider-crank linkage, formed by three revolute joints and a prismatic joint.
  • Double slider formed by two revolute joints and two prismatic joints. The Scotch yoke and the trammel of Archimedes are examples.

There are a great number of variations for the four bar linkage, and as you can guess, the design process to obtain the forces and movements that we need is not an easy task. An excellent resource for the interested reader is KMODDL (Kinematic Models for Design Digital Library) from Cornell University. Other interesting sites are the 507 mechanical movements, where you can find nice animations, and [thang010146]’s YouTube channel.

We hope to have piqued your curiosity in mechanical things. In these times of ultra fast developments in electronics, looking at the working of mechanisms that were developed centuries ago, but are still present and needed in our everyday lives can be a rewarding experience. We plan to work on more articles featuring interesting mechanisms so please let us know your favorites in the comments below.

Another 74XX Series CPU

[Jack Eisenmann] is no stranger to building impressive DIY CPU’s on vast stretches of breadboard. This time [Jack] has done away with the seventeen breadboards he used in his last 8-bit computer and instead has gone a step further and designed a set of generously utilised PCB’s for the CPU. The result is the DUO Enterprise.

The CPU design is based around an 8-bit data bus and a 24-bit address bus. As usual, a minimal yet carefully chosen instruction set allows [Jack] to do all the heavy lifting in software as part of the compiler and operating system he is working on. There is no sign of a display yet, instead the computer communicates via a dumb terminal. We love the aluminum foil for shielding! Check out the video, below, to see what we mean.

Over the years, we have seen many of [Jack]’s other CPU builds featured on Hackaday. One of his first designs was a 4-bit CPU that could play many games on a LED matrix.Later he did a much more impressive 8-bit CPU along with analog video output and an OS ofcourse. It could even play pong. He even built a Single Instruction Set Computer (SISC).

His final goal with DUO Enterprise is to allow anyone to utilise its computing power by submitting programs and calculations. Heads up [Jack], our neural net needs training soon.

Continue reading “Another 74XX Series CPU”

Getting Sparks From Water With Lord Kelvin’s Thunderstorm

In the comments to our recent article about Wimshurst machines, we saw that some hackers had never heard of them, reminding us that we all have different backgrounds and much to share. Well here’s one I’m guessing even fewer will have heard of. It’s never even shown up in a single Hackaday article, something that was also pointed out in a comment to that Wimshurst article. It is the Lord Kelvin’s Water Dropper aka Lord Kelvin’s Thunderstorm, invented in the 1860s by William Thomson, 1st Baron Kelvin, the same fellow for whom the Kelvin temperature scale is named.  It’s a device that produces a high voltage and sparks from falling drops of water.

Continue reading “Getting Sparks From Water With Lord Kelvin’s Thunderstorm”

CP/M 8266

Hands up if you’ve ever used a machine running CP/M. That’s likely these days to only produce an answer from owners of retrocomputers. What was once one of the premier microcomputer operating systems is now an esoteric OS, a piece of abandonware released as open source by the successor company of its developer.

In the 1970s you’d have seen CP/M on a high-end office wordprocessor, and in the 1980s some of the better-specified home computers could run it. And now? Aside from those retrocomputers, how about running CP/M on an ESP8266? From multi-thousand-dollar business system to two-dollar module in four decades, that’s technological progress.

[Matseng] has CP/M 2.2 running in a Z80 emulator on an ESP8266. It gives CP/M 64K of RAM, a generous collection of fifteen 250K floppy drives, and a serial port for communication. Unfortunately it doesn’t have space for the ESP’s party piece: wireless networking, but he’s working on that one too. If you don’t mind only 36K of RAM and one less floppy, that is. All the code can be found on a GitHub repository, so if you fancy a 1970s business desktop computer the size of a postage stamp, you can have a go too.

There’s something gloriously barmy about running a 1970s OS on a two-dollar microcontroller, but if you have to ask why then maybe you just don’t understand. You don’t have to have an ESP8266 though, if you want you can run a bare-metal CP/M on a Raspberry Pi.

Doing It With Fewer Bytes Than Bill Gates

The MITS Altair 8800 occupies a unique place in computing history as the first commercially succesful microcomputer for personal rather than business use. It is famous as the platform upon which the first Microsoft product ran, their first BASIC interpreter.

[Josh Bensadon] has an Altair 8800, and became intrigued by its bootloader. The simplest method of programming the machine is through binary using a set of switches on the front panel, and he remarks that there should be a warning in the manual: “fingers will get sore after repeated use of the small switches on the ALTAIR”.

In the Altair manual there are two listings, one 21 byte, and another in 20 bytes. Bill Gates is on record as saying that their first effort was 46 bytes long, but with more work he managed to create one in 17 bytes. Now [Josh] has beaten that, he’s created an Altair 8800 bootloader in only 14 bytes.

His write-up goes into great detail about how those bytes are shaved off, and provides us with a fascinating insight into the 8800’s architecture. Even if your 8-bit assembler is a little rusty, it’s a fascinating read.

We’ve featured Altair-inspired projects many times here at Hackaday, but rarely the real thing. This Altair PC case with the ability to emulate the original was rather a nice idea, as was this Altair front panel project. If you want the joy without the heartache though, there is an online emulator.

Magsafe 1 To Magsafe 2 The Cheap Way

[Klakinoumi] wanted to use their Magsafe 1 charger from 2007 with their newer Macbook Pro Retina from 2012 — but it had a Magsafe 2 port. There were a few options on the table (buy an adapter, buy a new charger, cry) but those wouldn’t do. [Klakinoumi] went with the brute force option of grinding a Magsafe 1 charger to fit Magsafe 2.

Based on the existence of passive adapters that allow Magsafe 1 chargers to work with newer laptops, we’d assume that the older chargers are probably electrically similar to the newer models. That said, it’s not our gear and we’d definitely be checking first.

With that out of the way, it’s a simple enough modification — grind away the Magsafe 1’s magnet until it fits into a Magsafe 2 port. It really is that easy. The spring-loaded pins all seem to line up with the newer port’s pads. [Klakinoumi] reports it worked successfully in their tests with 2012, 2014 and 2015 Macbooks but that it should be attempted at your own risk — good advice, as laptops ain’t cheap.

When doing this mod, consider taking care not to overheat the connector during grinding. You could both melt plastic parts of the connector, or ruin the magnet by heating it past its Curie point.

Interested in the protocol Magsafe speaks over those little golden pins? Find out here.

Adding Buttons To The ESP-12 – The Cheat Way

[sorki] had an ESP-12F and wanted to play with nodeMCU, but found they were lacking buttons for reset & flash. We’ve all been there – mucking about with a project on a breadboard, trying to save the time required to solder up a button by shorting pins with wire or bending component legs to touch. This either doesn’t work or ends up bricking the microcontroller when it inevitably goes wrong. [Buger] found a tidier solution to adding buttons to the ESP-12F with the minimum of effort.

It’s the spirit of deadbug applied to buttons. One side of a piece of wire is soldered to the pin needing to be pulled down. Component leg offcuts are ideal for this. The other end of the wire is bent up and left to float over the metal shield of the ESP-12, which is connected to ground. When you want the pin to go low, press the wire into the shield, grounding it. Let it go, and the pin returns high again, assuming your pullup resistors are all in order.

It’s a quick hack that’s much more robust than trying to hold two ends of a piece of hookup wire in place. It’s also still easier than trying to find a tactile switch solder leads to, and you don’t end up having it hanging off the board either.

For deadbug construction taken to an impressive conclusion, check out this clock built out of discrete components.

[Thanks to Richard Marko for the tip!]