grblHAL / ESP32

grblHAL driver for ESP32
Other
68 stars 41 forks source link

Installation Instuctions #52

Closed nsiatras closed 1 year ago

nsiatras commented 1 year ago

I am tryingto upload the firmware to an ESP32 dev module.

Instructions says "Go into the ESP32 directory and modify settings in grbl/config.h and CMakeLists.txt as needed. Pin assignments and board specific config is in *_map.h files for each individual board."

Where is the ESP32 directory located ?

Thank you

terjeio commented 1 year ago

Where is the ESP32 directory located ?

In the directory where you downloaded/unpacked the source.

nsiatras commented 1 year ago

I see you changed the instructions to "Go into the ESP32/main directory and modify settings in grbl/config.h"

Makes sense now Thank you

nsiatras commented 1 year ago

I am using windows OS and I am trying to install the ESP32 grblHAL driver. Has anyone ever installed it using Windows OS ?

drom89 commented 1 year ago

Im building and flashing the firmware by Visual Studio Code.

terjeio commented 1 year ago

Development is done on a Win10 machine, usually I build and flash using Eclipse but occasinally flash with the idf.py command line utility. I have also flashed Web Builder builds with Win10.

nsiatras commented 1 year ago

@terjeio That Web Builder looks really nice !

Bravo!!!

nsiatras commented 1 year ago

I am using the Flash Download Tool to upload the firmware to my ESP32-WROOM-32D chip. The settings are as the following image

Unfortunately this doesn't work for me. Any ideas for different settings ?

nsiatras commented 1 year ago

I managed to upload the firmware. I use the SourceRabbit 4Axis CNC motherboard

If ound out that if if use 4 motors the X axis doesn't work The problem is at the config file https://github.com/grblHAL/ESP32/blob/master/main/sourcerabbit_4axis.h

The

#if N_ABC_MOTORS > 0
#define M3_AVAILABLE
#define M3_STEP_PIN         GPIO_NUM_33
#define M3_DIRECTION_PIN    GPIO_NUM_12
#endif

Should be changed to

#if N_ABC_MOTORS > 0
#define M3_AVAILABLE
#define M3_STEP_PIN         GPIO_NUM_12
#define M3_DIRECTION_PIN    GPIO_NUM_13
#endif
terjeio commented 1 year ago

Fixed in the latest commit.