[ame=http://www.youtube.com/watch?v=roX1TNX05Vo]‪003‬‏ - YouTube[/ame]
I have a black plastic rack and pinion that was designed for TV cabinet doors. The rack is attached to an aluminum rail that slides on a fixed Teflon type carriage. The rack and rail weight about 3 oz. together and offers little resistance. It is oriented vertically so I just goes straight up and down.
As you can see in the video, The motor isn't quite strong enough. I need to give the slide a little boost to get it started.
After I took the video, I added some code to give it acceleration but that wasn't enough to do the trick.
What can I do to make the motor have more torque? I don't know anything about electronics. Can I just up the voltage? I am using 12v now. ...or do I up the amps? I am using a 1.0A wall wart now. I also use 30V for the bigger first axis stepper motor. I also have a small box full of wall warts of various voltages but I might need to buy a higher amperage power supply.
This is the stepper motor:
Pololu - Stepper Motor: Bipolar, 200 Steps/Rev, 28x32mm, 3.8V, 670mA
This is the driver board:
Pololu - A4983 Stepper Motor Driver Carrier with Voltage Regulators
This is the code that I am using:
Code:
void lowerTheBoom()
{
int j;
int decelerate = 10000;
digitalWrite(enablePin, LOW); // set the enablePin low so that we can now use our stepper driver.
delayMicroseconds(2); // wait a few microseconds for the enable to take effect
// (That isn't in the spec sheet I just added it for sanity.)
for(j=0; j<=lowerTheBoomSteps; j++)
{
digitalWrite(stepPin, LOW);
delayMicroseconds(2);
digitalWrite(stepPin, HIGH);
delayMicroseconds(decelerate); // was 1000
// Serial.println(decelerate);
if(decelerate >1000)
{
decelerate = decelerate - 100;
}
//delay(100);
}
digitalWrite(enablePin, LOW);
}