-
-
Notifications
You must be signed in to change notification settings - Fork 507
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
Vectorization tool works great but for small details the gap between filling area and perimeter line is visible #1218
Comments
Don't know if this would make a difference but have you tried using M3 instead of M4. The laser switches of at the end of a line with M4, but it has to stay on with M3 because it was originally a command for the spindle motor on a cnc machine. The spindle has to stay on or it would have to keep speeding up before every line it cuts. |
Hi @yerpj What you report is a fairly known LaserGRBL problem. The problem is that the realization of vector + filling is done with the part of the filling done in raster (the vector image is rasterized and it is processed by the line2line algorithm) and not in vector too. This causes small misalignments that are difficult to manage but I admit that I have never put my head too seriously on this problem. One thing you can easily do is increase the line / mm resolution beyond 10, and possibly make faster passes if it turns out too dark. With a higher resolution the problem is greatly reduced. As soon as I get some time I swear I'll try to improve it. Another thing that could affect is the speed / acceleration of rapid movement, which could lead to your marker being less accurate in vector moving around on white. Try disabling G0 in settings -> raster import Edit: Disabling G0 is not needed if you are sure of your hardware reliability |
PS: this issue is already opened here #1034 |
Thank you for your help. Actually I already tried with M3 and M4. M4 is better because it won't burn too much the start of a line. For the current problem I am experiencing, both M3 and M4 give the same result. @arkypita Anyway, thank you for your help. I'll follow #1034 and will try to help if I can. |
Hi! I have made a small changes to try compensate the shift effect. https://github.com/arkypita/LaserGRBL/releases/tag/v3.8.8 |
Are you sure that this issue is not caused by the shaking of the machine, the belt tension or from problems resulting from too high speed and acceleration? I do a test with 10 line/mm at 1000mm/min both orizzontal and vertical and here is my result: I also check "Disable G0" to have more accurate positioning. |
just the time to make some test and I give you a pre-release :-) |
Well it is actually better than previously. Here below is a comparison between 3.8.8 and 3.8.9, both with 10lines/mm And I tried with 15lines/mm. In this configuration, the gap is so small that it is barely noticeable: Thank you so much for taking time to improve this feature. Despite the (very) small gap is still here, I think we can live with it. At least I can. I look forward to see if this 3.8.9 pre-release also does the trick for other users that experienced the same gap issue. Again, thank you @arkypita ! |
Well, doing this test with plywood doesn't give you the correct response to evaluate the result. Here is the result The upper engraving is 6mm tall, the lower engraving is 4mm tall. So, in my opinion, the fault of this result could be some approximations made by the grbl controller, that is by the firmware of the marker. What do you think? |
What is your grbl $$ configuration? |
I know that it's not the best solution, but if you de-focus your spot a little, all those artifact disappear! :-) |
Yes that's probably what I am going to do. |
Do you want to try this new version? I think you will be surprised! |
Yeah, good job, there is a lot of new features in the vectorization tool ! ! ! The green circled letters are fresh from v4.0.0, while the red ones are from previous version: In the A letter with the new horizontal fill it looks like it forgot two lines but it may also come from my stepper drivers (drv8825) which are known to be bad at microstepping, even if, that said, I should have seen the same issue in the previous burns, which actually was not the case... don't know... Anyway, that is excellent, well done @arkypita ! |
I'm still working on it, and with a lot of help from @HomineLudens I should be able to publish a version shortly that optimizes engraving times by finding the fastest filling path. I think we will have to give him a "huge thanks" and if anyone wants to make a donation for this work I will be happy to turn it over to him. |
https://github.com/arkypita/LaserGRBL/releases/tag/v4.0.2
Yes i think it was hardware issue. |
I just took a picture and engraved it with old and new horizontal fill (cropped by hand, sorry, they are not exactly the same scale, but pretty close): It seems that the missing lines does not come from my hardware, because there is absolutely no missing lines with the old horizontal filling method. |
Please zip and upload generated gcode, so I can check. |
I did not save the gcode but I opened the same picture, tried to crop it at the same location, then saved this new gcode. Here it is: |
Well it makes me think that it could still come from my hardware: |
First i emulate the code you upload, it shows no problem in the generated code. The preview shown by LaserGRBL further confirms. 2021-01-08.09-49-03.mp4So I try to do an engraving of the file with my Ortur and I had same issue as you. Also slowing down to F1000 doesn't change the result. I think that the problem is due to the fact that it is physically impossible for the machine to reproduce some positions exactly, as the motor can only move in full steps, which approximate the position but do not reach it exactly. When this happens in a fill that flows in one direction only this has little effect, but when the direction changes multiple times it is possible for the error / approximation to accumulate. This new vectorization mode amplifies this effect. There is a tool that allows you to set a resolution in lines / mm which is multiple of your motor step. I'm not sure right now if the new algorithm follows it correctly, but could you try to experiment with this? NB: I'm pretty sure you need to put offset 0, 0 in the "target image size and options" window to have the correct line positioning at step multiples. |
Actually the resolution I use (10lines/mm) is already aligned with my motors steps (160steps/mm). I also always put 0,0 as target image offset. It seems that the problem comes from elsewhere. . . |
I run the same GCode in my machine with a scrap part of soft wood: In my opinion it could be not an issue related to mechanical backslash, but more a result of different reaction of the material to the laser beam. |
Why was this closed? I don't think the referenced issue (#1034) is the same issue as this |
Was closed because:
With my engravers (2 commercial model + 1 DIY) I can do the vector+filling perfectly as shown in preview. If starting from the same gcode, other engraver give less precise results, it is definitely a problem that concerns the accuracy - of these machines - to perform the required positioning with precision. |
The problem
Hi guys,
First, thank you very much for such a great tool! It took me less than 10 minutes to learn how to use LaserGRBL.
The line filling algorithm seems to work great but some areas near the perimeter line are not burnt correctly. This problem was seen in the past by some users but it appeared that most of the time the problem was due to hardware. I think mine is really related to a limit case of the vectorization tool. On the following picture we see that on top and right of the letter shapes that some areas are not correctly filled by horizontal lines:
Please note that the letter height is around 6.7mm and the line/mm is set to 10.
For such a small text we could think that the result won't affect the final result, however with my 6W laser making 0.2mm thick lines, the result is very similar to what is shown on the preview:
I tried several combinations of lines/mm, adaptive quality and spindle power but I always experience the same result.
Is there any reason why the vectorization tool is unable to fill 100% of the inner areas?
By the way, for those who might think it could be related to hardware: The 5 lines you see above the letters are my lines drawn to calibrate the Z axis. In this specific case, I burnt those 5 lines, then I did a homing cycle, then I revert to the last position and drew the same 5 lines again on top of the existing ones. I strongly think that the problem is not related to hardware.
Thank you very much for your help!
Hardware
GRBL 1.1, custom 3-axis laser engraver
Operating system
Windows 7
The text was updated successfully, but these errors were encountered: