CNC Calculator Does What You Can’t

The Hackaday community — and the greater hacker community — can do absolutely anything. Readers of Hackaday regularly pilot spaceships. The transmutation of the elements is a simple science project here, one easily attainable by a high school student. Hackaday readers have solved international crises, climbed Everest, and one day we’re going to have readers accessing Hackaday from an IP address on Mars. There is almost no limit to what our community can do.

This project does the one thing Hackaday readers are utterly incapable of doing. As a cool little bonus, the enclosure for this device is a beautiful work of milled aluminum, anodized in a deep, beautiful black and engraved with exacting precision.

The guts of this build are in essence an Arduino loaded up with some special code that does what no human is capable of doing. Added onto that is a small lithium battery, charging circuit, character display, and a small keypad. There’s really nothing here that can’t be sourced from your favorite AliDXExtremeDeal shop.

The real show here is the beautiful milled aluminum enclosure. This was designed in Fusion360 and milled away on a Tormach CNC loaded up with a slightly worn endmill. The engraving was done with a Lakeshore carbide engraver. The first prototype was finished with a powder coat because that’s the easiest way for someone in a home shop to put a great finish on a milled enclosure. The production versions of this amazing device (available here, although it’s sold out at the time of this writing) are anodized and look fantastic.

If this is the sort of project that appeals to your desire for logic with just a touch of anti-Americanism, be sure to check out the number one most commented post on Hackaday ever. There are a lot of great opinions in the comments section there, even if the topic being discussed is obtuse and weird to the entire Hackaday community.

Continue reading “CNC Calculator Does What You Can’t”

Hackaday Dictionary: Mils And Inches And Meters (oh My)

Measuring length is a pain, and it’s all the fault of Imperial measurements. Certain industries have standardized around either Imperial or metric, which means that working on projects across multiple industries generally leads to at least one conversion. For everyone outside the last bastion of Imperial units, here’s a primer on how we do it in crazy-land.

Definitions

The basic unit of length measurement in Imperial units is the inch. twelve inches make up one foot, three feet make up one yard, and 5,280 feet (or 1,760 yards) make up a mile. Easy to remember, right?

Ironically, an inch is defined in metric as 25.4 millimeters. You can do the rest of the math for exact lengths, but in general, three feet is just shy of a meter, and a mile is about a kilometer and a half. Generally in Imperial you’ll see lots of mixed units, like a person’s height is 6’2″ (that’s shorthand for six feet, two inches.) But it’s not consistent, it’s English; the only consistency is that it’s always breaking its own rules. You wouldn’t say three yards, two feet, and six inches; you’d say 11 1/2 feet. If it was three yards, one foot, and six inches, though, you’d say 3 1/2 yards. There’s no good rule for this other than try to use nice fractions as often as you can.

Users of Imperial units love fractions, especially when it comes to parts of an inch or mile. You’ll frequently find drill bits in fractions of an inch, which can be extremely frustrating when you are trying to do math in your head and figure out if a 17/64″ bit is bigger than a 1/4″ bit (hint, yes, it’s 1/64″ bigger).

A socket wrench set in Imperial fractions on the left and metric on the right.
A socket wrench set in Imperial fractions on the left and metric on the right. Metric is so much easier.

If it wasn’t hard enough already, there came the thousandth of an inch. As the machine age was getting better and better, and parts were getting smaller and more precise, there came a need for more accurate measurements than 1/64 inch. Development of appropriate tools for measuring such fine resolution was critical as well. You can call a 1/8″ bit a .125″ bit, and that means 125 thousandths of an inch. People didn’t like to wrap their mouths around that whole word, though, so it was reduced to “thou.” Others used the latin root for thousand, “mil.” To summarize, a mil is the equivalent of a thou, which is one thousandth of an inch. It should not be confused with a millimeter. It takes about 40 mils to make 1 millimeter. Also, the plural of mil is mils, and the plural of thou is thou.

Tools

Outside calipers for measuring the outer dimensionBy Glenn McKechnie (Own work) [GFDL, CC-BY-SA-3.0 or CC BY-SA 2.5-2.0-1.0], via Wikimedia Commons
Outside calipers for measuring the outer dimensionBy Glenn McKechnie (Own work) [GFDL, CC-BY-SA-3.0 or CC BY-SA 2.5-2.0-1.0], via Wikimedia Commons
Measuring length is done with a variety of tools, from GPS for long distances, to tape measures for feet/meters, and rulers for inches/centimeters. When it comes to very small measurements, the caliper is the tool of choice. This is the kind of tool that should be in everyone’s toolbox. Initially it started with the inside caliper and outside caliper, which were separate tools used to measure lengths. The Vernier caliper combined the two, added a depth meter and a couple other handy features, and gave machinists an all-around useful tool for measuring. Just like the slide rule, though, as soon as digital options became available, they took over. The digital caliper can usually switch modes between decimal inches, fractional inches, and metric.

Also, while slightly off topic, if you haven’t seen this video on getting the most out of your tape measure, it’s well worth a few minutes.

Uses

Every industry has picked a different convention. Plastic sheets are usually measured in mils for thin stuff and millimeters or fractions of an inch for anything greater than 1/32″. Circuit boards combine units in every way imaginable, sometimes combining mils for trace width and metric for board dimensions, with the thickness of the copper expressed in ounces. (That’s not even a unit of length! It represents the amount of copper in one square foot of area and 1 oz is equivalent to 1.4mil.) Most of the time products designed outside of the U.S. are in metric units, while U.S. products are designed in either. When combining different industries, though, the difference in standards gets really annoying. For example, order 1/8″ plexiglass, and you may get 3mm plexiglass instead. Sure the difference is only .175mm (7 thou), but that difference can cause big problems for pieces that are press fit or when making finger joints on boxes, so it’s important that when sourcing components, you not only verify the unit, but if it’s a normal unit for that industry and it’s not just being rounded.

Often you can tell with what primary unit a product is designed with only a few measurements of a caliper. Find a dimension and see if it’s a nice round number in metric. If it’s not, switch it to imperial, and watch how quickly it snaps to a nice number.

Moving forward

Use metric if you can. The vast majority of the world does it. When you are sending designs overseas for production they will convert to metric (though they are used to working in both). It does take time to get used to it (especially when you are dealing with thou/mils), but your temporary discomfort will turn to relief when your design doesn’t crash into the Mars (or more realistically when you don’t have to pull out the Dremel and blade to get your parts to fit together).

Digital Measuring Tape

You’ll never come up short with this measuring tape. That’s because there isn’t actually any tape in the device; it measures distance based on the rotation of a wheel. Roll it across the room and you’ll get an accurate measurement of the distance the little bugger traveled. Like the Etch-a-Sketch from Monday this uses the encoder wheel from a mouse as the input. The IR emitter and sensor from the ubiquitous peripheral find a new home on the PCB that hosts the PIC 16F819. It monitors the rotation, turns it into inches, then spits that number out on a 7 segment display. Handy, and cheap!