I tried to search the internet, but some doubt still remains.
I'm realizing with Arduino a DC servo motor (i.e. not a stepper motor) driver/controller which generates the two PWM pulses for an h-bridge and acquires the two pulses of a quadrature encoder and the analog output of a current sensor. The aim is to implement a simple PID control to drive the motor to the requested position (position control), at the selected speed (speed control) or with the specified current (current/torque control).
Here are the questions:
- Considering that the first application in which it will be used will be a CNC milling machine and, so, that a gcode parser shall be integrated in the code, will one only Arduino board be enough (in terms of resources) or will i need one board per motor (three in total)? In this last case, how it will be possible to synchronize the gcode commands generated by a single source (a PC) and sent to the three different boards?
- How the motor position can be held in order to block it while movements on other axes are in progress?
Thanks, that's all for the moment. Ciao!