The motor MCA 30/64 - 7





ITALIANO  ENGLISH


Drive the MCA3064 with Arduino and MST_K07_CL

The washing motor MCA3064 can be controlled via PC  using an Arduino board, an speed regulator MST_K07_CL controller and a dual relay module as shown in the figure. The control system allows to vary the  speed and the direction of rotation and it permits to read the real rotation speed.
Through the serial monitor of the Arduino IDE program (other GUI that connect with the Arduino board are fine) you can set the adjustment level and the direction of rotation. Realy this system allows to implement more complicated functions by modifying the Arduino code loaded on the Arduinno board. For example, adjustment profiles can be implemented as an external signal coming from a sensor / switch connected to the Arduino board. For the interfacing of the regulator with the Arduino board it is necessary to create an isolation interface since the MST_K07_CL regulator works under a line (220Vac). The relay module guarantees the insulation between the motor and the Arduino board.

microst.it controllo con arduino e mst_k07_cl del motore

ARDUINO CODE

To control the card with the Arduino Mega card (you can also use other cards like the Arduino UNO, NANO version) you need to load the following code using the IDE software. Once the connections have been made as shown in the figure, use the IDE software serial monitor to control the motor through the commands:

a = turns on the motor at the speed already preset by the command rxx

s = turns off the motor;

rxx: regulates the speed value (from 0 to 100) (for example r51 set the speedregulation at 51% of the maximum speed

o = activates the clockwise rotation;

i = activates the anti-clockwise rotation;

t = dead time for rotation direction change;

For the commands to change the direction of rotation (o  and i) particular attention must be paid because the change of direction of rotation must be done when the motor reduces the number of revolutions to almost zero. For this reason, when the rotation change is commanded, the motor is automatically switched off, a time is expected (twait settable by command t) and the relays are activated by restarting the motor from zero to the previous regulation value by implementing a softstart.

For the code, download the following file:
Drive_MCA3064