gnea / grbl

An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on a straight Arduino
https://github.com/gnea/grbl/wiki
Other
4.03k stars 1.6k forks source link

Z axis not working #1113

Open abilAzazel opened 2 years ago

abilAzazel commented 2 years ago

Hello, my issue is probably something obvious but frankly I'm stumped. My Z axis just wont work, no matter how many times or what I try. I've already edited the config.h file and I've checked that PIN 11 on the Arduino actually goes to the Z axis end stop male headers on my GRBL board. However i simply have no idea why there is no 5V output from the as there should be. I'm building my own CNC from scratch and this is one of my last roadblocks, last time i had it working but for some reason my entirety of UGS crashed until I updated the Arduino IDE??? Man, this is so confusing. Any help would be greatly appreciated. Any tips as well!

Pethical commented 2 years ago

Hi,

If you are using grbl 1.1 then this is the correct pin map.

PIN 11 => Spindle PWM PIN 12 => Z-axis limit PIN 7 => Z-axis direction PIN 4 => Z-axis step

If you are using a CNC shield, then you should swap the spindle PWM and the Z-axis limit, because this shields are for grbl 0.9.