# Stepper power problem

**URL:** <https://forum.arduino.cc/t/stepper-power-problem/1189744>\
**Category:** Motors, Mechanics, Power and CNC\
**Created:** [November 16, 2023, 8:21am UTC](https://forum.arduino.cc/t/stepper-power-problem/1189744 "2023-11-16T08:21:00Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Asche](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/asche/32/1013044_2.png) [@Asche](https://forum.arduino.cc/u/Asche)\
**Post date:** [November 16, 2023, 8:21am UTC](https://forum.arduino.cc/t/stepper-power-problem/1189744/1 "2023-11-16T08:21:00Z")

</div>

Hi.  
I have a problem with some stepper driven peristaltic pumps.  
[This is the one](https://www.takasago-fluidics.com/products/6-channel-pump-peristaltic-pump)

The steppers are driven by A4988 drivers with the current limiter set to the 350mA rated on the motors. The motors are rated at 10V, so that is where I started. My problem is that as soon as I mount hoses to the pumps, they don't have enough torque to turn anymore. From other forum threads I understand that steppers are usually driven at much higher than nameplate voltage to gain torque. My motors are already getting too hot to touch for more than a second at 10V, so I'm not sure how much I can safely increase the voltage. I don't want to damage the motors, but at the moment they are useless.

Any tips would be most welcome.

This is the code I'm using, in case that should be relevant.

````arduino

```cpp
//Code for Arduino Mega1
//This code
//1. Take commands from PC and execute (liquid transfer pumps).
//2. Send voltage to gas sparger.
//3. Send voltage to pumps for liquid transfer.
//The following time stamps are all in seconds
//Start is earlier for inlet than outlet to compensate for evaporation
//For this, we just need food to colon and colon to waste
//Feed every 4 hours. Transfers for all reactors will happen at exact same time
//Inputting ~4.5ml of content and outputing ~4ml of content
//This ensures an overall ~30 hours retention time
#define TimeStamp1 5 //Food to start inputting liquid into reactors
#define TimeStamp2 10 //Food to start removing liquid from reactors
#define TimeStamp3 40 //Time to stop both transfers
#define TimeStamp4 120 //Time to reset the system

#include <MobaTools.h>

char instring[4]; //This stores the input from the Serial port
int instring_int[4]; //This stores the input from the Serial port converted to integer
int i;
int k;
int j; //Placeholder counter

//only 1 pin used because of using 6-channel pump
int spargerpin = 10;
//Pin1 is input and Pin2 output
const int dirPinInputPump = 2; //direction of input pump
const int stepPinInputPump = 3; //Pump for adding liquid to reactors

const int dirPinOutputPump = 4; //direction of output pump
const int stepPinOutputPump = 5; //Pump for removing liquid from reactors.
const int stepsPerRevolution = 1818;
const byte enablePin1 = 6;
const byte enablePin2 = 7;

MoToStepper stepperInputPump( stepsPerRevolution, STEPDIR ); // create a stepper instance
MoToStepper stepperOutputPump( stepsPerRevolution, STEPDIR ); // create a stepper instance

int timer = 0; //Timer for liquid transfer
int tspa = 0; // Timer for sparging gas

void setup() {
  // stepPin, DirPin
  stepperInputPump.attach( stepPinInputPump, dirPinInputPump );
  stepperInputPump.setSpeed( 300 ); //value 300 = 30 rev/min (if stepsPerRev is set correctly)
  stepperInputPump.setZero(); // set actual position as position zero
  stepperInputPump.attachEnable( enablePin1, 100, LOW );

  stepperOutputPump.attach( stepPinOutputPump, dirPinOutputPump );
  stepperOutputPump.setSpeed( 150 ); //value 300 = 30 rev/min (if stepsPerRev is set correctly)
  stepperOutputPump.setZero(); // set actual position as position zero
  stepperOutputPump.attachEnable( enablePin2, 100, LOW );

  
  Serial.begin(9600);
  //Serial.setTimeout(50);
}

void loop() {
  
//Now, check if we need liquid transfer
  if ((timer > TimeStamp1) && (timer < TimeStamp3)){
    //digitalWrite(inputpin,HIGH);
    stepperInputPump.rotate(1); // 1 = rotate clockwise -1 = rotate counterclockwise
    Serial.println("Adding medium");
  }
  else {
    //digitalWrite(inputpin,LOW);
    stepperInputPump.stop();
  }
  
  if ((timer > TimeStamp2) && (timer < TimeStamp3)){
    //digitalWrite(outputpin,HIGH);
    stepperOutputPump.rotate(1); // 1 = rotate clockwise -1 = rotate counterclockwise
    Serial.println("Removing medium");
  }
  else {
    //digitalWrite(outputpin,LOW);
    stepperOutputPump.stop();
  }
  
  if (timer > TimeStamp4){
    timer = 0;
  }
  timer += 1;

//Now, handles the gas sparging
  if (tspa > 5){//reset timer if it exceeds 5 secs
    tspa = 0;
  }
  tspa += 1;
  if (tspa > 3 && tspa < 5){//At the fifth second, sparge
    digitalWrite(spargerpin,HIGH);
    Serial.println("Sparging");
  }
  else {
    digitalWrite(spargerpin,LOW);
  }

 //After everything, wait for 1 sec
  delay(1000); 
  Serial.println(timer);
}

````

```arduino

```

---

<div class="post-metadata">

**Author:** ![MicroBahner](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/microbahner/32/238923_2.png) [@MicroBahner](https://forum.arduino.cc/u/MicroBahner)\
**Post date:** [November 16, 2023, 8:59am UTC](https://forum.arduino.cc/t/stepper-power-problem/1189744/2 "2023-11-16T08:59:19Z")

</div>

> [@Asche](#):
>
> My motors are already getting too hot to touch for more than a second at 10V, so I'm not sure how much I can safely increase the voltage.

With a current driver your motors will not get hotter if you increase the voltage. The current set at the driver defines how hot they will get. And stepper motors can get really hot - at least hotter than you can touch them.

---

<div class="post-metadata">

**Author:** ![Railroader](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/railroader/32/274550_2.png) [@Railroader](https://forum.arduino.cc/u/Railroader)\
**Post date:** [November 16, 2023, 9:28am UTC](https://forum.arduino.cc/t/stepper-power-problem/1189744/3 "2023-11-16T09:28:24Z")

</div>

The link goes to a sales site. A real datasheet or a better product description had explained more. Can You measure the resistance of the coils?  
There's a risc it's a hybrid stepper. Then You use the wrong kind of driver.

---

<div class="post-metadata">

**Author:** ![Asche](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/asche/32/1013044_2.png) [@Asche](https://forum.arduino.cc/u/Asche)\
**Post date:** [November 16, 2023, 9:49am UTC](https://forum.arduino.cc/t/stepper-power-problem/1189744/4 "2023-11-16T09:49:17Z")

</div>

This is a data sheet for the motor [https://mm.digikey.com/Volume0/opasdata/d220001/medias/docus/571/PG20L-D20-HHC0.pdf](https://mm.digikey.com/Volume0/opasdata/d220001/medias/docus/571/PG20L-D20-HHC0.pdf)

---

<div class="post-metadata">

**Author:** ![Railroader](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/railroader/32/274550_2.png) [@Railroader](https://forum.arduino.cc/u/Railroader)\
**Post date:** [November 16, 2023, 10:16am UTC](https://forum.arduino.cc/t/stepper-power-problem/1189744/5 "2023-11-16T10:16:02Z")

</div>

Thank You. That confirms that the current controlled driver is wrong.  
Use 10 volt and an ULN2003, or better, use a MOSFET based driver like that. Pololu has several good drivers as I've learned from other helpers. Sadly I have not used that kind of stepper, nor their driver, yet.  
Hopefully other helpers will step in and give more precise advice.

---

<div class="post-metadata">

**Author:** ![Asche](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/asche/32/1013044_2.png) [@Asche](https://forum.arduino.cc/u/Asche)\
**Post date:** [November 16, 2023, 10:31am UTC](https://forum.arduino.cc/t/stepper-power-problem/1189744/6 "2023-11-16T10:31:23Z")

</div>

Can you explain why this is the wrong driver, and how you can tel? Just so I understand what I'm doing wrong.

---

<div class="post-metadata">

**Author:** ![Railroader](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/railroader/32/274550_2.png) [@Railroader](https://forum.arduino.cc/u/Railroader)\
**Post date:** [November 16, 2023, 10:49am UTC](https://forum.arduino.cc/t/stepper-power-problem/1189744/7 "2023-11-16T10:49:08Z")

</div>

Study hybrid stepper motors and stepper motors. The hybrid has quite some resistance in their coils, often 10 - 30 Ohm. Real steppers are in the ra ge of 0.1 Ohm. The current control is needed for those low resistance coils but js not wanted for hybrid coils. This is a requent matter for forum.

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [November 16, 2023, 11:12am UTC](https://forum.arduino.cc/t/stepper-power-problem/1189744/8 "2023-11-16T11:12:00Z")

</div>

What's all this Hybrid stuff?!

The MMB website says it's a PM (Permanent Magnet) stepper and the datasheet says the drive method is Bipolar-Chopper.

---

<div class="post-metadata">

**Author:** ![TomGeorge](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tomgeorge/32/215261_2.png) [@TomGeorge](https://forum.arduino.cc/u/TomGeorge)\
**Post date:** [November 16, 2023, 11:21am UTC](https://forum.arduino.cc/t/stepper-power-problem/1189744/9 "2023-11-16T11:21:59Z")

</div>

Hi,

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/1/7/9/179ebcb10b452ea0704781a92b47426fb35794f3.png)

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/6/2/d/62d05bb60eca6aefedecb539c962118669e71baa.jpeg)

Tom.. 😀 👍 ☕ 🇦🇺

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [November 16, 2023, 11:34am UTC](https://forum.arduino.cc/t/stepper-power-problem/1189744/10 "2023-11-16T11:34:41Z")

</div>

So, increase the voltage to 12V and see if it turns.  
You may need to go higher.

---

<div class="post-metadata">

**Author:** ![MicroBahner](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/microbahner/32/238923_2.png) [@MicroBahner](https://forum.arduino.cc/u/MicroBahner)\
**Post date:** [November 16, 2023, 2:05pm UTC](https://forum.arduino.cc/t/stepper-power-problem/1189744/11 "2023-11-16T14:05:51Z")

</div>

> [@Railroader](#):
>
> That confirms that the current controlled driver is wrong.  
> Use 10 volt and an ULN2003, or better, use a MOSFET based driver like that.

You cannot use a ULN2003 for that bipolar stepper. It's a high impedance stepper, so you may use it with a simple MOSFET H-bridge and a 10V PSU.  
But you also can use a current driver like A4988 if the PSU voltage is high enough. I would recommend at least 24V for that stepper and the A4988 driver. 10V is definitely not sufficent.

---

<div class="post-metadata">

**Author:** ![Asche](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/asche/32/1013044_2.png) [@Asche](https://forum.arduino.cc/u/Asche)\
**Post date:** [November 20, 2023, 10:06am UTC](https://forum.arduino.cc/t/stepper-power-problem/1189744/12 "2023-11-20T10:06:56Z")

</div>

Finally found a 24V PSU, and it made no difference at all, so I switched to a L298N H-bridge driver (12V) and that didn't do much of a difference either.

These motors are giving me a headache.

---

<div class="post-metadata">

**Author:** ![TomGeorge](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tomgeorge/32/215261_2.png) [@TomGeorge](https://forum.arduino.cc/u/TomGeorge)\
**Post date:** [November 20, 2023, 10:21am UTC](https://forum.arduino.cc/t/stepper-power-problem/1189744/13 "2023-11-20T10:21:05Z")

</div>

Hi,  
What is the exact part number of your peristaltic pump?

Can you please post some pictures of your project and your pump?

Thanks.. Tom... 😀 👍 ☕ 🇦🇺

---

<div class="post-metadata">

**Author:** ![Asche](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/asche/32/1013044_2.png) [@Asche](https://forum.arduino.cc/u/Asche)\
**Post date:** [November 20, 2023, 10:42am UTC](https://forum.arduino.cc/t/stepper-power-problem/1189744/14 "2023-11-20T10:42:14Z")

</div>

Hi.  
The part number for the pump is RP-6R01S-3P6A-DC10VS (purchased from takasago). The motor data sheet is linked further up.

 ![IMG_20231109_223843-2](https://europe1.discourse-cdn.com/arduino/original/4X/3/3/7/33756a44368351c49a97f7e68bcf41527850e518.jpeg)

---

<div class="post-metadata">

**Author:** ![Asche](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/asche/32/1013044_2.png) [@Asche](https://forum.arduino.cc/u/Asche)\
**Post date:** [January 18, 2024, 8:10am UTC](https://forum.arduino.cc/t/stepper-power-problem/1189744/15 "2024-01-18T08:10:34Z")

</div>

As it turned out, this wasn't a problem with the steppers at all. It was a mechanical coupling slipping in the gearbox, so the motor was turning, but not the pump.

---

<div class="post-metadata">

**Author:** ![MarkT](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@MarkT](https://forum.arduino.cc/u/MarkT)\
**Post date:** [January 18, 2024, 9:33am UTC](https://forum.arduino.cc/t/stepper-power-problem/1189744/16 "2024-01-18T09:33:47Z")

</div>

No, this definitely needs a chopper driver, its a stepper! The rating is 0.35A and 10 ohm, and their controller is 12V, (the 10V rating on the motor isn't meaningful, BTW). An A4988 running from 12V supply and set to 0.35A peak should be fine.

The problem may lie elsewhere, like not using silicone tubing of the correct dimensions, or some mechanical jam?

edit: given that slipping has been identified, it still could be the wrong type of tubing presenting too large a mechanical load - silicone tube is much more flexible than other types.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [July 16, 2024, 9:34am UTC](https://forum.arduino.cc/t/stepper-power-problem/1189744/17 "2024-07-16T09:34:43Z")

</div>

Closed on July 16, 2024, 9:34am UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
