Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: non-stop steppers! Help!
TheCase
Newbie
Posts: 4
Permalink
Post non-stop steppers! Help!
on: November 19, 2013, 05:57
Quote

I'm using the motor shield with an Uno.

I have the Adafruit 200 step/rev steppers. Settings are 200 steps/rev, 46 mm/rev (I'm using fishing line on smaller spools). Multiplier is set to 1.

The motors are moving in the right direction, but they accelerate very quickly, and will not stop moving. For instance, I set the gondola near the center of my work area, set home, then tell it to move a few MM up from that position. I is almost immediately moved off the top and thankfully the steppers aren't running with enough current or the line would certainly snap!

I've changed the steps/rev in every place I can find it in the firmware (in both the main .ino and configuration.ino), as well as in the settings of the Controller.

I have also tried the Stepper sample sketch from the Adafruit library. The steppers seem to operate normally with that sketch.

Am I missing something? Any help or suggestion is appreciated.

TheCase
Newbie
Posts: 4
Permalink
Post Re: non-stop steppers! Help!
on: November 19, 2013, 06:09
Quote

Slight update:

I've finally run a small enough test set. The movement does eventually stop. However, I've told the pen to move just a couple millimeters from the home position and it invokes 30+ rotations of the steppers. I've changed the numbers in the controller and they don't seem to have any effect.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: non-stop steppers! Help!
on: November 19, 2013, 14:31
Quote

Hallo, hum, could be a few things. Something worth knowing is that you should never have to change any values in the firmware. The values that are set there for stepsPerRev and mmPerRev (etc) are simply defaults.

You would set your machine size in the controller, then do "upload machine spec" to communicate those changes to the machine itself. From that point your machine will remember the settings in its internal EEPROM. But until then, it'll be using the default values, which are essentially arbitrary, and nothing will make any sense.

Oh, one other thing (sorry about this), but when using the adafruit shield, you should set stepsPerRev to be 400 steps (or rather, twice your actual steps). It's because the AFMotor driver uses a kind of half-stepping internally so you get twice the resolution.

I don't know exactly what you've tried, so maybe that's all obvious to you!

sn

TheCase
Newbie
Posts: 4
Permalink
Post Re: non-stop steppers! Help!
on: November 19, 2013, 17:45
Quote

Oh! I completely missed that button. I was assuming that once I hit the Save button in the controller that everything was set. I'm sure its as simple as that. I'll try that and report back. In the meantime, thanks for the assistance.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: non-stop steppers! Help!
on: November 19, 2013, 18:40
Quote

Aha, no, save in the controller saves the controller settings (it works even when the controller is disconnected). Upload machine spec creates a couple of commands that let the machine know what size it is.

sn

TheCase
Newbie
Posts: 4
Permalink
Post Re: non-stop steppers! Help!
on: November 19, 2013, 21:06
Quote

to verify, that was the exact issue. Thanks again for the help.

Loving my new polargraph!

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: non-stop steppers! Help!
on: November 19, 2013, 22:39
Quote

Hurray!

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