[Grbl_Esp32 Issue#96] Spindle direction pin

未分类 bolang 3个月前 (10-14) 41次浏览

Issue #96 | 状态: 已关闭 | 作者: bovo-fabiano | 创建时间: 2019-02-20

标签: question


Hello all!
I have an Arduino Grbl project in which I use Coolant, Mist and Spindle Enable, setting those in the config.h as usual. Flood stills in pin A3, Mist goes to pin A4 and Spindle Enable goes to pin D13 leaving PWM on pin D11.

I noticed Grbl_Esp32 has the same options but I wonder what pin to use as Spindle Enable.

In cpumap.h line 59 it shows CoolantFlood on GPIOnum16 and CoolantMist (default commented) on GPIOnum21. In lines 83 and 84 it shows SpindleEnable and SpindleDir (both default commented) on the same GPIOnum_16.

I don’t need spindle direction but my project needs a Spindle Enable.

How could I set that?

Thanks in advance!


评论 (5)

#1 – bdring 于 2019-02-20

Is this a custom design or are you using an existing pcb?

You can use any pin that is available and can be an output. Are you using the probe feature? You could use that pin. Maybe GPIONUM21 or 21?

Did you see this page?

https://github.com/bdring/Grbl_Esp32/wiki/Setting-Up-the-I-O-Pins


#2 – bovo-fabiano 于 2019-02-20

Thanks for your prompt reply Mr. Bart!

I have a custom PCB much like yours for the Arduino Nano I use. It’s a multi purpose XYZ machine for personal use. I don’t have an inside picture but you can see the machine here: https://youtu.be/cgXZaWFyrTY

What about using:

GPIONUM16 for Spindle Enable
GPIONUM17 for Spindle PWM
GPIONUM21 for Coolant Mist
GPIONUM22 for Coolant Flood
GPIONUM32 for the Probe

I see that using #21 and #22 would prevent me to use LCD in the future but it is not a problem for me as I control it with an old computer running Linux. In this same thought I wouldn’t need the SD card and ther would be many pins available.

Thanks!


#3 – bdring 于 2019-02-20

Those pins should probably work.

I prefer to use a smartphone via wifi, rather than an LCD.

The SD is a very nice feature. In the future, there may be web based features to Grbl_ESP32 that require the SD card.


#4 – bovo-fabiano 于 2019-02-20

Ok! I will keep the SD Card at first.

Considering your board, does it work with that ping configuration?

Have you wondered adding relays to the M3, M7 and M8 commands? That’s what I did in my Arduino Board.

Thanks,
Fabiano Bovo – Brazil


#5 – bdring 于 2019-02-20

GPIO 20 and 21 don’t have connector pins on my board. Other than that you pinout is OK

My board is intended as a general purpose development board. I don’t want to make it too specific for one application.


原始Issue: https://github.com/bdring/Grbl_Esp32/issues/96

喜欢 (0)