collapse

Author Topic: Faceting machine head assembly.  (Read 18174 times)

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 545
Re: Faceting machine head assembly.
« Reply #150 on: August 05, 2024, 04:20:34 PM »
Thanks for the complement RC.
 I now understand the logic behind your average reading of the encoder RC, there are to many variables going on with the lap. Have your code on averaging put where I think it should be, but still // out. Not going to bother figuring out the code needed to reset the 90deg with a push button if I make mods to the machine. Took only two minutes to change the code on the PC and download it. Thinking of having a light flash for a second when the encoder hits the target angle, that would save staring at the screen. Have lights already wired and coded in, so should be easy to do.

MakkyBrown

  • Administrator
  • ALF'er VIP
  • *****
  • Posts: 1791
    • Andrew Brown Faceting Designs
Re: Faceting machine head assembly.
« Reply #151 on: August 05, 2024, 06:42:00 PM »
Well done Frank  beers
I'm not running any smoothing on mine, I like the flicker just before the angle going solid and use it as the point of a solid angle as the stop.

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 545
Re: Faceting machine head assembly.
« Reply #152 on: August 06, 2024, 10:33:04 AM »
Got the light to come on at the target angle, if this turns out to be very precise I wont bother with the averaging thing.

float anglestop;
.
  anglestop = (90+ (1.0*encPos-enc90)*degPerStep);    // The actual angle in degrees
.
if (anglestop <= eStoredAngle) {
 digitalWrite(RED_pin,HIGH);
  delay(500);}

eStoredAngle being the variable name for the target angle.

RoughCreations

  • Administrator
  • ALF'er Platinum
  • *****
  • Posts: 383
    • Rough Creations homepage
Re: Faceting machine head assembly.
« Reply #153 on: August 08, 2024, 09:56:44 AM »
Hi Frank,.
the code will add a half-second delay to every loop, this will be like having a slower micro-controller in effect, and probably lessen the need for smoothing somewhat
Rough Creations - Beauty from rough beginnings

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 545
Re: Faceting machine head assembly.
« Reply #154 on: August 08, 2024, 10:49:35 AM »
Hi RC.
If your talking about the 1/2 second delay in the bit of code I have posted it will not effect the loop. It will only read the line
 {digitalWrite(RED_pin,HIGH); delay(500);}  if (anglestop <= eStoredAngle) is true. Otherwise it will ignore anything in the {}
Not that I know much about this stuff, but the YouTube vids I've watched over the last 6 months on how different functions work has helped me a lot.

The encoder has picked up a fault with the round linier bearing that I suspected was a problem, when moving the quill from side to side the bearing wants to climb up the shaft about 0.1mm one way and then drop 0.1mm.

RoughCreations

  • Administrator
  • ALF'er Platinum
  • *****
  • Posts: 383
    • Rough Creations homepage
Re: Faceting machine head assembly.
« Reply #155 on: August 09, 2024, 11:18:06 AM »
That's true, fair enough.
I guess in the situation I find with my cutting and laps in practice is that when you get close to the eStoredAngle, the unevenness of the laps usually causes the anglestop to be greater than eStoredAngle for a brief instant, even when you may not be truly at the 'defintion' of when eStoredAngle is actually reached. A 500mS delay would be triggered quite often when you were close to eStoredAngle. That was where I thought the smoothing algorithm should come in, it defines when you are actually at eStoredAngle.

RC
Rough Creations - Beauty from rough beginnings

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 545
Re: Faceting machine head assembly.
« Reply #156 on: August 09, 2024, 07:42:32 PM »
That’s right about the lap flutter or any variation in the side to side sweep setting the light off RC and your averaging code will help with that.

 Got a stone to finish off and then will fix the round linier bearing problem. Any inconsistency with that is going to stuff the encoder accuracy.


MakkyBrown

  • Administrator
  • ALF'er VIP
  • *****
  • Posts: 1791
    • Andrew Brown Faceting Designs
Re: Faceting machine head assembly.
« Reply #157 on: August 15, 2024, 08:24:33 PM »
Frank I was looking at the pic of the encoder on your machine. Make sure you retain all the wires somehow so there is no movement on the wires where they plug into the encoder. Just having them pluged in and hanging caused me issues and almost wrecked my encoder housing as it all became wobbly. Look at the pics of the cable ties on RC machine, mine is worse. You might be able to make some nice saddles to retain the wires.

Also worth checking to see if you get EM interference from your machines motor, I have ferrite magnets on the 240 power lead and smaller clip on ones on the encoder cable. Look for random flickering or artifacts on your screen at high rpm.
 
MB

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 545
Re: Faceting machine head assembly.
« Reply #158 on: August 16, 2024, 08:35:22 AM »
Now have a permanent setup as far as the cable goes MB, also a guard over the encoder. Not that there is anything it can bump into, but I have a habit of holding the quill support at that point.
Have not detected any interference on the screen, so all seems good that way. Will take the delay function out on the light, only need to have (RED_pin,HIGH) if the angle has passed the stored angle.
Should have the round linier bearing issue fixed shortly, but still being able to lift the quill assembly up to eye level to look at girdle meet points.

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 545
Re: Faceting machine head assembly.
« Reply #159 on: August 26, 2024, 04:00:03 PM »
Back on track with the faceting machine and cutting again. Not going to bother with the averaging code, if the lap speed is kept the same then any variations in the lap is the same for all facets in that row. Also keeping the 0.5 second delay with the light, the light coming on at the target angle is a signal to stop cutting. So, it does not affect the loop speed.

Alaskan

  • ALF'er Silver Member
  • *
  • Posts: 50
  • Will AI have curiosity and a sense of humor?
Re: Faceting machine head assembly.
« Reply #160 on: September 07, 2024, 10:41:09 AM »
FFrank, is this 'flutter' you and we are all experiencing - (me on the dial indicator) - coming from the machine or the lap?
My current cutting is going slow - new spectacles were ground wrong or the material is faulty - segmented and blurry.
Went to the competition who arrive every other week for a 2nd opinion - new prescription on order and this guy dialed me in - awesome.
Just finished the Pavilion on AB's Supernova in yellow zircon - epoxy cured by now - saw and separate tomorrow for crown after 48 hours.
The green sapphire that finished at .85 cwt was encouraging ~ 25% nice clue as to expected loss.
Where did that go?
« Last Edit: September 07, 2024, 10:59:28 AM by Alaskan »

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 545
Re: Faceting machine head assembly.
« Reply #161 on: September 07, 2024, 12:01:29 PM »
The "flutter" on the dial gauge is from the laps. My reply 137 on this thread goes into some detail on how I minimize it. The finest of your diamond cutting laps is the most important one, it will be the lap you are getting all your meet points finished.

Alaskan

  • ALF'er Silver Member
  • *
  • Posts: 50
  • Will AI have curiosity and a sense of humor?
Re: Faceting machine head assembly.
« Reply #162 on: September 09, 2024, 02:47:28 AM »
Corian laps for my final polish of 3 - 8 - 14 then 50k with Yamaha saxophone oil - on smaller facets start with 3000/oil on 8" Corian. Using a tried and true 600 then 1200 or 1500 for final preforms.
Thanks, Frank.

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 545
Re: Faceting machine head assembly.
« Reply #163 on: November 02, 2024, 02:13:13 PM »




Having cut a few stones with the encoder fitted, I can see how your idea RC on averaging the angle will make it more accurate. Tried adding the code you gave me a couple of months back but couldn’t get it to compile, so have come up with my own idea on how to do it.
Not written yet, but this is how it works.
Tom has a 100ms delay in the loop, which I changed to 150ms and the encoder records the angle every 150ms and it’s printed on the screen.
Going to change that to say 25ms and have the encoder total up 6 times then divide that by 6. Having that encoder reading and angle only printed every 150ms.
Have a spare light on the box that I will have come on at say 0.05 deg before the target angle, that way I can stop swinging the quill from side to side and reach the target angle in the same place on the lap.

RoughCreations

  • Administrator
  • ALF'er Platinum
  • *****
  • Posts: 383
    • Rough Creations homepage
Re: Faceting machine head assembly.
« Reply #164 on: November 02, 2024, 05:28:20 PM »
Hi Frank,
I have a Jaycar rotary encoder knob on my control box that I can adjust the amount of smoothing or averaging on the fly, this works well for different laps. Email me the code that doesn't compile if you want, and I will see if I can compile it.
Rough Creations - Beauty from rough beginnings

 

Recent Activities

Pendant findings by Azard_faza
[Today at 08:40:30 PM]


Vulcan state forest/black springs. First finds by Bucket
[Today at 06:08:01 PM]


(No subject)COLLAPSABLE SIEVE SHAKER by Aussie Sapphire
[Today at 02:05:23 PM]


Does anybody know details of pink Dynalap laps by Alaskan
[November 03, 2024, 10:51:16 AM]


Faceting machine head assembly. by Faceting Frank
[November 03, 2024, 10:13:45 AM]


Garie Beach by oldbullhubbard
[November 01, 2024, 07:46:22 PM]


CRT Panel Glass by FlashGP
[October 31, 2024, 09:05:31 AM]


Faceting machine encoder by Faceting Frank
[October 30, 2024, 09:53:14 AM]


Andrew Brown's latest design book: Briolettes is out now! by Faceting Frank
[October 30, 2024, 09:48:32 AM]


Gemaster GF4 by MakkyBrown
[October 29, 2024, 09:58:24 PM]


New to Victoria, love lapidary, faceting and fossicking. by Rusted
[October 29, 2024, 09:21:19 AM]


Slabbing Saw Oil by Alaskan
[October 28, 2024, 07:50:31 AM]


Cutting Oregon Sunstones: A Step-by-Step Guide by Azard_faza
[October 25, 2024, 08:37:07 PM]


Spikes at Porters Retreat and Sapphire bend areas at Oberon by Jimnyjerry
[October 17, 2024, 09:38:21 PM]


New Design Books by Alaskan
[October 16, 2024, 11:39:55 AM]

SimplePortal 2.3.7 © 2008-2024, SimplePortal