Pages: [1]   Go Down
Author Topic: I am trying to get the fasted speed with stepper motor and easy drive.  (Read 700 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am trying to use 8 motors with one arduino board. but I can't really decide what kind of motor I need to get.
What I wanna do in just control motor''s speed (has to be quite fast like 300 rps) and direction.
And I bought a mercury stepper motor and an easy driver for start. because one of my friend who is very into Arduino, he said stepper motor is easier to control with Arduino. 

But my question is how fast the stepper motor can be?
is it better to use DC motor?
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 627
Posts: 34220
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
is it better to use DC motor?
Depends on your application. A stepping motor is good at precisely turning through an exact angle, with typically 1.8 degrees per step.
However, it sounds like you don't need that sort of control so you would be better off using a DC motor.

Basally the top speed is governed by:-
1) The motor
2) The load on the motor
3) The voltage you drive it at
4) The speed you can output pulses to it
5) If you ramp the speed up and down it will go faster than trying to go that speed from a standing start
Logged

South Texas
Offline Offline
Edison Member
*
Karma: 8
Posts: 1025
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

300 RPS??? That's 18,000 RPM. Wood working Routers and high speed milling spindles run that fast. What are you trying to make?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am trying to get the fasted speed with stepper motor and easy drive using AccelStepper libraries.
But It doesn't look as fast as 300 rps.

any advise for coding?

#include <AccelStepper.h>

// Define a stepper and the pins it will use
AccelStepper stepper(1, 9, smiley-cool;

int pos = 3600;

void setup()

  stepper.setMaxSpeed(90000);
  stepper.setAcceleration(900000);
}

void loop()
{
  if (stepper.distanceToGo() == 0)
  {
    delay(500);
    pos = -pos;
    stepper.moveTo(pos);
  }
  stepper.run();
}
Logged

UK
Offline Offline
Shannon Member
****
Karma: 223
Posts: 12630
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

AccelStepper says: Speeds of more than 1000 steps per second are unreliable. It looks as if you're way outside the region of reliable operation. How many steps per second are you trying to achieve?
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26332
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
But It doesn't look as fast as 300 rps.
18000 rpm is fast, even for a DC motor.
Is that really what you meant?

Please use code tags when posting code.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 627
Posts: 34220
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
But It doesn't look as fast as 300 rps.
That is because you are not going as fast as 300 rps with that code.
It is one thing setting the speed and quite another having the motor respond to that speed. I suspect it is being stepped too fast and it is skipping steps.
You need to look on a scope to see if your signals are alright at this speed, I suspect they are not.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26332
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Topics merged.

Cross posting wastes everyones time.

DO NOT CROSS POST.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26332
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
any advice?
1) Ditch the floating-point arithmetic.
2) keep your posts to a single thread.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Pages: [1]   Go Up
Jump to: