Skip to content

Run Laser CNC,Grbl_ESP32

Mark edited this page Nov 30, 2021 · 8 revisions

Install Grbl firmware

  1. Install Platformio and Vscode

  2. Download Grbl_Esp32-main this code is based on the Grbl_Esp32.

  3. Opening folder "Grbl_Esp32-main" with VScode Platformio

  4. Select a board.

    Open the Grbl_Esp32\src\Machine.h, you can find the default board is PandaM4

    #include "Machines/4axis_PandaM4.h"

    if you use PandaZHU, please change it to

    #include "Machines/4axis_PandaZHU.h"

    farther more if you want to change the laser control type or control pin,you need to change it yourself in the 4axis_PandaM4.h or 4axis_PandaZHU.h the default are

    #define SPINDLE_OUTPUT_PIN 22

    #define SPINDLE_TYPE SpindleType::PWM

  5. Build project by click the Bee icon--> release--> Build.

  6. Flash firmware with microUSB: Connect PandaZHU or PandaM4 board to your computer with a microusb line,install CH340G USB driver , make sure there is a SD card in the slot(use the sd card detection pin(GPIO2) as firmware Download boot mode) and no serial/uart touch screen connected.Then Click to upload.

Wiring

Laser cut with PC

  1. Download and install LaserGBL from https://lasergrbl.com/

  2. Connect to board with one usb line

  3. Open and choose one picture which you want to cut

  4. Click Run button