Motor with quick motion, needed range is small (<10 centimeters)
hi all,
i've been playing around stepper motor hooked easydriver , arduino uno. needs motor quick motion (e.g. move distance of 5cm in less second) , maximum range i'll need quite small (10 centimeters fine).
briefly, device i'm working on involves hooking string finger on 1 end motor on other end. use of load cell measure string's tension, program tell motor either loosen (finger goes down) or tighten (finger goes up) string. thus, motor needs quick motion finger moves @ reasonable speed.
the code used quite simple: uses accelstepper set speed. input can read increase or decrease speed.
what noticed stepper isn't in accelerating. can reach high rpm, ramps slowly. appears haven't coded correctly, or stepper doesn't suit needs.
what kind of motor can give me sub-second acceleration small range need? thanks!
i've been playing around stepper motor hooked easydriver , arduino uno. needs motor quick motion (e.g. move distance of 5cm in less second) , maximum range i'll need quite small (10 centimeters fine).
briefly, device i'm working on involves hooking string finger on 1 end motor on other end. use of load cell measure string's tension, program tell motor either loosen (finger goes down) or tighten (finger goes up) string. thus, motor needs quick motion finger moves @ reasonable speed.
the code used quite simple: uses accelstepper set speed. input can read increase or decrease speed.
code: [select]
accelstepper stepper(accelstepper::full4wire, 4, 5, 6, 7);
void setup() {
serial.begin(9600);
stepper.setmaxspeed(10000);
}
long speed = 0;
void loop() {
while (serial.available()) {
char input = serial.read(); //read user input , trigger appropriate function
if (input =='1')
{
speed += 100;
stepper.setspeed(speed);
}
else if (input == '0') {
speed -= 100;
stepper.setspeed(speed);
}
}
stepper.runspeed();
}
what noticed stepper isn't in accelerating. can reach high rpm, ramps slowly. appears haven't coded correctly, or stepper doesn't suit needs.
what kind of motor can give me sub-second acceleration small range need? thanks!
you may want think how going stop motor acceleration. remember "momentum" school? use it.
paul
paul
Arduino Forum > Using Arduino > Motors, Mechanics, and Power (Moderator: fabioc84) > Motor with quick motion, needed range is small (<10 centimeters)
arduino
Comments
Post a Comment