So I wired up my machine and I am able to get motion in all 3 axes. I am using an Arduino loaded up with GRBL and a Gecko G540 as the stepper driver.
I read on the Gecko manual that the G540 was designed to have NC limit switches. However,the GRBL README calls out for NO.
So I went for NO and wired each switch to its own input pin on the Arduino. D9, D10 and D12
Then during testing, I tried to perform a homing command on one of my axes and it crashed into the switch and broke it. Was just a little bit too slow to reach EStop.
So before I try anything else, I wanted to find out where I went wrong.
Please ask me anything I need to clear up to help you guys help me.
Thanks in advance for your help.
Frank
EDIT: I had many problems with my setup.
-
I couldnât use easel because the inventables hex would not flash properly since I was using Windows 10. I cannot fully vouch for this, but XLoader didnât work for me. Then when I tried flashing the arduino with the method linked below, I was able to use easel. I made sure that I DIDNâT ârun as adminâ on the .bat file.
[Reference thread] Alternate method for .hex upload - Troubleshooting - Inventables Community Forum -
I was able to flash the main fork of GRBL on the first flashing, which provided me with the default GRBL settings. So I changed each one of GRBLâs settings by copying one of LarryMâs post of his settings.
X-carve Grbl Default Settings - 500mm - Assembly - Inventables Community Forum -
This is part of where I went wrong, having copied someone elseâs settings my steps/mm was not calibrated to my machine, so whenever I sent a homing command, my machine would approach the Z-axis switch and it would click. Then it would back off as per the pull off distance, but since the calibration was off, it wouldnât pull off far enough away so that the switch would open circuit again. This caused the homing operation to fail. So I increased my pull-off distance ($27=1) to ($27=10) just an arbitrary number that seemed like it would be large enough to pull away. After making that change, my machine pulled far enough away from the switch after the initial click. Then it would approach it again at a slower rate for a more precise re-positioning and pull off again. Then the X and Y axes followed. So my homing went perfectly finally!