collapse

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

Faceting Frank

  • Global Moderator
  • ALF'er Platinum
  • *****
  • Posts: 471
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: 1739
    • 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: 318
    • 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 Platinum
  • *****
  • Posts: 471
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 Platinum
  • *****
  • Posts: 471
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 Platinum
  • *****
  • Posts: 471
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: 318
    • 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: 318
    • 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 Platinum
  • *****
  • Posts: 471
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: 318
    • 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 Platinum
  • *****
  • Posts: 471
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: 318
    • 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 Platinum
  • *****
  • Posts: 471
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: 318
    • 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: 318
    • 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

Resin-bonded scissor-grinding lap by RoughCreations
[Today at 06:45:47 PM]


Tomahawk creek by Scratcher
[Today at 08:33:40 AM]


Garnet by pc bowe
[April 20, 2024, 01:56:47 AM]


Save the Gemfields. by pc bowe
[April 20, 2024, 01:46:57 AM]


Faceting machine head assembly. by Faceting Frank
[April 17, 2024, 12:26:26 PM]


New mast and quill assembly by Rusted
[April 17, 2024, 10:06:30 AM]


Victorian Copper Minerals by Manficat
[April 16, 2024, 03:44:27 PM]


Fitting a facet design to a piece of rough by RoughCreations
[April 10, 2024, 06:17:37 PM]


The illusion of cubes by RoughCreations
[April 09, 2024, 08:39:19 AM]


Hi from Toongabbie, Sydney Australia by PeterAUS
[April 05, 2024, 10:55:23 PM]


Blue Hills quarry and Sapphire bend access at Oberon by MrSydney
[April 05, 2024, 11:59:47 AM]


Nundle - Fossicking Access to the Peel River by tinker
[April 02, 2024, 04:33:25 PM]


Armidale to Tenterfield by Findem
[April 01, 2024, 05:48:29 PM]


Recently cut gems (AB Facet Designs) by mehoose
[March 28, 2024, 01:41:37 AM]


Lapidary Industry Turmoil in the USA by tinker
[March 26, 2024, 02:48:04 PM]

SimplePortal 2.3.7 © 2008-2024, SimplePortal