Hacking Digital Calipers For Automated Measurements And Sorta-Micron Accuracy

We’ll take a guess that most readers have a set of digital calipers somewhere close to hand right now. The cheapest ones tend to be a little unsatisfying in the hand, a bit crusty and crunchy to use. But as [Matthias Wandel] shows us, these budget tools are quite hackable and a lot more precise than they appear to be.

[Matthias] is perhaps best known around these parts for making machine tools using mainly wood. It’s an unconventional material for things like the CNC router he loves to hate, but he makes it work through a combination of clever engineering and a willingness to work within the limits of the machine. To assess those limits, he connected some cheap digital calipers to a Raspberry Pi by hacking the serial interface that seems to be built into all of these tools. His particular calipers output a pair of 24-bit words over a synchronous serial connection a couple of times per second, but at a level too low to be read by the Pi. He solved this with a clever resistor ladder to shift the signals to straddle the 1.8 volt transition on the Pi, and after solving some noise problems with a few strategically placed capacitors and some software debouncing, he was gathering data on his Pi.

Although his setup was fine for the measurements he needed to make, [Matthias] couldn’t help falling down the rabbit hole of trying to milk better resolution from the calipers. On paper, the 24-bit output should provide micron-ish resolution, but sadly, the readings seem to fluctuate rapidly between two levels, making it difficult to obtain an average quickly enough to be useful. Still, it’s a good exercise, and overall, these hacks should prove handy for anyone who wants to dip a toe into automated metrology on a budget.

Continue reading “Hacking Digital Calipers For Automated Measurements And Sorta-Micron Accuracy”

DIY Digital Caliper Measures Up

You might wonder why [Kevin] wanted to build digital calipers when you can buy them for very little these days. But, then again, you are reading Hackaday, so we probably don’t need to explain it.

The motivation, in this case, was to learn to build the same mechanism the commercial ones use for use in precise positioning systems. We were especially happy to see that [Kevin’s] exploration took him to a Hackaday.io project which led to collaboration between him and [Mitko].

Continue reading “DIY Digital Caliper Measures Up”

Solar Panel Keeps Cheap Digital Calipers Powered Up

There’s no doubt that cheap digital calipers are useful, especially when designing 3D-printed parts. Unfortunately, cheap digital calipers are also cheap, and tend to burn through batteries quickly. Sure, you can remove the battery when you’re done using them, but that’s for suckers — winners turn to solar power to keep their calipers always at the ready.

[Johan]’s solar upgrade begins with, unsurprisingly, a solar cell, one that just fits on the back of his digital calipers. Like most of these cheap calipers, this one is powered by a single 1.5 V LR44 button cell, while the polycrystalline solar cell is rated for 5 V, so [Johan] used a red LED as a crude voltage regulator. He also added a stack of fourteen 100 μF SMD capacitors soldered together in parallel. The 1206 devices form a 1,400 μF block that’s smaller than the original button cell so that everything fits in the vacated battery compartment. It’s pretty slick.

Given their agreeable price point, digital calipers are a tempting target for hacking. We’ve seen a ton of them, from accessibility add-ons to WiFi connectivity and even repurposing them for use as DROs. Ever wonder how these things work? We’ve looked at that, too.

Inside Digital Calipers

If you do any kind of machining, 3D printing, or PCB layout, you probably have at least considered buying a pair of calipers. Old-fashioned ones had a dial and were mechanical devices, but lately, digital ones have become quite affordable. We keep meaning to tear a set of ours apart to see what’s inside, but thanks to [learnelectronics], we don’t have to — the video below provides a fascinating look at what’s inside a cheap pair of Harbor Freight calipers.

Honestly, it doesn’t seem like it would be that hard to figure out how far down a bar you are. The trick is the caliper has to be super accurate. Oddly enough, the cheap calipers examined use capacitors as a sensing element.

There is a long flexible PCB stuck to the sliding part with conductive pads. The display unit is also a printed circuit and manages the battery, the display, and the other half of the capacitive sensor. If you want a more detailed explanation of how the sensor actually works, check out capsense.com. If you note, the pattern on the sliding part has traces that look like a square wave, and half have a different phase than the other half. These are the sine plates and the cosine plates. A 100 kHz signal flows through the capacitor, and it is possible to read the direction of travel and the amount of travel easily.

The calipers are very accurate, but it’s possible to improve them. A more practical project is to make them communicate with the outside world.

Continue reading “Inside Digital Calipers”

A digital caliper connected to a tablet computer

Custom Interface Adds USB And Wi-Fi To Digital Calipers

Although old-school machinists typically prefer the mechanical vernier scale on their trusty calipers, many users nowadays buy calipers with a digital readout. These models often come with additional features like differential measurements, or a “hold” function for those situations where you have to maneuver the instrument somewhere deep inside a machine. Another useful feature is a data link that lets you log your measurements on a computer directly instead of manually entering all the values.

The VINCA-branded caliper that [Liba2k] bought has such a data link feature, which requires a USB adapter that’s sold separately. There is a micro-USB connector on the tool itself, but instead of implementing a USB interface, this is used to carry a proprietary serial protocol — a design decision that ought to be classified as a felony if you ask us. Rather than buying the official USB adapter, [Liba2k] decoded the protocol and built his own interface called VINCA Reader that can connect through either USB or Wi-Fi.

The serial format turned out to be a simple serial bus that clocks out 24 bits at a time. In order to adapt its 1.2 V signal level to the 3.3 V used by an ESP32, [Liba2k] designed a simple level shifter circuit using a handful of discrete components. The ESP can communicate with the computer through its Wi-Fi interface, for which [Liba2k] wrote a spreadsheet-like application; alternatively, an ordinary USB cable can be connected to emulate a keyboard for use with any other software.

With its added Wi-Fi feature, the VINCA Reader is actually more complete than the official USB adapter, and will probably be cheaper as well. The serial interface appears to be common to all caliper manufacturers, although many went for a more sensible connector than micro-USB. An automated readout system is particularly handy if you have to make thousands of similar measurements.

Digital Caliper Talks For Accessibility, With This App

A good instrument stays with its owner for a lifetime, becoming part of their essential trusted toolkit to be consulted as a matter of habit. If you use a caliper to measure dimensions  you’ll know this, and a quick glance at its scale or digital display will be second nature. But if you aren’t fortunate enough to have the eyesight to see the caliper, then it’s off-limits, and that’s something [Naomi Wu] has addressed with her open-source accessible speaking caliper app. It’s an Android app that connects to digital calipers that contain Bluetooth connectivity, and as well as speaking aloud the caliper reading it also displays it in very large text on the device screen. As well as the source link from which you can build the app, it’s available for installation directly from the Google Play Store.

If you’re used to [Naomi] from her video tours of the electronics businesses in her native Shenzhen, her eye-catching wearable projects, or her exploits with an industrial CNC machine in her living room, you might be interested to know that aside from this app she’s been a long-time proponent of open-source in China. She was responsible among other projects for the Sino:bit educational computer board, which holds the distinction for her of having secured the first ever Chinese OSHWA certification.

You can see the caliper app in action below the break.

Continue reading “Digital Caliper Talks For Accessibility, With This App”

Improved Digital Caliper Interfacing, Including 3D Printed Connector

[MakinStuff] wrote in to let us know about a project he did for new and improved interfacing to the ubiquitous cheap Chinese digital calipers. Interfacing to this common caliper model is well-trod ground, but his project puts everything about interfacing and reading the data in one place along with some improvements: a 3D printed connector that makes mating to the pads much more stable and reliable, 3d-printed-plug-for-digital-calipersa simple interface circuit for translating the logic levels, and an interrupt-driven sample Arduino sketch to read the data. Making the sketch interrupt-driven means the Arduino never sits and waits for input from the calipers, making it easier have the Arduino do other meaningful work at the same time, ultimately making it easier to incorporate into other projects.

The connector has spaces to insert bare wires to use as contacts for the exposed pads inside the calipers. Add a little hot glue and heat shrink, and you’ll never have to fiddle with a hacked-together connection again.

This common caliper model has been hacked and re-purposed in interesting ways. We’ve seen them used as a Digital Read Out (DRO) on a lathe as well as being given the ability to wirelessly log their data over Bluetooth.

Continue reading “Improved Digital Caliper Interfacing, Including 3D Printed Connector”