Ditch OpenSCAD For C++

There’s an old saying that a picture is worth a thousand words. If you’ve ever tried to build furniture or a toy with one of those instructions sheets that contains nothing but pictures, you might disagree. 3D design is much the same for a lot of people. You think you want to draw things graphically, but once you start doing complex things and making changes, parametric modeling is the way to go. Some CAD tools let you do both, but many 3D printer users wind up using OpenSCAD which is fully parametric.

If you’ve used OpenSCAD you know that it is like a simple programming language, but with some significant differences from what you normally use. It is a good bet that most Hackaday readers can program in at least one language. So why learn something new? A real programming language is likely to have features you won’t find readily in OpenSCAD that, in theory, ought to help with reuse and managing complex designs.

I considered OpenJSCAD. It is more or less OpenSCAD for JavaScript. However, JavaScript is a bit of a scripting language itself. Sure, it has objects and some other features, but I’m more comfortable with C++. I thought about using the OpenCSG library that OpenSCAD uses, but that exposes a lot of detail.

Instead, I turned to a project that uses C++ code to generate OpenSCAD output, OOML (the Object Oriented Mechanics Language)). OpenSCAD does the rendering, exporting, and other functions. Unfortunately, the project seems to have stalled a few years back and the primary web-based documentation for it seems to be absent. However, it is very usable and if you know how to find it, there is plenty of documentation available.

Why not OpenSCAD?

Continue reading “Ditch OpenSCAD For C++”

Modified Baby Monitor Interrupts Your Groove In Case Of Emergency

You try to be good, but the temptation to drown out the noise of parenthood with some great tunes is just too much to resist. The music washes over you, bringing you back to simpler times. But alas, once you plug in the kids started running amok, and now the house is on fire and there’s the cleaning up to do and all that paperwork. Maybe you should have tried modifying a baby monitor to interrupt your music in case of emergency?

Starting with an off-the-shelf baby monitor, [Ben Heck] takes us through the design goals and does a quick teardown of the circuit. A simple audio switching circuit is breadboarded using an ADG436 dual SPDT chip to allow either the baby monitor audio or music fed from your favorite source through to the output. [Ben] wisely chose the path of least resistance to detecting baby noise by using the volume indicating LEDs on the monitor. A 555 one-shot trips for a few seconds when there’s enough noise, which switches the music off and lets you listen in on [Junior]. The nice touch is that all the added components fit nicely in the roomy case and are powered off the monitor’s supply.

Maybe you’d prefer listening to the nippers less than watching them? In that case, this impromptu eye-in-the-sky baby camera might be a better choice.

Continue reading “Modified Baby Monitor Interrupts Your Groove In Case Of Emergency”

Make Logic Gates Out Of (Almost) Anything

Logic gates are the bricks and mortar of digital electronics, implementing a logical operation on one or more binary inputs to produce a single output. These operations are what make all computations possible in every device you own, whether it is your cell phone, computer, gaming console etc.  There are myriad ways of implementing logic gates; mechanically, electronically, virtually (think Minecraft), etc. Let’s take a look at what it takes to create some fun, out-of-the-ordinary gate implementations.

Continue reading “Make Logic Gates Out Of (Almost) Anything”

Humidity Sensor Shootout

If you want to measure humidity (and temperature, and maybe even barometric pressure) in a device that you’re building, have a look at this comprehensive test of seven different options. We’re going to summarize the results here, but you’ll really want to read up on the testing methodology — it’s great science hacking. Did you know about using saturated salt solutions to produce constant humidity levels for calibration? We didn’t.

The eBay hacker favorite, the so-called DHT22 module, doesn’t fare all that well, with one of six that [Robert] tested being basically horrible, and three of them breaking within two years of use. The one that works well, however, is pretty good. Feeling lucky?

The Bosch BME280 looks great. It costs a bit more as a bare part, and a few times more than that when it is mounted on a friendly module, but it seems to be very reliable. And you get a barometer thrown in for the extra work. Indeed, it performed so well that Hackaday contributor [Nava Whiteford] put the part under a scanning electron microscope to figure out what’s going on.

The other sensors were fine, with the HTU21D and SHT71 being standouts for their ultra-fast response. For the full details, go click on that link at the top. Having just installed a sextet of DHT22s in our house last year, we’re left with that sinking feeling that we may have gotten what we paid for, which wasn’t much. At least they’re all still running.

Thanks to [Dodutils] and [mac012345] via comments in another thread.

Thermoacoustic Engine Has Only One Moving Part

Modern internal combustion engines have around 500 parts, with many of them moving in concert with the piston. But have you seen an engine with only one moving part, out of four in total? In the thermoacoustic engine, the power piston is the only part in motion. [YTEngineer] has built a very simple prototype that works on power provided by a tealight.

His little engine, slightly larger than a cigarette lighter, is composed of a test tube that serves as the cylinder, a smaller tube, called the choke, that fits inside the test tube, the stack, which is nothing more than some steel wool, and the power piston. [YTEnginer] nicely explains how the engine works: basically a temperature difference is used to induce high-amplitude sound waves that create the piston’s back-and-forth movement. The engine can be easily converted to an electricity generator by adding a magnet to the piston and a coil surrounding it.

The thermoacoustic engine is a particular type of Stirling engine. They have been proposed as electricity generators for space travel using radioisotopes as the heat source, among other applications. You may be interested in the history of Stirling engines, or perhaps even build a simple one.

Continue reading “Thermoacoustic Engine Has Only One Moving Part”

Junkyard Dish Mount Tracks Weather Satellites

There’s a magnificent constellation of spacecraft in orbit around Earth right now, many sending useful data back down to the surface in the clear, ready to be exploited. Trouble is, it often takes specialized equipment that can be a real budget buster. But with a well-stocked scrap bin, a few strategic eBay purchases, and a little elbow grease, a powered azimuth-elevation satellite dish mount can become affordable.

The satellites of interest for [devnulling]’s efforts are NOAA’s Polar-orbiting Operational Environmental Satellites (POES), a system of low-Earth orbit weather birds. [devnulling] is particularly interested in direct reception of high-definition images from the satellites’ L-band downlink. The mount he came up with to track satellites during lengthy downloads is a tour de force of junkyard build skills.

The azimuth axis rotates on a rear wheel bearing from a Chevy, the elevation axis uses cheap pillow blocks, and the frame is welded from scrap angle iron and tubing. A NEMA-23 stepper with 15:1 gearhead rotates the azimuth while a 36″ linear actuator takes care of elevation. The mount has yet to be tested in the wind; we worry that sail area presented by the dish might cause problems. Here’s hoping the mount is as stout as it seems, and we’ll look forward to a follow-up.

It would work for us, but a 4-foot dish slewing around in the back yard might not be everyone’s taste in lawn appurtenances. If that’s you and you still want to get your weather data right from the source, try using an SDR dongle and chunk of wire.

Continue reading “Junkyard Dish Mount Tracks Weather Satellites”

Lost PLA Casting Brings Out The Beauty Of Macromolecules

Biochemistry texts are loaded with images of the proteins, nucleic acids, and other biopolymers that make up life. Depictions of the 3D structure of macromolecules based on crystallography and models of their most favorable thermodynamic conformations are important tools. And some are just plain beautiful, which is why artist [Mike Tyka] has taken to using lost-PLA casting to create sculptures of macromolecules from bronze, copper, and glass.

We normally don’t cover strictly artistic projects here at Hackaday, although we do make exceptions, such as when the art makes a commentary on technology’s place in society. In [Mike]’s case, not only is his art beautiful and dripping with nerd street cred, but his techniques can be translated to other less artsy projects.

kcsa_5_bigFor “Tears”, his sculpture of the enzyme lysozyme shown in the banner image, [Mike] started with crystallographic data that pinpoints every peptide residue in the protein. A model is created for the 3D printer, with careful attention paid to how the finished print can be split apart to allow casting. Clear PLA filament is used for the positive because it burns out of the mold better than colored plastic. The prints are solvent smoothed, sprues and air vents added, and the positive is coated with a plaster mix appropriate for the sculpture medium before the plastic is melted out and the mold is ready for casting.

[Mike]’s sculpture page is well worth a look even if you have no interest in macromolecules or casting techniques. And if you ever think you’ll want to start lost-PLA casting, be sure to look over his build logs for plenty of tips and tricks. “Tears” is executed in bronze and glass, and [Mike]’s description is full of advice on how to handle casting such vastly different media.

Thanks to [Dave Z.] for the tip.