arkypita / LaserGRBL

Laser optimized GUI for GRBL
http://lasergrbl.com
Other
1.26k stars 497 forks source link

one axis not working as expected #650

Closed m3vuv closed 5 years ago

m3vuv commented 5 years ago

.Hi all,i need some help with a homebrew cnc laser engraver,to start its using an arduino with a cnc sheild running gbrl 1.1f,1.25mm pitch leadscrews driven by nima 24 steppers,im trying to use lasergbrl,it jogs fine on both axis,but if i try to engrave an image after lasergbrl has converted it, one axis hardly moves,all i get is a thick black line burnt in the workpiece,it does the same whether its a grayscale or vector etc,same with the engraving direction,if i say swap the direction the problem swaps axis also,if that makes sense,also it goes in fits and starts and loses sync with the curser on the screen,its like its waiting for a buffer to fill up,ive tried all different conection settings ie syncronous buffered etc,it makes no difference,ive decoupling caps everywhere and have tried a few different usb cables,if i use ugs and run a gcode with that it works fine,im not very impressed with lasergbrl to say the least so far,just seems good for producing scrap with as many freezes glitches and bugs,san anyone advise before the lot goes in the skip??,regards m3vuv,ps im using a uno and laser mode is enabled.this is driving me nuts!!!!

m3vuv commented 5 years ago

well i tried this test file from here,that works fine,im having issues with a png to vector conversion,i will attach both,can someone change the png to a vector for me,if they can and it works then i know where to look,cheers m3vuv. horse test.nc.txt

m3vuv commented 5 years ago

please help im at my wits end!

StuartB4 commented 5 years ago

Just load your png and select Vectorize.

Untitled121

m3vuv commented 5 years ago

ive done that but still seems to screw up,ive exahausted just about everyway of tring to turn it to working gcode,otherwise i wouldnt ask someone else to convert test and upload it.

m3vuv commented 5 years ago

also meant to say everytime it pauses for whatever reason it does it with the laser on,burns big chunks of the work piece

m3vuv commented 5 years ago

it stops about every 20 seconds for about 5 or 6 seconds when engraving a job,

StuartB4 commented 5 years ago

ive done that but still seems to screw up,ive exahausted just about everyway of tring to turn it to working gcode,otherwise i wouldnt ask someone else to convert test and upload it.

What are you trying to say. What are you ending up with? If you load an image and click Vectorize it will give you the image to engrave in the correct format. like in the image I posted above. Then you can save the GCode using the File menu, Save Program. If that does'nt work for you then you must have some setting wrong somewhere. Eithe LaserGRBL, GRBL or even your machine setup.

Can you post pictures of the settings you are using, and your GRBL configuration settings. Have you tried other laser engraving software besides LaserGRBL? You could try T2Laser. They have a free trial version. So you can try it. http://t2graphics.weebly.com

m3vuv commented 5 years ago

im ending up with firewood so farheres the settings etc and some pics

20190516_225514 20190516_225524 20190516_225551 20190516_225615 20190516_225758 20190516_230003 20190516_230038 20190516_230043

20190516_225514.zip Pictures.zip [Uploading Pictures.zip…]()

[Uploading 20190516_225514.zip…]()

m3vuv commented 5 years ago

i think thats all,im just waiting for the next piece of firewood to finish lol,when i try and jog 50mm it will run for 11 seconds then stop for 7 seconds then continue,it exhibits the same behavior engraving as well but with the laser powered full time when it stops,seems like its waiting for buffers to refil?,heres the latest abortion done with the above settings. 20190516_233608.zip

brakthehun commented 5 years ago

What version of windows are you using??

m3vuv commented 5 years ago

win7 ultimate

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Fri, May 17, 2019 at 2:08 AM Mr. Baltazar notifications@github.com wrote:

What version of windows are you using??

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/arkypita/LaserGRBL/issues/650?email_source=notifications&email_token=AMCRZCN626P6WRQSD44WWC3PVYAQRA5CNFSM4HNL55K2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVTOIXQ#issuecomment-493282398, or mute the thread https://github.com/notifications/unsubscribe-auth/AMCRZCJ3BBDHX75T2EBRYS3PVYAQRANCNFSM4HNL55KQ .

brakthehun commented 5 years ago

Use the command line and give it custom g code commands. First,, set zero (Globe with a pin button) Try: G0X20Y20 and then: G1X0Y0 F500 Does it move diagonally?? does it move about 20mm up and 20mm to the right??

m3vuv commented 5 years ago

i will try it later its 4am here,do you mean the comand line in lasergbrl or the c prompt in windows?

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Fri, May 17, 2019 at 3:42 AM Mr. Baltazar notifications@github.com wrote:

Use the command line and give it custom g code commands. First,, set zero (Globe with a pin button) Try: G0X20Y20 and then: G1X0Y0 F500 Does it move diagonally?? does it move about 20mm up and 20mm to the right??

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/arkypita/LaserGRBL/issues/650?email_source=notifications&email_token=AMCRZCLNZDRNTUBJHG6QUP3PVYLSXA5CNFSM4HNL55K2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVTSG7Y#issuecomment-493298559, or mute the thread https://github.com/notifications/unsubscribe-auth/AMCRZCKOIIIYTZZOPP7OZWTPVYLSXANCNFSM4HNL55KQ .

brakthehun commented 5 years ago

command line in laserGRBL

m3vuv commented 5 years ago

when i issue the first line of code both axis move but carry on and dont stop untill i pull the usb cable and lasergbrl has frozen by that time.

On Fri, May 17, 2019 at 9:00 AM Mr. Baltazar notifications@github.com wrote:

command line in laserGRBL

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/arkypita/LaserGRBL/issues/650?email_source=notifications&email_token=AMCRZCP4DE6XSLNKDSHMX4DPVZQZRA5CNFSM4HNL55K2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVUBPMQ#issuecomment-493361074, or mute the thread https://github.com/notifications/unsubscribe-auth/AMCRZCP2IPU4I7DCDTSJB2LPVZQZRANCNFSM4HNL55KQ .

m3vuv commented 5 years ago

if i reset the arduino and reconect,then issue the 2nd line of code,i assume both axis should retern to zero?,they both continue in the same direction as the first command but againe carry on and dont stop untill i unplug the usb cable,it does the same with ugs as well as laser gbrl.

m3vuv commented 5 years ago

ive tried 2 usb cables and have 100nf and 47uf caps on the power supply lines to the cnc shield,the wires to the steppers are not shielded,could this be the issue?

StuartB4 commented 5 years ago

Which cnc shield do you have? If it's a protoneer, do you have heatsinks on the stepper motor driver chips, they may be overheating if not. Also, if it is a protoneer, did you set the current limits on the driver boards for the motors?

m3vuv commented 5 years ago

hi the cnc shield is a protonier ver3 with heatsinks on the drivers with current set at 500ma and there fan cooled.

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Fri, May 17, 2019 at 10:57 AM Stuart notifications@github.com wrote:

Which cnc shield do you have? If it's a protoneer, do you have heatsinks on the stepper motor driver chips, they may be overheating if not. Also, if it is a protoneer, did you set the current limits on the driver boards for the motors?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/arkypita/LaserGRBL/issues/650?email_source=notifications&email_token=AMCRZCL7LUVWDVKUN6IOUV3PVZ6O5A5CNFSM4HNL55K2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVUKJCY#issuecomment-493397131, or mute the thread https://github.com/notifications/unsubscribe-auth/AMCRZCMNVVSPDWDE3VGNMYDPVZ6O5ANCNFSM4HNL55KQ .

StuartB4 commented 5 years ago

Enable PWM Mode in LaserGRBL settings. Then try changing M3 to M4 in Target Image settings. Also in GRBL Configuration settings change $120 and 121 to 10, 2 seems a bit low.

57891071-faebd180-7831-11e9-8002-fa7d100c8a8a

Untitled33

57891074-fb846800-7831-11e9-9ad6-a7c9ae55aaed

m3vuv commented 5 years ago

ive already tried that,same results.

StuartB4 commented 5 years ago

Sounds more like you have a hardware problem than a LaserGRBL problem.

StuartB4 commented 5 years ago

Can you try with a different Arduino UNO.

m3vuv commented 5 years ago

done that and tried changing the cnc shield,its one reason why i asked for the png image to be converted and reuploaded,would of helped my trouble shoot but no one bothered!

StuartB4 commented 5 years ago

Why not use a free online png to vector converter. Just look on google.

StuartB4 commented 5 years ago

This one is good: https://image.online-convert.com/convert-to-svg

m3vuv commented 5 years ago

that may work but isnt the solution as i see it,something is obiously wrong with my setup,if i use an online converter to me thats just another unknown into the equation!

m3vuv commented 5 years ago

well as i last resort im swapping all the stepper cables with multicore shielded flex grounded on the shield at each end,should have it back up and running in the morning.

brakthehun commented 5 years ago

It sounds like your internal settings. Type in $$ and take a better screenshot. When I exceed the max pulse rate per second,, it does that where it keeps traveling until I pull a plug.

m3vuv commented 5 years ago

my max feedrate is 500mm/min,seems like a dangerous bug!

brakthehun commented 5 years ago

What is your x and y resolution??

m3vuv commented 5 years ago

do you mean steps per mm?,if so there both 2560,im using 1/32 microstepping with 1.25mm leadscrews and 1.8deg steppers.

m3vuv commented 5 years ago

well an update,all the cables to the steppers are now shielded and grounded,it seems better but the big issue is each axis tops halfway thru running a command but with the laser on,its leading to a burnt mess!,this has been an issue doing a long jogg as well,ive mentioned this previously but ppl seem to ignoor it!

sinfocomp commented 5 years ago

the problem to me looks like it is becouse using a leadscrew requires lots of pulses at a speed the arduino is not capable of, try to set your stepper driver at its minimal microsteps, also make sure youre not using the USB ports for other stuff since you can under-run your buffer, i would use a belt drive for laser since the leadscrew force is not needed another thing is wour laser C02 or diode ? if it is C02 make sure you have optoisolation on the control lines on the arduino side to prevent interference, also locate your laser psu at least 3 feet away from the arduino, i have used this software and arduino on large 300watt co2 laser machines with no problems at all my only no no is for plasma, never got rid of the HF interference hope this helps

sinfocomp commented 5 years ago

ohh one more thing if youre using pololu drivers set the current at its minuimum otherwise the drivers will overheat and cease operation for some seconds then continue probably causing the scorching you described

m3vuv commented 5 years ago

its a nichia m-140 diode,laser,the drivers seem cool,i already looked at that,the arduino is the only thing plugged into the pc.

m3vuv commented 5 years ago

the buffers getting empty sounds like the cause,i have mentioned that in previous posts,no one seemed to bother with it tho,i think youve hit the nail on the head,i will try 16/ steps,in theory should need half as many pulses i imagine?.

m3vuv commented 5 years ago

well ive gone to1/16th steps,better but noisy as hell issue now is anything bellow 70mm min speed wakes the dead 7o and more throws a fault up with the board and streaming stops,its one thing after another also if i do a continous jog for more than about 2 seconds it wont stop traversing unless i unplug the usb and power,then when i reconect it wont find the ports have to exit laser gbrl and reset the uno,so have to go thru it all againe,at the moment laser gbrl doesent seem fit for use!!,sory but my experiance so far,think i got more chance of winning the lottery than this software ever working without issues tbh.

m3vuv commented 5 years ago

poxy thing is getting nearer to the dumpster!!/skip.

StuartB4 commented 5 years ago

Have you tried updating .Net Framework for Windows? Have you tried uninstalling LaserGRBL and reinstalling it? Have you tried reflashing GRBL to the Arduino? Have you tried changing the Stepper drivers on the shield? Which stepper drivers are you using? If you have the A4988 red board ones change them to DRV8825. They can handle a bit more current. How powerful is your power supply, can it provide enough amps?

m3vuv commented 5 years ago

im using drv 8835 drivers with a psu at 28v 12amp,yes its the latest .net if thats what you mean,not reflashed grble yet or reinstalled lasergbrl yet tho,will do that later as its 4am here.

brakthehun commented 5 years ago

max pulserate for Arduino GRBL is 30khz (30,000 pulses per second). 2560 steps per mm x 500mm/minute = 1,280,000 pulses per minute. 1,280,000 pulses per minute / 60 seconds = 42,666.666. That pulse frequency will lock the arduino in a loop.

m3vuv commented 5 years ago

well suprise suprise,reinstalled ,net framework laser gbrl,just did the first job that worked!

m3vuv commented 5 years ago

heres a pic 20190520_101212

m3vuv commented 5 years ago

only issue now is if i try to do any fill gbrl falls over a few mins into the job.any ideas

arkypita commented 5 years ago

only issue now is if i try to do any fill gbrl falls over a few mins into the job.any ideas

1) Read previous @brakthehun reply. More info here 2) Electric noise or chinese arduino clone, please consider to buy an original one. More info here

Workaround for n°2 is set a threading mode Quiet for LaserGRBL as in faq

m3vuv commented 5 years ago

well,it works using half steps,the issue is it makes enough noise to wake the dead,is there any other arduino model with a faster clock speed that will work with a protoneer cnc shield that i can use 1/32 microstepping with?,cheers m3 vuv.

brakthehun commented 5 years ago

Can you take a picture of your machine with a close up of the leadscrews?? I think you can speed it up with a different set of parts. What steppers are you using??