Author Topic: Touch DRO for Original iGaging Absolute Origin scales  (Read 3355 times)

jpigg55

Re: Touch DRO for Original iGaging Absolute Origin scales
« Reply #30 on: February 25, 2019, 07:57:39 PM »
Okay, possible kick in the teeth today.
Everything was going great until I got to the calibration procedure for Touch DRO. Two of the scales calibrated just fine, but the other was coming in at about a third of the CPI of the other two.
What I discovered was a difference in the manufacture between the scales. I need to do a new run with my O-scope and data logger to try and figure out if it's a difference in the readhead or the scale tape.
I you have multiple these scales, an easy test to see if they're all the same is plug each scale in to the same OEM display unit and run the readhead down the scale. Look for any big jumps in position and/or a change in position that isn't correct, i.e move it 3 inches and display only shows a change of 1 inch or move 3" and changes by 8" or 9".
This won't tell you which version you have, just if they are all the same type.
I try inserting the pictures of the interior boards of the scales.

SB 9A, Clausing 8520, Sanford MG 612

woodchucker

Re: Touch DRO for Original iGaging Absolute Origin scales
« Reply #31 on: February 25, 2019, 09:27:53 PM »
Ah, having a DRO should be great, the past 2 days I have struggled with mine. Stupidity on my part.  When using dials, certain things are known, like what direction you are traveling in and which direction any offset should be in.. Over and over I made mistakes over the last 2 days. I wound up with 3 scrapped pieces. My center finder diameter is .2
I hit X .1 and moved the .2175... The direction was -... so I moved -.2175...   :'(     F''''' I should have put in -.1 not .1... needless to say I was off quite a bit.


So I feel kicked in the teeth also.. Things I have found it useful for , and things like this, well I have found it frustrating.


And then I broke the wrench for my Clausing 8520. The one that came with my mill was a 1/4 drive turned upside down and welded to a wrench.. The weld sucked... And today it gave way... I'll get it welded up Wed. but it just felt like I was wasting time. I hope I have learned something and won't make the same mistake again, but I have a feeling this is one of those things I'll repeat again, and again.


Hope you get your dro controller / reader worked out.
Jeff
Clausing 8520   SB Model 9a - power hacksaw, Milwaukee band saw in a table.  Delta Rockwell Surface Grinder (not online yet .. being rebuilt where am I going to stick this)
For pics: https://imgur.com/user/woodchucker/posts

Terrywerm

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 994
  • Total likes: 654
  • It's only down the road a little piece - Jordan MN
Re: Touch DRO for Original iGaging Absolute Origin scales
« Reply #32 on: February 25, 2019, 10:13:43 PM »
I have no idea what version mine are. If the temps start to moderate a bit I may just take a peek at all three of mine to see what they are.
Terry

Making chips with old machines!

jpigg55

Re: Touch DRO for Original iGaging Absolute Origin scales
« Reply #33 on: April 27, 2019, 08:58:12 AM »
Quick update on our progress.
Turned out the v4.3 scales use the same data format as the v3.1 scales, just with a lower resolution. The v4.3 scales are around 2,560 CPI vs the 7,680 CPI of the v3.1 scales.
The position “Jump”, as I’ve termed it, that I’m seeing is due to the nature of a recycling, fixed length binary number system. I’ll try giving a simplified explanation of why this is happening.
Think of it like a car odometer. As you drive, the odometer counts up linearly until it gets to 999,999.9 miles. At this point, traveling any further causes it to roll over back to 000,000.0 again.
A set length binary number sequence works much the same way, the only difference being if it is treated as a “Signed” or “Unsigned” integer. In this case, the 8-bit Coarse track can have a value from 0 to 255 as a unsigned integer or -128 to 127 as a signed integer.
When these scales were produced, the manufacturer used the encoded tape that recycled approximately every 50.5 inches where the sequence repeated itself over and over. They then cut the scales to the desired lengths with ~50.5” being the maximum possible length any one scale could be, although the longest scale sold that I know of was either 36” or 38”.
The gist of the problem lies in that if a particular scale had the tape segment on it where the Coarse track recycles from 255 back to 0, if treated as an unsigned integer, or when it cycles from +127 to -128, if treated as a signed integer. These are two different points on the scale tape since, as a signed integer, the sequence actually goes from 0 to 127 at the Coarse track mid-point where it jumps to -128 and starts counting (becoming less negative) back to zero.
For any single scale, the solution is easy. Just make it a signed or unsigned integer if needed. The problem comes about when combining multiple scale outputs together, as in the case of a 3-axis DRO. As it happens, one of my scales has the Coarse track mid-point on it and another has the Coarse track recycle point on it. So if the algorithm code treats the input as a signed integer, I see a jump on one axis and if it treats the input as an unsigned integer, I see the position jump on the other axis.
The only two possible solutions I can think of for this issue are:
1.   Figure out a way to handle each axis input separately via some manually input variable to dictate if it is to be treated as a signed or unsigned integer.
2.   Use multiple controller boards. One coded to use signed integers and the other coded to use unsigned integers along with possibly a third board to combine the output of the other two.
This assumes that no scale was ever cut that contained both of these transition points along its length. If one does exist, neither of these solutions will work for that scale.

Currently trying to figure out if it’s possible to do solution #1, if within the ability of a single Arduino board.
Solution #2 will work, but requires re-writing the code for each of the boards along with the added expense of needing more hardware to make the controller.
SB 9A, Clausing 8520, Sanford MG 612

jpigg55

Re: Touch DRO for Original iGaging Absolute Origin scales
« Reply #34 on: December 02, 2019, 06:14:26 PM »
Past couple days were cold, drizzly, rainy days so took the opportunity to take another look back through all the data.
Had an idea to try something different and had time to test it today.
Worked like a charm for a single scale !!

Sent the info off to my buddy Brian (he's the code/programming guru) to see if the sketch can be modified using this method for 3 scales.
If it can, it will require some re-writing of the code along with some testing, but seem to be a step closer to completing this project.
SB 9A, Clausing 8520, Sanford MG 612

jpigg55

Re: Touch DRO for Original iGaging Absolute Origin scales
« Reply #35 on: September 01, 2020, 10:13:15 AM »
Wanted to drop a quick note to bring this thread back to life and give a heads up.
My friend Brian had a major breakthrough idea on the noise correction methodology that, thus far, seems to be working beautifully.
There's still a lot of tweaking and testing to do before a final product is available for release, but Terry Wermerskirchen has kindly offered his scales, time, and knowledge to the cause allowing more scale in the test bed.
It feels like I've said this a 100 times before, but this time I believe we are very close.
SB 9A, Clausing 8520, Sanford MG 612

jpigg55

Re: Touch DRO for Original iGaging Absolute Origin scales
« Reply #36 on: September 16, 2020, 12:25:00 PM »
Here's a quote from Brian:
"We finally got the noise correction algorithm figured out. From the data we have managed to get, we have a decent idea of what the sign change values are for the 2 versions, v3.1 and v4.3. Basically, if you have a scale that was bought at longer than 18", it's a v4.3. If it was 18" or less when purchased, it's version 3.1. This makes a huge difference when telling the sketch how to tell if the position is positive or negative, and that's what TouchDRO needs to have.

 We are currently trying to finalize the interface shield design in order to make it neat, and that also requires pin re-assignments on the Arduino. We should be able to have this done in a month or so (I'm ballparking. I really don't know how long this will take). After all these years, I'm happy to say we can finally stick a fork in this thing!"

We still need to mock-up and test with multiple scales at once, finalize the wiring diagram, finalize pin assignments, and write the final sketch, but this project is nearly complete.
SB 9A, Clausing 8520, Sanford MG 612

Eskimo2k

Re: Touch DRO for Original iGaging Absolute Origin scales
« Reply #37 on: October 12, 2020, 10:04:40 PM »
Finally opened up this thread after all this time. Jimmy actually did absorb a lot of what I was throwing at him!

Anyway, I just wanted to know how comfortable people were soldering together simple circuits on a small Printed Circuit Board (PCB). I'm trying to keep the circuit and layout as simple as possible. A little experience soldering will be useful, there's some tight spaces on the boards.

Eskimo2k

Re: Touch DRO for Original iGaging Absolute Origin scales
« Reply #38 on: October 12, 2020, 11:46:43 PM »
Mine are the ez view dro. But in looking at the igaging website, between the ez view and the absolute, the scales look identical. Is it the scales that differ or the read outs?

The scales you have are Absolute Plus scales. The only difference is the fact that the display has a built in cheater lens installed to make the display look larger.
Yuriy already supports those scales, they have a BCD (Binary Coded Decimal) output that he figured out a couple of years ago.

Here's the address to his blog:
https://www.yuriystoys.com/2020/03/new-dro-diy-kit.html#more

jpigg55

Re: Touch DRO for Original iGaging Absolute Origin scales
« Reply #39 on: October 13, 2020, 09:24:24 AM »
Just to add a little to what Brian had to say, the testing has proven out and his latest sketch revision works with Touch DRO. All that’s left is to put together a write-up along with a detailed shield construction design and decide on the best platform to put it out for use.
So, for anyone who still has/uses the original iGaging Absolute scales and desires to use them with Touch DRO, it will be a possibility very soon. The initial release will be for use with an Arduino platform, but he plans on converting it for use with the TI MSP Launchpad platform, just be a little further out.
SB 9A, Clausing 8520, Sanford MG 612

Eskimo2k

Re: Touch DRO for Original iGaging Absolute Origin scales
« Reply #40 on: October 14, 2020, 06:23:46 PM »
This version is ONLY for the Arduino. Since the Arduino operates at 5V and the scales operate at 3V, we had to figure out how to make it happen so that the Arduino wouldn't eventually fry the expensive piece, and the same thing for the Bluetooth module. Those little issues have all been handled, as simply as possible.
The MSP version is MUCH simpler, since the MSP operates natively at 3V. No external circuitry is required, period. It's a straight connector to pin set up. That version is in the works, but it'll be a while until it can be completed.

jpigg55

Re: Touch DRO for Original iGaging Absolute Origin scales
« Reply #41 on: October 16, 2020, 09:31:41 AM »
Now that the code for the sketch has been figured out and written and the shield construction has designed and tested, we are looking for the amount of people interested in using it. This will help us decide on the best platform for the release.
If anyone is interested, send me an email to jpigg55@gmail.com and put “iGaging Absolute” in the subject line. This will allow me to add you to the group g-mail list I’ve created for further updates and component list for constructing the shield.
SB 9A, Clausing 8520, Sanford MG 612