collapse

Author Topic: MB Faceting Machine Build  (Read 1250 times)

MakkyBrown

  • Administrator
  • ALF'er VIP
  • *****
  • Posts: 1499
Re: MB Faceting Machine Build
« Reply #15 on: July 06, 2021, 02:06:20 PM »
I'm going to be the guinea pig so to speak  ;D .  New encoder has arrived, will be awhile till I fit this as the machine build is on hold till I finish other bits and pieces.The big question will it be too accurate and will step change flick still be usable as a stop. This was a bit expensive and twice the resolution of my current encoder. Has 0.009 degree steps, really hope it works and larger size doesn't cause issues.

« Last Edit: July 06, 2021, 02:08:38 PM by MakkyBrown »

RoughCreations

  • Administrator
  • ALF'er Gold Member
  • *****
  • Posts: 147
    • Rough Creations homepage
Re: MB Faceting Machine Build
« Reply #16 on: July 06, 2021, 09:29:30 PM »
The big question will it be too accurate and will step change flick still be usable as a stop. This was a bit expensive and twice the resolution of my current encoder. Has 0.009 degree steps, really hope it works and larger size doesn't cause issues.
I have been looking at the Arduino encoder  programming code from Tom Herbst's book. You should be able to store the calculated angle in the first position of an array during each loop, moving the value from the previous loop into the next available array position and so on and then calculate the 3, 5, 7 (or more) moving average for each loop. For example if you found a 7 loop moving average was the most suitable, you would declare a float array in your code with 7 elements, and use that. The moving average value could then be used as a smoothed display value, or be used to display a moving bar. I reckon you will have lots of flexibility, and even be able to interpolate artificial angle values between steps using a bit of logic.
Hope that makes sense,
RC
Rough Creations - Beauty from rough beginnings

MakkyBrown

  • Administrator
  • ALF'er VIP
  • *****
  • Posts: 1499
Re: MB Faceting Machine Build
« Reply #17 on: July 06, 2021, 10:34:24 PM »
Perhaps I could have an adjustable smoothing amount for when laps are very uneven. Preference being no smoothing :) Lots of possibilities.

MB

RoughCreations

  • Administrator
  • ALF'er Gold Member
  • *****
  • Posts: 147
    • Rough Creations homepage
Re: MB Faceting Machine Build
« Reply #18 on: July 07, 2021, 11:10:37 AM »
This was a bit expensive and twice the resolution of my current encoder. Has 0.009 degree steps, really hope it works and larger size doesn't cause issues.
What's the diameter of the new encoder?
Rough Creations - Beauty from rough beginnings

MakkyBrown

  • Administrator
  • ALF'er VIP
  • *****
  • Posts: 1499
Re: MB Faceting Machine Build
« Reply #19 on: July 07, 2021, 11:50:05 AM »
Case is 55mm OD plus a bit extra for the reader/plug part.
EDIT: Just thinking if there is clearance it might screw straight onto the mount I made for your facetron.
« Last Edit: July 07, 2021, 11:59:43 AM by MakkyBrown »

FlashGP

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 651
Re: MB Faceting Machine Build
« Reply #20 on: July 12, 2021, 02:22:41 PM »
RC,

I think you would also need to check the sample rate, and keep it at a reasonable number, say 14 per second for a 7 step smoothing, a high sample rate would still cause a smoothed sample to jump around.

I recon 2 sets of samples per second would see the numbers move fast enough.  Perhaps 1 set per second would be enough.
Yours Sincerely
Flash (Gordon)

RoughCreations

  • Administrator
  • ALF'er Gold Member
  • *****
  • Posts: 147
    • Rough Creations homepage
Re: MB Faceting Machine Build
« Reply #21 on: July 12, 2021, 03:01:51 PM »
RC,

I think you would also need to check the sample rate, and keep it at a reasonable number, say 14 per second for a 7 step smoothing, a high sample rate would still cause a smoothed sample to jump around.

I recon 2 sets of samples per second would see the numbers move fast enough.  Perhaps 1 set per second would be enough.

Yes, that makes sense. The sample rate could even work on its own for smoothing, depending on the lap.
Rough Creations - Beauty from rough beginnings

FlashGP

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 651
Re: MB Faceting Machine Build
« Reply #22 on: July 12, 2021, 08:34:07 PM »
Hi RC, sort of, but a rolling average of a series of sample rated would take some or a lot of the lap jitter out.  At sub hundredth of a degree accuracy, even the flattest lap will induce jitter. 

It may be better to use the extra resolution to give a more accurate 1/100th of a degree than try to have 3 decimal places
Yours Sincerely
Flash (Gordon)

MakkyBrown

  • Administrator
  • ALF'er VIP
  • *****
  • Posts: 1499
Re: MB Faceting Machine Build
« Reply #23 on: July 13, 2021, 08:33:43 AM »
You need the jitter flash, but you also need to be able to read the display. The stop is when the display changes to the target number with no jitter. The issue is going to occur when lap runout is greater than a single step on the encoder. Smoothing would most likely only be needed over the time period of 1 rpm.

MB

FlashGP

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 651
Re: MB Faceting Machine Build
« Reply #24 on: July 15, 2021, 07:23:11 AM »
I was thinking of smoothing over 1 or 4Hz (0.25 to 1 second) at most to take out lap and vibration jitter. 
Yours Sincerely
Flash (Gordon)

MakkyBrown

  • Administrator
  • ALF'er VIP
  • *****
  • Posts: 1499
Re: MB Faceting Machine Build
« Reply #25 on: July 15, 2021, 09:26:08 AM »
I wouldn't smooth with a 5000cpr encoder Flash, cut to the point the flicker stops.
If I need to smooth the 10000cpr encoder I'll smooth each rpm. I have a 500cpr encoder on my drive motor I may try and split the signal on to get an accurate rpm measurement.

MB

Faceting Frank

  • Global Moderator
  • ALF'er Platinum
  • *****
  • Posts: 289
Re: MB Faceting Machine Build
« Reply #26 on: July 17, 2021, 08:01:39 PM »
I take it your using encoders for both indexing and angle settings? Bit over my head, everything I have operates with a screwdriver or spanner.

MakkyBrown

  • Administrator
  • ALF'er VIP
  • *****
  • Posts: 1499
Re: MB Faceting Machine Build
« Reply #27 on: July 18, 2021, 10:52:11 AM »
That is the plan Frank. Jury is still out on how well the index stepper/encoder will work. Height measurement will just be steps like on a cnc machine and calibrated by homing.
MB

Faceting Frank

  • Global Moderator
  • ALF'er Platinum
  • *****
  • Posts: 289
Re: MB Faceting Machine Build
« Reply #28 on: July 24, 2021, 09:10:26 PM »
Just did a bit of maths on my cheater, which operates on a 5mm spring loaded thread, the thread pitch is 0.8mm. My index wheel is 157mm circumference x 96 index = 1.63mm per index. That means one full turn of the cheater = 0.5 of an index. I made the part of the turning screw that the scale is on 25mm circumference with 1mm markings. So, the scale on the cheater divides one index by 50. I keep a record of any cheater settings on facets if needed. On wide facets, say 8mm plus, the 1mm increment on the cheater scale makes a big difference on meet points. So 96x50=4800 increments I need for wide facets.
Hope that makes sense.

MakkyBrown

  • Administrator
  • ALF'er VIP
  • *****
  • Posts: 1499
Re: MB Faceting Machine Build
« Reply #29 on: July 26, 2021, 02:32:16 PM »
Thanks Frank for your feedback, atm I'm planning 3200 steps/increments, 6400steps maybe possible but both will require testing. So I am sort of in the ballpark I think going on your 4800.

MB

Tags:
 

Recent Activities

Pewter Lap build by MakkyBrown
[Today at 09:31:30 PM]


honey opal by dan1000
[August 02, 2021, 11:22:11 PM]


Opal doublet backing. by MakkyBrown
[August 02, 2021, 08:13:51 AM]


faceting machine digital microscope setup by Faceting Frank
[August 01, 2021, 12:28:09 PM]


Joke of the Day by pc bowe
[July 31, 2021, 07:47:35 AM]


Bevelled sides, flat top Cabochon by FlashGP
[July 30, 2021, 07:39:56 PM]


MB Faceting Machine Build by MakkyBrown
[July 26, 2021, 02:32:16 PM]


Bert Smit faceting machinery by RoughCreations
[July 24, 2021, 02:08:35 PM]


Facetron Encoder Mod Thread by RoughCreations
[July 14, 2021, 01:28:45 PM]


Advice on gemology course by FlashGP
[July 12, 2021, 02:27:09 PM]


Opal Identification help by AZ
[July 04, 2021, 09:37:58 AM]


Faceted stone design software by FlashGP
[June 27, 2021, 04:31:11 PM]


Can anyone help? Double terminated dog tooth sapphire by Tonyuk
[June 26, 2021, 04:49:22 PM]


Back from Agate Ck by Jimnyjerry
[June 26, 2021, 09:51:32 AM]


Flint by Rusted
[June 26, 2021, 06:28:29 AM]