help on system architecture choice

I am designing a system that needs to drive a stepper motor continuously (motor of peristaltic pump). Later I may need to upgrade the system with 1 or 2 more motors.

I have made a first prototype with :

  • 1 arduino Yun hosting user interface webpage, communicating through I2C with Uno + Xnucleo stepper controller.

The system works about fine, but I am not fully happy on the Uno side : When I used step rates <1K steps/s all is fine, but at higher rate my main loop code execution takes too much time and slows down/perturbates my stepping.

Any suggestion on how to optimize the system ?

Maybe an option I was thinking of would be to change the motor driver to some SPI/I2C stepper driver ?

What is the purpose of the Uno? Can't you control the motor directly from the Yun?

Without seeing your program I can't think of anything else to say.

...R
Stepper Motor Basics
Simple Stepper Code