Many robotic projects require the control of multiples digital and discrete outputs to work simultaneously, the motor interfaces are not an exception due big robotic instrumentation used today, the widespread Arduino control interface has the ability to handle steppers motors even with its own reference function librarys, but when it comes to a much more basic type of control over multiple speed's motors some arrangements need to be done.The basic operation of a stepper motor and its advantages like position control and torque holding make them a common choise on robotic and industrial aplications, however, the digital control of this kind of motors are no as simplest as regular DC machines and this instruments has not in built feedback interface. The control of this motors are given in at least two steps, the Micro Controller wich give the digital comunication and control interface and the Driver wich allow the controller to handle big power switching, commonly need it for this kind of motor.

DC brush motors rotate continuously when voltage is applied to their terminals. Stepper motors, on the other hand, effectively have multiple "toothed" electromagnets arranged around a central gear-shaped piece of iron. The electromagnets are energized by an external control circuit, such as a microcontroller. To make the motor shaft turn, first, one electromagnet is given power, which makes the gear's teeth magnetically attracted to the electromagnet's teeth. When the gear's teeth are aligned to the first electromagnet, they are slightly offset from the next electromagnet. So when the next electromagnet is turned on and the first is turned off, the gear rotates slightly to align with the next one, and from there the process is repeated. Each of those rotations is called a "step", with an integer number of steps making a full rotation. In that way, the motor can be turned by a precise angle.

The use use of multiple delay funtions on a single Arduino code means that the code has to hold the code until that conditions complay and then reasume the following code. This kind of control is the most basic and well known for controlling single speed motors, and it works pretty well, the delays set the rythm for the step shift perfectly. But when multiple motors have to be handle the use of delays over the processing code means that any step has to be preceded by the delay time of the previous motor need it to complete a step and even this way the switch for velocity means the use of diferent types of hold time.The key to succesfully control any number of steppers its to program just ONE virtual motor that gives the rythm that any other will move, like in a car, the angular speed of the wheels its a relation of the actual angular speed of the motor by the use of a CLUTH. A virtual motor moving at the top speed, that will be the reference for the other two motors, this single virtual motor has it owns regular stepper function with a single delay (actually this delay its there for the correctly serial comunication flow), the other motors work on the relation named CLUTCH wich will geve them a fraction of the virtual top speed, this is done by counting the times that the virtual motor give a step and deciding how much of them will be ignored before making a single step with it.

The CLUTH relation can be a single INT value, or a ecuation based on the time that the program has be running like int next example: