Problems with micro stepping with AFMotor

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jpegfr
 
Posts: 7
Joined: Sun Feb 06, 2011 6:49 pm

Problems with micro stepping with AFMotor

Post by jpegfr »

Hi,
My stepper is an 200 steps per revolution with 5,7 ohm resistance.

Everything seems to work well in full-step and half-step but not in micro-steps.
The stepper motor vibrates and resonates. In fact it does not rotate. I changed the frequency of the PWM, speed, supply voltage, the number of micro steps, in the oscilloscope, the curves seem correct, nothing works. Do you have any other suggestions?

Thanks

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Problems with micro stepping with AFMotor

Post by adafruit »

when did you download & install the library?

User avatar
jpegfr
 
Posts: 7
Joined: Sun Feb 06, 2011 6:49 pm

Re: Problems with micro stepping with AFMotor

Post by jpegfr »

there was less than 1 month

User avatar
adafruit_support_bill
 
Posts: 88154
Joined: Sat Feb 07, 2009 10:11 am

Re: Problems with micro stepping with AFMotor

Post by adafruit_support_bill »

The library was updated in early January with some changes to microstepping, make sure that you have the very latest.

User avatar
jpegfr
 
Posts: 7
Joined: Sun Feb 06, 2011 6:49 pm

Re: Problems with micro stepping with AFMotor

Post by jpegfr »

ok thank you I'll watch it tonight ...

User avatar
jpegfr
 
Posts: 7
Joined: Sun Feb 06, 2011 6:49 pm

Re: Problems with micro stepping with AFMotor

Post by jpegfr »

I just tested my stepper motor with the latest version of the library, but the erratic operation are still present. The stepper motor starts to run but sometimes comes back and jumps from motor steps. Do you think that by changing the sine table we can improve things? What are my stepper motor that can not provide this function?

User avatar
adafruit_support_bill
 
Posts: 88154
Joined: Sat Feb 07, 2009 10:11 am

Re: Problems with micro stepping with AFMotor

Post by adafruit_support_bill »

What are my stepper motor that can not provide this function?
Do you have any specification sheets for the motors? What supply voltage are you using and how do you have it wired?

There is generally less available torque when microstepping. Your motor might perform better at a higher voltage. But be careful that you do not exceed the current limits of the H-Bridge (600 mA per phase)
Do you think that by changing the sine table we can improve things?
You are certainly welcome to modify the code to suit your motors. Please post your results.

User avatar
jpegfr
 
Posts: 7
Joined: Sun Feb 06, 2011 6:49 pm

Re: Problems with micro stepping with AFMotor

Post by jpegfr »

yes the specifications :
http://www.farnell.com/datasheets/30484.pdf
This is the MY4001.

Currently, the stepper motor is powered by 12v regulated. Power is limited to 500mA. I previously tested by feeding the stepper motor with a variable power supply 1A under different voltages (4.5, 6, 7.5, 9 and 12V).

User avatar
adafruit_support_bill
 
Posts: 88154
Joined: Sat Feb 07, 2009 10:11 am

Re: Problems with micro stepping with AFMotor

Post by adafruit_support_bill »

Have you tried reversing one pair of leads? (for example, red/yellow)

User avatar
jpegfr
 
Posts: 7
Joined: Sun Feb 06, 2011 6:49 pm

Re: Problems with micro stepping with AFMotor

Post by jpegfr »

Yes, I think I have done, but don't you think that a reverse connection may also impact the operating modes in full step?

User avatar
adafruit_support_bill
 
Posts: 88154
Joined: Sat Feb 07, 2009 10:11 am

Re: Problems with micro stepping with AFMotor

Post by adafruit_support_bill »

For a bipolar motor it should reverse the direction. But I've seen motors that run better in one direction than the other.

User avatar
jpegfr
 
Posts: 7
Joined: Sun Feb 06, 2011 6:49 pm

Re: Problems with micro stepping with AFMotor

Post by jpegfr »

agree, in this case, I actually take the test and is identical whatever the direction of rotation.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”