Multiple steppers with ContinousStepper.h library

Hello, is there any possibility to control 2-3 steppers with ContinousStepper.h library in Arduino? I have 3 stepper with 3 drivers for each other.

Please help me to know if I can, thank you!

I can control 1 stepper, but when I want to control 2, it does not work.

Please, what steppers and what stepper drivers?

"Does not work" conveys no useful information. Please elaborate.

Nema 17 steppers and A3967 drivers

If i have both steppers in code, i send command to stepper 1 to start snd it does not. If if only 1 stepper and i sent a command to start, it works

Please post the test code.

Please read the forum guidelines to see how to properly post code and some information on making a good post.

Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in a code block.

Please post data sheets for the stepper motor and the driver.

I am on the phone now far from my home and pc. Please find it on internet.

I am using step and dir pins, and i used continousstepper library with timerone, as in example in library.

Will you again vandalize your thread and delete your posts if you don't like the answers as here and here ?

That example uses only one stepper.

Yes, i know, and this is why i asked because i don t know if i can use 3 steppers and if i can how?

Why the timer1 example? What Arduino board are you using?

Did you see this warning in the example?

// :warning: Works poorly on AVR boards (UNO, Leonardo, Mega, etc.)

I did not see this. Arduino uno.

I tried instead of this and it work only for 1 stepper.

I want to control 3 steppers with this library or another one but i don t know how.

How?

You are working on an informatic project and what is most needed in an informatic project is guess what?: information. Precise information.

You should exactly name what you mean with "this"

This simple and single word without any context invites to widespread speculations to which posting you are refererring to.

You should always quote a posting to make clear to what your posting refers to.
User "something 712" was a SPAMMER

You should post your complete sketch using this method

best regards Stefan

Here is an adaptation of the basic example from the library modified to run 3 steppers. I do not have your exact hardware but tested, successfully, with my Uno, CNC shield with
DRC8825 drivers (3) and NEMA17 steppers (3).

#include <ContinuousStepper.h>

// If using a stepper driver, with STEP and DIR pins:
ContinuousStepper<StepperDriver> stepperX;
ContinuousStepper<StepperDriver> stepperY;
ContinuousStepper<StepperDriver> stepperZ;

void setup()
{
   // If using a stepper driver, with STEP and DIR pins
   stepperX.begin(/*step=*/2, /*dir=*/5);
   stepperY.begin(/*step=*/3, /*dir=*/6);
   stepperZ.begin(/*step=*/4, /*dir=*/7);

   stepperX.spin(600);
   stepperY.spin(200);
   stepperZ.spin(-400);
}

void loop()
{
   stepperX.loop();
   stepperY.loop();
   stepperZ.loop();
}

If your motors do not work with this, proven, code then you probably have a hardware problem. Post a detailed schematic or wiring diagram. Hand drawn, photographed and posted is fine. Include all pin names/numbers, components, their part numbers and/or values and power supplies. And some photos of the wiring.

Thank you so much. I need to start and stop the stepper only if i have a button pressed from PLC. I am using settimino.h library to communicate and to send data from plc to arduino and vice versa.

If Button == 1 (button is pressed on HMI) then stepper 1 starts and if Button == 0 stepper 1 stops. Same for stepper2 and stepper3. Can you adapt this to the code?

No because your information is too unspecific to be able to adapt this.
With the code provided by groundfungus you got a starting point.
It is up to you to develop the code further from this point.
Without modifying the code through you yourself I have the impression you are asking for cost-free solutions with minimised own effort.

Please don t write without asking. I am trying from 2 days to solve this and i didn t resolve. This is why i asked here

You should demonstrate your own effort by posting your code.
You could have done this with your very first posting.

I am not at home and on my phone i don t have the code. Plase understand. I will post it when i arrive

I don't know anything about PLC. What is HMI? How does the PLC communicate with the Arduino Uno? There is a lot of necessary information missing. So, please, start with a schematic and answer the questions above.

This is not a free code writing service. I can help you with code for Arduino, but the PLC stuff is out of scope for the Arduino forum.

We can get you there if we cooperate.

I am communicating with settimino library. Communication is ok. HMI is human machine inrerface, a display which help me to control the system. I press a button in hmi, it sents 1 to arduino and when Button = 1 i want stepper 1 to work and when is 0 to not. Same for stepper2 and 3 with different buttona.

I just need help only in arduono code, in plc all is ok.

Its like i have a push button and if is pressed, stepper works and if is not pressed, stepper not working. Can you help me to adapt the code like this? Thank you so much