Testing Hardware With ASCII Waveforms

Testing software is — sometimes — easier than testing hardware. After all, you can always create test files and even fake user input before monitoring outputs using common tools. Hardware though, is a bit different. Sometimes it is hard to visualize exactly what’s happening. [Andrew Ray’s] answer? Produce simulated waveforms using ASCII text.

The process uses some custom tools written in OCaml, but the code is available for you on GitHub. The tool, called Hardcaml, allows you to write test benches for hardware — not a new idea for FPGA developers. The output, however, is an ASCII text waveform and common software development tools can check that waveform against the expected output.

Continue reading “Testing Hardware With ASCII Waveforms”

Continuous Integration: What It Is And Why You Need It

If you write software, chances are you’ve come across Continuous Integration, or CI. You might never have heard of it – but you wonder what all the ticks, badges and mysterious status icons are on open-source repositories you find online. You might hear friends waxing lyrical about the merits of CI, or grumbling about how their pipeline has broken again.

Want to know what all the fuss is about? This article will explain the basic concepts of CI, but will focus on an example, since that’s the best way to understand it. Let’s dive in. Continue reading “Continuous Integration: What It Is And Why You Need It”

Are You Getting Your Money’s Worth From Threaded Inserts?

Have you ever wondered whether it’s worth the time and expense to install threaded inserts into your 3D-printed projects? [Stefan] from CNC Kitchen did, and decided to answer the question once and for all, with science.

If this sounds familiar, it’s with good reason: we covered [Stefan]’s last stab at assessing threaded inserts back in March. Then, he was primarily interested in determining if threaded inserts are better than threads cut or printed directly into parts. The current work is concerned with the relative value of different designs of threaded inserts. He looked at three different styles of press-in inserts, ranging in price from pennies apiece to a princely 25 cents. The complexity of the outside knurling seems not to be correlated with the price; the inserts with opposed helical knurls seem like they’d be harder to manufacture than the ones with simple barbs on the outside of the barrel, but cost less. And in fact, the mid-price insert outperformed the expensive one in pull-out tests. Surprisingly, the cheapest inserts were actually far worse at pull-out resistance than printing undersized holes and threading an M3 screw directly into the plastic.

[Stefan] also looked at torque resistance, and found no substantial difference between the three insert types. Indeed, none of the inserts proved to be the weak point, as the failure mode of all the torque tests was the M3 bolt itself. This didn’t hold with the bolt threaded directly into the plastic, of course; any insert is better than none for torque resistance.

We enjoyed seeing [Stefan]’s tests, and appreciate the data that can help us be informed consumers. [John] over at Project Farm does similar head-to-head tests, like this test of different epoxy adhesives.

Continue reading “Are You Getting Your Money’s Worth From Threaded Inserts?”

Student-Built Rocket Engine Packs A Punch

A group of students at Boston University recently made a successful test of a powerful rocket engine intended for 100km suborbital flights. Known as the Iron Lotus (although made out of mild steel rather than iron), this test allowed them to perfect the timing and perfect their engine design (also posted to Reddit) which they hope will eventually make them the first collegiate group to send a rocket to space.

Unlike solid rocket fuel designs, this engine is powered by liquid fuel which comes with a ton of challenges to overcome. It is a pressure-fed engine design which involves a pressurized unreactive gas forcing the propellants, in this case isopropanol and N2O, into the combustion chamber. The team used this design to produce 2,553 lb*ft of thrust during this test, which seems to be enough to make this a class P rocket motor. For scale, the highest class in use by amateurs is class S. Their test used mild steel rather than stainless to keep the costs down, but they plan to use a more durable material in the final product.

The Boston University Rocket Propulsion Group is an interesting student organization to keep an eye on. By any stretch of the imagination they are well on their way to getting their rocket design to fly into space. Be sure to check out their other projects as well, and if you’re into amateur rocketry in general there are a lot of interesting things you can do even with class A motors.

Continue reading “Student-Built Rocket Engine Packs A Punch”

Test PCBs On A Bed Of Nails

While it might be tempting to start soldering a circuit together once the design looks good on paper, experience tells us that it’s still good to test it out on a breadboard first to make sure everything works properly. That might be where the process ends for one-off projects, but for large production runs you’re going to need to test all the PCBs after they’re built, too. While you would use a breadboard for prototyping, the platform you’re going to need for quality control is called a “bed of nails“.

This project comes to us by way of [Thom] who has been doing a large production run of circuits meant to drive nixie tubes. After the each board is completed, they are laid on top of a number of pins arranged to mate to various points on the PCB. Without needing to use alligator clamps or anything else labor-intensive to test, this simple jig with all the test points built-in means that each board can be laid on the bed and tested to ensure it works properly. The test bed looks like a bed of nails as well, hence the name.

There are other ways of testing PCBs after production, too, but if your board doesn’t involve any type of processing they might be hard to implement. Nixie tubes are mostly in the “analog” realm so this test setup works well for [Thom]’s needs.

Flash Memory: Caveat Emptor

We all love new tech. Some of us love getting the bleeding edge, barely-on-the-market devices and some enjoy getting tech thirty years after the fact to revel in nostalgia. The similarity is that we assume we know what we’re buying and only the latter category expects used parts. But, what if the prior category is getting used parts in a new case? The University of Alabama in Huntsville has a tool for protecting us from unscrupulous manufacturers installing old flash memory.

Flash memory usually lasts longer than the devices where it is installed, so there is a market for used chips which are still “good enough” to pass for new. Of course, this is highly unethical. You would not expect to find a used transmission in your brand new car so why should your brand new tablet contain someone’s discarded memory?

The principles of flash memory are well explained by comparing them to an ordinary transistor, of which we are happy to educate you. Wear-and-tear on flash memory starts right away and the erase time gets longer and longer. By measuring how long it takes to erase, it is possible to accurately determine the age of chip in question.

Pushing the limits of flash memory’s life-span can tell a lot about how to avoid operation disruption or you can build a flash drive from parts you know are used.

Motor Test Bench Talks The Torque

Salvaging a beefy motor is one life’s greatest pleasures for a hacker, but, when it comes to using it in a new project, the lack of specs and documentation can be frustrating. [The Post Apocalyptic Inventor] has a seemingly endless stockpile of scavenged motors, and decided to do something about the problem.

Once again applying his talent for junk revival, [TPAI] has spent the last year collecting, reverse-engineering and repairing equipment built in the 1970s, to produce a complete electric motor test setup. Parameters such as stall torque, speed under no load, peak power, and more can all easily be found by use of the restored test equipment. Key operating graphs that would normally only be available in a datasheet can also be produced.

The test setup comprises of a number of magnetic particle brakes, combined power supply and control units, a trio of colossal three-phase dummy loads, and a gorgeously vintage power-factor meter.

Motors are coupled via a piece of rubber to a magnetic particle brake. The rubber contains six magnets spaced around its edge, which, combined with a hall sensor,  are used to calculate the motor’s rotational speed. When power is applied to the coil inside the brake, the now magnetised internal powder causes friction between the rotor and the stator, proportional to the current through the coil. In addition to this, the brake can also measure the torque that’s being applied to the motor shaft, which allows the control units to regulate the brake either by speed or torque. An Arduino slurps data from these control units, allowing characteristics to be easily graphed.

If you’re looking for more dynamometer action, last year we featured this neatly designed unit – made by some Cornell students with an impressive level of documentation.

Continue reading “Motor Test Bench Talks The Torque”