Two-Cent Temperature Sensors

When they need to add temperature control to a project, many hackers reach for a K-type thermocouple for their high-temperature needs, or an integrated temperature-sensing IC when it doesn’t get that hot. The thermocouple relies on very small currents and extremely high gain, and you pretty much need a dedicated IC to read it, which can be expensive. The ICs aren’t as expensive, but they’re basically limited to boiling water. What do you do if you want to control a reflow oven?

There’s a cheaper way that spans a range between Antarctic winter and molten solder, and you’ve probably already got the parts on your shelf. Even if you don’t, it’s only going to run you an extra two cents, assuming that you’ve already got a microcontroller with an ADC in your project. The BOM: a plain-vanilla diode and a resistor.

I’ve been using diodes as temperature sensors in three projects over the last year: one is a coffee roaster that brings the beans up to 220 °C in hot air, another is a reflow hotplate that tops out around 210 °C, and the third is a toner-transfer iron that holds a very stable 130 °C. In all of these cases, I don’t really care about the actual numerical value of the temperature — all that matters is reproducibility — so I never bothered to calibrate anything. I thought I’d do it right for Hackaday, and try to push the humble diode to its limits for science.

What resulted was a PCB fire, test circuits desoldering themselves above 190 °C, temperature probes coming loose, and finally a broken ramekin and 200 °C peanut oil all over my desk. Fun times! On the other hand, I managed to get out enough data to calibrate some diodes, and the results are fantastic. The circuits under test included both best practices and the easiest thing that could possibly work, and the results are pretty close. This is definitely a technique that you want to have under your belt for most temperature ranges. The devil is in the details, of course, so read on!

Continue reading “Two-Cent Temperature Sensors”

Mechanisms: The Spring

Most people probably don’t think about springs until one kinks up or snaps, but most of the world’s springs are pretty crucial. The ones that aren’t go by the name Slinky.

We all use and encounter dozens of different types of springs every day without realizing it. Look inside the world of springs and you’ll find hundreds of variations on the theme of bounce. The principle of the spring is simple enough that it can be extended to almost any shape and size that can be imagined and machined. Because it can take so many forms, the spring as a mechanism has thousands of applications. Look under your car, take apart a retractable pen, open up a stapler, an oven door, or a safety pin, and you’ll find a spring or two. Continue reading “Mechanisms: The Spring”

Another Reason To Learn Morse Code: Kidnapping

Morse code — that series of dots and dashes — can be useful in the strangest situations. As a kid I remember an original Star Trek episode where an injured [Christopher Pike] could only blink a light once for yes and twice for no. Even as a kid, I remember thinking, “Too bad they didn’t think to teach him Morse code.” Of course odd uses of Morse aren’t just for TV and Movies. Perhaps the strangest real-life use was the case of the Colombian government hiding code in pop music to send messages to hostages.

In 2010, [Jose Espejo] was close to retirement from the Colombian army. But he was bothered by the fact that some of his comrades were hostages of FARC (the Revolutionary Armed Forces of Colombia; the anti-government guerrillas), some for as many as ten years. There was a massive effort to free hostages underway, and they wanted them to know both to boost morale and so they’d be ready to escape. But how do you send a message to people in captivity without alerting their captors?

Continue reading “Another Reason To Learn Morse Code: Kidnapping”

Hacking When It Counts: Pigeon-Guided Missiles

The image of the crackpot inventor, disheveled, disorganized, and surrounded by the remains of his failures, is an enduring Hollywood trope. While a simple look around one’s shop will probably reveal how such stereotypes get started, the image is largely not a fair characterization of the creative mind and how it works, and does not properly respect those who struggle daily to push the state of the art into uncharted territory.

That said, there are plenty of wacky ideas that have come down the pike, most of which mercifully fade away before attracting undue attention. In times of war, though, the need for new and better ways to blow each other up tends to bring out the really nutty ideas and lower the barrier to revealing them publically, or at least to military officials.

Of all the zany plans that came from the fertile minds on each side of World War II, few seem as out there as a plan to use birds to pilot bombs to their targets. And yet such a plan was not only actively developed, it came from the fertile mind of one of the 20th century’s most brilliant psychologists, and very nearly resulted in a fieldable weapon that would let fly the birds of war.

Continue reading “Hacking When It Counts: Pigeon-Guided Missiles”

Margaret Hamilton Takes Software Engineering To The Moon And Beyond

If you were to create a short list of women who influenced software engineering, one of the first picks would be Margaret Hamilton. The Apollo 11 source code lists her title as “PROGRAMMING LEADER”. Today that title would probably be something along the line of “Lead software engineer”

Margaret Hamilton was born in rural Indiana in 1936. Her father was a philosopher and poet, who, along with grandfather, encouraged her love of math and sciences. She studied mathematics with a minor in philosophy, earning her BA from Earlham College in 1956. While at Earlham, her plan to continue on to grad school was delayed as she supported her husband working on his own degree from Harvard. Margaret took a job at MIT, working under Professor Edward Norton Lorenz on a computer program to predict the weather. Margaret cut her teeth on the desk-sized LGP-30 computer in Norton’s office.

Hamilton soon moved on to the SAGE program, writing software which would monitor radar data for incoming Russian bombers. Her work on SAGE put Margaret in the perfect position to jump to the new Apollo navigation software team.

The Apollo guidance computer software team was designed at MIT, with manufacturing done at Raytheon. To say this was a huge software project for the time would be an understatement. By 1968, over 350 engineers were working on software. 1400 man-years of software engineering were logged before Apollo 11 touched down on the lunar surface, and the project was lead by Margaret Hamilton.
Continue reading “Margaret Hamilton Takes Software Engineering To The Moon And Beyond”

Space Garbage Truck Takes Out The Trash

On April 2nd, 2018 a Falcon 9 rocketed skywards towards the International Space Station. The launch itself went off without a hitch, and the Dragon spacecraft delivered its payload of supplies and spare parts. But alongside the usual deliveries, CRS-14 brought a particularly interesting experiment to the International Space Station.

Developed by the University of Surrey, RemoveDEBRIS is a demonstration mission that aims to test a number of techniques for tackling the increasingly serious problem of “space junk”. Earth orbit is filled with old spacecraft and bits of various man-made hardware that have turned some areas of space into a literal minefield. While there have been plenty of ideas floated as to how to handle this growing issue, RemoveDEBRIS will be testing some of these methods under real-world conditions.

The RemoveDEBRIS spacecraft will do this by launching two CubeSats as test targets, which it will then (hopefully) eliminate in a practical demonstration of what’s known as Active Debris Removal (ADR) technology. If successful, these techniques could eventually become standard operating procedure on future missions.

Continue reading “Space Garbage Truck Takes Out The Trash”

The Basics And Pitfalls Of Pointers In C

Pointers — you either love them, or you haven’t fully understood them yet. But before you storm off to the comment section now, pointers are indeed a polarizing subject and are both C’s biggest strength, and its major source of problems. With great power comes great responsibility. The internet and libraries are full of tutorials and books telling about pointers, and you can randomly pick pretty much any one of them and you’ll be good to go. However, while the basic principles of pointers are rather simple in theory, it can be challenging to fully wrap your head around their purpose and exploit their true potential.

So if you’ve always been a little fuzzy on pointers, read on for some real-world scenarios of where and how pointers are used. The first part starts with regular pointers, their basics and common pitfalls, and some general and microcontroller specific examples.

Continue reading “The Basics And Pitfalls Of Pointers In C”