Circles are not round

Hello,

I hope someone will be able to help me solve the problem that I have been dealing with for about a month now. The issue started suddenly, after finishing a project using a GRBL laser. About 5 minutes after the job was done, I restarted the machine, but noticed that the circles were not cut evenly – the start and end of the circle didn’t align, causing a “tooth” to form instead of a smooth circle. After placing the piece back into the hole and rotating it 180 degrees, it no longer fit. Now, the “tooth” seems a little smaller, but the circle is still not a perfect circle. On one axis, it is distorted by about 1 mm.

I then switched to LightBurn (trial version) to check if the issue persists there as well. Unfortunately, after looking through many threads and similar topics, I found that the problem still occurs.

I’ve already taken several steps to try and fix the issue, including:

  1. Disassembling and reassembling the machine several times.
  2. Replacing the lens.
  3. Changing the gears from MXL to GT2, as NEJE’s support team acknowledged that the gears were defective.
  4. Replacing the belts with new ones.
  5. Tensioning the belts.
  6. Performing X and Y axis calibration, since I noticed deviations when cutting a 10x10 cm square.
  7. I also tried the “Hide Backlash” option, but the problem persists.

Despite these efforts, the issue remains unresolved. Has anyone encountered a similar situation or have any suggestions on how to solve this problem?

Thank you in advance for any help or advice.

the first 2 photos are from the beginning of the month, the next 2 are after subtracting the steps I mentioned in the subsections




Hello, I think it’s a bit of hardware wear in the Y axis. The +Y and -Y motion have a shift value. I didn’t find on Lightburn a way to compensate for this offset. Check the gears (teeth) and their axes that can create this offset. The belt can also cause this effect but it has been replaced. The frame of the machine must be perfectly tight without play. The stepper motor axis may also be the source of the problem but this is also the most rewarding element.

I replaced the gears with new ones to fit the GT2 belt, they are properly tightened – I checked this several times, nothing is loose. The frame is also well tightened (I even tried attaching it to the table because I initially thought the frame might be moving on the table due to the motion). Additionally, I tried swapping the right stepper motor to the left side and the left one to the right, thinking one of them might be defective, but unfortunately, this didn’t help.

This is almost certainly going to be a mechanical issue, or at least something on the hardware side. As your tests have demonstrated this is not an issue with software, as-in the instructions to the controller are likely correct.

To me this looks like a backlash issue on the Y-axis. It also looks like the amount of backlash is variable so may be impacted by acceleration. Review all couplings on the machine with particular focus on the Y-axis. Check that the pinion gears are properly secured to the stepper shafts. If you have a coupling on the Y-axis shaft make sure it’s properly secured and not able to slip.

It’s possible this could also be due to the machine being under too much tension. With the machine off, are you able to freely and effortlessly move the laser head around the entire area of the bed? If there is resistance that could be to over tensioning of belts or alignment wheels. Identify the source and relieve it.

Est-ce que les cercles sont générés (vectorisés) par le logiciel lightburn?

Il est possible de vérifier si la fin de code est correct en céant un cercle avec Lightburn et enregistrant l’image du cercle au format GCODE puis de le lire avec BLOC-NOTE.
Le point initial G0 doit correspondre au point final sans décalage.
exemple.

; LightBurn 1.7.03
; GRBL-LPC device profile, absolute coords
; Bounds: X70 Y70 to X170 Y170
G00 G17 G40 G21 G54
G90
M4
; Cut @ 500 mm/min, 100% power
M8

;start point
G0 X170Y120

; Layer C00
G1 X169.984Y121.291S1000F500
X169.935Y122.573
;…

;identical end point
X170Y120

M9
G1 S0
M5
G90
; return to user-defined finish pos
G0 X0Y0
M2

I guess in the code it’s fine.
; LightBurn 1.7.03
; GRBL-LPC device profile, absolute coords
; Bounds: X309.5 Y231.5 to X380.5 Y302.5
G00 G17 G40 G21 G54
G90
M4
; Cut @ 200 mm/min, 30% power
M8
G0 X380.503Y267.071
; Layer C00
G1 X380.489Y267.954S300F200
X380.453Y268.839
X380.398Y269.715
X380.338Y263.559
X380.412Y264.433
X380.464Y265.31
X380.494Y266.189
X380.503Y267.071
M9
G1 S0
M5
G90
; return to user-defined finish pos
G0 X0Y0
M2

Yesterday I spent the whole day adjusting the belts and rollers but I could not solve the problem.
I cut out two of the same wheel one at the top I fixed in the same position as it was cut out and at the bottom I turned 180 degrees.


Hello, I have reproduced your GCODE on my machine and the result is disastrous. I guess our machines are different. But I find that the LightBurn program generates in my case about 63 points while in your case there are 8 points. This could be explained if your machine works with vectors and “bezier” curves while mine works with successive X,Y points, in my case the number of points defines the quality (regularity) of the circle.
However, it could still be a poor definition of the quality (precision) of the points in the curve. Either from the drawing program or the LightBurn program that defines under parameter import/export tolerance of the curve in my case 0.05mm. Quel est votre réglage ?
There is also a data to export the arcs when exporting the DXF file.
Attention this seems to have been modified compared to the reference manual which gave a “Curve tolerance”.
My laser engraving machine is a TWOTREES.

Sorry, I misunderstood. I thought you were asking to show the starting and ending points, not the entire code. The full code looks like this:

; LightBurn 1.7.03
; GRBL-LPC device profile, absolute coords
; Bounds: X309.5 Y231.5 to X380.5 Y302.5
G00 G17 G40 G21 G54
G90
M4
; Cut @ 200 mm/min, 30% power
M8
G0 X380.503Y267.071
; Layer C00
G1 X380.489Y267.954S300F200
X380.453Y268.839
X380.398Y269.715
X380.321Y270.588
X380.223Y271.456
X380.103Y272.32
X379.963Y273.179
X379.802Y274.032
X379.62Y274.881
X379.418Y275.724
X379.195Y276.56
X378.952Y277.39
X378.69Y278.213
X378.407Y279.029
X378.105Y279.837
X377.784Y280.638
X377.443Y281.43
X377.083Y282.213
X376.704Y282.988
X376.307Y283.753
X375.89Y284.508
X375.456Y285.254
X375.003Y285.988
X374.532Y286.713
X374.042Y287.426
X373.536Y288.127
X373.011Y288.817
X372.469Y289.495
X371.91Y290.16
X371.334Y290.812
X370.74Y291.451
X370.13Y292.077
X369.503Y292.688
X368.86Y293.286
X368.198Y293.873
X367.522Y294.443
X366.834Y294.995
X366.134Y295.528
X365.423Y296.043
X364.7Y296.539
X363.966Y297.016
X363.221Y297.474
X362.466Y297.914
X361.702Y298.334
X360.928Y298.734
X360.145Y299.116
X359.353Y299.478
X358.553Y299.82
X357.745Y300.142
X356.929Y300.444
X356.106Y300.727
X355.277Y300.988
X354.441Y301.23
X353.599Y301.451
X352.751Y301.651
X351.898Y301.831
X351.04Y301.989
X350.178Y302.127
X349.311Y302.243
X348.441Y302.338
X347.567Y302.412
X346.69Y302.464
X345.811Y302.494
X344.929Y302.503
X344.046Y302.489
X343.161Y302.453
X342.285Y302.398
X341.412Y302.321
X340.544Y302.223
X339.68Y302.103
X338.821Y301.963
X337.968Y301.802
X337.119Y301.62
X336.276Y301.418
X335.44Y301.195
X334.61Y300.952
X333.787Y300.69
X332.971Y300.407
X332.163Y300.105
X331.362Y299.784
X330.57Y299.443
X329.787Y299.083
X329.012Y298.704
X328.247Y298.307
X327.492Y297.89
X326.746Y297.456
X326.012Y297.003
X325.287Y296.532
X324.574Y296.042
X323.873Y295.536
X323.183Y295.011
X322.505Y294.469
X321.84Y293.91
X321.188Y293.334
X320.549Y292.74
X319.923Y292.13
X319.312Y291.503
X318.714Y290.86
X318.127Y290.198
X317.557Y289.522
X317.005Y288.834
X316.472Y288.134
X315.957Y287.423
X315.461Y286.7
X314.984Y285.966
X314.526Y285.221
X314.087Y284.466
X313.666Y283.702
X313.266Y282.928
X312.884Y282.145
X312.522Y281.353
X312.18Y280.553
X311.858Y279.745
X311.556Y278.929
X311.274Y278.106
X311.012Y277.277
X310.77Y276.441
X310.549Y275.599
X310.349Y274.751
X310.169Y273.898
X310.011Y273.04
X309.873Y272.178
X309.757Y271.311
X309.662Y270.441
X309.588Y269.567
X309.536Y268.69
X309.506Y267.811
X309.497Y266.929
X309.511Y266.046
X309.547Y265.161
X309.602Y264.285
X309.679Y263.412
X309.778Y262.544
X309.897Y261.68
X310.037Y260.821
X310.198Y259.968
X310.38Y259.119
X310.583Y258.276
X310.805Y257.44
X311.048Y256.61
X311.31Y255.787
X311.593Y254.971
X311.895Y254.163
X312.216Y253.362
X312.557Y252.57
X312.917Y251.787
X313.296Y251.012
X313.694Y250.247
X314.11Y249.492
X314.544Y248.747
X314.997Y248.012
X315.469Y247.287
X315.958Y246.574
X316.465Y245.873
X316.989Y245.183
X317.531Y244.505
X318.09Y243.84
X318.667Y243.188
X319.26Y242.549
X319.87Y241.923
X320.497Y241.312
X321.14Y240.714
X321.802Y240.127
X322.476Y239.558
X323.164Y239.007
X323.863Y238.474
X324.574Y237.96
X325.296Y237.464
X326.03Y236.987
X326.773Y236.529
X327.527Y236.09
X328.291Y235.67
X329.065Y235.269
X329.847Y234.888
X330.638Y234.527
X331.437Y234.184
X332.244Y233.862
X333.059Y233.56
X333.881Y233.278
X334.71Y233.016
X335.545Y232.774
X336.386Y232.553
X337.233Y232.352
X338.085Y232.173
X338.942Y232.014
X339.804Y231.876
X340.669Y231.759
X341.539Y231.664
X342.412Y231.59
X343.288Y231.537
X344.166Y231.506
X345.047Y231.497
X345.93Y231.51
X346.814Y231.545
X347.715Y231.602
X348.588Y231.679
X349.456Y231.778
X350.32Y231.897
X351.179Y232.037
X352.032Y232.198
X352.881Y232.38
X353.724Y232.582
X354.56Y232.805
X355.39Y233.048
X356.213Y233.31
X357.029Y233.593
X357.837Y233.895
X358.638Y234.216
X359.43Y234.557
X360.213Y234.917
X360.988Y235.296
X361.753Y235.693
X362.508Y236.11
X363.254Y236.544
X363.988Y236.997
X364.713Y237.468
X365.426Y237.958
X366.127Y238.464
X366.817Y238.989
X367.495Y239.531
X368.16Y240.09
X368.812Y240.666
X369.451Y241.26
X370.077Y241.87
X370.688Y242.497
X371.286Y243.14
X371.873Y243.802
X372.443Y244.478
X372.995Y245.166
X373.528Y245.866
X374.043Y246.577
X374.539Y247.3
X375.016Y248.034
X375.474Y248.779
X375.914Y249.534
X376.334Y250.298
X376.734Y251.072
X377.116Y251.855
X377.478Y252.647
X377.82Y253.447
X378.142Y254.255
X378.444Y255.071
X378.727Y255.894
X378.988Y256.723
X379.23Y257.559
X379.451Y258.401
X379.651Y259.249
X379.831Y260.102
X379.989Y260.96
X380.127Y261.822
X380.243Y262.689
X380.338Y263.559
X380.412Y264.433
X380.464Y265.31
X380.494Y266.189
X380.503Y267.071
M9
G1 S0
M5
G90
; return to user-defined finish pos
G0 X0Y0
M2

Je constate une anomalie dans le code, je vérifie le reste
X379,195,95 Y276,56

I see other anomalies in the code there are periods and commas for decimal values. It should be just dots.
I tried your code on my machine and an online simulator but nothing works. Where did you get your vector drawing?

After a few tests on excel your circle seems correct to the extension x and y close.
The anomalies were due to the machine translator.
However, your code does not work on my machine, probably out of the field.

You have your machine defined as GRBL-LPC is this correct?
If you change to GRBL does the same happens?

I drew the circle using the LightBurn software. I also have a very old Ortur laser, and it draws circles correctly in this program. I’m out of ideas why it’s drawing circles like this now. Over the past few days, I’ve run many tests, including adjusting the belt tension, but the issue persists. Even if I rotate the circle by 180 degrees, the same 1 mm gap remains. It makes no difference whether the belt is tightened a lot or just slightly.

My old Ortur also uses GRBL-LPC, and it cuts perfectly fine.

I’ll reiterate. The root cause of this is not going to be a software or design issue. It’s almost certainly mechanical. Go back to basics. Review every mechanical linkage on the laser, again, with particular attention to the Y-axis. Undo, review, and retighten every fastener. Make sure that the grub screws for pinion gears are secured against the flat of the stepper motor shaft. Make sure that you can’t physically feel backlash in both directions of rotation after resecuring. Do this methodically.

While not the root cause of this issue, GRBL-LPC is not ideal. As you have experienced, the laser will cut with that setting but you are potentially missing out on features. The correct device type for both of these lasers should be “GRBL”. This can be changed by Editing the device after pushing the Devices button in Laser window.

Hi, here’s a final idea. If this printer was a paper printer, there would be a software initialization that would solve the problems of alignment in X and Y. This type of program must also exist to correct “offset” x and y for a laser printer and probably specific to your brand.

My first bet would be the same as most folks in this thread. But, I assume OP is true and all mechanical issues are excluded.

There are number of other aspects of electrical hardware and software that may produce such artifacts. Starting from the end as OP requested some ideas to try, I have a few:

  1. try to slow down the motion, speed and acceleration, with proportional power reduction of course.
  2. play with laser PWM frequency and power limits in GRBL settings.
  3. Use post processor to post your work to G-code exclusively as linear segments, avoid using curves and circles.

Now the explanations:

  1. there are number of latencies in the machine and GRBL specifically and many GRBL speaking controllers do not compensate for latencies in servo and laser control. Slowing down will reduce the effect but never completely eliminate it, but it is possible to slow down to the point where artifact is minimal and acceptable. It appeared to me that your Max4 probably has very generic GRBL board that probably not very advanced.
  2. Late burn ad higher power may create artifacts like yours. PWM frequency for laser power control on many lasers will also affect linearity. GRBL has settings to map min and max power as specific PWM range, but not the bend of the power curve. IMHO these x3 settings must be optimized in accord.
  3. Original GRBL code for ATMEL does not interpret curves and circles very well. It become software package responsibility to post to compatible version of G-code, most often by interpreting all motions only as linear segments. Usually done by the main software, but stand-alone post-processors also exist. Additional artifacts can derive from servo’s specific behaviors, for example dead band of PID based motion control. This is basically the range of coordinates considered close enough where servo think that no position correction needed. This is usually motion controller specific. Thought basic GRBL with step+direction control does not have it, but chips like 2208 and 2209 still doing it on their own when Silent Step is enabled. I can imagine that solution can be to use lower gear ratio, for example smaller driving pulleys.

Hope that one of my guesses is correct about the problem you have.

Cheers!

The answer may be a lot simpler.
My machine had a similar issue with uneven circles & notches…

Easy answer.
slow the travel speed in Y Axis & slow the accelleration/decelleration in X & Y movement.

This will cure the jerk movement as the beam starts & ends its circumference cut.

I experimented with acceleration, power and speed at the very beginning, as the problem appeared, but it did not significantly affect the appearance of the wheels. maybe my eye does not see something in the construction of the laser that makes the problem occurs. for the moment, the seller declared to send some parts (I do not know exactly what will be in the package) for the laser, so for now I am waiting.

I would also like to add that the first time deformed wheels with a “tooth” appeared when I changed the frame of the laser to a larger one. but when I returned later to the standard frame the problem disappeared until…
still today I replaced the rollers with new ones because I saw a video somewhere that maybe they have worn out and are making mechanical clearance. But that didn’t help either.