Author Topic: TouchDRO on a mini lathe  (Read 18932 times)

Offline modeldozer

  • Sr. Member
  • ****
  • Posts: 299
  • Country: es
  • Valencia, Spain
    • AJ´s Truckmodeling
TouchDRO on a mini lathe
« on: December 21, 2014, 06:41:50 AM »
Have bought two digital readouts a few years back, with the intention to fit them to my mini lathe.  As they have fairly small displays it would be quite tricky to mount them in a safe place and still be able to read them, so ever since have been investigating a suitable display.

Searching the web for information on the protocol used by these scales to communicate, I stumbled on TouchDRO by Yuriy Krushelnytskiy on his site http://www.yuriystoys.com/

He is using a tablet as the display, communicating via Bluetooth with a controller that reads the scales.

The controller consists of a microcontroller and voltage level shifters to “translate” the scale voltage levels to that of the microcontroller.
Ordered the MSP430 Launchpad from TI and developed a suitable PCB for the controller.  The PCB was made as universal as possible allowing for any scale voltage and internal or external clocking on each channel, selectable by jumpers.



Opted for USB B style connectors as this made the cabling easier.  Originally I wanted to incorporate the option for sub-D connectors for glass scales, but there do not seem to be a standard pin out between different makes, so I included the option for pin headers that could be wired to sub-D connectors.
Voltage regulators are also onboard so single 7V to 25V DC supply can be used, or for a regulated 5V supply the onboard 5V regulator can be omitted and a link fitted.





The PCB was made using positive pre sensitized board.



The holes were drilled on my CNC router.



Populating the board.





And fitted in a case.





Cables was soldered to the scale boards and a decoupling capacitor soldered across the supply.



Testing the system.





The scale for the Z-axis was mounted at the front below the apron in such a way that a cover could be fitted over it to protect against dirt entry.





The X-axis was a bit more difficult and I had to loose some clearance at the rear of the saddle.




A support was also made for the tablet.




Had to replace my original tablet as it did not support the correct Bluetooth protocol but ever since I am very happy with the unit.

Many thanks to Yuriy for his ongoing effort on a great invention.

Cheers
Abraham

Online awemawson

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8966
  • Country: gb
  • East Sussex, UK
Re: TouchDRO on a mini lathe
« Reply #1 on: December 21, 2014, 06:52:18 AM »
 :thumbup: A very niffty project  :bow:

I can see all sorts of uses for that sort of set up.Did you have to modify 'app' for the tablet or is is as per yuri?

I'm slightly puzzled what happened to the 'Y' display in the later tab let screen shots ?
Andrew Mawson
East Sussex

Offline modeldozer

  • Sr. Member
  • ****
  • Posts: 299
  • Country: es
  • Valencia, Spain
    • AJ´s Truckmodeling
Re: TouchDRO on a mini lathe
« Reply #2 on: December 21, 2014, 06:56:42 AM »
Hi Andrew,
No i did not write the app it is the work of yuriy as mentioned.

The app is configurable and in lathe mode the Y can be disabbled.

Abraham

Offline John Rudd

  • Hero Member
  • *****
  • Posts: 2525
  • Country: gb
Re: TouchDRO on a mini lathe
« Reply #3 on: December 21, 2014, 07:26:09 AM »
Nicely done, I like the pcb you made...

What software did you use for the board?
eccentric millionaire financed by 'er indoors
Location:  Backworth Newcastle

Skype: chippiejnr

Offline modeldozer

  • Sr. Member
  • ****
  • Posts: 299
  • Country: es
  • Valencia, Spain
    • AJ´s Truckmodeling
Re: TouchDRO on a mini lathe
« Reply #4 on: December 21, 2014, 07:32:30 AM »
Hi John,

I used Eagle for the board with the pcb-gcode ulp for the drilling.

Abraham

Offline vtsteam

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6466
  • Country: us
  • Republic of Vermont
Re: TouchDRO on a mini lathe
« Reply #5 on: December 21, 2014, 03:17:55 PM »
Wow!  :bow: :beer:
I love it when a Plan B comes together!
Steve
https://www.youtube.com/watch?v=4sDubB0-REg

Offline krv3000

  • Hero Member
  • *****
  • Posts: 2183
  • Country: gb
Re: TouchDRO on a mini lathe
« Reply #6 on: December 21, 2014, 04:47:55 PM »
thats just showing off  :clap: just brill

Offline Arbalist

  • Hero Member
  • *****
  • Posts: 673
  • Country: gb
Re: TouchDRO on a mini lathe
« Reply #7 on: December 22, 2014, 09:08:56 AM »
Although I don't strictly need a DRO on my mill I'd like one. Having looked at the options it was too expensive for me, the display being the single most expensive item. I hope someone comes out with a reliable off the shelf solution that uses a tablet. Will this system work with magnetic scales? I'd rather pay the slight premium for a more robust scale.

Offline backofanenvelope

  • Jr. Member
  • **
  • Posts: 70
  • Country: gb
    • !5 Minute Modeller
Re: TouchDRO on a mini lathe
« Reply #8 on: December 22, 2014, 09:56:34 AM »
Just wanted to add my :thumbup: for this project. Very neat.

TomC
*** Master Guild of Procrastinators ***

Offline philf

  • Hero Member
  • *****
  • Posts: 1107
  • Country: gb
Re: TouchDRO on a mini lathe
« Reply #9 on: December 22, 2014, 10:06:40 AM »
Although I don't strictly need a DRO on my mill I'd like one. Having looked at the options it was too expensive for me, the display being the single most expensive item. I hope someone comes out with a reliable off the shelf solution that uses a tablet. Will this system work with magnetic scales? I'd rather pay the slight premium for a more robust scale.

Have a look at http://www.yuriystoys.com/p/android-dro.html

To quote: "Quadrature controller is 100% pin-compatible with the Mixed Scale version, but uses firmware optimized for quadrature encoders, including 1 micron magnetic and glass DRO scales."

So the answer is yes.

Phil.
« Last Edit: December 22, 2014, 10:35:59 AM by philf »
Phil Fern
Location: Marple, Cheshire

Offline Arbalist

  • Hero Member
  • *****
  • Posts: 673
  • Country: gb
Re: TouchDRO on a mini lathe
« Reply #10 on: December 22, 2014, 10:59:50 AM »
Thanks Phil.

Offline CrazyModder

  • Jr. Member
  • **
  • Posts: 86
  • Country: de
Re: TouchDRO on a mini lathe
« Reply #11 on: December 22, 2014, 12:25:43 PM »
Although I don't strictly need a DRO on my mill I'd like one. Having looked at the options it was too expensive for me, the display being the single most expensive item. I hope someone comes out with a reliable off the shelf solution that uses a tablet. Will this system work with magnetic scales? I'd rather pay the slight premium for a more robust scale.

Same here. I'm in the process of making myself a DRO (for a few years now, you know how it is...  :coffee: ). I did make a 3-axis 7-segment-display years ago (before the advent of cheap tablets :bang: ) which has all the electronics to connect the cheap chinese scales. I even have a bluetooth chip and some arduinos lying around, and am willing and able to hook them up. Still missing the scales though. I experimented with sawed-off ultra-cheap scales (in the 10€ range) as prototype, but that did not go well at all as they are much to fickle to work in a dirty environment.

I have been procrastinating about getting "real" scales and will probably go for it soon[tm]. It will likely be a kit with proper mounting options, so that at least is taken care of.

Unfortunately, glass or magnetic scales do not come with a "slight premium" for me, they cost around 10 times as much as the capacitor style "chinese" scales. A set of those, made for the mill, cost roughly 110,- €; the cheapest glass or magnetic set is almost 1000,- € at my sources. I assume that is because there is probably not a market for "low-end" glass or magnetics. For example, I simply do not need the ultra-fine resolution of them; my mill is small and I'm happy to work close to 1/20mm, nevermind 1/100mm. The only "features" I could use is the robustness, and in the case of magnetic scales, the possibility to cut them off anywhere.

Did you find some that are cheaper? If so, may I ask where you found them?

Offline philf

  • Hero Member
  • *****
  • Posts: 1107
  • Country: gb
Re: TouchDRO on a mini lathe
« Reply #12 on: December 22, 2014, 01:28:10 PM »
Did you find some that are cheaper? If so, may I ask where you found them?

Hi Crazy Modder,

I don't know what country you're from but I guess in Europe if you are quoting Euros. Scales are certainly available in the UK for a lot less than 1000 Euro.

My whole lathe setup including the display and optical scales was less than £600 and they've come down in price since.

Machine-DRO in the UK do a range of optical and magnetic scales at reasonable prices. (Usual disclaimer.)

http://www.machine-dro.co.uk/digital-readout-systems-dro-pc-magnetic-glass-linear-scales.html?encoder_series=1138

There may be cheaper sources.

Cheers.

Phil.
Phil Fern
Location: Marple, Cheshire

Offline CrazyModder

  • Jr. Member
  • **
  • Posts: 86
  • Country: de
Re: TouchDRO on a mini lathe
« Reply #13 on: December 22, 2014, 03:43:54 PM »
Thank you for that link. They indeed have a wide variety of scales, for example the GS10 series (0.005mm resolution glas scales) would be good enough for me. Those would cost just short of 400,- € for 3 of them. Or roughly 530€ for the cheapest magnetics. A far cry from the 1000€ I quoted, at least, while still more than twice as much as the mill itself.

I guess I'll get the cheap capacitor based scales first and if/when they fail, replace them with the more expensive and robust ones one by one.

Offline modeldozer

  • Sr. Member
  • ****
  • Posts: 299
  • Country: es
  • Valencia, Spain
    • AJ´s Truckmodeling
Re: TouchDRO on a mini lathe
« Reply #14 on: December 22, 2014, 05:44:39 PM »
Hi all,

Have researched the scales a bit and on the bay there are scales at around the 100 pound mark, other than that machine-DRO seems to be the best.  On the capacitive scales a 600mm one costs close to 60 pound so for me it will be glass scales on the mill.

Cheers
Abraham

Offline Arbalist

  • Hero Member
  • *****
  • Posts: 673
  • Country: gb
Re: TouchDRO on a mini lathe
« Reply #15 on: December 22, 2014, 05:49:11 PM »
Yes, Phil's link is for the supplier I was looking at. I was only going to go for X and Y axis to start to keep the price down. When I meant slight premium I meant over the optical ones. As well as being much more rugged the magnetics I looked at were also smaller which is a bonus.

Edit: I've just looked at the prices on that site and they've gone up a lot since I last looked!
Maybe I'll wait until the Chinese start making the Magnetic ones ...  :palm:

Offline BaronJ

  • Full Member
  • ***
  • Posts: 243
  • Country: gb
  • Grumpy Old Git !
Re: TouchDRO on a mini lathe
« Reply #16 on: December 24, 2014, 12:14:50 PM »

Ordered the MSP430 Launchpad from TI and developed a suitable PCB for the controller.  The PCB was made as universal as possible allowing for any scale voltage and internal or external clocking on each channel, selectable by jumpers.

Cheers
Abraham

Hi Abraham,

You have made a very good, neat job of the PCB and housing case for it.  I must admit it looks better than anything I could produce.  One question, where did you hide the MSP430 ?  I assume that the white module in the picture inside the case is the bluetooth one.


Best Regards:
                     Baron

Offline modeldozer

  • Sr. Member
  • ****
  • Posts: 299
  • Country: es
  • Valencia, Spain
    • AJ´s Truckmodeling
Re: TouchDRO on a mini lathe
« Reply #17 on: December 25, 2014, 02:58:36 PM »
Hi Baron.

It is the long IC close to the regulators, it is removed from the valueline development board in order to save space, and yes, the white module is the bluetooth one.

Abraham

Offline BaronJ

  • Full Member
  • ***
  • Posts: 243
  • Country: gb
  • Grumpy Old Git !
Re: TouchDRO on a mini lathe
« Reply #18 on: December 26, 2014, 06:05:58 AM »
Hello Abraham,

Very clever  :bow:  I wouldn't have thought of doing that.  It certainly makes for a very tidy layout in addition to keeping everything inside the housing where it is well protected.  It should help with suppressing any electrical noise as well.

Electrical noise is one problem that I have with the single scale on the mill.  It works fine for days and then when you need to rely on it the readout suddenly changes value or sometimes switches off completely.  Of course when it is switched back on it has reset to zero.  I keep meaning to get a properly screened cable for it.  :doh:

 

Best Regards:
                     Baron

Offline Joules

  • Hero Member
  • *****
  • Posts: 1271
  • Country: gb
Re: TouchDRO on a mini lathe
« Reply #19 on: December 26, 2014, 07:15:06 AM »
Baron,
         wrap it in tin foil till you get round to fixing it, or strip a length of coax, bunch the braid slide it over you cable and stretch it back out.  Good temporary fix   The turkey fat will keep the foil on your cable  :lol:

                 :wave:
Honour your mentors, and pay it forward.

Offline modeldozer

  • Sr. Member
  • ****
  • Posts: 299
  • Country: es
  • Valencia, Spain
    • AJ´s Truckmodeling
Re: TouchDRO on a mini lathe
« Reply #20 on: December 26, 2014, 09:51:43 AM »
Screening and supresion is one of the reasons I have used USB cables, ready made with connectors and decently priced.  You will also note in the schematic there are 3 different supply filtering capacitors for each scale plus the 100nf soldered directly accross the scale supply input.  My shop is full of electrical noise and so far the system is working perfecty.

Abraham

Offline BaronJ

  • Full Member
  • ***
  • Posts: 243
  • Country: gb
  • Grumpy Old Git !
Re: TouchDRO on a mini lathe
« Reply #21 on: December 27, 2014, 09:00:59 AM »
Baron,
         wrap it in tin foil till you get round to fixing it, or strip a length of coax, bunch the braid slide it over you cable and stretch it back out.  Good temporary fix   The turkey fat will keep the foil on your cable  :lol:

                 :wave:


Good Idea Joules
I've loads of old co-ax...  :doh:
Thanks:
Best Regards:
                     Baron

Offline BaronJ

  • Full Member
  • ***
  • Posts: 243
  • Country: gb
  • Grumpy Old Git !
Re: TouchDRO on a mini lathe
« Reply #22 on: December 27, 2014, 09:14:52 AM »
Screening and suppression is one of the reasons I have used USB cables, ready made with connectors and decently priced.  You will also note in the schematic there are 3 different supply filtering capacitors for each scale plus the 100nf soldered directly across the scale supply input.  My shop is full of electrical noise and so far the system is working perfectly.

Abraham

Hi Abraham,
I had noticed that you seemed to have a lot of decoupling in there, and I can understand why.  In my case it seems that the mill motor is the culprit.  When the load on the motor rises the commutator sparks more and that seems to be when the readout fails.  The spindle speed display often plays up as well, which is not surprising since it is in the same box as the rest of the electronics.

PS.  Have you thought about making some PCB's for sale ?  I reckon that you have a winner there.

   
Best Regards:
                     Baron

Offline modeldozer

  • Sr. Member
  • ****
  • Posts: 299
  • Country: es
  • Valencia, Spain
    • AJ´s Truckmodeling
Re: TouchDRO on a mini lathe
« Reply #23 on: December 27, 2014, 09:38:50 AM »
Hi Baron,

I will have to look into making the boards as my current setup is more geared to one of's.  The Eagle files are availeble to anyone interested in making the board.

Abraham.

Offline Arbalist

  • Hero Member
  • *****
  • Posts: 673
  • Country: gb
Re: TouchDRO on a mini lathe
« Reply #24 on: December 27, 2014, 10:35:34 AM »
My first Digital caliper was a Mitutoyo unit and when I bought a cheap caliper to leave in the workshop I noticed that it didn't immediately display the measurement in the same way as the Mitutoyo. In other words there is a slight delay between movement and display. Is this the same on the scales illustrated earlier and is it noticeable on your readout? If it were to the same degree as the cheap calipers I've bought I'd expect to either move the table on my mill more slowly or expect to have to "go back" after over shooting the mark so to speak.

Offline BaronJ

  • Full Member
  • ***
  • Posts: 243
  • Country: gb
  • Grumpy Old Git !
Re: TouchDRO on a mini lathe
« Reply #25 on: December 27, 2014, 04:04:09 PM »
Hi Abraham,

I will PM you.

Arbalist,
I've not noticed any delay in the readout of my "Igaging" scales in use, only the problems of electrical noise mentioned earlier.  But I do agree about some digital calipers.  I have one that came from a trader at the Harrogate MEE, and that has a definite lag.  Having said that it is very repeatable.  If I measure a 25 mm standard it always gives me the same reading +/- a couple of tenths.


 
Best Regards:
                     Baron

Offline Arbalist

  • Hero Member
  • *****
  • Posts: 673
  • Country: gb
Re: TouchDRO on a mini lathe
« Reply #26 on: December 27, 2014, 05:05:25 PM »
That's good to hear about the Igaging scales, thanks.

Offline Jonny

  • Hero Member
  • *****
  • Posts: 780
Re: TouchDRO on a mini lathe
« Reply #27 on: December 27, 2014, 07:07:39 PM »
Interesting Arbalist I used to occasionally have that problem with the cheap vernier type scales. It was more a case of getting any reading out of them or some spurious readings.
Readout from Warco used to drain the batteries in 2 days until figured remove after use or unplug the scale cabling which will wreck the contacts sooner or later.

Whilst I think of it OP X axis on lathe is the way did Y axis on last mill and the proper way of attaching the reader rather than using the crap supplied bracket. All I will say is debris will find its way in to seemingly impossible places giving no warning of packing up. All three packed up totally within two months wasting £315 back in 1999. X cheap scale £110 in that, others £25 and £30 each plus readout £150.
Newer bigger mill full on 3 axis glass Sino scales and 3 axis readout delivered £452 from MDRO prices have gone up since.
Current lathe 2 magnetic scales and one X axis glass with 3 axis readout I think was £620 to 650?

Offline modeldozer

  • Sr. Member
  • ****
  • Posts: 299
  • Country: es
  • Valencia, Spain
    • AJ´s Truckmodeling
Re: TouchDRO on a mini lathe
« Reply #28 on: December 28, 2014, 05:52:47 AM »
Hi Arbalist,

With the scales I am using I do not get any delay.  Am planind to put scales on the milling machine, but will go for glass scales.

Abraham