Firmware compatibility and anti-backlash script

I’ve created a gcode processor in php.
[Edit] This is now documented here:[/edit]

It allows you to rewrite 3D Gcode from tools like Skeinforge and use them with the 5D firmware. I’ve added a number of other neat features, one of the cooler ones is backlash compensation. I was having trouble increasing the quality of my prints any further, I’ve tried everything with the hardware, but there still is some play on the Y axis.

From 3D printing!

On the left, you see a chess pawn printed without backlash compensation. On the right, this “software” setting was turned on. This is a very effective way to reduce backlash, which in hardware becomes disproportionately harder when you need to go further. You hit constraints like exceeding a healthy belt tension, running the motors with too much power, etc.

This play is not there on my X axis, because that one doesn’t use microstepping and has more resonance/vibrations. Vibration can actually be a good thing (no, I didn’t mean it like that 🙂 ). My theory is that this vibration causes the XY-carriage to settle closer to where it’s supposed to be, instead of lagging a bit behind when it was supposed to move.

Now, my script adds an amount of movement that you can configure per axis. It was actually easier than I thought, so it’s definitely something to add to the Java host as well. You need to set up 4 numbers, backlash_X_forward, backlash_X_reverse, backlash_Y_forward, backlash_Y_reverse. I’ve made the unit milimeters. The compensation simply needs to know the direction in which it was moving, and add the backlash. The static friction seems to be symmetrical, but the length of the belt (that stretches slightly) connecting the pulley to the Y axis, is asymmetrical.

It can also do simple find- and replace’s on Gcode lines, which I currently use to speed up the raft making (of which the base layer is slow in Skeinforge, with a reason I now learned). All of the features can be turned on or off in a configuration file or in the top section of the php script.

The code for this script can be found here: here.

Dit vind je misschien ook leuk...

3 reacties

  1. bodgeit schreef:

    Thats a very usefull addition, Great work thank you

  2. theorbtwo schreef:

    This looks like great work — you should repost it to the builder’s blog.

  3. This is a simplified simulation of the mechanical “Cartesian bot” of The RepRap. It allows you to play with things like play (a.k.a. backlash), tension of the belt that drives the axis, etc. You can explore what happens if you change the weight of the