How to drive two stepper motor at the same time

In my project, I want to write a program which drive two stepper motors at the same time. This process should be parallel. Does Arduino Uno allow this event?

The AccelStepper library has a class called MultiStepper that does coordinated movement of multiple steppers.

And if you don’t need coordinated movements (i.e. all motors stopping and starting at the same time even though they do different numbers of steps) then the ordinary AccelStepper library will be sufficient.

Note that the MultiStepper library does not do acceleration.

…R
Stepper Motor Basics
Simple Stepper Code

Yes, two Arduino Uno's could be made to drive 2 steppers at the same time.

Idahowalker:
Yes, two Arduino Uno's could be made to drive 2 steppers at the same time.

Why would one want two Arduinos ?

...R

Robin2:
Why would one want two Arduinos ?

...R

Me, I'd use an STM32 or ESP32.

It's more about those key words "at the same time."

Idahowalker:
It's more about those key words "at the same time."

Still does not make sense. One Uno or Mega can control several stepper motors.

...R

Robin2:
Still does not make sense. One Uno or Mega can control several stepper motors.

...R

Not arguing that with you.

But, at the same time?

Take an ESP32, with 2 tasks. One task on each core. Each task assigned to the same event group and trigger that event group. That would be very close to being at the same time.

A single Mega or a single Uno cannot get that close, as with an ESP32, to controlling 2 servos at the same time ( a nonspatial continuum in which events occur in apparently irreversible succession from the past through the present to the future ).

As a note:
The cycle count register of a ESP32 does 160 counts per micro second. Which would give a margin of 1/160th of a microsecond to trigger each task on each core.

Idahowalker:
Not arguing that with you.

Your entire contribution seems to be a distraction for the OP who asked about an Uno.

Everyone knows there are faster microprocessors, but there is no indication that an Uno would be insufficient for the OP's needs. 16MHz Atmega MCUs power many 3D printers perfectly well.

...R