Simple STM32 Frequency Meter Handles Up To 30MHz With Ease

[mircemk] had previously built a frequency counter using an Arduino, with a useful range up to 6 MHz. Now, they’ve implemented a new design on a far more powerful STM32 chip that boosts the measurement range up to a full 30 MHz. That makes it a perfect tool for working with radios in the HF range.

The project is relatively simple to construct, with an STM32F103C6 or C8 development board used as the brains of the operation. It’s paired with old-school LED 7-segment displays for showing the measured frequency. Just one capacitor is used as input circuitry for the microcontroller, which can accept signals from 0.5 to 3V in amplitude. [mircemk] notes that the circuit would be more versatile with a more advanced input circuit to allow it to work with a wider range of signals.

It’s probably not the most accurate frequency counter out there, and you’d probably want to calibrate it using a known-good frequency source once you’ve built it. Regardless, it’s a cheap way to get one on your desk, and a great way to learn about measuring and working with time-varying signals. You might like to take a look at the earlier build from [mircemk] for further inspiration. Video after the break.

Continue reading “Simple STM32 Frequency Meter Handles Up To 30MHz With Ease”

Building A Woodworking Lathe From Scratch

Today, cheap dodgy machine tools are more readily available than ever. Sometimes though, there’s great value in putting a simple and rugged version of your own, as demonstrated by [bartworker]’s woodworking lathe build. 

The core of the build is a hefty wooden base, something that is a core component of any good machine tool. It was built from a large beam sourced from a ship supply house, and originally used to hold a sturdy vice. It eventually gained a motor from a cement mixer when [bartworker] decided it should be converted into a lathe. From there, it was further equipped with a sliding support for larger workpieces, allowing [bartworker] to lathe some seriously big stock.

The lathe is very much an ever-evolving thing, and [bartworker] has used it to share the joys of woodworking with his family and friends. As a demonstration of its abilities, the lathe was able to produce a handsome handle for [bartworker]’s axe.

As this story shows, the only thing better than a tool you build yourself is one that your friends get to enjoy too! Meanwhile, if you’ve been whipping up your own machinery, don’t hesitate to drop us a line!

Hackaday Prize 2023: This Differential Scope Probe Is Smarter Than It Looks

A differential probe, a device for measuring the voltage between two points in a circuit rather than the voltage between a point and ground, it an extremely useful addition to any electronics bench. Inside such a probe you’ll usually find a fancy op-amp working as a differential amplifier, and for correct operation they require careful adjustment to null out DC bias and achieve the maximum common mode rejection. We particularly like [Craig D]’s probe, because these adjustments are taken care of automatically by a microcontroller.

The analogue path provides a lesson for anyone interested in instrumentation signal path design, with the signal conditioning and compensation circuits feeding an AD8130 differential amplifier. Another amplifier samples the output voltage and feeds it to the ADC in the microcontroller. Common mode adjustment is taken care of by a digital potentiometer chip, and DC offset by the microcontroller’s DAC. Controlling all this is an ATSAMD10 chip, and the power is derived from the scope’s USB interface.

All in all it’s an extremely well-executed device, and one we’d be happy to have on our bench at any time. It’s by no means the first differential probe we’ve brought you, here’s another.

 

A Raspberry Pi 5 Is Better Than Two Pi 4s

What’s as fast as two Raspberry Pi 4s? The brand-new Raspberry Pi 5, that’s what. And for only a $5 upcharge (with an asterisk), it’s going to the new go-to board from the British House of Fruity Single-Board Computers. But aside from the brute speed, it also has a number of cool features that will make using the board easier for a number of projects, and it’s going to be on sale in October. Raspberry Pi sent us one for review, and if you were just about to pick up a Pi 4 for a project that needs the speed, we’d say that you might wait a couple weeks until the Raspberry Pi 5 goes on sale.

Twice as Nice

On essentially every benchmark, the Raspberry Pi 5 comes in two to three times faster than the Pi 4. This is thanks to the new Broadcom BCM2712 system-on-chip (SOC) that runs four ARM A76s at 2.4 GHz instead of the Pi 4’s ARM A72s at 1.8 GHz. This gives the CPUs a roughly 2x – 3x advantage over the Pi 4. (Although the Pi 4 was eminently overclockable in the CM4 package.)

The DRAM runs at double the clock speed. The video core is more efficient and pushes pixels about twice as fast. The new WiFi controller in the SOC allows about twice as much throughput to the same radio. Even the SD card interface is capable of running twice as fast, speeding up boot times to easily under 10 sec – maybe closer to 8 sec, but who’s counting?

Heck, while we’re on factors of two, there are now two MIPI camera/display lines, so you can do stereo imaging straight off the board, or run a camera and external display simultaneously. And it’s capable of driving two 4k HDMI displays at 60 Hz.

There are only two exceptions to the overall factor-of-two improvements. First, the Gigabyte Ethernet remains Gigabyte Ethernet, so that’s a one-ex. (We’re not sure who is running up against that constraint, but if it’s you, you’ll want an external network adapter.) But second, the new Broadcom SOC finally supports the ARM cryptography extensions, which make it 45x faster at AES, for instance. With TLS almost everywhere, this keeps crypto performance from becoming the bottleneck. Nice.

All in all, most everything performance-related has been doubled or halved appropriately, and completely in line with the only formal benchmarks we’ve seen so far, it feels about twice as fast all around in our informal tests. Compared with a Pi 400 that I use frequently in the basement workshop, the Pi 5 is a lot snappier.

Continue reading “A Raspberry Pi 5 Is Better Than Two Pi 4s”

The Questionable Benefits Of Paying More For Air Quality Monitors

Does paying more for air quality monitors (AQMs) make sense? This was the question which [Achim Haug] at the Air Gradient project sought to answer, with the answer being a rather revealing ‘not at all’. Using data from the independent South Coast Air Quality Management District agency (South Coast AQMD), a plot was created of a range of commercially available AQMs for PM2.5 pollutants and their performance against a reference monitor. Here a value of 1.00 would mean performance equal to the (expensive, calibrated) reference.

R2 vs Price. Data Source: South Coast AQMD Data
R2 vs Price. Data Source: South Coast AQMD Data

This plot shows clearly that paying more for an AQM does not get you better performance, with the reason for this explored in a follow-up article by [Achim], where a range of AQMs are checked for which PM2.5 sensors they actually use. Perhaps unsurprisingly, most AQMs use the same PM2.5 sensors, with the sensor module not really affecting the cost of the AQM as they all cost about $10-20 in bulk.

Rather it seems that the other sensors (for CO2, NO2 and other measurements) along with features such as WiFi, LoRa determine much of the price tag. For getting good measurements, properties such as airflow over the sensors, the implemented compensation algorithms are probably the main things you want to look at when purchasing (or building)  an AQM.

(Heading image: particulate matter sizes, relative to a human hair. Credit: California ARB)

The Oldest Living Torrent Is 20 Years Old

Twenty years ago, in a world dominated by dial-up connections and a fledgling World Wide Web, a group of New Zealand friends embarked on a journey. Their mission? To bring to life a Matrix fan film shot on a shoestring budget. The result was The Fanimatrix, a 16-minute amateur film just popular enough to have its own Wikipedia page.

As reported by TorrentFreak, the humble film would unknowingly become a crucial part of torrent history. It now stands as the world’s oldest active torrent, with an uptime now spanning a full 20 years. It has become a symbol of how peer-to-peer technology democratized distribution in a fast-changing world.

Continue reading “The Oldest Living Torrent Is 20 Years Old”

Looking Inside A 3D Printer Nozzle With Computed Tomography

Have you ever wondered what’s actually going on inside the hotend of your 3D printer? It doesn’t seem like much of a mystery — the filament gets melty, it gets squeezed out by the pressure of the incoming unmelty filament, and lather, rinse, repeat. Or is there perhaps more to the story?

To find out, a team from the University of Stuttgart led by [Marc Kreutzbruck] took the unusual step of putting the business end of a 3D printer into a CT scanner, to get a detailed look at what’s actually going on in there. The test setup consisted of a Bondtech LGX extruder and an E3D V6 hot end mounted to a static frame. There was no need for X-Y-Z motion control during these experiments, but a load cell was added to measure extrusion force. The filament was a bit specialized — high-impact polystyrene (HIPS) mixed with a little bit of tungsten powder added (1% by volume) for better contrast to X-ray. The test system was small enough to be placed inside a micro CT scanner, which generated both 360-degree computed tomography images and 2D radiographs.

The observations made with this experimental setup were pretty eye-opening. The main take-home message is that higher filament speed translates to less contact area between the nozzle wall and the melt, thanks to an air gap between the solid filament and the metal of the nozzle. They also saw an increased tendency for the incoming filament to buckle at high extruder speeds, which matches up with practical experience. Also, filament speed is more determinative of print quality (as measured by extrusion force) than heater temperature is. Although both obviously play a role, they recommend that if higher print speed is needed, the best thing to optimize is hot end geometry, specifically an extended barrel to allow for sufficient melting time.

Earth-shattering stuff? Probably not, but it’s nice to see someone doing a systematic study on this, rather than relying on seat-of-the-pants observations. And the images are pretty cool too.