Motor control method and device, electronic equipment and storage medium
By controlling the straight-axis current and the intersection-axis current in the air-conditioning fan twice, the problem that the rotor may be at the start dead point and the motor fails to start, achieving the successful start and stable operation of the motor.
Patent Information
- Application Number
- CN202311511760.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-09
- Publication Date
- 2025-05-13
AI Technical Summary
During the start of the air conditioner fan, due to the lack of rotor position detection, the rotor may be at the starting dead point, resulting in the motor starting failure.
By controlling the motor's direct axis current and the intersection current, the rotor is positioned twice to ensure the rotor is accurately positioned, thereby avoiding the starting dead point.
It effectively avoids the problem of motor start-up failure and ensures the successful start-up and stable operation of the motor.
Smart Images

Figure CN119995443A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of motor control, and in particular to a motor control method, device, electronic device and storage medium. Background Art
[0002] With the rapid development of society, air conditioners have been widely used in people's daily lives. For air conditioners that use a sensorless control method to control the start of the fan, since the air conditioner motor is not equipped with a position sensor to detect the rotor position, in the process of starting the fan, the magnetic field generated by the stator current is first required to move the rotor to a preset position to position the rotor, and then the stator current is further used to control the rotor speed. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a control method, device, electronic device and storage medium for a motor.
[0004] According to a first aspect of an embodiment of the present disclosure, a method for controlling a motor is provided, the method comprising:
[0005] In response to receiving a start instruction for starting the motor, controlling a first current of the motor according to a preset current value so that the rotor of the motor moves to a first target position; the first current is any one of a direct axis current and a quadrature axis current of the motor;
[0006] The second current of the motor is controlled according to the preset current value so that the rotor moves from the first target position to the second target position; the second current is the current of the direct-axis current and the quadrature-axis current other than the first current.
[0007] Optionally, controlling the first current of the motor according to a preset current value includes:
[0008] controlling the first current to increase to the preset current value so that the rotor moves to the first target position;
[0009] The first current is controlled to decrease from the preset current value to a preset initial value.
[0010] Optionally, controlling the first current to decrease from the preset current value to a preset initial value includes:
[0011] When the first current maintains the preset current value for a first preset time period, the first current is controlled to decrease from the preset current value to the preset initial value.
[0012] Optionally, controlling the second current of the motor according to the preset current value includes:
[0013] When the second current decreases from the preset current value to the preset initial value, the second current of the motor is controlled according to the preset current value.
[0014] Optionally, controlling the second current of the motor according to the preset current value includes:
[0015] controlling the second current to increase to the preset current value so that the rotor moves from the first target position to the second target position;
[0016] The second current is controlled to decrease from the preset current value to a preset initial value.
[0017] Optionally, controlling the second current to decrease from the preset current value to a preset initial value includes:
[0018] When the second current maintains the preset current value for a second preset time period, the second current is controlled to decrease from the preset current value to the preset initial value.
[0019] Optionally, after controlling the second current of the motor according to the preset current value so that the rotor moves from the first target position to the second target position, the method further includes:
[0020] controlling the speed of the rotor according to an open-loop control method;
[0021] When the rotation speed of the rotor is greater than a preset rotation speed threshold, the rotation speed is closed-loop controlled.
[0022] According to a second aspect of an embodiment of the present disclosure, a control device for a motor is provided, the device comprising:
[0023] a first control module, configured to, in response to receiving a start instruction for starting the motor, control a first current of the motor according to a preset current value so that the rotor of the motor moves to a first target position; the first current is any one of a direct axis current and a quadrature axis current of the motor;
[0024] The second control module is configured to control the second current of the motor according to the preset current value so that the rotor moves from the first target position to the second target position; the second current is the current of the direct-axis current and the quadrature-axis current other than the first current.
[0025] Optionally, the first control module is configured to:
[0026] controlling the first current to increase to the preset current value so that the rotor moves to the first target position;
[0027] The first current is controlled to decrease from the preset current value to a preset initial value.
[0028] Optionally, the first control module is configured to:
[0029] When the first current maintains the preset current value for a first preset time period, the first current is controlled to decrease from the preset current value to the preset initial value.
[0030] Optionally, the second control module is configured to:
[0031] When the second current decreases from the preset current value to the preset initial value, the second current of the motor is controlled according to the preset current value.
[0032] Optionally, the second control module is further configured to:
[0033] controlling the second current to increase to the preset current value so that the rotor moves from the first target position to the second target position;
[0034] The second current is controlled to decrease from the preset current value to a preset initial value.
[0035] Optionally, the second control module is further configured to:
[0036] When the second current maintains the preset current value for a second preset time period, the second current is controlled to decrease from the preset current value to the preset initial value.
[0037] Optionally, the device further comprises:
[0038] a third control module, configured to control the second current of the motor according to the preset current value so that the rotor moves from the first target position to the second target position, and then control the speed of the rotor according to an open-loop control method;
[0039] The fourth control module is configured to perform closed-loop control on the rotational speed when the rotational speed of the rotor is greater than a preset rotational speed threshold.
[0040] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0041] a memory having a computer program stored thereon;
[0042] A processor is used to execute the computer program in the memory to implement the steps of the method described in the first aspect of the embodiment of the present disclosure.
[0043] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the method described in the first aspect of the embodiment of the present disclosure are implemented.
[0044] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0045] The present disclosure controls the first current of the motor according to a preset current value when receiving a start command for starting a motor, so that the rotor of the motor moves to a first target position, wherein the first current is any one of the direct-axis current and the quadrature-axis current of the motor. Then, the second current of the motor is controlled according to the preset current value, so that the rotor moves from the first target position to the second target position, wherein the second current is the current other than the first current among the direct-axis current and the quadrature-axis current. The present disclosure positions the rotor by sequentially controlling the quadrature-axis current and the direct-axis current, thereby avoiding the problem of the rotor being at a starting dead point during the motor starting process, which causes the motor to fail to start.
[0046] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0048] Figure 1 is a schematic diagram showing a starting process of a motor according to an exemplary embodiment.
[0049] Figure 2 The figure is a flow chart of a method for controlling a motor according to an exemplary embodiment.
[0050] Figure 3 is a flow chart of another method for controlling a motor according to an exemplary embodiment.
[0051] Figure 4 is a schematic diagram showing a current control according to an exemplary embodiment.
[0052] Figure 5 is a flow chart of another method for controlling a motor according to an exemplary embodiment.
[0053] Figure 6 is a schematic diagram showing a starting process of another motor according to an exemplary embodiment.
[0054] Figure 7 is a block diagram of a control device for a motor according to an exemplary embodiment.
[0055] Figure 8 is a block diagram of another motor control device according to an exemplary embodiment.
[0056] Fig. 9 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0057] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0058] Before introducing a motor control method, device, electronic device, and storage medium shown in an embodiment of the present disclosure, the application scenario of the embodiment of the present disclosure is first introduced.
[0059] In the related art, the start-up process of the air conditioner fan is as follows: Figure 1 After the remote control is turned on, the fan receives the start command, that is, Figure 1 At time 0 in the figure, during the time period 0-t1, the direct axis (i.e., d axis) current of the fan motor increases slowly, and under the action of the direct axis magnetic field generated by the direct axis current, the rotor is pulled to the preset position to complete the positioning of the rotor. During the time period t1-t2, the rotor position angle is gradually increased through open-loop control to make the fan reach a fixed speed; during the time period t2-t3, the rotor is controlled to run stably at a fixed speed, and then at time t3, the open-loop control is switched to the closed-loop control, and the rotor is controlled to run to the target speed through the closed-loop control.
[0060] Each time the motor is started, it needs to go through the process of positioning-open-loop-closed-loop, and the startup time is too long. In addition, the positioning stage only slowly increases the direct-axis current to position the rotor. If the starting dead point is encountered, that is, the rotor magnetic field and the positioning magnetic field (that is, the magnetic field generated by the direct-axis current) are 180°, the rotor cannot be controlled to move to the preset position, resulting in motor startup failure.
[0061] The motors in the embodiments of the present disclosure include but are not limited to motors in various mechanical equipment in industrial production, motors in various vehicles in the field of transportation, motors in household appliances (such as motors in air-conditioning outdoor fans), etc.
[0062] Figure 2 is a flow chart of a method for controlling a motor according to an exemplary embodiment. Figure 2 As shown, the method may include the following steps.
[0063] In step S101, in response to receiving a start instruction for starting a motor, a first current of the motor is controlled according to a preset current value so that the rotor of the motor moves to a first target position. The first current is any one of a direct axis current and a quadrature axis current of the motor.
[0064] In step S102, a second current of the motor is controlled according to a preset current value so that the rotor moves from the first target position to the second target position. The second current is a current other than the first current among the direct axis current and the quadrature axis current.
[0065] For example, a start command may be sent to the motor to start the motor. After receiving the start command, the motor may first move the rotor to a preset position by controlling the stator current, thereby accurately positioning the rotor, and then increase the rotor speed to start the motor. The preset position may be the position of the rotor when the dc-axis magnetic field generated by the dc-axis current is in the same direction as the rotor magnetic field, or the preset position may be the position of the rotor when the quadrature-axis magnetic field generated by the quadrature-axis current is in the same direction as the rotor magnetic field, and the present disclosure does not specifically limit this.
[0066] For example, the embodiments of the present disclosure do not specifically limit the first current and the second current. The first current may be a direct-axis current and the second current may be a quadrature-axis current, or the first current may be a quadrature-axis current and the second current may be a direct-axis current. The direct-axis current and the quadrature-axis current of the motor may be controlled in sequence, and accurate positioning of the rotor may be achieved through two positioning operations. Since the directions of the direct-axis magnetic field and the quadrature-axis magnetic field are 90°, if the rotor position is at the starting dead point and the first positioning fails, then the second positioning operation may be performed accurately, so that the rotor moves to the preset position. If the first positioning operation is successful, the rotor may be controlled to move to the preset position through the second positioning operation. Accurate positioning of the rotor may be achieved regardless of the position of the rotor, thereby ensuring successful starting of the motor and avoiding the problem of motor starting failure due to the starting dead point.
[0067] In some embodiments, the first current may be a quadrature axis current, and the second current may be a direct axis current. The quadrature axis current of the motor may be controlled first according to a preset current value so that the rotor of the motor moves to a first target position, and when the rotor is at the first target position, the direction of the rotor magnetic field is the same as the direction of the quadrature axis magnetic field generated by the quadrature axis current. Then, the direct axis current of the motor may be controlled according to a preset current value so that the rotor of the motor moves from the first target position to a second target position, and the second target position is the preset position, and when the rotor is at the second target position, the direction of the rotor magnetic field is the same as the direction of the DC magnetic field generated by the direct axis current.
[0068] In other embodiments, the first current may be a direct-axis current, and the second current may be a quadrature-axis current. The direct-axis current of the motor may be controlled according to a preset current value to move the rotor of the motor to a first target position, and when the rotor is at the first target position, the direction of the rotor magnetic field is the same as the direction of the direct-axis magnetic field generated by the direct-axis current. Then, the quadrature-axis current of the motor may be controlled according to a preset current value to move the rotor of the motor from the first target position to a second target position, and the second target position is the preset position, and when the rotor is at the second target position, the direction of the rotor magnetic field is the same as the direction of the quadrature-axis magnetic field generated by the quadrature-axis current.
[0069] In summary, when receiving a start instruction for starting a motor, the present disclosure controls the first current of the motor according to a preset current value so that the rotor of the motor moves to a first target position, wherein the first current is any one of the direct-axis current and the quadrature-axis current of the motor. Then, the second current of the motor is controlled according to the preset current value so that the rotor moves from the first target position to the second target position, wherein the second current is the current other than the first current among the direct-axis current and the quadrature-axis current. The present disclosure positions the rotor by sequentially controlling the quadrature-axis current and the direct-axis current, thereby avoiding the problem of the rotor being at a starting dead point during the motor starting process, which causes the motor to fail to start.
[0070] Figure 3 is a flow chart of another motor control method according to an exemplary embodiment. Figure 3 As shown, step S101 can be implemented by the following steps.
[0071] In step S1011 , the first current is controlled to increase to a preset current value so that the rotor moves to a first target position.
[0072] In step S1012 , the first current is controlled to decrease from a preset current value to a preset initial value.
[0073] For example, when a start command for starting the motor is received, the first current can be controlled to slowly increase to a preset current value according to a first preset slope, wherein the first preset slope can be preset according to the specific motor structure. During the process of the first current slowly increasing, the first magnetic field generated by the first current will generate an interaction force with the rotor magnetic field, causing the rotor to rotate to the first target position. Among them, when the rotor reaches the first target position, the direction of the rotor magnetic field is the same as the direction of the first magnetic field. Then the first current can be controlled to slowly decrease from the preset current value to the preset initial value according to the second preset slope, wherein the second preset slope and the first preset slope can be the same or different, and the preset initial value can be, for example, zero. During the process of the first current slowly decreasing, since the direction of the first current has not changed, accordingly, the direction of the first magnetic field will not change, and the rotor will remain at the first target position.
[0074] In other embodiments, when the first current reaches a preset current value, the first current can be controlled to maintain the preset current value for a first preset time period so that the rotor is stabilized at the first target position. When the first current maintains the preset current value for a first preset time period, the first current is controlled to decrease from the preset current value to a preset initial value.
[0075] According to some embodiments of the present disclosure, one implementation of step S102 may be:
[0076] When the second current decreases from the preset current value to the preset initial value, the second current of the motor is controlled according to the preset current value.
[0077] For example, the first current may be controlled to increase to a preset current value so that the rotor moves to a first target position, and then the first current may be controlled to decrease from the preset current value to a preset initial value. After the first current is controlled to decrease from the preset current value to the preset initial value, the second current may be further controlled to increase to a preset current value so that the rotor moves from the first target position to the second target position, and then the second current may be controlled to decrease from the preset current value to the preset initial value.
[0078] In other embodiments, the second current may be controlled to maintain a second preset time at a preset current value so that the rotor is stabilized at the second target position. When the second current maintains the preset current value for a second preset time, the second current is controlled to decrease from the preset current value to a preset initial value, wherein the second preset time and the first preset time may be the same or different, and the present disclosure does not specifically limit this.
[0079] Figure 4 is a schematic diagram of a current control according to an exemplary embodiment, taking the first current as a quadrature axis current, the second current as a direct axis current, the preset current value as I0, and the preset initial value as 0 as an example, referring to Figure 4, in the time period t1-t2, the quadrature axis current is controlled to gradually increase to I0. During the process of the quadrature axis current increasing, the quadrature axis magnetic field generated by the quadrature axis current will generate an interaction force with the rotor magnetic field, causing the rotor to rotate to the first target position, at which time the direction of the rotor magnetic field is the same as the direction of the quadrature axis magnetic field. Then the quadrature axis current is controlled to remain at I0 for a period of time, so that the rotor is stabilized at the first target position, and then the first current is controlled to gradually decrease from I0 to 0. In the time period t2-t3, the direct axis current is controlled to gradually increase to I0. During the process of the direct axis current increasing, the direct axis magnetic field generated by the direct axis current will generate an interaction force with the rotor magnetic field of the rotor, causing the rotor to rotate from the first target position to the second target position, at which time the direction of the rotor magnetic field is the same as the direction of the direct axis magnetic field. Then the direct axis current is controlled to remain at I0 for a period of time, so that the rotor is stabilized at the second target position, and then the direct axis current is controlled to gradually decrease from I0 to 0. Since the directions of the direct-axis magnetic field and the quadrature-axis magnetic field are 90°, if the first quadrature-axis current positioning fails, the second direct-axis current positioning can accurately position the rotor to the second target position, ensuring that the motor starts successfully regardless of the rotor position, thus avoiding the problem of starting failure caused by the starting dead point. If the first quadrature-axis current positioning is successful, the second direct-axis current positioning will eventually control the rotor to move to the second target position.
[0080] Figure 5 is a flow chart of another motor control method according to an exemplary embodiment. Figure 5 As shown, after step S102, the method may further include:
[0081] In step S103, the rotation speed of the rotor is controlled according to an open-loop control method.
[0082] In step S104, when the rotation speed of the rotor is greater than a preset rotation speed threshold, the rotation speed is closed-loop controlled.
[0083] For example, refer to Figure 6 After the positioning is successful, that is, after the rotor moves to the second target position, the speed of the rotor can be controlled by open-loop control. Since the positioning is performed twice by the first current and the second current respectively in the positioning stage, precise positioning can be achieved. After precise positioning, the rotor magnetic field and the stator magnetic field are 90°, so that a smaller current can generate a larger torque. Therefore, when it is detected that the rotor speed is greater than the preset speed threshold, there is no need to control the rotor speed to maintain the preset speed threshold for a period of time. Instead, when the rotor speed is greater than the preset speed threshold, the speed can be immediately closed-loop controlled, thereby shortening the start-up time of the motor.
[0084] In other embodiments, if the motor fails to start N times in succession through the starting method of step S101 to step S104, then in the subsequent starting process, the following starting method can be used: first execute step S101 to step S102 to complete the accurate positioning of the rotor, then control the speed of the rotor through an open-loop control method, and control the speed of the rotor to maintain a third preset time at a preset speed threshold, and then perform closed-loop control on the speed. In order to ensure the safety of the equipment, if the motor fails to start M (M>N) times in succession, the motor will not be started again to avoid permanent damage to the motor caused by repeated starting.
[0085] In summary, when receiving a start instruction for starting a motor, the present disclosure controls the first current of the motor according to a preset current value so that the rotor of the motor moves to a first target position, wherein the first current is any one of the direct-axis current and the quadrature-axis current of the motor. Then, the second current of the motor is controlled according to the preset current value so that the rotor moves from the first target position to the second target position, wherein the second current is the current other than the first current among the direct-axis current and the quadrature-axis current. The present disclosure positions the rotor by sequentially controlling the quadrature-axis current and the direct-axis current, thereby avoiding the problem of the rotor being at a starting dead point during the motor starting process, which causes the motor to fail to start.
[0086] Figure 7 is a block diagram of a control device for a motor according to an exemplary embodiment. Figure 7 As shown, the device 200 may include:
[0087] The first control module 201 is configured to control a first current of the motor according to a preset current value in response to receiving a start instruction for starting the motor, so that the rotor of the motor moves to a first target position. The first current is any one of a direct axis current and a quadrature axis current of the motor.
[0088] The second control module 202 is configured to control a second current of the motor according to a preset current value so as to move the rotor from the first target position to the second target position. The second current is a current other than the first current among the direct axis current and the quadrature axis current.
[0089] In some embodiments, the first control module 201 is configured to:
[0090] The first current is controlled to increase to a preset current value so that the rotor moves to a first target position.
[0091] The first current is controlled to decrease from a preset current value to a preset initial value.
[0092] In some other embodiments, the first control module 201 is configured to:
[0093] When the time for which the first current maintains the preset current value reaches a first preset time length, the first current is controlled to decrease from the preset current value to a preset initial value.
[0094] In some other embodiments, the second control module 202 is configured to:
[0095] When the second current decreases from the preset current value to the preset initial value, the second current of the motor is controlled according to the preset current value.
[0096] In some other embodiments, the second control module 202 is further configured to:
[0097] The second current is controlled to increase to a preset current value so that the rotor moves from the first target position to the second target position.
[0098] The second current is controlled to decrease from a preset current value to a preset initial value.
[0099] In some other embodiments, the second control module 202 is further configured to:
[0100] When the second current maintains the preset current value for a second preset time period, the second current is controlled to decrease from the preset current value to a preset initial value.
[0101] Figure 8 is a block diagram of another motor control device according to an exemplary embodiment. Figure 8 As shown, the device 200 may also include:
[0102] The third control module 203 is configured to control the second current of the motor according to the preset current value so that the rotor moves from the first target position to the second target position, and then control the speed of the rotor according to the open-loop control method.
[0103] The fourth control module 204 is configured to perform closed-loop control on the rotational speed when the rotational speed of the rotor is greater than a preset rotational speed threshold.
[0104] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0105] In summary, when receiving a start instruction for starting a motor, the present disclosure controls the first current of the motor according to a preset current value so that the rotor of the motor moves to a first target position, wherein the first current is any one of the direct-axis current and the quadrature-axis current of the motor. Then, the second current of the motor is controlled according to the preset current value so that the rotor moves from the first target position to the second target position, wherein the second current is the current other than the first current among the direct-axis current and the quadrature-axis current. The present disclosure positions the rotor by sequentially controlling the quadrature-axis current and the direct-axis current, thereby avoiding the problem of the rotor being at a starting dead point during the motor starting process, which causes the motor to fail to start.
[0106] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, and when the program instructions are executed by a processor, the steps of the motor control method provided by the present disclosure are implemented.
[0107] Fig. 9 3 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0108] Reference Fig. 9 , the electronic device 300 may include one or more of the following components: a processing component 302 , a memory 304 , a power component 306 , a multimedia component 308 , an audio component 310 , an input / output interface 312 , a sensor component 314 , and a communication component 316 .
[0109] The processing component 302 generally controls the overall operation of the electronic device 300, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to complete all or part of the steps of the control method of the motor described above. In addition, the processing component 302 may include one or more modules to facilitate the interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate the interaction between the multimedia component 308 and the processing component 302.
[0110] The memory 304 is configured to store various types of data to support operations on the electronic device 300. Examples of such data include instructions for any application or method operating on the electronic device 300, contact data, phone book data, messages, pictures, videos, etc. The memory 304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0111] The power supply component 306 provides power to the various components of the electronic device 300. The power supply component 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 300.
[0112] The multimedia component 308 includes a screen that provides an output interface between the electronic device 300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front camera and / or a rear camera. When the electronic device 300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0113] The audio component 310 is configured to output and / or input audio signals. For example, the audio component 310 includes a microphone (MIC), and when the electronic device 300 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 304 or sent via the communication component 316. In some embodiments, the audio component 310 also includes a speaker for outputting audio signals.
[0114] The input / output interface 312 provides an interface between the processing component 302 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0115] The sensor assembly 314 includes one or more sensors for providing various aspects of status assessment for the electronic device 300. For example, the sensor assembly 314 can detect the open / closed state of the electronic device 300, the relative positioning of components, such as the display and keypad of the electronic device 300, and the sensor assembly 314 can also detect the position change of the electronic device 300 or a component of the electronic device 300, the presence or absence of user contact with the electronic device 300, the orientation or acceleration / deceleration of the electronic device 300, and the temperature change of the electronic device 300. The sensor assembly 314 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 314 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0116] The communication component 316 is configured to facilitate wired or wireless communication between the electronic device 300 and other devices. The electronic device 300 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0117] In an exemplary embodiment, the electronic device 300 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned motor control method.
[0118] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 304 including instructions, and the instructions can be executed by a processor 320 of an electronic device 300 to complete the control method of the motor. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0119] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program executable by a programmable device. The computer program has a code portion for executing the above-mentioned motor control method when executed by the programmable device.
[0120] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0121] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for controlling a motor, characterized in that: include: In response to receiving a start instruction for starting the motor, controlling a first current of the motor according to a preset current value so that a rotor of the motor moves to a first target position; The first current is any one of a direct-axis current and a quadrature-axis current of the motor; controlling a second current of the motor according to the preset current value so that the rotor moves from the first target position to a second target position; The second current is a current other than the first current among the direct-axis current and the quadrature-axis current.
2. The method according to claim 1, characterized in that The controlling the first current of the motor according to the preset current value comprises: controlling the first current to increase to the preset current value so that the rotor moves to the first target position; The first current is controlled to decrease from the preset current value to a preset initial value.
3. The method according to claim 2, characterized in that The controlling the first current to decrease from the preset current value to a preset initial value comprises: When the first current maintains the preset current value for a first preset time period, the first current is controlled to decrease from the preset current value to the preset initial value.
4. The method according to claim 3, characterized in that The controlling the second current of the motor according to the preset current value comprises: When the second current decreases from the preset current value to the preset initial value, the second current of the motor is controlled according to the preset current value.
5. The method according to claim 1, characterized in that The controlling the second current of the motor according to the preset current value comprises: controlling the second current to increase to the preset current value so that the rotor moves from the first target position to the second target position; The second current is controlled to decrease from the preset current value to a preset initial value.
6. The method according to claim 5, characterized in that The controlling the second current to decrease from the preset current value to a preset initial value comprises: When the second current maintains the preset current value for a second preset time period, the second current is controlled to decrease from the preset current value to the preset initial value.
7. The method according to any one of claims 1 to 6, characterized in that: After controlling the second current of the motor according to the preset current value so that the rotor moves from the first target position to the second target position, the method further includes: controlling the speed of the rotor according to an open-loop control method; When the rotation speed of the rotor is greater than a preset rotation speed threshold, the rotation speed is closed-loop controlled.
8. A control device for a motor, characterized in that: The device comprises: a first control module, configured to, in response to receiving a start instruction for starting the motor, control a first current of the motor according to a preset current value so that the rotor of the motor moves to a first target position; the first current is any one of a direct axis current and a quadrature axis current of the motor; The second control module is configured to control the second current of the motor according to the preset current value so that the rotor moves from the first target position to the second target position; the second current is the current of the direct-axis current and the quadrature-axis current other than the first current.
9. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.