The 4-20 MA Current Loop

The I/O capabilities built into most microcontrollers make it easy to measure the analog world. Say you want to build a data logger for temperature. All you need to do is get some kind of sensor that has a linear voltage output that represents the temperature range you need to monitor — zero to five volts representing 0° to 100°C, perhaps. Hook the sensor up to and analog input, whip up a little code, and you’re done. Easy stuff.

Now put a twist on it: you need to mount the sensor far from the microcontroller. The longer your wires, the bigger the voltage drop will be, until eventually your five-volt swing representing a 100° range is more like a one-volt swing. Plus your long sensor leads will act like a nice antenna to pick up all kinds of noise that’ll make digging a usable voltage signal off the line all the harder.

Luckily, industrial process engineers figured out how to deal with these problems a long time ago by using current loops for sensing and control. The most common standard is the 4-mA-to-20-mA current loop, and here we’ll take a look at how it came to be, how it works, and how you can leverage this basic process control technique for your microcontroller projects.

Continue reading “The 4-20 MA Current Loop” →

Hitching A Ride On A Missile

Before the Saturn V rocket carried men to the moon, a number of smaller rockets carried men on suborbital and orbital flights around the Earth. These rockets weren’t purpose-built for this task, though. In fact, the first rockets that carried people into outer space were repurposed ballistic missiles, originally designed to carry weapons.

While it might seem like an arduous task to make a ballistic missile safe enough to carry a human, the path from a weapons delivery system to passenger vehicle was remarkably quick. Although there was enough safety engineering and redundancy to disqualify the space program as a hack, it certainly was a clever repurposing of the available technology. Read on for the full story.

Continue reading “Hitching A Ride On A Missile” →

Rovers To The Rescue: Robot Missions Tackles Trash

Everyone knows plastic trash is a problem with junk filling up landfills and scattering beaches. It’s worse because rather than dissolving completely, plastic breaks down into smaller chunks of plastic, small enough to be ingested by birds and fish, loading them up with indigestible gutfill. Natural disasters compound the trash problem; debris from Japan’s 2011 tsunami washed ashore on Vancouver Island in the months that followed.

Erin Kennedy was walking along Toronto Island beach and noticed the line of plastic trash that extended as far as the eye could see. As an open source robot builder, her first inclination was to use robots to clean up the mess. A large number of small robots following automated routines might be able to clear a beach faster and more efficiently than a person walking around with a stick and a trash bag.

Erin founded Robot Missions to explore this possibility, with the goal of uniting open-source “makers” — along with their knowledge of technology — with environmentalists who have a clearer understanding of what needs to be done to protect the Earth. It was a finalist in the Citizen Science category for the 2016 Hackaday Prize, and would fit very nicely in this year’s Wheels, Wings, and Walkers challenge which closes entries in a week.

Join me after the break for a look at where Robot Missions came from, and what Erin has in store for the future of the program.

Continue reading “Rovers To The Rescue: Robot Missions Tackles Trash” →

Conventional Current Vs. Electron Current

Electric current comes in many forms: current in a wire, flow of ions between the plates of a battery and between plates during electrolysis, as arcs, sparks, and so on. However, here on Hackaday we mostly deal with the current in a wire. But which way does that current flow in that wire? There are two possibilities depending on whether you’re thinking in terms of electron current or conventional current.

Electron current vs. conventional current
Electron current vs. conventional current

In a circuit connected to a battery, the electrons are the charge carrier and flow from the battery’s negative terminal, around the circuit and back to the positive terminal.

Conventional current takes just the opposite direction, from the positive terminal, around the circuit and back to the negative terminal. In that case there’s no charge carrier moving in that direction. Conventional current is a story we tell ourselves.

But since there is such a variety of forms that current comes in, the charge carrier sometimes does move from the positive to the negative, and sometimes movement is in both directions. When a lead acid battery is in use, positive hydrogen ions move in one direction while negative sulfate ions move in the other. So if the direction doesn’t matter then having a convention that ignores the charge carrier makes life easier.

Saying that we need a convention that’s independent of the charge carrier is all very nice, but that seems to be a side effect rather than the reason we have the convention. The convention was established long before there was a known variety of forms that current comes in — back even before the electron, or even the atom, was discovered. Why do we have the convention? As you’ll read below, it started with Benjamin Franklin.

Continue reading “Conventional Current Vs. Electron Current” →

Fabricate Your Own Tabletop Gaming Props

Delve into the mysterious world of tabletop roleplaying games. Warhammer Fantasy Roleplay, Shadowrun, Pathfinder, Ars Magica, Vampire, whatever gets your dice rollin’ — metaphorically in the case of a diceless system. This might very well be your daddy’s D&D. If you’re not a gamer, you’re certainly familiar with the concept. People sit around a table pretending to have an epic adventure, often adding a random element with the help of dice. A map is often displayed on the table, sized for figures that show the various heroes and villains.

As a person with access to a variety of CNC machines I find myself wanting to create things to make gameplay more fun. I want to build a scale castle and have a siege. I want to conduct a ship-to-ship battle with wooden ships built to scale. But I also think smaller. What is something I could make that would help us every day? Say, a box for dice. Not every project needs to be the dragon’s lair.

It turns out a lot of other folks have been thinking about the same thing.

Continue reading “Fabricate Your Own Tabletop Gaming Props” →

Flying Defibrillators

It’s a sad reality that, by and large, cardiopulmonary resuscitation (CPR) doesn’t save lives. Despite all the “you could save a life” marketing aimed at getting people certified in CPR, the instances where even the prompt application of the correct technique results in a save are vanishingly rare, and limited mostly to witnessed arrests in a hospital. Speaking from personal experience, few things are sadder than arriving on-scene as a first responder to see CPR being performed by a husband on his wife and knowing that no matter what we do, it’s not going to end well.

The problem is one of time. Hearts only rarely just stop beating outright; usually some kind of arrhythmia first causes the heart to beat ineffectively, leading to hypoxia and loss of consciousness. From there it’s about a four-minute trip to brain death, but in that brief window chances are pretty good that the heart can be restarted. That’s why witnessed cardiac arrests in a hospital have better survival rates — the needed electric reboot of the heart with a defibrillator is only as far away as the nearest crash cart.

The advent of the automatic external defibrillator (AED) has increased the odds for survival of out-of-hospital cardiac arrest (OHCA), but the penetration of AEDs into public settings is far from complete enough to put one within a few minutes reach of everyone who might need one. So it’s only natural that thoughts would turn to delivering AEDs to cardiac incidents by drones. It seems like a great idea, but will it work? Continue reading “Flying Defibrillators” →

Bicycle Racing In Space Could Be A Thing

It’s 2100 AD, and hackers and normals live together in mile-long habitats in the Earth-Moon system. The habitat is spun up so that the gravity inside is that of Earth, and for exercise, the normals cycle around on bike paths. But the hackers do their cycling outside, in the vacuum of space.

How so? With ion thrusters, rocketing out xenon gas as the propellant. And the source of power? Ultimately that’s the hackers’ legs, pedaling away at a drive system that turns two large Wimshurst machines.

Those Wimshurst machines then produce the high voltage needed for the thruster’s ionization as well as the charge flow. They’re also what gives the space bike it’s distinctly bicycle-like appearance. And based on the calculations below, this may someday work!

Continue reading “Bicycle Racing In Space Could Be A Thing” →