Hi.
I have a problem with some stepper driven peristaltic pumps.
This is the one
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.
```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);
}


