A raspberry pi-based digital readout above an old lathe

Roll Your Own DRO With An Added Twist

When using a manual machine tool such as a lathe or milling machine, there can be a lot of pressure to read the position and feed the axes at the correct rate. That’s why modern machines typically have some form of digital read-out (DRO). [Stefano Bertelli] has created a simple Raspberry Pi based DRO with an additional twist, that of a linked motor drive output.

A view of the custom RS485 interfaced DRO readout and motor controller
Realtime encoder position reading and motor control are best done with a dedicated microcontroller, ideally with a proper RTOS.

The axes that need to be monitored should be mechanically attached to a position sensor like a linear encoder or a rotary type. Using a linear sensor with a linear axis instead of a rotary encoder on the downstream dial is better. For the readout unit, [Stefano] used a WaveShare 7-inch touchscreen module with a Raspberry Pi 3 for the UI of the readout unit. The Pi has a custom-designed HAT, that performs power conditioning and provides a robust RS485 interface. Connected via that RS485 link is another custom PCB based on an STM32F411 with a few supporting power supplies and interfacing components. The job of this board is to interface to the position encoders, reading positioning pulses using interrupts. There is an additional stepper motor drive courtesy of a ULN2003 Darlington driver to allow the control of a single motorised axis. An additional motor driver module is required, which should be no surprise since driving a milling machine axis will require a fairly beefy motor. This GitHub repo contains the FreeRTOS-based firmware for this board. This motor drive has the ability to be connected to a measuring axis in a programmable way, enabling one axis to be adjusted to follow or jump in controlled steps with another. This feature can significantly simplify certain types of machining operations, as [Stefano] elaborates in the video.

Lastly, the Raspberry Pi runs a simple Python application with Kivy for the GUI. As [Stefano] explains in the video below, this makes debugging and modification quite simple.

Adding DROs to an older machine is an obvious but valuable hack. Here’s another way to do it. If that’s too much work, then you could just hack a digital readout calliper in there.

Continue reading “Roll Your Own DRO With An Added Twist”

Hackaday Podcast Episode 260: KiCad 8, Two Weather Stations, And Multiple I2Cs

It’s a leap year, so Elliot and Dan put the extra day to good use tracking down all the hottest hacks from the past week and dorking out about them. There’s big news in the KiCad community, and we talked about all the new features along with some old woes. Great minds think alike, apparently, since two different e-ink weather stations made the cut this week, as did a floating oscilloscope, an automated film-developing tank, and some DIY solar panels.

We talked about a hacker who figured out that water makes a pretty good solar storage medium, and it’s cheaper than lithium, another who knows that a crappy lathe is better than no lathe, and what every hacker should know about Ethernet. Is there a future for room-temperature superconductors? Maybe it just depends on how cold the room is.

 

Grab a copy for yourself if you want to listen offline.

Continue reading “Hackaday Podcast Episode 260: KiCad 8, Two Weather Stations, And Multiple I2Cs”

Hackaday Podcast Episode 254: AI, Hijack Guy, And Water Rockets Fly

This week Hackaday Editors Elliot Williams and Al Williams chew the fat about the Haier IOT problem, and all other top Hackaday stories of the week. Want to prove your prowess at C programming? Take a quiz! Or marvel at some hairy display reverse engineering or 3D-printed compressor screws. On the lighter side, there’s an immense water rocket.

After Al waxes nostalgic about the world of DOS Extenders and extended memory, the guys talk about detective work: First detecting AI-written material, and finally, a great detective story about using science to finally (maybe) crack the infamous DB Cooper hijacking case.

Follow along with the links below. Don’t forget to tell us what you think about this episode in the comments!

Here’s a string of bits containing the podcast that looks suspiciously like an MP3!

Continue reading “Hackaday Podcast Episode 254: AI, Hijack Guy, And Water Rockets Fly”

The Chocolate Must Flow This Holiday Season

After a long December of hand-coating chocolates for relatives last year, [Chaz] decided that enough was enough and built a chocolate enrobing machine to do the dirty work for him. As a side project, he built a rotary tumbler to chocolate-coat things like wasabi peas, which we assume are designated for [Chaz]’s enemies.

This build started with an off-the-shelf chocolate fountain for which [Chaz] designed and printed a new nozzle in PLA. He also knocked off the flutes that make it fountain on the band saw and removed the rest of the material on the lathe.

The conveying bit comes from a conveyor toaster oven that [Chaz] had lying around — he removed the conveyor and hooked it up to a motor from his collection using a slightly modified flex coupler.

With the chocolate enrober complete, [Chaz] moved on building to the rotary tumbler, which is made from two thrift store pans hammered together at the edges and connects up to the front of a KitchenAid mixer. The final verdict was that this did not work as well as the enrober, but it wasn’t a complete bust — wasabi peas (and most of the kitchen) got coated in chocolate.

While we’re not sure we’d use that PLA chocolate pump more than once, we sure would like to enrobe some things in chocolate, and this seems like a good way to get it done. Check out the build video after the break.

Chocolate is good for more than coating everything in sight. Speaking of sight, check out these chocolate optics.

Continue reading “The Chocolate Must Flow This Holiday Season”

When Nearly Flat Isn’t Really Flat

An aerial photo of the UK city of Milton Keynes
Is Mk really flat? Thomas Nugent, CC BY-SA 2.0.

From where I am sitting, the earth is flat. The floor that runs the length of the unit my hackerspace sits in is flat, the concrete apron behind it on which we test our Hacky Racers is flat, and a few undulations in terrain notwithstanding, it remains flat as I walk up the road towards Stony Stratford.

Of course, Hackaday hasn’t lost its mind and joined the conspiracy theorists, the earth is definitely spherical as has been known and proved multiple times since antiquity. But my trivial observation made in a damp part of Buckinghamshire still holds; that for a given value of flat which disregards a few lumps and bumps in the ground, my corner of the English city of Milton Keynes is pretty flat. Which leads from a philosophical discussion to an engineering one, if I can reasonably describe a city-sized area on an Earth-sized sphere as flat, how flat does a surface have to be to be considered flat? And from that stems a fascinating story of the evolution of precision machining. Continue reading “When Nearly Flat Isn’t Really Flat”

A 1/5th scale hydraulic jack model

Miniature Hydraulic Jack Is A Scale Marvel

Most hydraulic jacks are big tools that can lift upwards of 1000 kg but [Maker B]’s is quite a bit smaller than average.

The world’s smallest hydraulic jack is a tiny hand-machined model made out of tiny pieces of iron, brass and copper. But here’s the kicker: It’s a real hydraulic jack with real hydraulic fluid! At 1/5th scale, it obviously isn’t as strong as a full-size jack, but it can still easily lift an impressive 24 soda cans! Switching between the lathe and mill, [Maker B] shows how all the parts of the jack are made from stock metal in detail, and even explains in simple terms how a hydraulic jack works in this masterpiece of a video.

Over the years, we’ve seen plenty of tiny objects cranked out from stock pieces of metal — often bolts. But the fact that the end result here is a working tool, puts it into a decidedly less common niche. Of course, given what we’ve seen from [Maker B] in the past, it’s hardly a surprise.
Continue reading “Miniature Hydraulic Jack Is A Scale Marvel”

Creating A New Metal Rohde & Schwarz EB200 Miniport Receiver Dial Knob

Recently [Roberto Barrios] got his hands on a Rohde & Schwarz EB200 monitoring and surveillance receiver that, despite its late 90s vintage, was in mint condition. Aside from damage to the main dial, that is, which was very much broken. With no off-the-shelf replacement available in 2023, the obvious answer was to get a close-enough dial knob with the rough proportions and use a lathe to machine it into shape. Initially, [Roberto] had used some filler material to replace the front of the original knob that was missing, but this was a decidedly inferior tactile experience with questionable long-term reliability.

Dimensions of the Rhode & Schwarz EB200 dial knob. (Credit: Roberto Barrios)
Dimensions of the Rhode & Schwarz EB200 dial knob. (Credit: Roberto Barrios)

The challenge in replacing the original knob with a proper replacement was in how the dial knob is mounted on the receiver, as an internally threaded shell that goes on the internal dial encoder assembly. With a lathe at his behest, taking an off-the-shelf dial knob that accepts a 6 mm shaft and turning it into a compatible knob was a straightforward affair. Removing the excess material and creating the internal 1 mm pitch thread allowed the newly made knob to fit on the receiver like an OEM part. The only niggle was having to remove 1.8 mm off the face of the brass body to get the knob to sit close to the front panel.

Unlike the old patched-up knob, this new one is fully out of metal and has the absolutely essential feature of the recessed area for easy fine-tuning. Although perhaps not the most exciting fix for old gear, it’s decidedly essential to keep it functional.