4-axis Arduino based CNC hot wire foam cutter

Yesterday I tried to calibrate with the M92 command.

// NEMA 17 with standard pitch M8 threaded rod:
(400 * 16) / 1.25 = 5120

because my steppers are 0,9 degrees/ step = 400 per turn

So i sent these two commands to my board:

M92 X5120 Y5120 Z5120 E5120
M500

And nothing happened?!

I have this hardware

1 x RAMPS 1.4
1 x MEGA 2560 R3
4 x A4988 driver
1 x USB kabel
4 x NEMA 17 (0,9 degrees/ step = 400 per turn)

I have the A4988 driver on my Ramps and with all three jumpers set. So in my case it is set to 1/16 steps.

It's all running nicely - but uncalibrated!

Is there a simple way I can send this M92 gcode to be saved to my eeprom?

I am an RC plane hobbyist with a preference for big gliders, and I want to build a 4-axis CNC hot wire foam cutter to cut my wings.

You have not said what software is running on the Arduino to "receive" and interpret the M92 GCode command.

...R

Software:

  • Arduino 1.6.3,

  • 6 Axis CNC Demo Rumba:

  • GcodeSender

Get it here: GitHub - MarginallyClever/GcodeSender: Sends file commands to a serial connected device

The above code (6 Axis CNC Demo Rumba) actually makes a good job, but seemingly it is missing the possibity to choose TURNS_PER_UNIT or similar constants.

I don't want to use Mach3 or Repetier or whatever, because they don't support 4-axis the way I need it.

Well, not as far as I have understood, but I am a beginner in this world.

That's why I came here :slight_smile:

In the GcodeCNCDemo project there is a 2axis demo. that sketch uses STEPS_PER_TURN to calculate THREAD_PER_STEP, and then perform IK() to convert from your distance to machine steps.

If you could please add the IK to the 6 axis code and submit a pull request, I'll see that it gets included in the project and your name will be in the credits.

Thanks!

aggrav8d:
If you could please add the IK to the 6 axis code and submit a pull request, I'll see that it gets included in the project and your name will be in the credits.

I don't understand exactly, what you ask me to do?

I'm afraid this is beyond my skills :frowning: