Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GRBL Disconnecting randomly during a job #1158

Closed
hardingb4 opened this issue Aug 11, 2022 · 3 comments
Closed

GRBL Disconnecting randomly during a job #1158

hardingb4 opened this issue Aug 11, 2022 · 3 comments

Comments

@hardingb4
Copy link

I am having the issue of GRBL disconnecting randomly during a job. I make crib boards so I use the same gcode over and over, attached is the gcode for drilling the 367 holes needed for one board. It randomly will stop in the middle because the machine disconnects. I have to disconnect the USB and plug it back in before I can reconnect to the machine. By random, I mean it happens after 10 holes sometimes, sometimes it finished two boards. Almost always it disconnects while moving from hole to hole at rapid speed.

My setup:
Homemade cnc with Arduino Uno with shield running A4988 drivers. 500w air cooled spindle.
Power for the Arduino is from a 24V power supply and power for the spindle is from its own power supply. Both power supplies use the same power cord to get power.

What I have tried:

  • Replaced USB cable, new one is shielded.
  • Reduced max rate on all axis's way down to 1000mm/min
  • Tried a different computer to run the gcode
  • separated spindle power wires from stepper wires
  • Replaced Arduino with a new Arduino
  • Tried UGS and Gsender
  • Tried powered usb hub

I currently have ferrites on order, where should I put these. I believe I should put 1 on each end of the USB cable, should I put them on each stepper cable and spindle power cable?

I have multiple 3D printers and laser engravers and have never had this issue with those. Is there anything else anyone can recommend to try? I have thought about using shielded cat 6 cables for the stepper motors, would this help? How about changing the power so that I plug in different cables into different circuits for the 24V power supply and spindle power supply? Should I be grounding the Arduino in some way?

Below is my grbl config and attached is the file I commonly have issues with.

$0 | 10 | Step pulse time
$1 | 255 | Step idle delay
$2 | 0 | Step pulse invert
$3 | 0 | Step direction invert
$4 | 0 | Invert step enable pin
$5 | 0 | Invert limit pins
$6 | 0 | Invert probe pin
$10 | 1 | Status report options
$11 | 0.010 | Junction deviation
$12 | 0.002 | Arc tolerance
$13 | 0 | Report in inches
$20 | 0 | Soft limits enable
$21 | 0 | Hard limits enable
$22 | 0 | Homing cycle enable
$23 | 0 | Homing direction invert
$24 | 25.000 | Homing locate feed rate
$25 | 500.000 | Homing search seek rate
$26 | 250 | Homing switch debounce delay
$27 | 1.000 | Homing switch pull-off distance
$30 | 1000 | Maximum spindle speed
$31 | 0 | Minimum spindle speed
$32 | 0 | Laser-mode enable
$100 | 40.000 | X-axis travel resolution
$101 | 40.000 | Y-axis travel resolution
$102 | 250.000 | Z-axis travel resolution
$110 | 1000.000 | X-axis maximum rate
$111 | 1000.000 | Y-axis maximum rate
$112 | 500.000 | Z-axis maximum rate
$120 | 1000.000 | X-axis acceleration
$121 | 1000.000 | Y-axis acceleration
$122 | 1000.000 | Z-axis acceleration
$130 | 200.000 | X-axis maximum travel
$131 | 200.000 | Y-axis maximum travel
$132 | 200.000 | Z-axis maximum travel

Drill.zip

@bobbybumfluff
Copy link

bobbybumfluff commented Aug 11, 2022 via email

@daniJVV
Copy link

daniJVV commented Aug 26, 2022

Agreed with bobbybumfluff, did you tried a USB isolator between your machine and the PC?

@hardingb4
Copy link
Author

I did a number of things yesterday to work on the issue and I think I have found a solution.

Below is what I did in order:

Isolated the electronics from the spindle. I have not been running a shop vac during a job to take that out of the picture. I placed each on its own circuit. I did get a program to run for a few minutes and was optimistic but it failed.
Next I changed the z-axis stepper cable to a shielded cable. This did not work as well.
Next my ferrites finally arrived and I put them everywhere. I got a package of 12 and I put one on each end of my usb cable (I think this was the solution) but I also put one on each end of my stepper motor cables and my spindle cable. This seems to have fixed the job. I ran a 40min job, 25min job, and 2hr job all without any problems.
I cannot guarantee it was just the ferrites and not a combination of the things I did, but the ferrites were the final thing that eliminated the problem.

Hope this helps someone in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants