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.04k stars 1.61k forks source link

Motors Not Moving #549

Closed AcrimoniousMirth closed 5 years ago

AcrimoniousMirth commented 5 years ago

Hi, When I send a move command from UGS, the motor powers on and locks so it can't be rotated by hand. It does not, however, move. I've tried this with new and old motors, two CNC shields and the DRV8825 drivers. I'm pretty sure step length is correct (10us), steps/mm is fine and acceleration I've also set low for testing this issue. Any ideas?

X3msnake commented 5 years ago

If you have access to a 5.usd logic analizer, you can use the open source software sigrok and check that the driver pins are firing in the correct order to eliminate problems from the shield or the arduino.

logicanalizertestingarduinologicstepperdriver

logicanalizertestingarduinologicstepperdriverzoom

I had a arduino clone that came with missing header pins and took us a long time to find the problem

image

chamnit commented 5 years ago

@AcrimoniousMirth : Before you go and pull out a logic analyzer, please post your Grbl $$ settings, $I build info, and a brief description of your setup. It's probably much simpler that than.

@X3msnake : Thanks for the logic analyzer recommendation. Looks like it would be very handy. It looks much easier to see what's going on, over my oscilloscope.

X3msnake commented 5 years ago

@chamnit Yeah it's a nice piece of equipment for the price, any chinese salae clone will do specially if you use sigrok. Even the most basic one comes with at least 8 ports

It was the only way we finally debbuged a DVD CNC we were trying to build that despite all settings being correct would not move.

The missing pin was the step pin, we were able to see the direction and the enable change state but the step was dead, only after close inspection we saw the reason

@AcrimoniousMirth please do post the settings, @chamnit is right better to see if nothing is funky there first :)

AcrimoniousMirth commented 5 years ago

@X3msnake @chamnit

Thank you both! I kept playing around with it and I’m not entirely sure what I did but it started working. Probably just user error, the settings were default (as I’m just now getting back to retrying to build the CNC since stopping last year due to the same issue). Will look into getting one of those anyway, looks handy!