Author Topic: Adding Bluetooth to cheap digital indicator  (Read 1263 times)

0 Members and 1 Guest are viewing this topic.

Offline GhrrumTopic starter

  • Newbie
  • Posts: 7
  • Country: us
Adding Bluetooth to cheap digital indicator
« on: July 05, 2026, 06:50:41 pm »
So I want a Bluetooth digital indicator for work, the boss is pretty loose on what we can get tool wise, but a $700 price tag is beyond what he's comfortable with. He was willing to spring for the DIY option though, and since I have an unhealthy amount of unrealistic confidence I decided to do it.

Digital indicator is the cheapest 1 inch travel version with an output port. I suspect the manufacturer knows people are going to hack it as the supposed data cable for it goes up to $200-400, wildly exceeding the cost of the $35-50 indicator.

I got the cheapest ESP32s that ran USB C and cheapest digital indicator (Clockwise Tools DIGR-0105) off Amazon to figure out the idea.

After a couple evenings fiddling about I've got it mostly worked out.


I butchered a bunch of USB Micros until I found one that actually had all four data wires in it and plugged it into the indicator. White wire is the clock signal, green is data, black is ground, and red is a VERY steady -1.5v signal I still can't figure out. The clock and data signals are negative relative to ground so they needed to have NPN transistors to register to the ESP32. I was never so happy that I had a oscilloscope as when I put it on the clock and data wires and could count the peaks to find a 24 bit packet being continuously sent, also a happy surprise, the DIGR-0105 doesn't really turn 'off' so much as just shut off the display. Great for me and maybe a mild inconvenience for battery life.

Anyway, binary breakdown:
The first bits 0-20 are the counts on the indicator scale.
Bit 21 is the positive or negative  indicator. A value of 0 means it's positive, a value of 1 means it's negative.
Bit 22 sets the unit of measure, value of 0 is metric, value of 1 is inches.
Bit 23 isn't really used that I can see on this indicator.


The code is well outside of my wheelhouse though, so I leaned heavily on an AI to get it written I'm not going to post it here begging for help, it works on the Hosyond ESP32 DevKit, I'm pretty sure I can eventually muddle through and get it to work on the XIAO C3. There's a free app called Touch DRO that can understand the input and calibrate to the indicator regardless of how many steps per inch. There was some weirdness with how Clockwise tools handles output of +/- signals and also sends different input for metric and inches.

One of the biggest issues I saw during my brief interaction with a Motionics unit my boss had was the refresh rate. It looked like it was running at about 2-4Hz, which is not terrible for most needs, but I suspect it can hit a higher refresh rate. I've got mine running at the native refresh of the indicator, which is about 8.5Hz. That speed is enough for nearly anything I could want, part of me wishes it was higher, but honestly I don't know that I would notice a change upward in the refresh rate.

Future plan

So the wiring diagram shows where I'm going to go, I've got those boards and batteries on order. I'll be 3d printing a back enclosure for the battery and ESP32. I'll be running the power for the indicator off one of the other GPIOs on the board since it won't exceed the ratings on it (3v at about 0.1mA). My favorite thing is that the XIAO ESP32-C3 that's going to go in this will handle battery charging from the USB-C port without my meddling. Considering I want this to be as idiot proof as possible I'm seriously considering removing the USB Micro port on the indicator if I make one for other folks.

It looks like the board in the indicator has a lot of blank and unused space out towards the rim, I drilled through a spot to allow me to solder wires on to the battery terminals and directly into the clock and data pins of the RS232 port. That will allow me to pass through the back plate and into the XIAO. I've got one unit that is there for stupid ideas and this idea seemed a perfectly stupid idea and ripe for such a thing.

If you have any ideas what the red -1.5v wire in the 4 wire RS232 is doing, let me know. I put it on the scope and there's no signal there, just a solid reference voltage. I'm guessing it is something to do with their data output dinglebob that costs almost 10x what the indicator does.

Second, while TouchDRO works fine, I want a single axis dedicated app to do the job. All of the existing Bluetooth indicators have one, sure, but they also have stuff that stops them working with anything else, both Motionics and Mitutoyo won't read anything but their indicators. I leaned hard on the robot (AI) overlords and got something very simple knocked together, once parts arrive I can start troubleshooting. I've run it with some fake data to make sure the app compiled, but there's nothing like actually seeing it work with actual equipment.

I'm open to input on things, I'm thinking on how to get this all up on GitHub to have a better unified explanation of what the heck I'm doing.
« Last Edit: July 05, 2026, 06:52:54 pm by Ghrrum »
 

Offline GhrrumTopic starter

  • Newbie
  • Posts: 7
  • Country: us
Re: Adding Bluetooth to cheap digital indicator
« Reply #1 on: July 05, 2026, 06:55:29 pm »
Images of the front and back of the board before going in with the drill.


Picture in place after drilling through board (it still works).
 

Offline lichurbagan

  • Regular Contributor
  • *
  • Posts: 230
  • Country: bd
Re: Adding Bluetooth to cheap digital indicator
« Reply #2 on: July 06, 2026, 11:52:50 am »
Thanks for sharing. How much did your whole project cost including components and PCB?
 

Offline GhrrumTopic starter

  • Newbie
  • Posts: 7
  • Country: us
Re: Adding Bluetooth to cheap digital indicator
« Reply #3 on: July 08, 2026, 12:54:29 am »
Thanks for sharing. How much did your whole project cost including components and PCB?

For the development side:
Clockwise DIGR-0105 https://www.amazon.com/Clockwise-Tools-DIGR-0105-Electronic-Conversion/dp/B01G9K8U5G/ref=sr_1_1 $30 USD
Hosyond 3Pack ESP32 ESP-32S Development Board USB-C https://www.amazon.com/dp/B0F1MS5S8R $15 USD

The stuff I've ordered to actually make it go:
Seeed Studio XIAO ESP32-C3 https://www.seeedstudio.com/Seeed-Studio-XIAO-ESP32C3-3PCS-p-5920.html $15 USD
Adafruit Li-Po batteries (3) https://www.digikey.com/en/products/detail/adafruit-industries-llc/3898/9685336 $20 USD

Prices are approximate, but should be pretty close.

The rest of the stuff (NPN transistors, breadboards, etc) I had kicking around already from being overtly curious and unrealistically confident.

I'll happily share out the code and the app if you want it, fair warning though. I contributed about 2% to the app and the code for the ESP32, the robots did the rest and I just did the proofing and troubleshooting. I suspect there are better ways to do the code, but considering it looks like it works? I'm happy.

This can and does all work with the bog standard ESP32 Dev Kit I pulled from Amazon, the biggest reason I'm migrating away from it is the XIAO can charge the battery from the USB-C port. You can still do power control, deep sleep, wake, etc using a standard ESP32, but the ones I have don't have the ability to charge a battery that's something I want.

XIAO ESP32s turned up today too, so I'll be poking at them in the near future.
 
« Last Edit: July 08, 2026, 01:01:13 am by Ghrrum »
 

Offline Renate

  • Super Contributor
  • ***
  • Posts: 1783
  • Country: de
    • Renate's Android Page
Re: Adding Bluetooth to cheap digital indicator
« Reply #4 on: July 08, 2026, 04:16:01 am »
I think that you have that all a bit backwards.
They use a USB connector for a non-USB purpose but they kind of stick to usage.

Cheap USB cables often had the wrong color code.
It was alright on both ends until you cut it.

You can clearly see from the PCB:
Pin 5 = your red = ground
Pin 4 = NC = ID
Pin 3 = Data/Clk? = D+
Pin 2 = Data/Clk? = D-
Pin 1 = your black, regulated +1.5V = Vbus

Simple check: ohm out your red wire to the metal case of the indicator.

If you plug a live regular USB cable into this you could blow it up sending +5V into the 1.5V circuitry.
Your black = 1.5V regulated
 

Offline GhrrumTopic starter

  • Newbie
  • Posts: 7
  • Country: us
Re: Adding Bluetooth to cheap digital indicator
« Reply #5 on: July 08, 2026, 08:33:06 am »
Hi Renate,
Pin1 (black) has direct connectivity to the negative side of the 3v coin cell battery.
The data and clock wires I determined by watching the signal on my scope while moving the plunger up and down. Clock doesn't change, while data moves with the plunger. Pin5 (red) doesn't change when the unit is powered on or off (this indicator doesn't have a true "off" state, there is always clock and signal being sent out at around 8.5Hz), it doesn't have any continuity to ground or the power pin.



I butchered several cables to find a data one amidst all the charging only cables that have started to grow in my bucket of wires, I think that particular USB Micro was from a kindle reader that showed up about 10-15 years ago. Now it's a bench cable until it gets too short.
 

Offline Renate

  • Super Contributor
  • ***
  • Posts: 1783
  • Country: de
    • Renate's Android Page
Re: Adding Bluetooth to cheap digital indicator
« Reply #6 on: July 08, 2026, 10:14:16 am »
You can see that the "fat side" of the USB is on the top.
Compare the reference here.
The left side in your photo is pin#1, Vbus.
It goes right to the output of the regulator IC.
Trace pin #5. It's the same as the shell of the connector.
That connects to the center contact of the button cell.
The center of a lithium cell is minus.
 
The following users thanked this post: Ghrrum

Offline GhrrumTopic starter

  • Newbie
  • Posts: 7
  • Country: us
Re: Adding Bluetooth to cheap digital indicator
« Reply #7 on: July 08, 2026, 11:38:23 pm »
Right, I'm following what a normal micro USB would do here, but this is not wired as a micro USB. If I plugged a USB into the indicator it would break, the reviews on Amazon are rife with folks that did so. Further they have a friendly warning label on the box not to do it too.

I having a bit of a disconnect understanding what you are trying to communicate.
 

Offline Renate

  • Super Contributor
  • ***
  • Posts: 1783
  • Country: de
    • Renate's Android Page
Re: Adding Bluetooth to cheap digital indicator
« Reply #8 on: July 09, 2026, 03:21:06 am »
You're being confused by a mis-colored USB cable.

Use your DVM with the black on the shell of the USB micro connector.
Measure all five pins of the USB connector, they are all positive.
Your "???" labelled pin is the +1.5V supply.
There is no minus anything.
 

Offline GhrrumTopic starter

  • Newbie
  • Posts: 7
  • Country: us
Re: Adding Bluetooth to cheap digital indicator
« Reply #9 on: July 09, 2026, 11:13:36 pm »
No, the red wire is -1.5v in relation to the negative side of the battery.
 

Offline Renate

  • Super Contributor
  • ***
  • Posts: 1783
  • Country: de
    • Renate's Android Page
Re: Adding Bluetooth to cheap digital indicator
« Reply #10 on: July 10, 2026, 02:10:34 am »
As I said, measure anything you like in reference to the actual ground (the shell of the USB) and you will find all the voltages are positive.

Your "black" is not ground. The "red" wire is your actual ground. Forget the USB cable, it's wrong.
 

Offline GhrrumTopic starter

  • Newbie
  • Posts: 7
  • Country: us
Re: Adding Bluetooth to cheap digital indicator
« Reply #11 on: July 10, 2026, 11:15:27 pm »
The shell of the USB has no resistance to the negative side of the battery.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

-->