collapse

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

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 561
Re: Faceting machine head assembly.
« Reply #165 on: November 03, 2024, 10:13:45 AM »
Thanks for the offer of working on the code RC, but I need to create the code for this part myself. Reason being I will understand how it works and adjust it if needed.
Rachel De Barros has a good vid on how to multitask with the millis function, so I can see how to run the print area of the loop at it’s own millis speed.  Have also come up with an additional idea on smoothing the encoder reading with the variable speed dial on the motor. This is to print the last digit in the encoder reading on the screen, after the 150ms print delay, print the last digit next to the first. Then constantly repeat that, if there is much flutter in the lap those numbers will constantly change. In theory altering the motor speed should find the sweet spot that evens them up. Have a spare button wired in, so can turn it off if it’s annoying.

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 561
Re: Faceting machine head assembly.
« Reply #166 on: November 06, 2024, 08:37:43 PM »
  As I said before I was going to get a light to come on just before the target angle light. Got that working ok.
That’s going to be it for me and not bother with the averaging, can’t leave this programming stuff for long before you begin to forget.

MakkyBrown

  • Administrator
  • ALF'er VIP
  • *****
  • Posts: 1794
    • Andrew Brown Faceting Designs
Re: Faceting machine head assembly.
« Reply #167 on: November 06, 2024, 09:32:01 PM »
Your not wrong there Frank, I have reinvented the wheel a number of times.  ::) Like updating my webpage after each book, I really should take more notes.MB

RoughCreations

  • Administrator
  • ALF'er Platinum
  • *****
  • Posts: 388
    • Rough Creations homepage
Re: Faceting machine head assembly.
« Reply #168 on: November 07, 2024, 08:32:22 AM »
  As I said before I was going to get a light to come on just before the target angle light. Got that working ok.
That’s going to be it for me and not bother with the averaging, can’t leave this programming stuff for long before you begin to forget.
Too right. Be sure to put lots of comments in your code for exactly this reason...
Rough Creations - Beauty from rough beginnings

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 561
Re: Faceting machine head assembly.
« Reply #169 on: November 07, 2024, 02:22:34 PM »
Now it’s up and running I keep a record of any added bits of code. As below to turn the green light on 0.04deg before the target angle is reached. I think this eliminates the need for averaging because I will use this the same way I used to use the dial gauge. Which was to stop moving the quill from side to side just as the needle reached the stop point.

Green light code
47 float pretarget = -0.04;   // 0.04 deg before target angle
48 float pretargetangle;         // variable to be equal to anglestop variable

Start of loop

146 if (pretargetangle < eStoredAngle); {   // turn light on if true
147 digitalWrite (GREED_pin,HIGH);
}

174 pretargetangle = anglestop + pretarget;      // setting value of pretargetangle

178 lcd.setCursor (0,2);
179 lcd.print (“pre-A “);
180 lcd.print (pretargetangle);

 

Recent Activities

Pendant findings by Faceting Frank
[Today at 11:44:27 AM]


Good vs Bad cutting by Faceting Frank
[December 01, 2024, 08:47:59 AM]


Tumbling already naturally tumbled rocks/ quartz by Rock gal
[November 26, 2024, 10:36:31 PM]


Advice wanted re sanding and polishing a largish piece of petrified wood by hand by Rock gal
[November 21, 2024, 12:09:17 AM]


Black Opal? by Debono
[November 17, 2024, 03:22:50 PM]


Recently cut gems (AB Facet Designs) by swirly
[November 17, 2024, 02:31:38 PM]


Introductions by tinker
[November 14, 2024, 03:46:32 PM]


Vulcan state forest/black springs. First finds by Jimnyjerry
[November 08, 2024, 08:48:48 PM]


(No subject)COLLAPSABLE SIEVE SHAKER by Ranger Itchy
[November 08, 2024, 07:33:07 AM]


Faceting machine head assembly. by Faceting Frank
[November 07, 2024, 02:22:34 PM]


Does anybody know details of pink Dynalap laps by Alaskan
[November 03, 2024, 10:51:16 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]

SimplePortal 2.3.7 © 2008-2024, SimplePortal