Zeroing CNC Mills With OpenCV

For [Jay] and [Ricardo]’s final project for [Dr. Bruce Land]’s ECE4760 course at Cornell, they tackled a problem that is the bane of all machinists. Their project finds the XY zero of a part in a CNC machine using computer vision, vastly reducing the time it take to set up a workpiece and giving us yet another reason to water down the phrase ‘Internet of Things’ by calling this the Internet of CNC Machines.

For the hardware, [Jay] and [Ricardo] used a PIC32 to interface with an Arducam module, a WiFi module, and an inductive sensor for measuring the distance to the workpiece. All of this was brought together on a PCB specifically designed to be single-sided (smart!), and tucked away in an enclosure that can be easily attached to the spindle of a CNC mill. This contraption looks down on a workpiece and uses OpenCV to find the center of a hole in a fixture. When the center is found, the mill is zeroed on its XY axis.

The software is a bit simpler than a device that has OpenCV processing running on a microcontroller. Detecting the center of the bore, for instance, happens on a laptop running a few Python scripts. The mill attachment communicates with the laptop over WiFi, and sends a few images of the downward-facing camera over to the laptop. From there, the laptop detects the center of the bore in the fixture plate and generates some G-code to send over to the mill.

While the device works remarkably well, and is able to center the mill fairly quickly and without a lot of user intervention, there were a few problems. The camera is not perfectly aligned with the axis of the spindle, making the math harder than it should be. Also, the enclosure isn’t rated for being an environment where coolant is sprayed everywhere. Those are small quibbles, and these problems could be fixed simply by designing and printing another enclosure. The device works, though, and really cuts down on the time it takes to zero out a mill.

You can check out the video description of the build below.

Continue reading “Zeroing CNC Mills With OpenCV”

DIY Mini Printer Is 95% Wood, Prints Tiny Cute Images

This little DIY 64×64 graphical printer by [Egor] is part pen plotter in design, somewhat dot matrix-ish in operation, and cleverly designed to use unmodified 9G servos. The project page is all in Russian (translation to English here) but has plenty of photos that make the operation and design clear. Although nearly the entire thing is made from laser-cut wood, [Egor] says that a laser cutter is optional equipment. The first version was entirely cut with hand tools.

screenshot-2016-12-06-10-49-13Small DIY CNC machines driven over a serial line commonly use Arduinos and CD-ROM drive guts (like this Foam Cutter or this Laser Paper Cutter) but this build uses its own custom rack-and-pinion system, and has some great little added details like the spring-loaded clip to hold paper onto the print pad.

The frame and parts (including all gears) are laser-cut from 4 mm plywood and the unit is driven by three small servos. A simple Java program processes images and an Arduino UNO handles the low-level control. A video of everything in action is embedded below.
Continue reading “DIY Mini Printer Is 95% Wood, Prints Tiny Cute Images”

Breathe Easy With A Laser Cutter Air Filter

A laser cutter is a great tool to have in the shop, but like other CNC machines it can make a lousy neighbor. Vaporizing your stock means you end up breathing stuff you might rather not. If you’re going to be around these fumes all day, you’ll want good fume extraction, and you might just consider a DIY fume and particulate filter to polish the exhausted air.

15203365_644939182347358_619032134291602214_nWhile there’s no build log per se, [ZbLab]’s Facebook page has a gallery of photos that show the design and build in enough detail to get the gist. The main element of the filter is 25 kg of activated charcoal to trap the volatile organic compounds in the laser exhaust. The charcoal is packed into an IKEA garbage can around a prefilter made from a canister-style automotive air cleaner – [ZbLab] uses a Filtron filter that crosses to the more commonly available Fram CA3281. Another air cleaner element (Fram CA3333) makes sure no loose charcoal dust is expelled from the filter. The frame is built of birch ply and the plumbing is simple PVC. With a 125mm inlet it looks like this filter can really breathe, and it would easily scale up or down in size according to your needs.

No laser cutter in your shop to justify this filter, you say? Why not build one? Or, if you do any soldering, this downdraft fume extractor is a good way to clear the air.

CNC Dummies For Routers

[This Old Tony] has a few videos that have made appearances on Hackaday. His latest one is CNC Dummies for Routers (see below). The subtitle, CNC Basics, is an honest one. If you’re already well versed in GCode and Mach 3, you probably won’t make it through the 14 minute video (although Tony is pretty entertaining even if you know what he’s talking about).

By his own admission, this is really CNC basics for hobby-grade CNC routers and mills. He starts off talking about his custom-built machine along with some common machines in the $500-$5000 range. He then gives a simple sketch of what GCode looks like.

Continue reading “CNC Dummies For Routers”

Taig Mill Anointed With Ball Screws (at Last!)

Yup, we can hear a crowd full of “not-a-hack” loading their cannons as we speak, but this machine has a special place in the community. For years, the Taig milling machine has remained the go-to micro mill for the light-duty home machine shop. These machines tend to be adorned and hacked to higher standards, possibly because the community that owns these tools tends to enjoy machining for machining’s sake–or possibly because every single component of the mill is available as a replacement part online. For many, this machine has been a starting point to making chips at home. (In fact, Other Machine Co’s CTO, Mike Estee, began his adventure into machining with a Taig.)

For years, Taig has sold their machines with a leadscrew and a brass nut that could be tensioned to cut down the backlash. Backlash still remains an issue for the pickiest machinists, though; so, at long last, Taig has released a backlash-free ball-screw variant in two incarnations: an all-in-one machine pre-fitted with ballscrews and an upgrade kit for customers that already decorated their garage with the lead-screw model.

In the clip below [John] takes us on a tour of the challenges involved in cramming 3, 12-mm ballscrews into the original topology. As we’d expect, a few glorious chunks of metal have been carved away to make space for the slightly-larger ballnut. Despite the cuts, the build is tidy enough to fool us all into thinking that ballscrews landed in the original design from the start.

Confused why ballscrews are such a giant leap from leadscrews? Lend your eyes and ears a few moment to take in [Al]’s overview on the subject.

Continue reading “Taig Mill Anointed With Ball Screws (at Last!)”

A Truly Classy Metal-Framed Mini CNC

We’ve seen a number of DVD- and CDROM-based small CNC machines here, but few are as simply beautiful as this one by [julioberaldi] over on Instructables (translated from Portuguese here).

fbis2gciv0ajsdxWe’ll cut to the chase; it’s the frame. Cut from steel sheet scraps with a hacksaw, and welded or soldered together with “bar solder”. It looks like a lot of sanding, painting, and polishing went on. The result is something we’d be proud to have on our desk.

For now, it simply draws with a pen. But watch the video, embedded below, and you’ll see that it runs exceptionally smoothly. If we’re reading the Instructable right, the next step is to turn this into a CNC cutter. We can’t wait to see where the project goes from here.

Continue reading “A Truly Classy Metal-Framed Mini CNC”

An Introduction To CNC Machine Control

We recently gave you some tips on purchasing your first milling machine, but what we didn’t touch on was CNC (Computer Numerical Control) systems for milling machines (or other machines, like lathes). That’s because CNC is a complex topic, and it’s deserving of its own article. So, today we dive into what CNC is, how it works, and ultimately if it’s right for you as a hobbyist.

Continue reading “An Introduction To CNC Machine Control”