Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Cant get my settings calibrated
rolexbene
Newbie
Posts: 9
Permalink
Post Cant get my settings calibrated
on: March 15, 2016, 22:16
Quote

I Have finally got my Polargraph built and seem to be having some issues getting the settings correct. It seems that the motors move way too far. I am using a mega with Motor shield v1. My steppers are random but managed to find the model number online and these are the specs I can find...

Steps per Revolution: 200
Step Angle: 1.8°
http://cncsuperstore.com/index.php?route=product/product&product_id=64

The only way I managed to get this to print was to set the mm per rev to 1000, not good I know!

So my steps per rev should be 200
mm per rev should be at 95?
What should my step multiplier be?

Please if anyone can help I would be much appreciative!
Image

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Cant get my settings calibrated
on: March 15, 2016, 22:39
Quote

Hello, if you're using polargraph_server_a1, with an adafruit motorshield v1, then you should probably be doing:

Steps per rev: 400 (because that firmware uses interleaved steps which doubles the resolution of the motor)
Step multiplier: 1 (multiplier is for microstepping)
Mm per rev: 95 (if you're using my trispoke sprockets)

Remember to upload your machine spec!

Sn

rolexbene
Newbie
Posts: 9
Permalink
Post Re: Cant get my settings calibrated
on: March 15, 2016, 23:30
Quote

Thanks Sandy for the quick response! I will give it a go tomorrow and see what happens.

rolexbene
Newbie
Posts: 9
Permalink
Post Re: Cant get my settings calibrated
on: March 16, 2016, 18:31
Quote

Great that seemed to do the job. Getting some good images out of it now. Planning on scaling this up in the office with bluetooth serial connection in the future.

Sandy, does the fact that I have had to set my step multiplier to 1, mean that the resolution is not as good as it could be?

Image

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Cant get my settings calibrated
on: March 16, 2016, 20:07
Quote

That's good news. The step multiplier is a bit of a funny anomaly, I'll try to explain why it's there and what it means.

All motors have a basic number of steps per rev, usually 200.

With motor drivers that run in full steps, there are 200 steps per rev, and so that is your basic resolution. One set of coils turn off, and another set turn on, and the rotor jumps from one position to another.

Can't move in half steps or quarter steps can only move in full steps. This is great for reliability. When the machine stops, it's on a full step and only one set of coils is energised. So it's a positive lock, and the machine can keep in that position indefinitely.

This is addressed simply: move to position 2000, simply steps the motor 2000 times, because there is no step multiplier.

The adafruit motorshield v1 drivers has a step style called "interleaved", which creates a kind of half-step that is also pretty reliable. This allows us to double the resolution, and that's why the steps per rev is doubled in your case (400 half-steps). So moving to the same position as before would be 4000 steps, and because all those steps are reliable, then you can actually go to each one of those steps, and stop there if you want to.

Microstepping is a way of driving the motor that slides the current from one set of coils to the other in a series of steps, rather than suddenly. It makes for much smoother transitions from step to step. So the motor drivers that the PolargraphSD uses is configured to use 8x microstepping, so each full step of the motor actually consists of 8 small steps. To move to position 2000, you'd actually need to step 16,000 times.

The problem is that the positions in between full steps are not reliable. If I step once, then one of the coils goes down to 87.5% of full current, and the other coil comes up to 12.5% of full current. This pulls the rotor one eighth of the way towards the next position.

If you don't step again, it stays in this "in between" steps, and warms up, and eventually snaps back to the original position. Electromagnetic physics collude to make it so, and it's true even if it's exactly in the middle - it'll snap either back to the last step, or forward to the next.

So you've lost track of where you started, and you now don't know where the motor really is. If every time you stop, you lose half a step because you pause and it snaps back, then eventually you're a couple of steps out.

So long story right? The purpose of step multiplier is to state how much microstepping to assume. We address the machine in full steps (200 steps per rev), because those are the steps that we know it's safe to stop on, but we tell it to multiply all of the coordinates by stepMultiplier to get the real position.

We say "go to 2000", it says, "ok, stepMultiplier is 8, so I'm going to 16,000 (8x2000)".

In the case of the adafruit shield, it doesn't microstep, so we say "go to 2000", it says, "ok, stepMultiplier is 1, so I'm going to 2000 (1x2000)".

That was a long winded way of saying "no, nothing to do with resolution", ha!

sn

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.025 seconds.