Op-Amp Challenge: A Logic-Free BCD

Of digital electronics, a wise man once said that “Every idiot can count to one.” Truer words have rarely been spoken, because at the end of the day, every digital circuit is really just an analog circuit with the interesting bits abstracted away. And to celebrate that way of looking at things, we’re pleased to present this BCD to seven-segment converter that uses no logic chips.

With cheap and easily available chips that perform this exact job, it might seem a little loopy to throw 20 LM324 op-amps at the job. But as [gschmidt958] explains, this is strictly for the challenge, plus it made a nice entry in the recently concluded Op-Amp Challenge contest. His work began in simulation, exploring op-amp versions of the basic logic gates — NAND, AND, OR, and NOT — all of which rely on using the LM324s as comparators. There were real-world curveballs, of course, not least of which was running out of the 10k resistors used for input averaging. Another plot twist was running out of time to order a PCB, which required designing one using MS Paint and etching it at home.

The demo video below shows the circuit at work, taking the BCD output of a 74HC393 counter — clocked by a 555, naturally — and driving a seven-segment LED.  It’s honestly a lot of work for such a simple task, but there’s something satisfying about the whole project. We think [Widlar] would be proud.

Continue reading “Op-Amp Challenge: A Logic-Free BCD”

Robotic Fox Is Part Dog, Part Cat — Just Like The Real Thing

Foxes are cat software running on dog hardware, or so they say. And [Will Cogley] seems to have taken that to heart with this 3D-printed robotic fox, which borrows heavily from projects like Boston Dynamics Spot robodog. True, the analogy breaks down a bit when you include MIT’s Cheetah on the inspiration list, but you get the point.

Very much a work in progress — [Will]’s RoboFox lacks both a head and a tail, which he aims to add at some point — there are some interesting design elements on display here. Whereas commercial quadruped robots tend to use expensive harmonic drives for the legs, [Will] chose simpler, cheaper hobby servos for his fox’s running gear. Each leg has three of them — one each for the upper and lower leg, and another that moves the whole leg in and out relative to the body. The dual-servo design for the leg is particularly interesting — one servo drives the upper leg directly, while the other servo drives the lower leg through a gear drive and a captive bearing arrangement connected to a parallelogram linkage. The result is a quite compact assembly that still has twelve degrees of freedom, and isn’t anywhere near as “floppy” as you might expect from something driven by hobby servos.

The video below shows off the design details as well as some of the fox’s construction, including some weirdly anatomically correct poses while it’s on its back. The fox is still getting its legs — you can see a few times when the servos get the jitters, and the umbilical is clearly a hindrance for such a lightweight robot. But [Will] has made a great start here, and we’re keen to see RoboFox progress. Although we’re not sure about giving the future head animatronic eyes.

Continue reading “Robotic Fox Is Part Dog, Part Cat — Just Like The Real Thing”

Op-Amp Challenge: Measuring PH, No Code Required

When you see a project with a digital display these days, you’ll be forgiven for assuming that there’s some kind of microcontroller behind the scenes. And while that’s often the easiest way to get a project from idea to completion, it’s rarely the most interesting way.

This digital pH meter is a great example of that “no-code” design philosophy. According to [chris], the main use for this meter will be to measure soil pH in his garden, and the reason for eschewing a microcontroller was more or less for the challenge. And quite a challenge it was. Understanding the concept of pH isn’t always easy, and many a budding chemist has fallen victim to its perils. Actually measuring pH isn’t much easier, with the need to account for a lot of variables while measuring small voltages. Adding to the challenge was the fact that pretty much every skill on display here — from using KiCad to SMD soldering — was the first time [chris] had tackled them.

To amplify the voltage from the off-the-shelf pH probe, [chris] chose an LMV358A, a high-impedance FET-input version of the venerable LM358 op-amp, so as not to load down the probe. A negative temperature coefficient (NTC) resistor in the feedback path provides temperature compensation. He also designed a split power supply to provide positive and negative rails from a single 9-volt battery. The 3.5-digit LCD display is driven by an ICL7106 integrated A/D converter and BCD driver chip. Everything went into a nice-looking plastic enclosure that’s very suitable for a portable instrument.

As of this writing, the Op-Amp Challenge has officially wrapped, and there’s a slew of last-minute entries we need to go through. Check out the competition and stay tuned to find out who the judges pick for op-amp design glory!

Reverse Engineering A Better Night’s Sleep

All you want is a decent night’s sleep, so you decide to invest in one of those fancy adjustable beds. At first, it’s fine — being able to adjust the mattress to your needs on the fly is a joy, and yet…something isn’t quite right. Something nags at you every night, thwarting your slumber and turning your dreams of peaceful sleep into a nightmare once you realize your bed has locked you into a vertically integrated software ecosystem from which there’s no escape.

Or is there? That’s what [Chris Laplante] wanted to know, and why he reverse-engineered his Tempur-Pedic remote control. As many products these days do, his bed was touted as having an Android application for smartphone adjustability, but alas, the app hasn’t been updated since 2014 (!) and doesn’t appear to work on modern phones. [Chris] decided to take matters into his own hands and build a gateway to talk to the bed using its native RF protocol.

Most good reverse engineering stories start with research, and this one is no exception. Digging into the FCC database revealed a wealth of clues, such as the frequency — 433-MHz ISM band, no surprise — and even spectrum analyzer screenshots of the remote’s signals. A HackRF One revealed more about the signals, but it turned out that sniffing in on the SPI bus between the microcontroller and the Si4431 RF transceiver with a Salae logic analyzer was more fruitful, allowing him to dig into the packet structure.

The engineers at Tempur-Pedic threw quite a few challenges at [Chris], like an application-level CRC in addition to the CRC used by the Si4431, and interesting complications to control the massage features of the bed. In the end, [Chris] managed to get a pretty complete snapshot of the conversation between the bed and the remote, and is now in the process of building a gateway that’ll actually connect to his phone, plus integrate into his home automation system. We’re looking forward to updates on that.

Souped-Up Reflective Sensor Uses Itself For Wireless Programming

Proximity sensors are common enough in automation projects that we hardly give them a second thought — pick something with specs that match the job and move on. But they can be fussy to get adjusted just right, a job made more difficult if they’re located in some out-of-the-way corner.

But where lies a challenge, there’s also an opportunity, as [Ido Gendel] shows us with this remote-controlled proximity sensor. The story behind this clever little hack starts with an off-the-shelf sensor, the kind with an IR LED and a phototransistor pointed in the same direction that gives a digital output when the light bouncing back into the phototransistor exceeds a certain threshold. It was setting the threshold that gave [Ido]’s client trouble, so [Ido] decided to build a programmable drop-in replacement to make the job easier.

The first try at this used an OBP732 reflective transmitter and an ATtiny202 microcontroller and had three pads on the PCB for programming. This still required physical contact for programming, though, so [Ido] had the idea to use the sensor for wireless IR programming. The microcontroller on version two was switched to an ATtiny212, and a couple of components were added to control the power of the LED so the sensor could do double duty. A programmer using the same sensor and a USB-to-UART adapter completes the system, and allows the sensor threshold to be set just by shining the programmer in its general direction from up to 25 cm away.

We think that getting multiple uses from a single sensor is pretty clever, so hats off for this one. It’s not the first time we’ve featured one of [Ido]’s projects, but it’s been quite a while — this one-clock-cycle-a-day Shabbat clock was the most recent, but you can clearly see the roots of the sensor project in this mouse pointer data encoder that goes all the way back to 2015.

Radio Apocalypse: Hardening AM Radio Against Disasters

If you’ve been car shopping lately, or even if you’ve just been paying attention to the news, you’ll probably be at least somewhat familiar with the kerfuffle over AM radio. The idea is that in these days of podcasts and streaming music, plain-old amplitude modulated radio is becoming increasingly irrelevant as a medium of mass communication, to the point that automakers are dropping support for it from their infotainment systems.

The threat of federal legislation seems to have tapped the brakes on the anti-AM bandwagon, at least for now. One can debate the pros and cons, but the most interesting tidbit to fall out of this whole thing is one of the strongest arguments for keeping the ability to receive AM in cars: emergency communications. It turns out that about 75 stations, most of them in the AM band, cover about 90% of the US population. This makes AM such a vital tool during times of emergency that the federal government has embarked on a serious program to ensure its survivability in the face of disaster.

Continue reading “Radio Apocalypse: Hardening AM Radio Against Disasters”

Linear Power Supply’s Current Limiter Is A Lesson In Simplicity

Here at Hackaday we really like to feature projects that push the limits of what’s possible, or ones that feature some new and exciting technology that nobody has ever seen before. So what’s so exciting about this single-voltage linear power supply? Honestly, nothing — until you start looking at its thermally compensated current limiting circuit.

This one is by [DiodeGoneWild], who you’ve really got to hand it to in terms of both the empirical effort he went through to optimize the circuit, as well as the quality of his explanation. The basic circuit is dead simple: a transformer, a full-wave rectifier, an LD1085 adjustable regulator — a low-dropout version of the venerable LM317 — and associated filter caps and trimmer pot to adjust the output between 2.2 and 5.5 volts.

The current limiting circuit, though, is where things get interesting. Rather than use an op-amp, [DiodeGoneWild] chose a simple discrete transistor current-sense circuit. To make it less susceptible to thermal drift, he experimented with multiple configurations of resistors and Schottky diodes over a wide range of temperatures, from deep-freeze cold to hair-dryer-in-a-box hot. His data table and the resulting graph of current versus temperature are works of art, and they allowed him to make sensible component selections for a fixed 250-mA current limit with a reasonably flat thermal response.

As for construction, it’s all classic [DiodeGoneWild], including a PCB with traces ground out with a Dremel and a recycled heat sink. He also dropped a couple of interesting build techniques, like adding leads to turn SMD tantalum caps into through-hole components. The video below shows all the build details along with the exhaustive breadboard testing.

From taking on a potentially risky magnetron teardown to harvesting lasers from headlights, there’s always something to learn from a [DiodeGoneWild] video.

Continue reading “Linear Power Supply’s Current Limiter Is A Lesson In Simplicity”