Segmental Stepper position control with acceleration

Hello everyone I m facing problem in a project can any one help me in this??

In my application I need to run stepper motor with acceleration after pressing start button continuously until a stop input cmd is given after stop input it should stop at predefined position with deacceleration given by keypad

Can anyone help with this??

Thanks

Post your code and people will help. If you want people to write code for you, post over in the "Gigs and Collaboration" forum and pay someone.

If you don't know where to start, you should learn the following thing separately:

  • Button, see button tutorial
  • Keypad, see keypad tutorial
  • Stepper motor with acceleration and acceleration: please tell us which Arduino and which stepper motor are you going to use?

And then combine them. If you have any problem, make a question on forum with the code, wiring diagram and error.

IoT_hobbyist:
I recommend to use this stepper motor controller

Recommending a stepper controller without knowing what stepper is to be controlled makes no sense.
On top of that, the one you link to would only work if the OP is using an Arduino Uno and is happy to use shields.

wvmarle:
Recommending a stepper controller without knowing what stepper is to be controlled makes no sense.
On top of that, the one you link to would only work if the OP is using an Arduino Uno and is happy to use shields.

Thank you for pointing out. I edited the answer.

IoT_hobbyist:
If you don't know where to start, you should learn the following thing separately:

You need to be careful there though.

It starts with wiring the button to ground (so far so good), then has :

pinMode(BUTTON_PIN, INPUT_PULLUP);

Excellent stuff so far. (Those two facts of course mean that unpressed is high, pressed is low: good, indeed recommended, practice.)

But then the wheels come off. Under the heading "How to detect the state change from LOW to HIGH" it says:

if(lastState == LOW && currentState == HIGH)
  Serial.println("The button is pressed");

With the wiring and pinMode given, low to high is a release not a press.

Further down, in a different sketch under "Modifying Arduino code" but with the same wiring and still input pullup, the author correctly says:

if(lastState == HIGH && currentState == LOW)
    Serial.println("The button is pressed");
else if(lastState == LOW && currentState == HIGH)
    Serial.println("The button is released");

Ok so they snuck in a change on that tutorial; see line 21:

Before:

low2high_before.GIF

After:

low2high_after.GIF

low2high_before.GIF

low2high_after.GIF

Thank you 12Stepper,

I told my co-worker to change it and forgot to inform you. We greatly appreciate your valuable suggestion.