Hi everyone, i've been running a smoothk40 laser for a while now and i'm

Hi everyone, i’ve been running a smoothk40 laser for a while now and i’m really stuck with the burnt edges on raster engraving, is there a setting i’m missing to tune the power ramping? i’m using visicut to generate the gcode which doesn’t have an acceleration space option for smoothie. any thoughts?

try http://laserweb.xyz :slight_smile:

i’ve got laserweb just not used it, is there a way of changing the homing point on screen as my laser homes top left?

Thats a hardware change, in smoothie change home to Y max and make that endstop Y max

ok changed that bit, do i have swap the min 0, max 200 around because it is now homing in the wrong direction

ignore that, i inverted the stepper and now seems fine

This is a bit of a thorny subject at the moment :slight_smile: IMO the latest edge does acceleration correctly, and the laser power ramps linearly with the acceleration. The master branch accelerates very roughly (about every millisecond) and ramps in sync with that. You do not say which one you are using. However last time I looked at the gcode for something that looked similar to this you could see the gcode generated higher power levels at the start of lines causing these darker cuts. My guess is that the dithering on the edges had confused the rasterizer making this happen. Once you check your gcode for this issue, I suggest trying latest edge and see if it is any better.
One thing I suspect is a linear mapping of power to current speed on the acceleration curve may not be optimal.

that’s the kind of answer i was looking for thanks, i’m running the latest stable but i’ll give edge a go, i wouldn’t have thought a linear map would work at all as most co2 lasers don’t output in direct proportion to input, mine for instance hits a peak wattage at about 92% pwm and then tails off towards 100%, with 40%-50% being a considerably bigger jump in output compared with 60%-70%
i’m guessing for a cut and paste coder like myself implementing a configurable set of points in the config file is out of my range

much like in marlin where you can create a lookup table for a thermistor

Now I have a PWMable controller I’ll be experimenting with the acceleration/PWM profile, I think either logarithmic or I² should work, failing that a LUT will be needed. Basically as far as I can see the PWM controls the current to the LD proportionally, but current is not a linear relationship to power AFAIK. Although laser diodes behave oddly in that respect.

ok I plotted the current vs power for the laser diode I have and it is almost linear, not perfectly, but closer than I would have expected https://photos.google.com/share/AF1QipN7XBiw4qAvJ2JnfYBg4WQ6HcmAjZlefdJtfrKJvERDr95Kd_xP6R8f7xD26J8JnA?key=Vk5md0d0Y3BXOXNLenZFaTVYbkI3TGFKNFowN05B This puts my theory about the PWM not being proportional in doubt.

hmmm interesting, although i’d expect a diode to be more accurate than a gas laser, i’ve got a bit of downtime on the cutter today so i’ll give edge a go, reducing the effects of acceleration seems to help too

edge has improved it but only a touch, https://drive.google.com/open?id=0Bz4MXA1LvDdFUlY1QjdrbGtndms

i’m going to cheat for now and do a bounding box around the work to fake an acceleration zone for now

I’m wondering if the burning power is not a linear relationship… like will 1 watt burn at half the amount that 2 watts would? or is that non linear, if so what is the relationship.

did you try increasing your acceleration and see if the dark band narrowed? that would confirm it was this issue or an image conversion issue.

CO2 lasers are definitely not linear, you totally need to set up minimal and maximal value for engraving, and the range is pretty small ( less than 10% when I last set this up. Depends on materials ). And even then ideally the raster software should have some way to compensate for the fact that even in that range it’s not linear.

@Wolfmanjm hi, yes the effects are reduced by lessening the effects of the acceleration, but it’s at a point where it’s jerking so hard it’s going to damage something. i’m running a commercial job at the moment but i’ll do a sample scale for you with 500, 1000, 2000, 3000 accel value with nothing else changed

@Marc_Rogers I found a bug in the new edge related to the proportional power during acceleration. i’ll fix it today, i’d be interested to see if this helps or not.

please try this firmware… it should work better… http://blog.wolfman.com/files/laser-fixed-1.bin