Using Z for something else :)

Hi,

Possibly a strange question: I am building a second Mostly Printed, but then for use as a plotter / drawing machine. Based on some MPCNC customized parts, but with the same electronics. I do not need the heavy middle section with the Z-axis. The portal is given an H-shape (seen from above).

Instead of the Z motor I would like to use a servo or a small and light stepper motor to lift the pen a little bit.

Since I do not know anything about electronics, I would like to ask someone who can tell me if this is possible. And if so, can I still use gcode files?

I use an Arduino Mega with Ramps, such as the package from the MPCNC in early 2017.

Thanks for any comments.

Yes but you will need to edit the firmware.

Yes.

1 Like

Hi Ryan, thanks for your response.

I managed to get a servomotor working on the Ramps, but for that I have to replace all Z-commands with a M280 command to control the servo.

It would be easier to use a small stepper motor so that I can maintain the Z-commands. I will also try that.

Can you give me a tip what (where) to adjust in the firmware?

 

Kind regards,

Jack

If you will use 2 phase 200 steps/rev stepper but just smaller like nema8

you will not need to adjust firmware. Only current on the driver

1 Like

Thanks Guffy,

Didn’t know this small Nema exists. Go and see if I can buy it somewhere :slight_smile:

Jack, I’ve written a “Pull Request” on Marlin to emulate steppers with a servo, but even if it works well, it’s not really easy to use.

It wasn’t updated to take into account recent updates, so would need some software work to be ported to a recent codebase, but would cover your requirement:

1 Like

@thesfreader

That would be exactly what I need. Unfortunately, I can not do anything with code myself.

It would be great if you could update the software. And maybe an instruction where that code should be placed in Marlin…

I have now connected a Nema 8 stepper motor 1.8 step, 3.9V, 0.6A to the Ramps (Z). I have lowered the stepper driver current to 0.4 and removed the MS3 jumper under the driver for the 1.8 step. Wirecolors connected to: blue>2B – red>2A – black>1A – green>1B.

Sometimes the motor runs well, but after a while trembling fast from left to right and v.v. The motor becomes very hot.

What and where should I change something in the firmware?

Thanks for any advice,

Jack

Hmmmm its seems as if your trying to go 2 directions at one time. My thoughts are since you have gotten the servo to work could you import the dxf lines into excel and use the find and replace function. Then export back to dxf?
So flow would be
Dxf notepad file > excel > excel find,replace > dxf notepad file??
Bare in mind i haven’t worked with any files but i know you can copy the code lines… only stands to reason if you can copy you can paste…

That is a good thought. But I’ve already tried it. In Wordpad you can immediately search and replace in the stl file. But it’s an extra job and mistakes are quickly made. In addition, I want precise control over the Z-movement of the pen. It is not intended that the pen bounces on the paper.

I also think that the Nema 8 is not powerful enough for a pen-lift system. The carrying capacity is only 180 grams and that is too little.

I am now working on a unipolar cheap $ 2 stepper motor that I have made bipolar with help of a YouTube instruction. That little motor is much more powerful. I do not know yet if it needs firmware adjustment.

Thank you for your response. If anyone has any advice… please.

If you have free nema17 stepper connect it without workload to that nema8 sequentially and check what heppens

@Guffy

I am afraid I don’t understand what you mean. I connected the Nema 8 to the Z stepperdriver and ran it without workload…

Just for ensure that your nema8 hasn’t an internal defect. Ok, so time by time it stuck even without workload. Hmm. Just check maybe a one wire sometime loses contact. I haven’t another idea at the moment

2.5OZ/in, With it fully disconnected from the machine does it work by itself? That is the smallest stepper they have.

You said two jumpers, why not all three, and what drivers are you using? Are you positive you got the step rate correct in the firmware? Max speed and accel?

Took away all three jumpers and the Nema8 runs okay. And fast, many revolutions for 1 mm. So the Nema is fine I think.

No, it’s not strong enough to lift the pen-holder without pen… Took an image of my preliminary setup.

Using DRV8825 stepperdrivers. I found this (image) table for the jumpers.

Firmware settings now are still the same as for the MPCNC, so I have to experiment with this. Have to study on that :slight_smile:

IMG_2480.jpg

stepping.png

This is the problem. You have a homemade gear on there, one mm should be a tiny fraction of one turn. The step rate you highlighted can be confusing, put all three jumpers on and calculate your correct steps at 32nd stepping. Do a test, tell it to move 10mm and see how far it actually moves.

Steppers do not have any guess and check or calibration needed they are precise, you should have an exact number to use.

Yes, you’re right, but this is only a test and figuring out the steps is not sensible if the Nema 8 is to weak to lift anyhow…

The only way to know is to get the steps right, if you go back to 32nd stepping I can help very easily.

1 Like

Thanks for your offer. But besides the lack of power I think that the printed gears are not the most ideal solution too.

So I decided to take another turn. I am going to use a short piece of leadscrew and a smaller Nema17 (1,33 kg/cm) and put it above the middle of the lift. The middle part will have approx. 0,25 kg more weight, but we’ll see what happens.

And it will be more like the MPCNC :slight_smile:

To be continued…