Controlling a1.7A/Phase 3v stepper (sparkfun ROB-10846)

Drive a 4-wire bipolar stepper motor or a pair of DC motors from your Arduino. [Product page]
Post Reply
monkeyiq
Posts: 7
Joined: Sat Mar 17, 2012 12:07 pm

Controlling a1.7A/Phase 3v stepper (sparkfun ROB-10846)

Post by monkeyiq » Tue Feb 11, 2014 8:26 am

Hi,
I have one of these bipolar stepper motors from Sparkfun:
https://www.sparkfun.com/products/10846
400 steps/rev, 3v, 1.7a per phase.

I attached the Freetronics HBRIDGE to a uno and powered the uno using a 12v/2a supply. The hbridge is set to Bridge VIN To Motor Power. I have the 4 wires connected such that each coil is on a single channel. (from the datasheet from sfe product page, Black+Green on one and Red and Blue on the other).

If I run the stepper at about 110-130rpm and spin for 1 revolution one way, wait 0.5 sec and return then wait 0.5s and go again then it almost works. Every now and then there is a minor skip allowing the end position of the rotation to drift a little from time to time. Not every time, but maybe one in 10 iterations of loop(). Trying to use only 9 steps and a 20ms delay to do a rotation doesn't go as well. It's more like random movement.

I've tried limiting the current 0.6, 1.2 and 2a on the hbridge. The quickstart guide mentions that the current limit is per channel, so I'm it seems to me that a 2A limit would thus need a 12v/4A power supply to give a 2A limit to each of the two channels? Any suggestions on getting just a hand full of steps working reliably very welcome, even if they are that I shouldn't be trying to drive that stepper with this configuration ;)

One idea is to switch out to a less current hungry stepper like, 12v / 0.33A:
https://www.sparkfun.com/products/9238

cef
Freetronics Staff
Freetronics Staff
Posts: 106
Joined: Wed Nov 09, 2011 12:53 am

Re: Controlling a1.7A/Phase 3v stepper (sparkfun ROB-10846)

Post by cef » Tue Feb 11, 2014 9:38 pm

I would first look at your 12V 2A supply.

I'd see if you could use a slightly larger supply (eg: 12V 3-5A) just to avoid current spikes taking the usage over the 2A mark. The more the voltage varies, the less reliable your steps will be. As the Arduino regulates that voltage down to 5V, it won't see any of these drops in voltage (unless they're huge - ie: takes the supply below about 7.5V), so you only have a problem that affects the stepper driver.

Another option may be to place a large capacitance across your supply (eg: 2200uF). This will charge and be able to provide short bursts of current during high current drain to avoid a voltage drop.

Note: Yes the stepper itself is only rated for 4V, but with steppers current is the key value here. A higher voltage simply allows the coil to create a magnetic field faster, which allows the "steps" to happen faster. If you switch to steppers with coils rated for 12V, they will step slower, so you may need to allow longer time between each step to ensure the motor actually moves completely. If you attempt to step "before" an existing step (mechanically) is finished, then the results are unreliable.

PS: A general "rule of thumb" I follow is that you want the motor to be rated no more than 1/2 the supply voltage to the stepper driver, and preferably under 1/3rd. You want to avoid the rating being less than 1/8th. This isn't hard and fast though: As your supply goes up, the difference goes down, but I find the above works reasonably well for supplies in the 10-15V range. This ensures reasonable speed without the motor getting too hot.

monkeyiq
Posts: 7
Joined: Sat Mar 17, 2012 12:07 pm

Re: Controlling a1.7A/Phase 3v stepper (sparkfun ROB-10846)

Post by monkeyiq » Thu Feb 13, 2014 1:23 am

Thanks for the info!

I moved to a 13.8V 12A supply. So hopefully now I'm not giving the supply unit so much grief.

Unfortunately it still skips (or reverse steps) at times. I've tried doing 2 steps per move, and 20 steps per move. Altering the setSpeed from 1 up to 200 (later doesn't move at all). At 1.2A and 60 rpm doing 20 steps per move I have found that it doesn't step backwards, but sometimes the call to move 20 steps doesn't produce any movement. I also tried toggling the enable lines between movements to see if not holding the place would change the result. Didn't seem to help. I also want to hold the place, and likely step 2-3 degress per hit in the project.

Trying to spin 1 revolution with the new supply produced more erratic results than before.

The new supply is cat num MP3079
http://www.jaycar.com.au/productView.as ... TID=999#12
given that the full rotation test is not as accurate with this supply I'm beginning to think it might not be what this task needs.

cef
Freetronics Staff
Freetronics Staff
Posts: 106
Joined: Wed Nov 09, 2011 12:53 am

Re: Controlling a1.7A/Phase 3v stepper (sparkfun ROB-10846)

Post by cef » Thu Feb 13, 2014 5:59 am

Q: Which code are you using to control this?

If you're using your own code, how long are you holding the signal at the appropriate logic level before returning it to the default? If the pulse is too short, the driver may not be recognising the pulse as valid.

monkeyiq
Posts: 7
Joined: Sat Mar 17, 2012 12:07 pm

Re: Controlling a1.7A/Phase 3v stepper (sparkfun ROB-10846)

Post by monkeyiq » Thu Feb 13, 2014 6:20 am

I started with the example 'Example Stepper Sketch' from the tutorial:
http://www.freetronics.com/pages/hbridg ... tart-guide

I have also then experimented with the following. Changing incr in the range 2 to 20 and the delay between movements from 20ms to 3s. steploose was added to release the motor between steps. It is based on integrating the second example on the tutorial page into the code. The whole file is up at http://fuuko.libferris.com/stepper_oneR ... eetron.ino

snippits here:

void steptight( int v )
{
myStepper.step(v);
}

void steploose( int v )
{
digitalWrite(enableA, HIGH);
digitalWrite(enableB, HIGH);
myStepper.step(v);
digitalWrite(enableA, LOW);
digitalWrite(enableB, LOW);
}

void loop()
{
int incr = 2;

for( int i=0; i<stepsPerRevolution; i += incr )
{
steptight(1 * incr);
Serial << "going +ve to:" << i << endl;
ledstate = !ledstate;
digitalWrite( ledpin, ledstate );
delay(3000);
}
delay(1000);

for( int i=0; i<stepsPerRevolution; i += incr )
{
steptight(-1 * incr);
Serial << "going -ve to:" << i << endl;
ledstate = !ledstate;
digitalWrite( ledpin, ledstate );
delay(3000);
}
delay(1000);

}

monkeyiq
Posts: 7
Joined: Sat Mar 17, 2012 12:07 pm

Re: Controlling a1.7A/Phase 3v stepper (sparkfun ROB-10846)

Post by monkeyiq » Thu Feb 13, 2014 1:22 pm

I've also tried the below code. Digging into Stepper and AccelStepper it seems to boil down to similar signals being sent to the driver. I'd probably look to use the AccelStepper library longer term anyway. Using the below also does some skips. Setting the pulse width higher doesn't seem to settle it down :| I'm thinking perhaps the new power supply might not be up to it. I'll try taking the motor and ardu combo to a hackerspace to use their bench power supply on it.

#include <AccelStepper.h>

// Define a stepper and the pins it will use
AccelStepper stepper( AccelStepper::FULL4WIRE, 4, 7, 3, 2);

void setup()
{
stepper.setMaxSpeed(400.0);
stepper.setAcceleration(20.0);
// stepper.setMinPulseWidth(30);
}

void loop()
{
stepper.runToNewPosition(0);
delay(1000);
stepper.runToNewPosition(400);
delay(1000);
}

monkeyiq
Posts: 7
Joined: Sat Mar 17, 2012 12:07 pm

Re: Controlling a1.7A/Phase 3v stepper (sparkfun ROB-10846)

Post by monkeyiq » Fri Feb 14, 2014 6:16 am

ok, so that motor runs without jitter using a EasyDriver and the same 13.8V/12A supply. Obviously that setup is current limited to up to 750mA. So not exactly apples to oranges, but good to see the motor moving well with the power supply to somewhat rule out pussible wire issues etc.

Moving back to the Freetronics H-Bridge sheild, my next line of investigation would probably be the accelstepper setMinPulseWidth() method. And perhaps then sniffing the 4 wires (4, 7, 3, 2) to see what signals are being sent down to the Freetronics H-Bridge sheild. Timing of pulses being the next target on the hit list.

Doc
Posts: 1
Joined: Fri Mar 18, 2016 9:56 am

Re: Controlling a1.7A/Phase 3v stepper (sparkfun ROB-10846)

Post by Doc » Fri Mar 18, 2016 10:42 am

Sorry for adding to an old post but I am having the same trouble but the odd steps are more frequent once in every 4th or 5 cycle as well as 1 or 2 steps occurring while the motor is braked during the 1 sec delay I am using the code on the freetronics motor shield page if i run it over 12vdc the motor the motor locks up if increase the amp toggles the steps become more violent so i am stumped

clibin009
Posts: 150
Joined: Mon Oct 23, 2017 2:57 am

Re: Controlling a1.7A/Phase 3v stepper (sparkfun ROB-10846)

Post by clibin009 » Mon Oct 23, 2017 4:52 am

clb1023
cheap jordan shoes
cheap oakley sunglasses
cheap ray ban sunglasses
ugg boots
uggs outlet
coach outlet store
supreme shirts
adidas shoes
canada goose outlet
coach outlet online
cheap jordan shoes
red bottom
coach outlet online
polo ralph lauren
oakley sunglasses outlet
pandora jewelry
pandora jewelry
coach outlet online
mulberry
michael kors outlet canada
coach outlet store
canada goose coats
nike sneakers
oakley sunglasses outlet
michael kors bags
adidas sneakers
pandora charms
cheap jordan shoes
michael kors outlet online
canada goose jacket
cheap jordan shoes
polo ralph lauren outlet online
michael kors handbags outlet
harden shoes
fred perry polo shirts
ray ban sunglasses sale
ugg boots sale
moncler outlet online
coach outlet online
ugg shoes
valentino
pandora charms sale clearance
uggs outlet
moncler outlet online
louis vuitton outlet online
michael kors
air max shoes
christian louboutin shoes
coach outlet store online
ugg boots women
ray ban sunglasses outlet
ugg
ugg boots
nike outlet
cheap ray ban sunglasses
ugg outlet
canada goose sale
ray ban sunglasses outlet
michael kors outlet online
jordan shoes
hermes bags
canada goose jackets
burberry outlet online
coach outlet online
longchamp bags
mlb jerseys
coach outlet online
coach outlet
michael kors outlet online
supreme uk
pandora charms
the north face outlet
cheap air jordans
canada goose jackets
canada goose coats
timberland outlet store
ralph lauren outlet online
ugg boots
yeezy boost 350
pandora outlet
michael kors outlet canada
north face outlet
mlb jerseys
air max
uggs
ralph lauren outlet online
michael kors
jerseys cheap
cheap jordans
canada goose outlet
coach outlet online
supreme clothing
michael kors
michael kors outlet store
coach outlet online
salvatore ferragamo outlet
michael kors outlet clearance
burberry handbags
air jordans
coach factory outlet online
retro 11
ugg outlet online
pandora charms sale clearance
louis vuitton outlet store
longchamps
louis vuitton outlet online
nfl jerseys
ugg outlet online
canada goose outlet
cheap nfl jerseys wholesale
polo ralph lauren
canada goose jackets
tory burch shoes
toms
uggs outlet
ugg boots on sale
christian louboutin shoes
michael kors outlet online
ralph lauren outlet
cheap uggs
uggs outlet
adidas outlet online
cheap ugg boots
ray ban sunglasses discount
moncler jacket
nike outlet online
michael kors outlet online
coach factory outlet online
ray ban sunglasses outlet
christian louboutin sale
uggs outlet
birkenstock shoes
hermes bags
michael kors outlet store
nike shoes
pandora jewelry outlet
canada goose outlet
uggs
uggs outlet
louis vuitton outlet
uggs clearance
louboutin outlet
moncler uk
cheap ugg boots
ugg boots outlet
ugg outlet
coach factory outlet
adidas superstar shoes
coach outlet online
adidas nmd runner
pandora jewelry outlet
adidas outlet store
canada goose coats
adidas nmd r1
ralph lauren outlet online
discount oakley sunglasses
ugg outlet
toms
coach purses
birkin handbags
ralph lauren outlet online
kate spade outlet
michael kors outlet online
pandora charms
yeezy shoes
coach factory outlet online
michael kors outlet store
canada goose uk
michael kors outlet clearance
burberry outlet online
canada goose jackets
uggs outlet
air jordan shoes
burberry outlet online
ray ban sunglasses cheap
ugg boots
hermes handbags
nike outlet store
uggs outlet
moncler coats
ugg boots
red bottom heels
coach outlet online
cheap ugg boots
moncler jackets
cheap ugg boots
bottes ugg
uggs outlet
polo ralph lauren outlet
ugg outlet store
coach outlet online
ralph lauren sale
toms shoes
ralph lauren
fred perry shirts
pandora charms sale
canada goose outlet online
moncler
adidas superstars
pandora uk
ugg boots outlet
cheap ugg boots
coach outlet online
coach factorty outlet online
louis vuitton factory outlet
canada goose parka
nike cortez classic
uggs outlet
moncler coats
burberry outlet online
cheap oakley sunglasses
ugg boots
polo ralph lauren outlet online
longchamp bags
coach outlet online
kate spade outlet online
coach factorty outlet online
coach factory outlet online
adidas yeezy boost
toms
nike outlet store online
coach factory outlet online
birkenstock outlet
coach outlet store
ugg boots outlet
coach outlet store online
michael kors outlet online
coach factory outlet
ralph lauren outlet
mbt
ugg boots
nike shoes
coach outlet online
ugg boots
north face outlet
polo ralph lauren outlet
canada goose outlet
canada goose
coach factory outlet online
kate spade outlet online
longchamp outlet
kate spade outlet online
polo ralph lauren outlet online
pandora charms outlet
adidas outlet online
coach factory outlet online
hermens
kate spade handbags
pandora charms outlet
columbia sportswear outlet
nike huarache shoes
uggs outlet
polo ralph lauren outlet
moncler sale
mulberry handbags
moncler
adidas nmd r1
canada goose coats
moncler jackets
moncler sale
air max
coach outlet store online clearance
burberry handbags
michael kors outlet store
caterpillar boots
yeezy boost 350
moncler sale
michael kors outlet clearance
uggs outlet
ralph lauren sale clearance uk
ugg sale
moncler coats
coach outlet canada
michael kors uk
coach outlet online
ugg boots clearance
ugg outlet
pandora jewelry store
cheap air jordans
coach outlet online
canada goose jacket
nmd adidas
coach factory outlet online
adidas outlet store
canada goose coats
ray bans
air jordans
coach factory outlet online
cheap nike shoes
ugg sale
pandora charms sale clearance
moncler coats
louis vuitton factory outlet
polo ralph lauren outlet
ralph lauren sale clearance uk
burberry outlet
michael kors outlet store
adidas ultra boost
michael kors outlet online
toms
ugg slippers
adidas nmd r1
coach outlet online
louboutin outlet
louboutin shoes
canada goose jackets
coach factory outlet online
louis vuitton factory outlet
canada goose outlet
michael kors bags
north face jackets
cheap ray bans
ugg australia
cheap nfl jerseys
uggs clearance
jordans
cheap uggs
adidas yeezy boost
cheap ray ban sunglasses
coach factory outlet
ugg boots
canada goose sale
coach factory outlet
polo outlet online
adidas store
canada goose sale
canada goose outlet
ray ban glasses
yeezy shoes
birkenstock
air jordan retro
cheap uggs
timberland outlet
mlb jerseys whgolesale
adidas nmd runner
coach outlet online
coach outlet canada
canada goose jackets
ugg boots clearance
ugg outlet online
michael kors outlet clearance
canada goose jackets
discount ray ban sunglasses
pandora charms outlet
canada goose sale
uggs outlet
coach outlet online
polo ralph lauren outlet
birkenstock uk
ray ban sunglasses discount
longchamp sale
ugg boots
michael kors outlet store
canada goose jackets
canada goose clothing
cheap jordan shoes
canada goose jackets
yeezy boost
michael kors outlet clearance
uggs
canada goose sale
christian louboutin sale
ugg boots outlet
red bottoms
ugg boots outlet
uggs on sale
canada goose jackets
adidas yeezy boost 350
ralph lauren uk
uggs outlet
cheap ugg sale
moncler jackets
coach factory outlet
christian louboutin shoes
yeezy boost 350
ferragamo shoes
uggs outlet
canada goose uk
gucci outlet online
ugg outlet store
cheap ugg boots
fitflops sale clearance
nike outlet online
nike outlet store
canada goose sale
uggs outlet
cheap air jordans
canada goose jackets
moncler outlet online
mulberry outlet uk
north face jackets
louis vuitton outlet store
ugg boots
coach factory outlet online
valentino outlet
ralph lauren sale
louis vuitton outlet online
yeezy shoes
ferragamo outlet
canada goose
pandora
canada goose coats
hermes outlet
coach factory outlet online
the north face outlet
polo ralph lauren outlet online
uggs outlet
coach outlet online
kate spade handbags
ugg outlet
ray ban glasses
michael kors outlet clearance
ralph lauren sale
hermes bag
longchamp outlet store
harden vol 1
pandora charms
polo ralph lauren outlet
burberry outlet online
michael kors outlet online
ugg boots
ugg canada
ralph lauren outlet
burberry handbags
tory burch outlet online
polo ralph lauren outlet
michael kors
canada goose jackets
fitflop sandals
coach outlet store
polo ralph lauren outlet
salvatore ferragamo shoes
ray bans
adidas yeezy shoes
coach outlet online
gucci outlet
coach handbags outlet
christian louboutin shoes
pandora charms outlet
ralph lauren
nike air max 2018
mbt
coach outlet online
kate spade handbags
cheap oakley sunglasses
louis vuitton handbags
christian louboutin shoes
michael kors outlet store
moncler pas cher
moncler outlet online
ray bans
kate spade outlet
cheap jordans for sale
nike sneakers
tory burch outlet online
toms outlet
ugg on sale
coach outlet online
ugg outlet
mulberry uk
cheap jordans free shipping
coach outlet store online
clb1023

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest