RustyArc
4th Jun 2019, 08:46 PM
Having more-or-less decided to get a cheap Ebay milling machine, my thoughts turned to kitting it out with a DRO, in particular, the TouchDRO setup that's designed to use a cheap Android tablet:
https://www.yuriystoys.com/p/android-dro.html
I like the idea of the extra features it offers and the scope for more features with updates to the app. And having a tablet at hand could be very useful (I use a Google spreadsheet on my phone for lathe feeds and speeds).
Also, the cheapness seemed attractive - I planned to buy a cheap mill that wasn't going to be the most accurate thing in the world, so dropping a bunch of cash on a DRO for it doesn't make much sense.
So cost of tablet aside, all that was needed was an MSP430 Launchpad - $20 a Bluetooth module - $6 and some scales. Hunting about, I came across this read head:
https://www.machineryhouse.com.au/D696 - $88
And this scale:
https://www.machineryhouse.com.au/D694 - $55
The scale comes as a 1.5m strip that can be cut to whatever length and simply stuck to the appropriate surface on the machine, making for, potentially, a very simple installation.
The 1.5m would be enough to do all 3 axes, and then it'd be 3 of the read heads.
That all adds up to $345 for an easy-to-install 3-axis DRO setup (or $268 with the H&F sale).
So I ordered all the bits, although just one of the read heads. The MSP430 and Bluetooth module arrived first - installing the firmware was pretty straightforward and that part was up and going pretty quickly. The scale and reader from Hare & Forbes took a bit longer, and when it arrived, I encountered my first challenge - the read head had a cable and mini-DIN plug, but no pinout showing power and signals. I lopped off the plug, and with a lot of Googling, found the colour code for the 8 wires in the cable. I had to guess the supply voltage was 5V (there's a range of possibilities) and hooking up the scope to the output of the quadrature encoder, saw a signal when I moved the read head along the magnetic strip. Except it was a *really* low signal, i.e. 75mV amplitude, not the 5V TTL signal I was expecting. I tried winding up the supply voltage to 7V, and the amplitude rose to 100mV, but I wasn't willing to try any higher voltage for fear of frying the read head.
The MSP430 expected to see a 0 to 3.3V signal. 75mV wasn't going to cut it. The head puts out a pair of complementary outputs for each of the A and B channel, which is good for common-mode noise rejection, and for the purposes of boosting the signal up to something usable, it's ideal for putting into the inputs of an op-amp, or even better, an instrumentation amplifier. Fortunately I happened to have a few at hand, and with the right gain selected, had a 0-3.3V single-ended signal.
So hooked up the A and B connections for the X axis, and it worked - the axis counted up and down as I moved the read head either direction on the magnetic strip. Only problem was, it didn't seem to increment as quickly as I thought it should. After sorting out the scaling factor, and running the read head next to a ruler, it proved to be accurate and repeatable over 300mm, but the resolution was only 0.5mm, which is kind of rubbish. The H&F page has "5µm" so 500µm is a few orders out.
Not really sure where to go from here. I kind of need the read head to be putting out 100 more pulses than it's doing at the moment...
https://www.yuriystoys.com/p/android-dro.html
I like the idea of the extra features it offers and the scope for more features with updates to the app. And having a tablet at hand could be very useful (I use a Google spreadsheet on my phone for lathe feeds and speeds).
Also, the cheapness seemed attractive - I planned to buy a cheap mill that wasn't going to be the most accurate thing in the world, so dropping a bunch of cash on a DRO for it doesn't make much sense.
So cost of tablet aside, all that was needed was an MSP430 Launchpad - $20 a Bluetooth module - $6 and some scales. Hunting about, I came across this read head:
https://www.machineryhouse.com.au/D696 - $88
And this scale:
https://www.machineryhouse.com.au/D694 - $55
The scale comes as a 1.5m strip that can be cut to whatever length and simply stuck to the appropriate surface on the machine, making for, potentially, a very simple installation.
The 1.5m would be enough to do all 3 axes, and then it'd be 3 of the read heads.
That all adds up to $345 for an easy-to-install 3-axis DRO setup (or $268 with the H&F sale).
So I ordered all the bits, although just one of the read heads. The MSP430 and Bluetooth module arrived first - installing the firmware was pretty straightforward and that part was up and going pretty quickly. The scale and reader from Hare & Forbes took a bit longer, and when it arrived, I encountered my first challenge - the read head had a cable and mini-DIN plug, but no pinout showing power and signals. I lopped off the plug, and with a lot of Googling, found the colour code for the 8 wires in the cable. I had to guess the supply voltage was 5V (there's a range of possibilities) and hooking up the scope to the output of the quadrature encoder, saw a signal when I moved the read head along the magnetic strip. Except it was a *really* low signal, i.e. 75mV amplitude, not the 5V TTL signal I was expecting. I tried winding up the supply voltage to 7V, and the amplitude rose to 100mV, but I wasn't willing to try any higher voltage for fear of frying the read head.
The MSP430 expected to see a 0 to 3.3V signal. 75mV wasn't going to cut it. The head puts out a pair of complementary outputs for each of the A and B channel, which is good for common-mode noise rejection, and for the purposes of boosting the signal up to something usable, it's ideal for putting into the inputs of an op-amp, or even better, an instrumentation amplifier. Fortunately I happened to have a few at hand, and with the right gain selected, had a 0-3.3V single-ended signal.
So hooked up the A and B connections for the X axis, and it worked - the axis counted up and down as I moved the read head either direction on the magnetic strip. Only problem was, it didn't seem to increment as quickly as I thought it should. After sorting out the scaling factor, and running the read head next to a ruler, it proved to be accurate and repeatable over 300mm, but the resolution was only 0.5mm, which is kind of rubbish. The H&F page has "5µm" so 500µm is a few orders out.
Not really sure where to go from here. I kind of need the read head to be putting out 100 more pulses than it's doing at the moment...