collapse

Author Topic: Faceting machine encoder  (Read 429 times)

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 561
Faceting machine encoder
« on: October 28, 2024, 01:57:29 PM »









Have had my encoder setup working for a couple of weeks now and very happy with it. Can set the target angle by pressing a button and have a light on it that comes on as soon as the target angle is passed.
 Many thanks to MackkyBrown and RoughCreations for helping me putting this together. Their ongoing advice through what turned out to be a marathon thread “Faceting machine head assembly” was invaluable. It took me seven months in total from start to finish, working on it an average of about 15-20 hours per week, nearly all of it looking at YouTube vids on programming and wiring up the components. The basic code for this already exists, written by Tom Herbst which can be downloaded from his website www.facetingbook.com. In his book Amateur Gemstone Faceting volume two, he dedicated 24 pages to fitting an encoder to a faceting machine.  This is the code I used, but its way out of date and trying to modify it to suit the newer electronics without understanding the basics of programming can’t be done. Also, he has a lot of code in there for his depth of cut indicator and buzzer, which I want to change to a simple light indicator.
I thought I could help those who wanted to have a go at fitting one, by pointing out which are the best YouTube vids for beginners and what I found to be the most suitable components.
Good YouTube vids.
Paul McWhorter has 36 vids on Arduino programming for beginners. My best choice to get started, though a bit of unnecessary banter in them.
Arduino Tutorial for Beginners. A series of vids on the subject.
Rachel De Barros has a couple of good vids, a bit more advanced and more banter.
There are heaps more to look at.

Apart from the encoder, the other main components I used are being used by the people in the vids. That’s a simple LED screen and a 32 pin DUINO  board with an ESP32 processor on it, that board is near identical to the ones used by people in the vids. This makes following their wiring instructions a piece of cake. Excluding the encoder the above components, plus the required lights, buttons, wiring etc. would come to about $100
Don’t start off with a TFT touch screen, wait till you know what you’re doing with this stuff first.

 My encoder is an Avago Technologies AEDM-5810-Z12 5000cpr encoder with a 6mm hollow shaft. That gives 20,000 positions through 360deg, which means it has an accuracy of 0.018deg per step.

Another bit of useful info is a PDF file called Arduino programming notebook by Brian W Evans. It describes what all the different commands mean and how they are used.

I joined Facebook forums and Arduino programming forums with mixed results. I would suggest you get past the total beginner stage before using them. Otherwise, you won’t have a clue what they’re on about.


« Last Edit: October 30, 2024, 01:42:34 PM by Faceting Frank »

Pro-oz

  • ALF'er Silver Member
  • *
  • Posts: 90
Re: Faceting machine encoder
« Reply #1 on: October 28, 2024, 03:47:54 PM »
Good write up and info. Maybe I'll have a go one day but way over my head, I think. Thanks for sharing.

MakkyBrown

  • Administrator
  • ALF'er VIP
  • *****
  • Posts: 1794
    • Andrew Brown Faceting Designs
Re: Faceting machine encoder
« Reply #2 on: October 29, 2024, 10:02:18 PM »
Well done Frank, impressive how to stuck at it and didn't give up. I think a simple buzzer when the target angle is first hit could be good, wake me up when day dreaming.  And I really want to try the 10,000cpr encoder I have.

Cheers
MB

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 561
Re: Faceting machine encoder
« Reply #3 on: October 30, 2024, 09:53:14 AM »
Where the box is located I see the light even when not looking at it.

 

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