Geared Bipolar Stepper Motor control with Arduino

Hi,
I bought Geared Bipolar Stepper Motor (RB-phi-133) which is similar to current RB-phi-120 model. I want to control this stepper motor by arduino. In that case, do I need to but both Pololu 8-35V 2A Single Bipolar Stepper Motor Driver A4988 and Arduino Uno USB Microcontroller Rev 3? How do I connect them?
Please let me know so that I can go ahead and order and try.
Thanks,
Jahid

So long as the current is less than 2A, it should be fine. If it’s close, then add a relay.
Yes, you would need the stepper motor controller as well as the microcontroller.
You can see the connections here.

Hi,

I have bought Pololu 8-35V 2A Single Bipolar Stepper Motor Driver A4988 and Arduino Uno USB Microcontroller Rev 3. now I would like to connect them with 12V, 1.7A, 416 oz-in Geared Bipolar Stepper Motor. There are 4 color wires in the motor. i am confused how would i connect.

i really appreciate if you will guide me in details the connection.

Thanks.

what’s the relay for?

Alan KM6VV

I donot have any relay as i expect the current is less than 2A.
I just want to control the rotation of the motor by arduino programing.

I have very new in this area so i dont know too much.

thanks,
jahid

The stepper motor on its own requires commands from an external device, like a microcontroller.
The Arduino is connected to four pins: step, direction, power and GND. Take a look at the image, the datasheet and the manual:
robotshop.com/media/catalog/ … iver-2.jpg
robotshop.com/media/files/pd … t-1182.pdf
robotshop.com/media/files/pd … l-1182.pdf

Hi,

I have tried according to your suggestion but i could not make it run :frowning:. here is my arduino code for your convenience. I can send you my wiring connection if I will get any email address as i cant attach any file here.

Thanks,
jahid

[code]// PINS
int StepPin=8;
int DIRPin = 7;

void setup ()
{
pinMode(stepPin, OUTPUT);
pinMode(DIRPin, OUTPUT);
Serial.begin(9600);
}

void loop ()
{
digitalWrite(DIRPin, LOW);
for(int i =0; i < 5; i++)
{
digitalWrite(stepPin, HIGH);
delay(100);
digitalWrite(stepPin, LOW);
delay(100);
}
}[/code]

Take a look at the following posts on the Arduino forum which explains how others have gotten the driver to work with Arduino:
forum.arduino.cc/index.php?topic=133894.0

Hi,

I have tried as it is mentioned over there. Still, it is not working. it seems the motor is getting signals but still can not rotate.

Sorry for the inconvenience.

Regards,
jahid

As such, we suggest you contact manufacturer directly (it’s actually part of their policy to have customers contact them directly):
forum.pololu.com/
[email protected]
1-877-7-POLOLU (US only) or 1-702-262-664

Should they not be able to resolve the issue(s) you are encountering with the controller, feel free to write to us via the support center and we will look into it further.

Hi,

I contacted with Polulu. They told me that my connection and coding seemed ok and it supposed to work. But unfortunately, it is not working. What should I do now?

I am very frustrated at this point as it is more than 2 weeks.Can I buy a new set of motor, arduino uno and polulu micro-controller and send that to robotshop office to help me out with this connection?

Regards,
jahid

If they could not find the issue, did they suggest replacing the unit would work?
Can you post a few images of your setup?

No they did not suggest to replace the unit.

There are many connections which need to be checked, the first (which cannot be seen in the images) is if you have the right coils from the stepper going to the right pins (1A/B and 2A/B).
Can your power supply provide enough current for both coils of the stepper?
Try to remove the Reset and Sleep jumper.
Is the current limiting potentiometer set too low?
Pololu designed the product, so they are in the best position to troubleshoot - did you try their suggestions?

Hi,

This is my current connection
1A-black
1B-green
2A-red
2B-blue

Would it be possible to check this connection? My motor is 12V, 1.7A, 666 oz-in Geared Bipolar Stepper Motor RB-Phi-133.

My power supply is 5A. I have been told earlier that if my power supply for the motor is less than 2A, then i don’t need any relay. The maximum current to the motor is 1.7A

Have not tried this one yet.

Tried this as well.

I have been following their suggestion for almost last 2 weeks.

Your coil colors are correct and your power supply is good - no fuse / relay should be required.
Notice that your sample code (assuming it’s all correct) seems to move the stepper by only 5 steps, which would correspond to 0.09 degrees.

Hi,

i have also checked by increasing the number as well with the following code. but did not work. can you suggest any third party who can connect and run this ( i will pay).

[code]int stp = 13; //connect pin 13 to step
int dir = 12; connect pin 12 to dir

void setup()

{
pinMode(stp, OUTPUT);
digitalWrite(stp, LOW);
pinMode(dir, OUTPUT);
digitalWrite(dir, LOW);

}

void loop()

{

digitalWrite(stp, HIGH);
delay(500);
digitalWrite(stp, LOW);
delay(500);

}[/code]

Unfortunately we do not have a list of individuals or companies which can troubleshoot issues (pair or unpaid). Pololu is your best option as we cannot seem to find the issue. If they cannot resolve the issue, and do not think the board is defective, we would be happy to look into having you exchange the board for a different one.

Hi,

I think I have figured out the problem after using the oscilloscope.

This is my motor set up where the current per phase is 1.68A

phidgets.com/documentation/Phidgets/3325_3329_Mechanical.pdf

and according to the A4988 spec:

Continuous current per phase: 1 A2

Maximum current per phase: 2 A3 (with very good cooling system)

pololu.com/product/1182/specs

where DRV can give maximum

Continuous current per phase: 1.5 A2

Maximum current per phase: 2 A3 (with very good cooling system)

So what is happening, the driver get hot after few sec and turning off internally. So it is giving signal to the motor in on/off basis which is unable to rotate the motor. We even tried reducing the step size but did not work.

I hope this explain why it is not working. Am I right?

Regards,

jahid

Hi,

If the above explanation is true, do you think i should buy this motor as its current is only 350 mA.

robotshop.com/en/12v-350ma-2 … motor.html

Thanks.