Wideband Woes And The Junkbox Miata

As ever, I am fighting a marginally winning battle against my 1991 Mazda MX-5, and this is the story of how I came to install a wideband oxygen sensor in my Japanese thoroughbred. It came about as part of my ongoing project to build myself a viable racecar, and to figure out why my 1990s Japanese economy car engine runs more like a late 1970s Malaise-era boat anchor.

I’ve always considered myself unlucky. My taste for early 90s metal has meant I’ve never known the loving embrace of OBD-2 diagnostics, and I’ve had to make to do with whatever hokey system was implemented by manufacturers who were just starting to produce reliable fuel injection systems.

Narrowband oxygen sensor voltage output. The output is heavily dependent on sensor temperature and highly non-linear, making these sensors unsuitable for delivering a true AFR reading.

This generally involves putting in a wire jumper somewhere, attaching an LED, and watching it flash out the trouble codes. My Mazda was no exception, and after putting up with a car that was running rich enough to leave soot all over the rear bumper, I had to run the diagnostic.

It turned up three codes – one for the cam angle sensor, and two for the oxygen sensor. Now, a cam angle sensor (CAS) fault will normally prevent the car running at all, so it’s safe to assume that was an intermittent fault to keep an eye on.

The oxygen sensor, however, was clearly in need of attention. Its job is to allow the engine control unit (ECU) to monitor the fuel mixture in the exhaust, and make sure it’s not too rich or too lean. As my car was very obviously running too rich, and the diagnostic codes indicated an oxygen sensor failure, a repair was in order.

I priced up replacement sensors, and a new oxygen sensor could be had for under $100. However, it wasn’t exactly what I wanted, as not all oxygen sensors are created equal. Cars in the 80s and 90s typically shipped from the OEM fitted with what’s called a narrowband oxygen sensor. These almost always consist of a zirconia dioxide cell that outputs a voltage depending on the difference in oxygen concentration between the exhaust gas and the free air. These sensors generally sit at 0.45 V when the fuel mixture is stoichiometric, but rapidly change to 0.1 V in a lean condition and 0.9 V in a rich condition. The response is highly non-linear, and changes greatly with respect to temperature, and thus is only good for telling the ECU if it’s rich or lean, but not by how much. ECUs with narrowband sensors tend to hunt a lot when running in closed loop O2 control – you’ll see an engine at idle hunt either side of the magical 14.7 stoichiometric air fuel ratio, never able to quite dial in on the correct number.

As I intend to switch to an aftermarket ECU in the future, I’ll need to tune the car. This involves making sure the air/fuel ratios (AFRs) are correct, and for that I need to be able to properly measure them. Just knowing whether you’re rich or lean isn’t enough, as often it’s desirable to run the engine intentionally rich or lean at certain engine loads. To get a true AFR reading requires fitting a wideband oxygen sensor. These are a little more complicated.

Continue reading “Wideband Woes And The Junkbox Miata”

Books You Should Read: IGNITION!

Isaac Asimov described the business of rocket fuel research as “playing footsie with liquids from Hell.” If that piques your interest even a little, even if you do nothing else today, read the first few pages of IGNITION! which is available online for free. I bet you won’t want to stop reading.

IGNITION! An Informal History of Liquid Rocket Propellants is about how modern liquid rocket fuel came to be. Written by John D. Clark and published in 1972, the title might at first glance make the book sound terribly dry — it’s not. Liquid rocket fuel made modern rocketry possible. But most of us have no involvement with it at all besides an awareness that it exists, and that makes it easy to take for granted.

Most of us lack any understanding of the fact that its development was the result of a whole lot of hard scientific work, and that work required brilliance (and bravery) and had many frustrating dead ends. It was also an amazingly dangerous business to be in. Isaac Asimov put it this way in the introduction:

“[A]nyone working with rocket fuels is outstandingly mad. I don’t mean garden-variety crazy or a merely raving lunatic. I mean a record-shattering exponent of far-out insanity.

There are, after all, some chemicals that explode shatteringly, some that flame ravenously, some that corrode hellishly, some that poison sneakily, and some that stink stenchily. As far as I know, though, only liquid rocket fuels have all these delightful properties combined into one delectable whole.”

At the time that the book was written and published, most of the work on liquid rocket fuels had been done in the 40’s, 50’s, and first half of the 60’s. There was plenty written about rocketry, but very little about the propellants themselves, and nothing at all written about why these specific substances and not something else were being used. John Clark — having run a laboratory doing propellant research for seventeen years — had a unique perspective of the whole business and took the time to write IGNITION! An Informal History of Liquid Rocket Propellants.

Liquid rocket propellant was in two parts: a fuel and an oxidizer. The combination is hypergolic; that is, the two spontaneously ignite and burn upon contact with each other. As an example of the kinds of details that mattered (i.e. all of them), the combustion process had to be rapid and complete. If the two liquids flow into the combustion chamber and ignite immediately, that’s good. If they form a small puddle and then ignite, that’s bad. There are myriad other considerations as well; the fuel must burn at a manageable temperature (so as not to destroy the motor), the energy density of the fuel must be high enough to be a practical fuel in the first place, and so on.

The actual process of discovering exactly what materials to use and how precisely to make them work in a rocket motor was the very essence of the phrase “the devil is in the details.” For every potential solution, there was a mountain of dead-end possibilities that tantalizingly, infuriatingly, almost worked.

The first reliable, workable propellant combination was Aniline and Red Fuming Nitric Acid (RFNA). “It had the one – but magnificent – virtue that it worked,” writes Clark. “Otherwise it was an abomination.” Aniline was difficult to procure, ferociously poisonous and rapidly absorbed through skin, and froze at an inconvenient -6.2 Celsius which limited it to warm weather only. RFNA was fantastically corrosive, and this alone went on to cause no end of problems. It couldn’t be left sitting in a rocket tank waiting to be used for too long, because after a while you wouldn’t have a tank left. It needed to be periodically vented while in storage. Pouring it gave off dense clouds of remarkably toxic gas. This propellant would go on to cause incredibly costly and dangerous problems, but it worked. Still, no one wanted to put up with any of it one moment longer than they absolutely had to. As a result, that combination was not much more than a first step in the whole process; there was plenty of work left to do.

By the mid-sixties, liquid rocket propellant was a solved problem and the propellant community had pretty much worked themselves out of a job. Happily, a result of that work was this book; it captures history and detail that otherwise would simply have disappeared.

Clark has a gift for writing, and the book is easy to read and full of amusing (and eye-widening) anecdotes. Clark doesn’t skimp on the scientific background, but always in an accessible way. It’s interesting, it’s relevant, it’s relatable, and there is plenty to learn about how hard scientific and engineering development actually gets done. Download the PDF onto your favorite device. You’ll find it well worth the handful of evenings it takes to read through it.

CNC Mill Out Of A Building Set

I have some aluminum building-set parts on hand and just got a second rotary tool, so I thought I’d try my hand at making a light-duty CNC mill—maybe carve up some cheap pine or make circuit boards. This post explores some of the early decisions I’m facing as I begin the project.

Of primary importance is the basic format of the mill’s chassis. Gantry configuration or put everything in a box of girders? How will the axes move–belts or racks? How will the Z-axis work, the assembly that lowers the tool onto the material? Finally, once the chassis is complete, or perhaps beforehand, I’ll need to figure out how I intend to control the thing.

Continue reading “CNC Mill Out Of A Building Set”

The Sensors Automating Your Commute

In a bout of frustration I recently realized that the roads have all updated — most people have no idea how — and this sometimes hurts the flow of traffic. This realization happened when an unfortunate person stopped in a left turn lane well before the stop line. The vehicle didn’t trigger the sensor, so cycle after cycle went by and the traffic system never gave the left turn lane a green light, thinking the lane was unoccupied. Had the driver known about this the world would have been a better place. The first step in intelligent automation is sensing, and there are a variety of methods used to sense traffic’s flow.

Continue reading “The Sensors Automating Your Commute”

Know Thy LED

The invention of the LED is one of the most important discoveries of our times. They are everywhere, from our flashlights to household lighting and television sets. We don’t need to tell you that a project with more blinkies is better than a project with fewer blinkies. But an LED is not simply an LED; the sheer variety of LEDs is amazing, and so in this write-up, we’ll take a closer look at how to choose the right LED for your next masterpiece. Continue reading “Know Thy LED”

Intro To The North American Traffic Signal

Traffic lights are so ubiquitous that we hardly give them a second thought, except to curse their existence when they impede us on our daily drive. But no matter how much it seems like traffic lights have the ability to read our minds and tell when we’re running late, they’re really not much more than a set of lights and a programmable controller. Simple in practice, but as usual, the devil is in the details, and for a system that needs to work as close to 100% of the time as possible, the details are important. Let’s explore the inner workings of traffic signals.

Electromechanical Timing

The traffic lights and crosswalk signals at an intersection are only the public user interface, of course. The interesting stuff is going on in the control box. There’s at least one at every intersection, usually a plain metal cabinet set back from the road, sometimes camouflaged with public bills or graffiti. But inside are the guts of what makes an intersection work and keeps vehicle and foot traffic moving smoothly and safely.

Unsurprisingly, most traffic signal controls started out as purely electromechanical devices. Cabinets were chock full of synchronous motors turning timing wheels with cams to cycle the intersection’s lights through the proper sequence. One old time controller that was common up until recently was made by Econolite, and the insides are a paragon of sturdy design.

Continue reading “Intro To The North American Traffic Signal”

Hackaday UK Unconference Art

Hackaday UK Unconference Needs You

Hackaday’s first ever conference in the United Kingdom will take place on September 16th. Get your free ticket right now for the Hackaday UK Unconference!

An Unconference is the best way to put your finger on the pulse of what is happening in the hardware world right now. Everyone who attends should be ready to stand and deliver a seven-minute talk on something that excites them right now — this mean you. The easiest thing to do is grab your latest hack off the shelf and talk about that.

Talks may be about a prototype, project, or product currently in progress at your home, work, or university. It could also be an idea, concept, or skill that you’re now exploring. The point is to channel your excitement and pass it on to others in a friendly presentation environment where everyone will cheer as your story unfolds.

Hackaday doesn’t often have the opportunity to organize live events in Europe which is why we’re so happy to partner with DesignSpark, the exclusive sponsor of the Hackaday UK Unconference. DesignSpark is the innovation arm of RS Components and will have some staff on hand at the Unconference. They share our excitement in bringing together the Hackaday community throughout the UK. It is with their support that we are able to book an incredible venue and offer admission at no cost to all attendees. Hackaday events fill to capacity quickly, so get your ticket now before they are gone.

We have already asked a few of our friends in the area if they will be there. Seb Lee-Delisle who wowed us in Belgrade with his laser projection wizardry plans to be there. James Larsson is part of the crew that started the Flashing Light Prize and will be on hand. Phoenix Perry is always on the cutting edge of where people and technology meet and we can’t wait to hear her talk. Mike Harrison of Mike’s Electric Stuff will be around and likely teasing some secret Hackaday hardware he’s spearheading. James Bruton of XRobots (and a Hackaday Prize Judge) is coming, as is Saar Drimer who you may know as the person behind the beautiful hardware art of Boldport. Several Hackaday editors will be there; Elliot Williams, Jenny List, and I will all be on hand. All that’s missing is you.

We’ll flood into the Culture Space at Canada Water on the east side of London starting at 13:00. Tea, coffee, and snacks will be served throughout the afternoon and we’ll provide dinner as well. Anyone who is still standing when we close the doors at 21:00 is invited to join us at the pub afterward (we’ll get the first round).

As always, Hackaday’s success is based on the community of hackers, designers, and engineers that make it up. Please share the link to tickets on your social media and pester your friends to attend. Most importantly, don’t shy away from this speaking opportunity. We want to hear your story and this is the place to tell it. See you in London in just a few short weeks!

UPDATE: Wow, that didn’t take long. The tickets are claimed, but make sure you get on the waitlist. A lot can change in the next five week’s and we’ll be pestering all ticket holders to be there or give their seat up for someone on the waitlist.