GRBL_ESP32 🇬🇧

02 Sep 2020 04:03

Hello everyone,

I am creating this ESP32 dedicated topic to help any beginners like me out there that are frightened when it comes to electronics/development. Also, a huge thanks to @Philippe and @Peter Donovan who are the brains behind this tutorial!

Why the upgrade?

  • Faster (boots in 2 seconds)
  • Powerful (dual-core 32bits Ă  Less prone to G code errors)
  • Spindle relay control
  • Wifi/Bluetooth with a Web ESP3D interface (no need to USB all the time, but in case you do, you can use UGS or CNCjs)
  • Misting control
  • PWM Laser control
  • Probe connector
  • Micro SD
  • And probably much more…

First what you’ll need in comparison to the Arduino/CNC Shield:

Before installing the ESP32 on the Board, you’ll need to program it:

Prepare the computer

  1. Download and Install Visual Studio Code
  2. Download and Install Platformio IDE
  3. Plug the ESP32 Controller via USB to your computer.
  4. Check that it’s recognized: Device Manager > Ports (you should see another port)
  5. If you don’t see the controller in the ports list, check the USB list. It should be here with a warning; this means you need to install the drivers so it’s properly recognized by Windows.
  6. Check now that you can see the board in the Devices tab in Platformio (click refresh if not)

Prepare Files

  1. Download files https://github.com/tokaphi/Grbl_Esp32
  2. In Visual studio, File > Add folder to Workspace and look for the folder you just downloaded
  3. Under GRBL_ESP32 folder > Machine, open the file “topscnc_heavy.h”
  4. Modify this file based on your machine configuration (sizes, accelerations, etc)
  5. Close and Save topscnc_heavy.h

Compile and Upload

  1. Click on the Build icon (small check icon in the bottom left of your screen) No worries if you get warnings such as “HOMING_CYCLE_0” redefined, this won't prevent the successful install)
  2. Click on the Upload icon (right arrow icon in the bottom left of your screen). Wait a little but you should see a SUCCESS in green after 20/30 seconds.

Connect

Unplug and plug again the controller. Now, you should now see a new wifi network called “GRBL_ESP”. The password is 12345678. The ESP3D control interface will automatically popup once connected.

Missing file

Once connected to the controller, it will ask you for Index.html.gz

You can find the file in the original folder you downloaded on Github in the previous step

You are done with the microcontroller!You can now install it on the board. Be careful with the direction!

Modifications you’ll want to make to the $ parameters can be done through the interface (Wrench GRBL Icon at the top). No need to go back to visual studio. Unless major mods of course.

As for the rest of the install: I created a wiring diagram for beginners like me, hope this helps! You can also find the wiring for an optocoupler to avoid EMI... https://www.dropbox.com/s/m4e9qbq3mhpfq14/CNC%20Wiring.pdf?dl=0

As noted on the diagram, be aware of the inversion for the secondary Y motor like the picture below

MPCNC Grbl_ESP32 Controller

I'm almost done with my setup but I will update this original post as I go if need be.

Enjoy!

13 Sep 2020 06:54

@Tulutte dans ton tuto tu peux supprimer la modif de la ligne 19 de machine.h et la creation du fichier topcnc_heavy.h il me semble. Philippe l'a fait dans le dossier dont tu as mis le lien.

Marc

13 Sep 2020 23:59

C'est fait!

14 Sep 2020 07:21

Hello, je vais faire une section tuto, je peux épinglé ce topic ?

14 Sep 2020 19:57

Avec grand plaisir. Nous sommes tjrs en train de paufiner les details mais ca avance.

15 Sep 2020 08:08

Je viens de recevoir la carte ESP32 GRBL.......

Sauf que.....ben le contrôleur ESP32 que je possède lui ne possède pas le nombre de pins adéquate....15 au lieu de 19.....j'en ai donc commander un autre sur amazone.....

Réception demain. Si vous commandez faites bien attention à cela. Turlutte, peut-être faudrait-il mettre une note dans le premier post pour les couillons dans mon genre....je ne dois (enfin j'ose l'espérer) ne pas être le seul....
16 Sep 2020 19:32

Nouveau module reçu

On a bien les 19 pins

16 Sep 2020 22:20

super , ça avance ,

pour info , sur le PCB il y a une erreur sur GND du 5V pour le Fan .

si tu veux connecter un ventilateur en 5V pour refroidir les driver , il faudra soit récupérer le GND sur une autre pin soit faire une petite réparation sur la carte

comme ceci

17 Sep 2020 07:18

Salut Philippe,

Je suppose que tu as gratter le vernis et fait un pont de soudure avce le plan de masse dessous juste a coté??

Marc

17 Sep 2020 10:06

J'ai compilé et uploader apres avoir corrigé avec la commande pio install sur le nouveau controleur.

CNCjs reconnait bien la carte mais pas moyen d'avoir le réseau ESP-32. Des que je débranche le controleur de l'usb et que je le rebranche la console tourne en boucle sous CNCjs il faut appuyer sur RST à chaque fois pour que cela s'arrete. Je ne suis pas certain que CNCjs identifie GRBL sur le controleur


EDIT : me demandez pas pourquoi tout est rentré dans l'ordre apres un Nième branché-débranché


17 Sep 2020 13:43

@Idefixes, de memoire ca m'a fait la meme chose avec CNCjs

Reply

Log in