collapse

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

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 560
Re: Faceting machine head assembly.
« Reply #30 on: February 25, 2024, 07:33:07 PM »
Ordered the female header pins and a board the same as RC's, also an encoder cable the same as RC's. So must be getting close to having all the required parts.

MakkyBrown

  • Administrator
  • ALF'er VIP
  • *****
  • Posts: 1794
    • Andrew Brown Faceting Designs
Re: Faceting machine head assembly.
« Reply #31 on: February 25, 2024, 11:30:53 PM »
How you planning to power it ? Definitely can power the encoder off the ESP 32 5V output, not sure if it can power the screen as well. Might be worth getting some voltage regulators one to VIN the ESP 32 and another for 5V to the screen. I have to check screen voltage.

I am bit rusty on it all atm will have to have a look at what all the voltages are including the logic voltages.
Might help if you draw up a schematic of the wiring and components etc. Read the data sheets. And I'll have a look at the screen I have wired up to an esp 32, screen and stepper tomorrow.

RoughCreations

  • Administrator
  • ALF'er Platinum
  • *****
  • Posts: 388
    • Rough Creations homepage
Re: Faceting machine head assembly.
« Reply #32 on: February 26, 2024, 04:33:52 PM »
I am bit rusty on it all atm will have to have a look at what all the voltages are including the logic voltages.
Might help if you draw up a schematic of the wiring and components etc. Read the data sheets. And I'll have a look at the screen I have wired up to an esp 32, screen and stepper tomorrow.
MB - I have been having a bit of a go at updating my code for use with the 480x320 colour TFT screens.
Found it interesting that you need to employ the use of Sprites for displaying the live encoder angle information for decent performance, i.e. no flickering with these screens. You create a Sprite (which is a fraction of the actual available screen real estate) using the TFT_eSPI library, draw to it, and then finally 'push' the Sprite (visibly update it) when needed, but not unnecessarily frequently, as this degrades performance. The smaller you make the Sprite, the better the performance if the Sprite is being pushed every loop. Visual elements that don't need to be updated every loop (such as fixed text) can still go in a Sprite, but are only pushed once at the beginning in the Setup() part of the code.
RC
« Last Edit: February 26, 2024, 04:39:50 PM by RoughCreations »
Rough Creations - Beauty from rough beginnings

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 560
Re: Faceting machine head assembly.
« Reply #33 on: February 26, 2024, 07:46:39 PM »
Got the screen today, but have not downloaded the data sheet on it yet. Would prefer to have all the parts before trying to work out how it's all going to work. The mechanical parts of this build are going well and have taken a few pics as it progresses. Will start a new thread on this build shortly.

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 560
Re: Faceting machine head assembly.
« Reply #34 on: March 04, 2024, 02:20:16 PM »
Now have all the parts I need to get the encoder working (I think), already have a suitable sized plastic control box. Saved a few You Tube links on wiring the esp32 to the screen some have links on getting code for the esp32 to ILI9488 touch screen. Will run them off my laptop USB and play around with it till I have a better understanding of it all. Then see how to connect the encoder to the esp32.

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 560
Re: Faceting machine head assembly.
« Reply #35 on: March 04, 2024, 03:11:52 PM »
Just discovered the jumper cables I've bought are square pin and the board has round holes. So, it seems there are square holed solderless boards. Have just ordered a couple, plenty more stuff ups to come before I get this finished.

RoughCreations

  • Administrator
  • ALF'er Platinum
  • *****
  • Posts: 388
    • Rough Creations homepage
Re: Faceting machine head assembly.
« Reply #36 on: March 04, 2024, 04:28:08 PM »
Just discovered the jumper cables I've bought are square pin and the board has round holes. So, it seems there are square holed solderless boards. Have just ordered a couple, plenty more stuff ups to come before I get this finished.
Hi Frank,
The jumper cables are just for testing or prototyping, they should clip on fine to the pins on the screen, encoder and the ESP32.
Once you are happy with your basic circuit, you will solder most of your connections anyhow.

RC
Rough Creations - Beauty from rough beginnings

RoughCreations

  • Administrator
  • ALF'er Platinum
  • *****
  • Posts: 388
    • Rough Creations homepage
Re: Faceting machine head assembly.
« Reply #37 on: March 04, 2024, 04:30:41 PM »
Now have all the parts I need to get the encoder working (I think), already have a suitable sized plastic control box. Saved a few You Tube links on wiring the esp32 to the screen some have links on getting code for the esp32 to ILI9488 touch screen. Will run them off my laptop USB and play around with it till I have a better understanding of it all. Then see how to connect the encoder to the esp32.
Might pay to use the same pin numbers on the ESP32 board as myself or MB, then it will be easier to exchange code between us.
Rough Creations - Beauty from rough beginnings

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 560
Re: Faceting machine head assembly.
« Reply #38 on: March 04, 2024, 09:04:34 PM »
Thanks for the help regarding the code. I will wait to get the new board before looking at this again, I understand that the plug-in thing is just to get it working first.

RoughCreations

  • Administrator
  • ALF'er Platinum
  • *****
  • Posts: 388
    • Rough Creations homepage
Re: Faceting machine head assembly.
« Reply #39 on: March 04, 2024, 09:27:18 PM »
Hi Frank,
There's nothing wrong with the nodeMCU ESP32 boards you originally got, the pin numbers will correspond to my Arduino Uno form-factor ESP32 board anyhow. Won't hurt to have some spares either way. As MB said earlier, two rows of 19 female header pins soldered to your project board will form the final mount for your ESP32 board. This will give you the ability to easily remove a board for replacement if ever required without having to solder/de-solder.
The following is my board to screen connection diagram, there are other variations to connect them together of course.

My board to screen connections

RC
« Last Edit: March 05, 2024, 08:25:19 AM by RoughCreations »
Rough Creations - Beauty from rough beginnings

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 560
Re: Faceting machine head assembly.
« Reply #40 on: March 05, 2024, 08:53:24 AM »
Thanks RC, have saved that picture.

RoughCreations

  • Administrator
  • ALF'er Platinum
  • *****
  • Posts: 388
    • Rough Creations homepage
Re: Faceting machine head assembly.
« Reply #41 on: March 05, 2024, 10:16:44 AM »
Thanks RC, have saved that picture.
No worries, I have now updated the pdf to include the encoder wiring I used as well, please re-visit the link above to see the latest version,

RC
Rough Creations - Beauty from rough beginnings

Faceting Frank

  • Global Moderator
  • ALF'er VIP
  • *****
  • Posts: 560
Re: Faceting machine head assembly.
« Reply #42 on: March 05, 2024, 10:40:04 AM »
Thanks, have saved that. So, the whole thing is powered by the 5v USB on the esp32?

RoughCreations

  • Administrator
  • ALF'er Platinum
  • *****
  • Posts: 388
    • Rough Creations homepage
Re: Faceting machine head assembly.
« Reply #43 on: March 05, 2024, 11:18:47 AM »
Thanks, have saved that. So, the whole thing is powered by the 5v USB on the esp32?
The micro USB port powers everything - board, screen and encoder while you are experimenting, and allows uploading of code to the ESP32 board. When you are finished developing and want to install it into your plastic enclosure, a DC power adapter can power it all via the standard plug pack socket you can see on my board, or as MB has previously said, you can include a small voltage regulator board (Jaycar sell them for a few dollars) located between a plug pack adapter and the ESP32, which is what I have done. This allows you to put in a power switch if you want more easily too.

RC
Rough Creations - Beauty from rough beginnings

RoughCreations

  • Administrator
  • ALF'er Platinum
  • *****
  • Posts: 388
    • Rough Creations homepage
Re: Faceting machine head assembly.
« Reply #44 on: March 05, 2024, 11:39:42 AM »
Just to prove I have nothing up my sleeve:

https://youtu.be/2KaA5wX_N9U
Rough Creations - Beauty from rough beginnings

 

Recent Activities

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]


Pendant findings by Bucket
[November 26, 2024, 02:36:26 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