This application claims the priority benefit of China application serial no. 201810058441.5, filed on Jan. 22, 2018. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
The disclosure relates to a control technique and particularly relates to an automatic control apparatus and an automatic control method.
As technology advances, applications of automatic control techniques in daily life are gaining popularity, especially robots or robotic arms composed of multi-axis controllers. This kind of multi-axis control system includes multiple articulated joints and allows for movement in a flat or three-dimensional space or movement using linear displacement. Structurally such control system is composed of a mechanical main body, a control device, a servo mechanism and a sensor, and certain specified actions thereof are set by programs according to operational requirements.
For example, for a typical robot or robotic arm, if a certain posture thereof is to be set, the controller of the robot or the robotic arm must first perform a relax operation on the motor device at the joint. Then, after the user pulls the robot or the robot anti to a specific position, the controller of the robot or the robot arm reads and records the rotation angle of the motor device. However, if the robot or the robot arm has multiple joints, it is not easy to perform the above-mentioned operation. In other words, since the robot or the robotic arm droops under the influence of gravity, it is not easy for the user to maintain the posture of the robot or the robotic arm as it is. Consequently, how to design an automatic control apparatus having a convenient posture adjustment function is currently an important issue in this field.
The disclosure provides an automatic control apparatus and an automatic control method that may effectively adjust the rotation angle of the output shaft in correspondence with the magnitude of a torque applied to the output shaft of the motor device. Consequently, the automatic control apparatus of the disclosure may have a convenient posture adjustment function.
The automatic control apparatus of the disclosure includes a motor device and a controller. The motor device includes an output shaft. The controller is coupled to the motor device. The controller drives the motor device so that the motor device is operated in a non-fixed mode or a fixed mode. When the motor device is operated in the non-fixed mode, the output shaft is in a freely rotatable state. When the motor device is operated in the fixed mode, the output shaft is in a non-freely rotatable state. When the motor device is operated in the fixed mode, a rotation angle of the output shaft is maintained at a target angle. When the controller determines that the rotation angle of the output shaft is changed, if the controller determines that a difference between a current angle and the target angle exceeds a threshold angle, the controller resets the target angle by the current angle, so that the output shaft is maintained at a reset target angle.
The automatic control method of the disclosure is adapted for an automatic control apparatus. The automatic control apparatus includes a controller and a motor device, and the motor device includes an output shaft. The automatic control method in one of the exemplary embodiments is provided as follows. The motor device is driven by the controller so that the motor device is operated in a non-fixed mode or a fixed mode. Herein, when the motor device is operated in the non-fixed mode, the output shaft of the motor device is in a freely rotatable state, and when the motor device is operated in the fixed mode, the output shaft is in a non-freely rotatable state. When the motor device is operated in the fixed mode, a rotation angle of the output shaft is maintained at a target angle. When the controller determines that the rotation angle of the output shaft is changed, if the controller determines that a difference between a current angle and the target angle exceeds a threshold angle, the target angle is reset by the controller using the current angle, so that the output shaft is maintained at a reset target angle.
Based on the foregoing, the automatic control apparatus and the automatic control method of the disclosure provide an operation method in which whether to fine-tune the rotation angle of the output shaft of the motor device may be determined by the change in the rotation angle caused by the force applied by the user. Accordingly, the automatic control apparatus of the disclosure may provide a convenient posture adjustment function.
To make the aforementioned and other features and advantages of the disclosure more comprehensible, several embodiments accompanied with drawings are described in detail as follows.
The accompanying drawings are included to provide a further understanding of the disclosure, and are incorporated in and constitute a part of this specification. The drawings illustrate exemplary embodiments of the disclosure and, together with the description, serve to explain the principles of the disclosure.
In order to make the disclosure more comprehensible, several embodiments are described below as examples of the disclosure. However, it should be noted that the disclosure is not limited to the exemplified embodiments. Moreover, some embodiments may be combined where appropriate. Besides, elements/components/steps with the same reference numerals are used to represent identical or similar parts in the figures and embodiments where appropriate.
In this embodiment, the motor device 120 may be, for example, a single-axis smart servo motor, but the disclosure is not limited thereto. In this embodiment, the motor device 120 receives commands of the controller 110 to execute corresponding operations. The commands of the controller 110 include, for example, a fix command, a relax command, a read rotation angle command and a set target angle command. In this embodiment, the fix command means that the output shaft 121 of the motor device 120 is maintained at a target angle. The relax command means that the output shaft 121 of the motor device 120 is freely rotatable. The read rotation angle command means that the controller 110 reads and records the current angle of the output shaft 121. The set target angle command means that the controller 110 drives the output shaft 121 to rotate to the target angle using proportional-integral-derivative (PID) control theory and fixes the output shaft at the target angle.
In this embodiment, the controller 110 is, for example, a central processing unit (CPU), a system-on-chip (SoC) or other programmable microprocessors for general or special use, a digital signal processor (DSP), a programmable controller, an application specific integrated circuit (ASIC), a programmable logic device (PLD), other similar processing devices, or a combination of the foregoing devices.
For example, in this embodiment, the controller 110 is adapted to drive the motor device 120 so that the motor device 120 is operated in a non-fixed mode or a fixed mode. In this embodiment, the motor 127 is controlled by a driving signal provided by the controller 110 to drive the gear module 129, thereby rotating the output shaft 121 by the gear module 129. In other words, when the motor 127 is in operation, the motor 127 drives the gear module 129 and the output shaft 121 to rotate, so that a controlled member connected to the output shaft 121 may move along a specific axis as the output shaft 121 rotates. Besides, in one embodiment, the output shaft encoder 123 is coupled to the output shaft 121. The output shaft encoder 123 is adapted to provide the rotation angle of the output shaft 121 to the controller 110, so that the controller 110 records the current rotation angle of the output shaft 121 or performs certain determination operations according to the current rotation angle. However, internal components of the motor in this embodiment may each be sufficiently understood from the teaching, suggestion and illustration of the common knowledge of this field. Thus, details thereof are not repeated hereinafter.
However, the following should be noted here: in one embodiment, the automatic control apparatus 100 is, for example, a robot having a plurality of rotatable joint mechanisms, and each of the rotatable joint mechanisms is composed of one or more motor devices 120. Consequently, when the automatic control apparatus 100 includes a plurality of motor devices 120, the controller 110 may be coupled to the motor devices 120 by a serial port, and the controller 110 may drive the motor devices 120 sequentially or simultaneously so that each of the motor devices 120 may independently implement (either sequentially or simultaneously) the automatic control method recited in each of the embodiments of the disclosure.
In this embodiment, the output shaft 221 is combined with the controlled member 222 so that the controlled member 222 is moved in conjunction with the rotation of the output shaft 221. In this embodiment, a rotation range θ of the output shaft 221 of the motor device 220 is in a range of 0 degrees to 300 degrees, but the disclosure is not limited thereto. In other words, the rotation range θ of the output shaft 221 may be as shown in
Besides, in this embodiment, the controlled member 222 may be combined with other mechanical members on the side opposite to the direction Y. In other words, the controlled member 222 is moved in conjunction with the rotation of the output shaft 221, and is combined with other mechanical members to constitute an automatic control apparatus such as a robotic arm or a robot. Besides, in this embodiment, when the motor device 220 is operated in a non-fixed mode, the output shaft 221 is in a freely rotatable state. When the motor device 220 is operated in a fixed mode, the output shaft 221 is in a non-freely rotatable state. It should be noted that the freely rotatable state means that the output shaft 221 may be freely rotated within the rotation range θ as influenced by an external force. The non-freely rotatable state means that whether or not the output shaft 221 is fixed at the after-rotation position may be determined by whether or not the change in the rotation angle caused by a torque applied to the output shaft 221 exceeds a threshold angle.
However, in one embodiment, the automatic control apparatus 300 may be a robotic arm or a robot, for example, so that the automatic control apparatus 300 may also be constituted by a plurality of motor devices 320 that are each operated independently. And these motor devices 320, which are each operated independently or are integrated by the controller 110 to be operated sequentially, may each implement the automatic control method recited in each of the embodiments of the disclosure.
Specifically, in step S410, the automatic control apparatus 300 determines whether a difference between the current angle and the target angle of the output shaft exceeds the threshold angle. If yes, the automatic control apparatus 300 then performs step S420. If no, the automatic control apparatus 300 then terminates the determination. In step S420, the automatic control apparatus 300 resets the target angle by using the current angle. Besides, in the automatic control method of this embodiment, step S410 and step S420 may be performed repeatedly at intervals of a time length T. In one embodiment, the time length T is, for example, 1 second, 500 milliseconds, 1000 milliseconds, etc. The time length T may be determined according to different equipment requirements or sensitivity design, which is not limited by the disclosure.
In other words, the automatic control apparatus 300 determines whether or not the rotation angle of the output shaft is changed. As shown in
However, it should be noted here that the size of the above-mentioned threshold angle is designed corresponding to the gravity affecting the mechanical member 323, so that the mechanical member 323, while not being subjected to the force applied by the user, may be maintained at the position of the current target angle θ1. In other words, the rotation angle caused by the gravity affecting the mechanical member 323 does not exceed the above-mentioned threshold angle. Consequently, when the motor device 320 is operated in the fixed mode, even if the user does not apply a force to the mechanical member 323, the mechanical member 323 and the output shaft may be maintained at the position of the preset target angle θ1. Besides, the above-mentioned threshold angle is, for example, an amount of angular change when the output shaft is rotated by 4 steps. In other words, taking a motor device with a resolution of 1024 steps and a rotation range of 300 degrees as an example, the amount of angular change when the output shaft is rotated by 4 steps is approximately equal to 1.17 degrees ((300/1024)×4≈1.17), but the disclosure is not limited thereto.
Besides, other features and embodiments of the automatic control apparatus and the motor device in this embodiment may be sufficiently understood from the teaching, suggestion, and illustration of the embodiments in
In summary, the automatic control apparatus and the automatic control method of the disclosure provide an operation method that may effectively fine-tune the rotation angle of the output shaft of the motor device. When the motor device is operated in the fixed mode, the output shaft of the motor device is maintained at the position of the target angle. In the case where the motor device is operated in the fixed mode, if the user applies a force to the output shaft of the motor device, the output shaft of the motor device is then rotated by the external force applied by the user, and when the rotation angle exceeds the preset threshold angle, the output shaft of the motor device in this disclosure may be maintained at the position of the adjusted rotation angle. Accordingly, the automatic control apparatus of the disclosure may provide a convenient posture adjustment function.
Although the embodiments are already disclosed as above, these embodiments should not be construed as limitations on the scope of the disclosure. It will be apparent to those skilled in the art that various modifications and variations can be made to the disclosed embodiments without departing from the scope or spirit of the disclosure. In view of the foregoing, it is intended that the disclosure covers modifications and variations provided that they fall within the scope of the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
201810058441.5 | Jan 2018 | CN | national |