A method of controlling an electric motor for moving at least one movable door of a piece of furniture the piece of furniture comprising:
- a body adapted to define a compartment with a front opening;
- at least one movable and oscillating door for closing the front opening of the compartment;
- at least one substantially L-shaped guide comprising a first linear segment and a second linear segment joined to each other, the first linear segment being parallel to an edge of the front opening, the second linear segment being substantially orthogonal to the first linear segment and being arranged at an outer side of the body of the piece of furniture along the depth of the compartment, a side edge of the at least one door being slidingly coupled to the at least one guide by means of an auxiliary coupling element adapted to slidingly engage the at least one guide by means of at least a first pin;
- a command element translatable parallelly to and along said outer side the at least one door being operatively connected in an oscillating manner to the translatable command element to be pulled with respect to the front opening during the movement of said translatable command element for opening or closing said front opening;
- a data processing unit;
- an electric motor operatively connected to the translatable command element and to the data processing unit, said electric motor being commandable by the data processing unit to move the translatable command element,
- the method comprising steps of:
- moving, by the electric motor, the translatable command element upon the command received by the data processing unit at a set first feed speed value, from a first resting position in which the translatable command element is arranged in front of the outer side of the body of the piece of furniture and does not extend frontally from the piece of furniture ;
- controlling, by the data processing unit the electric motor so that the translatable command element maintains the set first feed speed value
- determining, by the data processing unit, a value representative of the distance covered by the translatable command element with respect to the first resting position, parallel to the outer side of the body of the piece of furniture;
- comparing by the data processing unit, the detected value representative of the distance covered by the translatable command element with respect to the first resting position with a set first reference distance value to verify whether the translatable command element has reached a second operating position or not, in which such a translatable command element extends substantially at most frontally from the piece of furniture;
- if the determined value representative of the distance covered by the translatable command element with respect to the first resting position is less than the set first reference distance value, controlling, by the data processing unit, the electric motor so that the translatable command element maintains the set first feed speed value;
- if the determined value representative of the distance covered by the translatable command element with respect to the first resting position is equal to or greater than the set first reference distance value:
- determining, by the data processing unit, a value representative of the feed speed of the translatable command element with respect to the first resting position;
- comparing, by the data processing unit, the determined value representative of the feed speed of the translatable command element with respect to the first resting position with a set first reference speed value
- if the determined value representative of the feed speed of the translatable command element with respect to the first resting position is greater than the set first reference speed value, controlling, by the data processing unit, the electric motor so that the translatable command element maintains the set first feed speed value
- if the determined value representative of the feed speed of the translatable command element with respect to the first resting position is equal to or less than the set first reference speed value:
- interrupting, by the data processing unit, the power supply of the electric motor so that the translatable command element moves, under the action of a counterweight, in the opposite direction from the second operating position towards the first resting position;
- determining, by the data processing unit a value representative of the distance covered by the translatable element with respect to the second operating position;
- comparing, by the data processing unit the determined value representative of the distance covered by the translatable command element with respect to the second operating position with a set second reference distance value;
- if the determined value representative of the distance covered by the translatable command element with respect to the second operating position is greater than the set second reference distance value, keeping the power supply of the electric motor interrupted by the data processing unit,
- if the determined value representative of the distance covered by the translatable element with respect to the second operating position is equal to or less than the set second reference distance value:
- electrically powering, by the data processing unit, the electric motor to move the translatable command element towards the first resting condition;
- controlling, by the data processing unit, the electric motor so that the translatable command element maintains a set second feed speed value until reaching the first resting position.