Yet another attempt at 32 bit

Okay, so having given up on the Makerbase abomination I came upon this guy
https://embeddedtronicsblog.wordpress.com/2018/12/10/esp32-grbl/
who has wedded an Esp32 with a cnc shield, tweaked the code and come up with what looks to be quite satisfactory.
However, whilst I’m confident enough to alter config.h files etc there are settings I just cannot find in the ESP32 build.
Could someone point Forrest in the right direction of these please?
#define X_STEP_PIN GPIO_NUM_26

#define Y_STEP_PIN GPIO_NUM_25

#define Z_STEP_PIN GPIO_NUM_17

#define X_DIRECTION_PIN GPIO_NUM_16

#define Y_DIRECTION_PIN GPIO_NUM_27

#define Z_DIRECTION_PIN GPIO_NUM_14

SPINDLE_PWM_MAX_VALUE = 13bits (8192)

#define SPINDLE_PWM_BASE_FREQ 5000 // Hz

#define SPINDLE_PWM_BIT_PRECISION 8 // be sure to match this with SPINDLE_PWM_MAX_VALUE

#define SPINDLE_PWM_OFF_VALUE 0

#define SPINDLE_PWM_MAX_VALUE 255 // (2^SPINDLE_PWM_BIT_PRECISION)

#ifndef SPINDLE_PWM_MIN_VALUE

#define SPINDLE_PWM_MIN_VALUE 1 // Must be greater than zero.

#endif

#define SPINDLE_PWM_RANGE (SPINDLE_PWM_MAX_VALUE-SPINDLE_PWM_MIN_VALUE)

#define X_LIMIT_PIN GPIO_NUM_13

#define Y_LIMIT_PIN GPIO_NUM_5

#define Z_LIMIT_PIN GPIO_NUM_23

#define LIMIT_MASK B111

#define PROBE_PIN GPIO_NUM_36

#define CONTROL_RESET_PIN GPIO_NUM_2 // needs external pullup

#define CONTROL_FEED_HOLD_PIN GPIO_NUM_4 // needs external pullup

#define CONTROL_CYCLE_START_PIN GPIO_NUM_35 // needs external pullup

Please don’t start multiple threads for the same problem. It’s difficult for everyone.

If you are disappointed with my help. I can fix that.

:crying_cat_face:

Mate it’s a totally separate board/system :wink:

I bought this board:
https://www.ebay.co.uk/itm/193830898451

Coupled with the cnc shield from this:
https://www.amazon.co.uk/gp/product/B08KZRJDMD/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1

It appears that with the grbl settings altered it runs grayscale images quite nicely!

Is this applicable to the other machine?

:smiley_cat:

Yes, yes it is. I’ve dumped the Makerbase DLC 32 and am attempting to use a Wemos R32 (ESP32) board with a cnc shield.
I’ve managed to do the code alterations as required, but I just cannot get the libraries thing right.
I’ve downloaded the ‘correct’ board data, Espressif ESP32 but I just get many errors about how it cannot find certain files in library…
I could use some help with which folders/files do I copy to where from this download:
https://github.com/bdring/Grbl_Esp32

many thanks!

We don’t want to drift out of the topic here. I don’t know if grbl software development is really within the scope of this forum.

I don’t know what level of expertise you have in this area, so I’d probably be of little help. There are lots of articles and videos on programming the ESP device.

Really what you need is how to put the software package together so it will compile and link properly.
The library problem is common, so you need to go to whatever development platform you use site and see if you can find some help.

Good luck :slight_smile:

:smiley_cat:

If you’re looking for something that uses the ESP32 then here is a nice plug and play solution.

https://www.buildlog.net/blog/2020/07/a-new-fully-modular-cnc-controller/

Here is the firmware if you’re curious.

Yeah I’m heading off to an arduino forum me thinks!

Yeah I’m struggling to compile that firmware atm.
Unfortunately I’m UK based and that board is either out of stock or doesn’t ship to the UK!
Thanks for the heads up though.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.