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

Losing steps / gaining steps?? #292

Closed brakthehun closed 7 years ago

brakthehun commented 7 years ago

22563535_10155507327681357_993175263_o

So,, I built a 50 watt CNC CO2 laser and it started doing this a few months ago. I can't figure out why. I tell it to do 3 passes and the lines slowly get off in both the X and Y. Does anyone know why this would suddenly happen??

It will wander in both positive and negative. It Does this on any Gcode I use.

Arduino UNO with a screw terminal shield. 3 TB6600 stepper drivers driving 84 ounce/inch nema17s at 1.8 amps. 2 steppers running Y,, 1 stepper running X. 20 tooth gT2 on a belt drive 80 steps/mm does this at every speed. It worked fine before at 15,000 mm/minute (Y at 10,000) does this at every acceleration. Worked fine at 1200 mm/s/s (Y t 800)

X3msnake commented 7 years ago

mechanical backlash?

2017-10-17 2:30 GMT+01:00 Mr. Baltazar notifications@github.com:

[image: 22563535_10155507327681357_993175263_o] https://user-images.githubusercontent.com/16564592/31642102-043e11b8-b29e-11e7-9242-c25b4f5fff5f.jpg

So,, I built a 50 watt CNC CO2 laser and it started doing this a few months ago. I can't figure out why. I tell it to do 3 passes and the lines slowly get off in both the X and Y. Does anyone know why this would suddenly happen??

It will wander in both positive and negative. It Does this on any Gcode I use.

Arduino UNO with a screw terminal shield. 3 TB6600 stepper drivers driving 84 ounce/inch nema17s at 1.8 amps. 2 steppers running Y,, 1 stepper running X. 20 tooth gT2 on a belt drive 80 steps/mm does this at every speed. It worked fine before at 15,000 mm/minute (Y at 10,000) does this at every acceleration. Worked fine at 1200 mm/s/s (Y t 800)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/292, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-sv29gEZnjcnujN8hDQDtWEupBf8ks5stAMrgaJpZM4P7dLP .

-- Com os melhores cumprimentos, Vinicius Silva

brakthehun commented 7 years ago

I can't imagine both axis developing mechanical backlash while losing / gaining steps randomly. If it was mechanical backlash,, what would you do to fix / compensate??

X3msnake commented 7 years ago

You are right probably not backlash,

Maybe dropping packets in the serial? are you using a clone arduino with the ch340 chip. EMF interference? Arduino board near any motors or power supplies? Bad power to the motors? Recheck all motor connections to the motor and to the drivers

Did it ever worked right? What was the last change you made before you started noticing this?

btw why are the traces all shaky? is it supposed to be that way

2017-10-17 3:22 GMT+01:00 Mr. Baltazar notifications@github.com:

I can't imagine both axis developing mechanical backlash while losing / gaining steps randomly. If it was mechanical backlash,, what would you do to fix / compensate??

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/292#issuecomment-337098012, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-tKUQHr9GqvmXa3SHKqm8lLBhzosks5stA95gaJpZM4P7dLP .

-- Com os melhores cumprimentos, Vinicius Silva

brakthehun commented 7 years ago

I am using an Arduino branded board with the 16U2 serial chip. It did work correctly for a few months. The traces are shaky because I'm running it 8,000 mm/minute so it doesn't fully cut through the cardboard and will leave a small line. The board is somewhat Isolated. It is kinda near the 25,000 volt laser power line,, but the insulation is rated for 40,000 volts. It worked originally so I'm not sure if that would affect it. I can wrap the cable with some aluminum tape or something?? The connections seem to be good.

X3msnake commented 7 years ago

Can you please post your grbl settings

What changed in your config? Added any new electronics changed something in the machine the controller the pc?

What arr you using as a sender

No dia terça-feira, 17 de outubro de 2017, Mr. Baltazar < notifications@github.com> escreveu:

I am using an Arduino branded board with the 16U2 serial chip. It did work correctly for a few months. The traces are shaky because I'm running it 8,000 mm/minute so it doesn't fully cut through the cardboard and will leave a small line. The board is somewhat Isolated. It is kinda near the 25,000 volt laser power line,, but the insulation is rated for 40,000 volts. It worked originally so I'm not sure if that would affect it. I can wrap the cable with some aluminum tape or something?? The connections seem to be good.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/292#issuecomment-337101273, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-pKyVogpXLE0DK-HnCrC2gy3RqIrks5stBSdgaJpZM4P7dLP .

-- Com os melhores cumprimentos, Vinicius Silva

brakthehun commented 7 years ago

The config has Z homing disabled.

I have another laser (2.5 watt blue diode) about 4 feet away. I plugged that computer in to the CO2 laser and it behaves the same.

I am using laserGRBL. I tried Gcode created in LaserGRBL and Gcode created in Inkscape and it does the same thing. The smooth curves are created in Inkscape. The rough ones are from LaserGRBL. The vector program literally follows the bits on the bitmap.

I will send you the machine settings tomorrow. I added an axle to join the two Y motors on the idler pulley side of the belt. I added a focuser tray and swapped out the 5" lens with a 3" lens. That's about it for the major things.

chamnit commented 7 years ago

I would check your mechanical components. Particularly your stepper pulleys. Make sure the set screws are seated and tight.

brakthehun commented 7 years ago

Screws are tight. 22554464_10155602184610867_556280939_n

chamnit commented 7 years ago

@brakthehun : Your settings look reasonable and normal. If you are absolutely sure that your CNC has no mechanical backlash (easy to check with a simple gauge and manual motions), then it's likely electrical. There have been some instances in the past where electrical noise would interfere with Grbl's step pulse and direction outputs. It looked similar to mechanical backlash. Given that you have a high voltage laser power line near your controller, it would be a likely source.

BTW, I'm pretty sure that wire insulation doesn't block EMF. It only inhibits current and arcing. You'd need a Faraday cage or something similar to keep the EMF from inducing current in nearby circuits.

brakthehun commented 7 years ago

Interesting. That will be my next route then.

X3msnake commented 7 years ago

Cool keep us posted. ;)

No dia quarta-feira, 18 de outubro de 2017, Mr. Baltazar < notifications@github.com> escreveu:

Interesting. That will be my next route then.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/292#issuecomment-337412423, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-ruwWdjDNzCQB1icq_TyI4rtq4Uvks5stTzcgaJpZM4P7dLP .

-- Com os melhores cumprimentos, Vinicius Silva

indyucoder commented 7 years ago

Ciao, have You checked the current limite trim offline the stepper drivers?

Il 17 ott 2017 03:30, "Mr. Baltazar" notifications@github.com ha scritto:

[image: 22563535_10155507327681357_993175263_o] https://user-images.githubusercontent.com/16564592/31642102-043e11b8-b29e-11e7-9242-c25b4f5fff5f.jpg

So,, I built a 50 watt CNC CO2 laser and it started doing this a few months ago. I can't figure out why. I tell it to do 3 passes and the lines slowly get off in both the X and Y. Does anyone know why this would suddenly happen??

It will wander in both positive and negative. It Does this on any Gcode I use.

Arduino UNO with a screw terminal shield. 3 TB6600 stepper drivers driving 84 ounce/inch nema17s at 1.8 amps. 2 steppers running Y,, 1 stepper running X. 20 tooth gT2 on a belt drive 80 steps/mm does this at every speed. It worked fine before at 15,000 mm/minute (Y at 10,000) does this at every acceleration. Worked fine at 1200 mm/s/s (Y t 800)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/292, or mute the thread https://github.com/notifications/unsubscribe-auth/AbEjWNfwVWBkUTdJo3pc3fCKb8Hah9Ykks5stAMsgaJpZM4P7dLP .

brakthehun commented 7 years ago

The stepper drivers are all giving 1.8 amps. I set $1=255 so the steppers would keep hold. I tried shielding the Arduino and stepper drivers from the Laser power supply. I replaced the Arduino. Still goofing up.

vMeph commented 7 years ago

you have what single HY-DIV268N TB6600 ? if so one off the problems is most like your TB6600 microsteps switch table chinese is wrong chinese TB6600 have the wrong microsteps table on drivers from what i see you have that running set at 1/16 microsteps so you have switches ON OFF OFF? if so try with OFF ON ON and let me know results

brakthehun commented 7 years ago

The movement is nearly correct. I tell it to move 300mm and it moves 300mm +/- the jitter. I don't think this would account for losing / gaining steps. I can post a pic of the set up.

vMeph commented 7 years ago

isnt this you got? http://lghttp.57222.nexcesscdn.net/803B362/magento/media/catalog/product/cache/1/image/650x/040ec09b1e35df139433887a97daa66f/t/b/tb6600_2.jpg

brakthehun commented 7 years ago

https://smile.amazon.com/gp/product/B016ZJS1FA/ref=oh_aui_search_detailpage?ie=UTF8&psc=1 Close.

brakthehun commented 7 years ago

22657504_10155605508160867_1924100117_n 22689990_10155605498380867_1482918894_o

swarfer commented 7 years ago

no one has mentioned step timing yet. most drivers need some minimum delay between a direction change and the next step pulse. GRBL does not have a specific setting for this IIRC.

all those lovely unshielded cables will affect the perceived delay in that they can affect rise time. and keep the power wires (from PSU, and to steppers) far away from step/direction wires!

brakthehun commented 7 years ago

It looks like I'm headed that direction - rewiring everything. It is kinda nice to do that though because everything always ends up looking better. Even when I run it slowly,, it still does the same thing.

X3msnake commented 7 years ago

Does anyone know a good source of information on how to shield stuff against EMI?

2017-10-19 23:48 GMT+01:00 Mr. Baltazar notifications@github.com:

It looks like I'm headed that direction - rewiring everything. It is kinda nice to do that though because everything always ends up looking better. Even when I run it slowly,, it still does the same thing.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/292#issuecomment-338059114, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-jQ7WeglebMKjwutJYsgifZf8S-Oks5st9GngaJpZM4P7dLP .

-- Com os melhores cumprimentos, Vinicius Silva

biasedlogic commented 7 years ago

There's a ton, but most stuff starts with 'take a black cockatrice and a pint of fresh blood to the haunted crossroads when at full moon...' and gets rather gross soon after... Let's start with grounding - try drawing up how your ground is connected and how the power lines are laid out

X3msnake commented 7 years ago

@biasedlogic

I don't have a machine design yet, just looking to learn more, it's kind of hard to know what is good information when you are starting on a subject hence my question :) "Grabs a chicken"

2017-10-20 12:47 GMT+01:00 biasedlogic notifications@github.com:

There's a ton, but most stuff starts with 'take a black cockatrice and a pint of fresh blood to the haunted crossroads when at full moon...' and gets rather gross soon after... Let's start with grounding - try drawing up how your ground is connected and how the power lines are laid out

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/292#issuecomment-338184191, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-qcJTFlXknVOR51p4h-V5tP7pNCjks5suIhngaJpZM4P7dLP .

-- Com os melhores cumprimentos, Vinicius Silva

jahnj0584 commented 7 years ago

Set the pulse delay to the default of 10. Use 1/4 uStepping. Unshielded wire is not the concern here. I run 7000mm/min in my heavy machine and hold 0.01mm all day. I used shielded wire for my steppers but the drain wire isn't attached so it's effectively doing nothing. My spindle IS grounded at the VFD end.

No noise issues. No step or accuracy issues.

My first two machines had 0 shielding and performed the same as this one, from the stepper+driver side of things.

On Oct 20, 2017 9:02 AM, "X3msnake" notifications@github.com wrote:

@biasedlogic

I don't have a machine design yet, just looking to learn more, it's kind of hard to know what is good information when you are starting on a subject hence my question :) "Grabs a chicken"

2017-10-20 12:47 GMT+01:00 biasedlogic notifications@github.com:

There's a ton, but most stuff starts with 'take a black cockatrice and a pint of fresh blood to the haunted crossroads when at full moon...' and gets rather gross soon after... Let's start with grounding - try drawing up how your ground is connected and how the power lines are laid out

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/292#issuecomment-338184191, or mute the thread https://github.com/notifications/unsubscribe- auth/AKke-qcJTFlXknVOR51p4h-V5tP7pNCjks5suIhngaJpZM4P7dLP .

-- Com os melhores cumprimentos, Vinicius Silva

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/292#issuecomment-338187058, or mute the thread https://github.com/notifications/unsubscribe-auth/AQlzDPVHOmLyFAJJkfWxcwbVYT_8tcwiks5suIvDgaJpZM4P7dLP .

JBSchueler commented 7 years ago

I noticed you are driveing the steppers with 2.5A while, as you mentioned, the steppers are 1.8A. This way, the steppers getting to much current and end up with losses within the coil. image dip 4-5-6 should be ON-OFF-ON (1.5A)

I had the same issue with my TB6600 stepper driver when I used to much current.

Another issue could be the power supply, can it deliver the 5A needed for the steppers?

jahnj0584 commented 7 years ago

The switches should be set to one increment above your motor amperage. That is a setting for peak amperage, not a constant output.

On Oct 21, 2017 8:08 AM, "Ben Schueler" notifications@github.com wrote:

I noticed you are driveing the steppers with 2.5A while, as you mentioned, the steppers are 1.8A. This way, the steppers getting to much current and end up with losses within the coil. [image: image] https://user-images.githubusercontent.com/7997096/31851146-01aeffb4-b660-11e7-950d-d0cd08b0c3a0.png dip 4-5-6 should be ON-OFF-ON (1.5A)

I had the same issue with my TB6600 stepper driver when I used to much current.

Another issue could be the power supply, can it deliver the 5A needed for the steppers?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/292#issuecomment-338384007, or mute the thread https://github.com/notifications/unsubscribe-auth/AQlzDOvorKJp_SoSScQ-71jpVxKvVNI5ks5sudDJgaJpZM4P7dLP .

JBSchueler commented 7 years ago

@jahnj0584 : Correct, but I noticed on my driver it was losing steps when I set my drives to 1.5A on my 1.0A steppers. Switching to 1.0A solved my problem of losing steps.

brakthehun commented 7 years ago

I fixed it last night. I tried many things including rerouting all the cables,, but what fixed it is moving the Arduino to an isolated area inside the laser enclosure and using a polulu shield for stepper drivers.

X3msnake commented 7 years ago

Was it the tb drivers?

No dia quinta-feira, 26 de outubro de 2017, Mr. Baltazar < notifications@github.com> escreveu:

I fixed it last night. I tried many things including rerouting all the cables,, but what fixed it is moving the Arduino to an isolated area inside the laser enclosure and using a polulu shield for stepper drivers.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/292#issuecomment-339506233, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-h_Tz-bVslWZn59795TEtm92dUapks5sv8Y3gaJpZM4P7dLP .

-- Com os melhores cumprimentos, Vinicius Silva

brakthehun commented 7 years ago

I will test them soon. I hope not!!

langwadt commented 7 years ago

found on the openbuilds site: "if people were to stop using tb6600, technical support posts would drop 75%" ;)

brakthehun commented 7 years ago

I have a few machines running TB6600s. Good to know. Thanks.

chamnit commented 7 years ago

Thanks for the report. I’ll close this issue now.

vMeph commented 7 years ago

using a extra shield polulu they done to use with other drivers, even know you cold adapt to other drives seems to me like a waste sense you have external drives tb6600 your problem most like is EMI on lines, did you try use shielded cables with proper ground to drain the EMI? https://www.youtube.com/watch?v=84udcsEC7zI