I have searched but can't seem to find a solution for this issue.
Sorry for the long post but I included the UGS output from 2 different GRBL revs since they gave different results.
Hopefully this helps point to a solution.
So far all I can make the motor do is "buzz".
Is there some basic step I missed in connecting or configuring this ?
I have an Arduino Uno with CNC Shield v3.00 from info.protoneer.com. I am using a Zyltech 1.5A 0.42 N.m stepper motor with a 8825 driver and the cable that came with the bundle (motor/shield/arduino) to connect the motor to the shield. I have 12V applied to the shield and only 1 driver/motor connected.
I was able to compile and upload GRBL to my arduino.
When I load v0.8 GRBL and start UGS I get the below:
**** Connected to COM3 @ 9600 baud ****
Grbl 0.8c ['$' for help]
At this point I can still move the motor by hand but if I select Jog Controller I can hear a buzzing from the motor but it does not move and it can't be rotated ... it is like it is locked. The X0 value in UGS does increment but very slowly.
Also if I cancel the Jog then I get:
**** Canceling file transfer. ****
**** Pausing file transfer. ****
[Error] Timeout waiting for GRBL to Idle during cancel, cancel incomplete.
At this point I need to close the connection and reconnect to send any further commands.
==========================
If I try using v0.9j or v1.1h of GRBL I get warning messages when compiling the sketch saying that true, false, min, max and bit are being redefined but it still completes and allows upload to the Arduino.
The startup in UGS is slightly different from the 0.9 version and I can still send further commands after cancelling a Jog. The Jog again makes the motor buzz but no movement.
**** Connected to COM3 @ 115200 baud ****
Grbl 1.1h ['$' for help]
Open the serial terminal from arduino on /dev/ttyUSB0 (or where ever your board is connected to) and try the commands by hand. (I had bad exerience with UGS.)
zwieblum:
Open the serial terminal from arduino on /dev/ttyUSB0 (or where ever your board is connected to) and try the commands by hand. (I had bad exerience with UGS.)
?
f100
g1
x10
If it moves, your hardware is fine.
I tried the above...didn't know I could send commands this way.
Unfortunately same results. After I do the x10 the motor buzzes for a few seconds then stops.
Again motor can't be moved when buzzing but it moves freely when before/after buzzing.
Will the above code pass the commands to the CNC shield to control the motors ?
I hadn't tried separate code as then I might have my code issues to deal with.
I figured the direct CNC to motor with UGS should be the least error-prone way to get the motors moving.
Ultimately my goal is to send Gcode to the motor so that is also why I started with GRBL.
Will the above code pass the commands to the CNC shield to control the motors ?
Yes.
I figured the direct CNC to motor with UGS should be the least error-prone way to get the motors moving.
This test code eliminates grbl, it directly checks the hardware.
Just upload and run the test code. It is written for an Uno with a CNC V3 (grbl) shield. The code is tested and runs successfully on my Uno with CNC shield.
groundFungus:
Yes.
This test code eliminates grbl, it directly checks the hardware.
Just upload and run the test code. It is written for an Uno with a CNC V3 (grbl) shield. The code is tested and runs successfully on my Uno with CNC shield.
I used the code and I get the same results. I hear a buzzing sound from the motor but no movement. Before I run the code I can easily move the motor but when I run the code the buzzing occurs and the motor seems locked. When I stop the code the buzzing stops and the motor then is able to be rotated.
I watched a bunch of videos and a few things i noticed.
Some people put a jumper between the EN and GND on the Shield - Is this required ?
`Some people adjust the driver Vref - I just used the stock setting - Is this required ?
The motor has a rating of 1.5A - I wonder if my 12V supply is not providing enough amperage....
Some people put a jumper between the EN and GND on the Shield - Is this required ?
Pin 8 is the enable pin. In my code pin 8 is set to output and low. That is the same as tying it low.
`Some people adjust the driver Vref - I just used the stock setting - Is this required ?
Those people know what they are doing. It is critical to set the Vref (stepper coil current limit). Look on the internet for instructions on how to properly set Vref on your driver.
The motor has a rating of 1.5A - I wonder if my 12V supply is not providing enough amperage....
What is the Amp rating of the supply?
After you set the Vref on your driver, try swapping the wires on one stepper coil's wires. Swap 1A and 1B or 2A and 2B. Make SURE to power the driver down before disconnecting or connecting any wires.
I adjusted my vRef...it was way too high for my motors. I was lucky I didn't damage them.
Once Vref was properly set when I sent a JOG command I noticed that the buzzing sound was much quieter and if I looked very very carefully the motor was moving but in such a small amount I almost thought it wasn't moving at all. Once I increased the feed rate to 100 (I had it originally at 1) I could easily see it was moving.
Thanks for all the help!
Hopefully others can use this info to solve their "buzzing motors" issues.