collapse

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

Alaskan

  • ALF'er Silver Member
  • *
  • Posts: 53
  • Will AI have curiosity and a sense of humor?
Re: Faceting machine head assembly.
« Reply #90 on: June 06, 2024, 02:15:21 AM »
And this is why using the dial indicator to pin the tail on the donkey is not the solution to 100 + facets.
I'm back to P5 & P6 on Supernova - went back to the girdle and believe there's enough above to finish the crown baring another mistake.
Anxious to see if using the dial indicator tenths divided by 12 can land the table on this pale blue glassy lab created zircon.
Love the designs in Volume 6. 👍

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 561
Re: Faceting machine head assembly.
« Reply #91 on: June 09, 2024, 03:25:53 PM »
See what you mean by the grub screw being hard to find once you pull the allen key out MB. Got the encoder fitted to it’s ally base and a plastic shaft fitted that I can turn by hand. This base is already pre-aligned with the quill shaft. Have soldered the encoder connecting cable to some board cables, so I get it working before fitting it to my machine. Creating my code from both yours RC and Tom Herbst in Arduino, compiling it as I go to get any bugs out. Will see if I can get the encoder working with a vey simple loop to start with.





Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 561
Re: Faceting machine head assembly.
« Reply #92 on: June 11, 2024, 03:08:54 PM »
To my surprise got the encoder working without too much of a problem with my simple code. None of the numbers on the screen mean anything yet because the maths in the code is not right. But I’m a happy camper.



MakkyBrown

  • Administrator
  • ALF'er VIP
  • *****
  • Posts: 1794
    • Andrew Brown Faceting Designs
Re: Faceting machine head assembly.
« Reply #93 on: June 12, 2024, 09:02:12 AM »
Well done Frank  beers

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 561
Re: Faceting machine head assembly.
« Reply #94 on: June 13, 2024, 08:18:20 PM »
Putting the code together I need to run the encoder, mostly from Tom Herbst and the encoder part from your code RC and my pinout which works ok. I can get Tom’s entire code to compile ok as is in Arduino bar the attachInterrupt lines. Same goes for your code RC, both do not like the doA or doB statement.
So just a question MB and RC, what did you put in the lines.
   attachInterrupt(0,doA,CHANGE); and attachInterrupt(1,doB,CHANGE);. 0 and 1 being the numbers in Tom’s code. I know that “do” is similar to “while” which you use in loops and I sort of understand the attachInterupt. That is attachInterupt(interrupt number, name of interrupt, mode); Mode in this case being  “CHANGE”. So, I am stuck with a “doA not declared in this scope”. So it does not know what doA does.

RoughCreations

  • Administrator
  • ALF'er Platinum
  • *****
  • Posts: 388
    • Rough Creations homepage
Re: Faceting machine head assembly.
« Reply #95 on: June 14, 2024, 09:33:00 AM »
Putting the code together I need to run the encoder, mostly from Tom Herbst and the encoder part from your code RC and my pinout which works ok. I can get Tom’s entire code to compile ok as is in Arduino bar the attachInterrupt lines. Same goes for your code RC, both do not like the doA or doB statement.
So just a question MB and RC, what did you put in the lines.
   attachInterrupt(0,doA,CHANGE); and attachInterrupt(1,doB,CHANGE);. 0 and 1 being the numbers in Tom’s code. I know that “do” is similar to “while” which you use in loops and I sort of understand the attachInterupt. That is attachInterupt(interrupt number, name of interrupt, mode); Mode in this case being  “CHANGE”. So, I am stuck with a “doA not declared in this scope”. So it does not know what doA does.
Hi, that error normally means that you have called a function that hasn't been declared yet in the code. Check your braces carefully to see that they're matched where you expect ("{ }").
Make sure doA and doB are discrete functions, on their own, and are outside of the loop {} function's braces.
Also check that your attachInterrupt statement is within the setup{} function, straight after the pinMode statements.
If you're still stuck, just email me the code.
I will also email you a very early version of the encoder code for my very first box with an LCD screen and a little Arduino Nano board.

RC
« Last Edit: June 14, 2024, 09:52:52 AM by RoughCreations »
Rough Creations - Beauty from rough beginnings

MakkyBrown

  • Administrator
  • ALF'er VIP
  • *****
  • Posts: 1794
    • Andrew Brown Faceting Designs
Re: Faceting machine head assembly.
« Reply #96 on: June 14, 2024, 09:43:41 AM »
Frank check your main loop to make sure all the brackets match up and it closes off before the doA, doB functions.

RoughCreations

  • Administrator
  • ALF'er Platinum
  • *****
  • Posts: 388
    • Rough Creations homepage
Re: Faceting machine head assembly.
« Reply #97 on: June 14, 2024, 09:54:01 AM »
Frank check your main loop to make sure all the brackets match up and it closes off before the doA, doB functions.
Beat ya, lol.
Rough Creations - Beauty from rough beginnings

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 561
Re: Faceting machine head assembly.
« Reply #98 on: June 14, 2024, 12:01:45 PM »
Thanks for the info and email with your code RC. Will look at the {}. The thing that puzzles me is that I cannot see any mention of doA or doB in either Tom's or Iveska's code prior to it being called up in the, attachinterups. Apart from a //doA //doB mension just prior in Iveska's. // means it will ignore that comment anyway. If I // out the two attachinterupt lines in Tom's code it will compile. Anyway, will look at it more later. Thanks you both for your response.

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 561
Re: Faceting machine head assembly.
« Reply #99 on: June 14, 2024, 03:00:57 PM »
Got Tom's code to compile now. The cause of it not working was a missing comment about doA further down the code. I always thought "not declared in this scope" was something wrong prior to the problem line. So, back on track and will do the needed mods to get it working with my encoder.

RoughCreations

  • Administrator
  • ALF'er Platinum
  • *****
  • Posts: 388
    • Rough Creations homepage
Re: Recently cut gems (AB Facet Designs)
« Reply #100 on: June 17, 2024, 10:58:54 AM »

PS: What code are you using for your programming - I will get Tom Herbst volumes out and... time flies?

Ardurino... but which board and program?
Encoder code has evolved from Tom Herbst Volume 2 book, page 406.
I have developed my code from MB's code, which he in turn based on the book info.
The code we use is written in C++ language.
The best way to get started is read the relevant section of the book, then read the MB Encoder Mod thread on this site; based on fitting an encoder to a Gemmasta machine. https://aussielapidaryforum.com/forum/index.php?topic=4997.0
And more recently, Faceting Frank's current thread, he's smashing the coding and micro-controller learning curve!
https://aussielapidaryforum.com/forum/index.php?topic=7057

We're generally favouring ESP32 boards at the moment, that is boards with an ESP32 micro-controller on board. They can be had pretty cheaply, and have lots of functionality.

RC
Rough Creations - Beauty from rough beginnings

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 561
Re: Re: Recently cut gems (AB Facet Designs)
« Reply #101 on: June 17, 2024, 10:17:24 PM »
Partly answering your questions, you put on my picture Alaskan.
The board I’m using is. NodeMCU-32S ESP32s development Board for Arduino and the screen is a 16x2 LED. The screen is very basic but both it and that type of board are used in all the YouTube tutorials I’ve come across. This makes it much easier to follow their instructions and learn how to write code and wire it all up.  I got all my stuff of eBay and I will make up a list of all the stuff I currently have.

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 561
Re: Re: Recently cut gems (AB Facet Designs)
« Reply #102 on: June 18, 2024, 09:28:35 AM »
Have put the info on the parts I’m using Alaskan on my thread.

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 561
Re: Faceting machine head assembly.
« Reply #103 on: June 18, 2024, 09:31:17 AM »
These components and how to use them are all from tutorials I’ve looked at. I got all this stuff from eBay the description of the part is from their website. Most of the small parts are sold in bulk. The potentiometer, the 3 pinned thing with the white top is needed to control the screen text sharpness. The 5 pinned encoder is just a cheap one to learn with. MakkyBrown would be the best person to talk to about an encoder to suit your setup.

10x MICRO TACTILE SWITCH Momentary 12x12 Push Button 12V 50mA Arduino Breadboard

2 Watt 330Ω 330R Ohm Metal Oxide Film Fixed Resistor MOX 5% 2W 15mm Axial

2 Watt 10KΩ - 10K Ohm Metal Oxide Film Fixed Resistor MOX 5% 2W 15mm Axial

5Set WH148 Linear Taper Rotary Audio Potentiometer Convenient Useful for Arduino

Rotary Encoder Round Knob Module High Precision Convenient Portable for Arduino

140x Shape Solderless Breadboard Jumper Cable Wire Kit For Assorted Breadboard

Premium 20pcs 3mm LED Light Emitting Diode Red Orange Yellow Green Blue White






« Last Edit: June 18, 2024, 09:34:42 AM by Faceting Frank »

MakkyBrown

  • Administrator
  • ALF'er VIP
  • *****
  • Posts: 1794
    • Andrew Brown Faceting Designs
Re: Faceting machine head assembly.
« Reply #104 on: June 18, 2024, 04:40:08 PM »
I wouldn't use the jumper wires for the final wire up as some are made of steel, put a magnet on them or cut one to test. Solder it all up on a project board.

I think Alaskan machine will allow a higher cpc encoder to be bolted on. Find out the shaft size and buy from US Digital. If it has a US Digital encoder on it, he may get away with just buying a new code wheel and reader and using the sample case/housing. It could then just a case then of getting an encoder display box made up, perhaps be a case of plug and play. I think 5000cpc is still the highest resolution they make for the case size on it. Alaskan, does your encoder case(not control box/dispaly have any numbers/model number on it?
I am still over run with projects, I will have more time later in the year when I get on top of everything.
MB

 

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