A method, device and circuit for controlling the operation of an electric motor

By collecting and logically processing motor signals, control signals are generated to control the rotation state and direction of the motor, solving the problem of motor stalling caused by foreign objects blocking the rotatable screen of a laptop, and improving the stability and anti-interference ability of the motor.

CN122137311APending Publication Date: 2026-06-02LCFC HEFEI ELECTRONICS TECH

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
LCFC HEFEI ELECTRONICS TECH
Filing Date
2026-01-22
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

In existing technologies, when a foreign object gets stuck in the rotating screen of a laptop, it can easily cause the motor to stall, leading to overheating and damage. Traditional electromagnetic relay solutions are bulky and have limited response speed, making it impossible to cut off the current in time, which poses a safety risk.

Method used

By acquiring the electrical signals of the motor, state control signals and direction control signals are generated, and logical operations are performed to generate control signals for controlling the rotation state and direction of the motor. The rotation state and direction of the motor are then controlled by a field-effect transistor.

Benefits of technology

It effectively prevents motor damage due to overheating caused by blockage, improves the motor's anti-interference ability and stability, and ensures the normal operation of the motor under different conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122137311A_ABST
    Figure CN122137311A_ABST
Patent Text Reader

Abstract

This disclosure provides a method, device, and circuit for controlling motor operation. The method includes: acquiring a signal flowing through the motor; generating a state control signal for controlling the motor's rotation state based on the acquired signal; receiving a direction control signal for controlling the motor's rotation direction; performing a first logical operation on the direction control signal and the state control signal to generate a first control signal; performing a second logical operation on the direction control signal and the state control signal to generate a second control signal; and controlling the motor's rotation state and direction based on the first and second control signals. Applying this method, the motor can be determined to be in normal operation or a blocked state based on the acquired signal flowing through it. State control signals are generated according to different states. Based on the state control signal and the direction control signal, damage to the motor and drive circuit due to overheating caused by blockage is effectively prevented, improving the motor's anti-interference capability and stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of circuit control, and in particular to a control method, control device and control circuit for circuit operation. Background Technology

[0002] Laptops with rotatable screens use motors to drive the screen rotation. However, during use, the screen may stop rotating due to abnormalities such as foreign objects getting stuck, causing the motor to stall. At this time, the back electromotive force of the motor disappears, and the motor current will increase instantly, causing the motor to overheat and be damaged. Traditional solutions to prevent motor stalling mostly rely on electromagnetic relays, which are triggered to cut off the power supply after detecting the current surge. However, electromagnetic relays are bulky and expensive, making them unsuitable for laptops. Furthermore, electromagnetic relays have limited response speed and may not be able to cut off the current in time, posing a risk. Summary of the Invention

[0003] This disclosure provides a method, device, circuit, electronic equipment, and storage medium for controlling the operation of an electric motor, in order to at least solve the above-mentioned technical problems existing in the prior art.

[0004] According to a first aspect of this disclosure, a method for controlling the operation of a motor is provided. The method includes: acquiring a signal flowing through the motor; generating a state control signal for controlling the rotation state of the motor based on the acquired signal; receiving a direction control signal for controlling the rotation direction of the motor; performing a first logical operation on the direction control signal and the state control signal to generate a first control signal; performing a second logical operation on the direction control signal and the state control signal to generate a second control signal; and controlling the rotation state and rotation direction of the motor based on the first control signal and the second control signal.

[0005] In one embodiment, generating a state control signal for controlling the rotation state of the motor based on the acquired signal includes: comparing the acquired signal with a signal threshold to obtain a comparison result; and generating a state control signal in response to the comparison result indicating that the acquired signal meets the signal threshold.

[0006] In one possible implementation, the step of performing a first logical operation on the direction control signal and the state control signal to generate a first control signal includes: in response to the direction control signal being a low-level signal and the state control signal being a low-level signal, performing an XOR operation on the direction control signal and the state control signal to generate a first control signal, wherein the first control signal is a low-level signal; and in response to the direction control signal being a low-level signal and the state control signal being a high-level signal, performing an XOR operation on the direction control signal and the state control signal to generate a first control signal, wherein the first control signal is a high-level signal.

[0007] In one embodiment, the step of performing a second logical operation on the direction control signal and the state control signal to generate a second control signal includes: in response to the direction control signal being a high-level signal and the state control signal being a low-level signal, performing an XOR operation on the direction control signal and the state control signal to generate a second control signal, wherein the second control signal is a high-level signal; and in response to the direction control signal being a low-level signal and the state control signal being a low-level signal, performing an XOR operation on the direction control signal and the state control signal to generate a first control signal, wherein the second control signal is a low-level signal.

[0008] In one possible implementation, determining the rotation state and direction of the motor based on the first control signal and the second control signal includes: determining the motor's rotation state as normal and the rotation direction as clockwise in response to the first control signal being a low-level signal and the second control signal being a high-level signal; determining the motor's rotation state as abnormal and the rotation direction as clockwise in response to the first control signal being a high-level signal and the second control signal being a high-level signal; determining the motor's rotation state as normal and the rotation direction as counterclockwise in response to the first control signal being a high-level signal and the second control signal being a low-level signal; and determining the motor's rotation state as abnormal and the rotation direction as counterclockwise in response to the first control signal being a low-level signal and the second control signal being a low-level signal.

[0009] In one embodiment, the method further includes: obtaining the current rotation angle of the rotatable screen, the rotatable screen rotating based on the rotation of the motor; and determining the target rotation angle of the rotatable screen based on the current rotation angle, the rotation state of the motor, and the rotation direction.

[0010] According to a second aspect of this disclosure, a control device for operating a motor is provided. The device includes: a data acquisition module for acquiring data acquisition signals flowing through the motor; a first generation module for generating a state control signal for controlling the rotation state of the motor based on the acquired signals; a receiving module for receiving a direction control signal for controlling the rotation direction of the motor; a second generation module for performing a first logical operation on the direction control signal and the state control signal to generate a first control signal; and performing a second logical operation on the direction control signal and the state control signal to generate a second control signal; and a first determination module for controlling the rotation state and rotation direction of the motor based on the first control signal and the second control signal.

[0011] In one embodiment, the first generation module includes: a comparison submodule, configured to compare the acquired signal with a signal threshold to obtain a comparison result; and a generation submodule, configured to generate a state control signal in response to the comparison result indicating that the acquired signal meets the signal threshold.

[0012] In one possible implementation, the second generation module is specifically configured to: in response to the direction control signal being a low-level signal and the state control signal being a low-level signal, perform an XOR operation on the direction control signal and the state control signal to generate a first control signal, wherein the first control signal is a low-level signal; and in response to the direction control signal being a low-level signal and the state control signal being a high-level signal, perform an XOR operation on the direction control signal and the state control signal to generate a first control signal, wherein the first control signal is a high-level signal.

[0013] In one possible implementation, the second generation module is specifically configured to: in response to the direction control signal being a high-level signal and the state control signal being a low-level signal, perform an XOR operation on the direction control signal and the state control signal to generate a second control signal, wherein the second control signal is a high-level signal; and in response to the direction control signal being a low-level signal and the state control signal being a low-level signal, perform an XOR operation on the direction control signal and the state control signal to generate a first control signal, wherein the second control signal is a low-level signal.

[0014] In one possible implementation, the first determining module is specifically configured to: determine that the rotation state of the motor is normal and the rotation direction is clockwise in response to the first control signal being low and the second control signal being high; determine that the rotation state of the motor is abnormal and the rotation direction is clockwise in response to the first control signal being high and the second control signal being high; determine that the rotation state of the motor is normal and the rotation direction is counterclockwise in response to the first control signal being high and the second control signal being low; and determine that the rotation state of the motor is abnormal and the rotation direction is counterclockwise in response to the first control signal being low and the second control signal being low.

[0015] In one embodiment, the device further includes: an acquisition module for acquiring the current rotation angle of the rotatable screen, the rotatable screen rotating based on the rotation of the motor; and a second determination module for determining a target rotation angle of the rotatable screen based on the current rotation angle, the rotation state of the motor, and the rotation direction.

[0016] According to a third aspect of this disclosure, a control circuit for operating a motor is provided, comprising: a current detection resistor for acquiring an electrical signal flowing through the motor; a control circuit for generating a state control signal for controlling the rotation state of the motor based on the electrical signal; an embedded controller for generating a direction control signal for controlling the rotation direction of the motor; a first XOR gate for performing an XOR operation on the state control signal and the direction control signal to generate a first control signal; a second XOR gate for performing an XOR operation on the state control signal and the direction control signal to generate a second control signal; and a control circuit for controlling the rotation state and rotation direction of the motor based on the first control signal and the second control signal.

[0017] According to a fourth aspect of this disclosure, an electronic device is provided, comprising: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the methods described in this disclosure.

[0018] According to a fifth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions for causing the computer to perform the methods described in this disclosure.

[0019] This disclosure discloses a method, device, circuit, electronic equipment, and storage medium for controlling motor operation. It generates a state control signal to control the motor's rotation state by collecting control signals flowing through the motor, and receives control signals to control the motor's rotation direction. Logical operations are performed on the direction control signal and the state control signal to generate a first control signal. Second logical operations are performed on the direction control signal and the state control signal to generate a second control signal. Finally, the rotation state and direction of the motor are controlled based on the first and second control signals. Applying this method, the motor's state or direction can be determined from the collected signals flowing through it. State control signals are generated based on these different states. Based on the state control signal and the direction control signal, damage to the motor and drive circuit due to overheating caused by blockage is effectively prevented, improving the motor's anti-interference capability and stability.

[0020] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0021] The above and other objects, features, and advantages of this disclosure will become readily apparent from the following detailed description of exemplary embodiments, taken in conjunction with the accompanying drawings. Several embodiments of this disclosure are illustrated in the drawings by way of example and not limitation, in which: In the accompanying drawings, the same or corresponding reference numerals indicate the same or corresponding parts.

[0022] Figure 1 A schematic diagram of the circuit structure of a motor operation control circuit according to an embodiment of the present disclosure is shown; Figure 2 A schematic diagram illustrating the implementation flow of a motor operation control method according to an embodiment of the present disclosure is shown; Figure 3 A schematic diagram of the constituent modules of a motor operation control device according to an embodiment of the present disclosure is shown; Figure 4 A schematic diagram of the composition structure of an electronic device according to an embodiment of the present disclosure is shown. Detailed Implementation

[0023] To make the objectives, features, and advantages of this disclosure more apparent and understandable, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without creative effort are within the scope of protection of this disclosure.

[0024] Figure 1 A schematic diagram of the circuit structure of a motor operation control circuit according to an embodiment of the present disclosure is shown.

[0025] like Figure 1 As shown, the motor operation control circuit includes a current detection resistor for acquiring electrical signals flowing through the motor; a first control circuit for generating a state control signal for controlling the motor's rotation state based on the electrical signals; an embedded controller for generating a direction control signal for controlling the motor's rotation direction; a first XOR gate for performing XOR processing on the state control signal and the direction control signal to generate a first control signal; a second XOR gate for performing XOR processing on the state control signal and the direction control signal to generate a second control signal; and a second control circuit for controlling the motor's rotation state and rotation direction based on the first control signal and the second control signal.

[0026] Specifically, the current sensing resistor R2 is used to collect the electrical signal flowing through the motor; the first control circuit includes a first transistor Q3, a second transistor Q6, a first optocoupler U2, a second optocoupler U4, and a resistor network composed of resistors R1, R3, and R4. The base of the first transistor Q3 is connected to the resistor network, and its collector is connected to the input terminal of the first optocoupler U2. The base of the second transistor Q6 is connected to the resistor network, and its collector is connected to the input terminal of the second optocoupler U3. The emitters of the first transistor Q3 and the second transistor Q6 are connected to the current sensing resistor R2.

[0027] The embedded controller includes a first output terminal IO1 and a second output terminal IO2. The first control circuit also includes two output terminals, namely a third output terminal and a fourth output terminal. The first XOR gate includes a first input terminal INA and a second input terminal INB, and the second XOR gate includes a third input terminal INA and a fourth input terminal INB. The first output terminal IO1 of the embedded controller is connected to the first input terminal INA of the first XOR gate, the second output terminal IO2 is connected to the fourth input terminal INB of the second XOR gate, the third output terminal of the first control circuit is connected to the second input terminal INB of the first XOR gate, and the fourth output terminal is connected to the third input terminal INA of the second XOR gate.

[0028] The embedded controller generates a direction control signal, which is input to the first input terminal INA of the first XOR gate and the fourth input terminal INB of the second XOR gate. The first control circuit generates a state control signal based on the electrical signal, which is input to the second input terminal INB of the first XOR gate and the third input terminal INA of the second XOR gate. The first XOR gate performs XOR processing on the received direction control signal and state control signal and outputs a first control signal. The second XOR gate performs XOR processing on the received direction control signal and state control signal and outputs a second control signal.

[0029] The second control circuit is an H-bridge circuit, which includes a first field-effect transistor Q1, a second field-effect transistor Q2, a third field-effect transistor Q4, and a fourth field-effect transistor Q5. The first field-effect transistor Q1 and the third field-effect transistor Q4 are connected to the output of the first XOR gate to receive the first control signal output by the first XOR gate. The second field-effect transistor Q2 and the fourth field-effect transistor Q5 are connected to the output of the second XOR gate to receive the second control signal output by the second XOR gate. The rotation state and rotation direction of the motor are controlled based on the first control signal and the second control signal.

[0030] In one scenario, the embedded controller's first output terminal IO1 outputs a low-level signal to the first input terminal INA of the first XOR gate, and its second output terminal IO2 outputs a high-level signal to the fourth input terminal INB of the second XOR gate. Furthermore, the motor is not stalled, the current sensing resistor R2 detects that the current flowing through the motor is less than the current threshold, and both the first diode Q3 and the second diode Q6 are not conducting. The third output terminal of the first control circuit outputs a low-level signal to the second input terminal INB of the first XOR gate, and the fourth output terminal outputs a low-level signal to the third input terminal INA of the second XOR gate. The first XOR gate then outputs a low-level signal to its first input terminal IO1. The low-level signal of NA and the low-level signal of the second input terminal INB are XORed to output a first control signal, which is a low-level signal. The first control signal controls the first field-effect transistor Q1 to turn on and the third field-effect transistor Q4 to turn off. The second XOR gate XORs the low-level signal of its third input terminal INA and the high-level signal of its fourth input terminal INB to output a second control signal, which is a high-level signal. The second control signal controls the second field-effect transistor Q2 to turn off and the fourth field-effect transistor Q5 to turn on. The motor is in normal rotation state and the rotation direction is clockwise.

[0031] In one scenario, the embedded controller's first output terminal IO1 outputs a low-level signal to the first input terminal INA of the first XOR gate, and its second output terminal IO2 outputs a high-level signal to the fourth input terminal INB of the second XOR gate. When the motor stalls, the current sensing resistor R2 detects that the current flowing through the motor is greater than the current threshold, and the second diode Q6 conducts. The third output terminal of the first control circuit outputs a high-level signal to the second input terminal INB of the first XOR gate, and the fourth output terminal outputs a low-level signal to the third input terminal INA of the second XOR gate. The first XOR gate then outputs a low-level signal to its first input terminal INA. The level signal and the high-level signal of the second input terminal INB are XORed to output the first control signal, which is a high-level signal. The first control signal controls the first field-effect transistor Q1 to be cut off and the third field-effect transistor Q4 to be turned on. The second XOR gate XORs the low-level signal of its third input terminal INA and the high-level signal of its fourth input terminal INB to output the second control signal, which is a high-level signal. The second control signal controls the second field-effect transistor Q2 to be cut off and the fourth field-effect transistor Q5 to be turned on. The motor's rotation state is abnormal and the rotation direction is clockwise.

[0032] In one scenario, the embedded controller's first output terminal IO1 outputs a low-level signal to the first input terminal INA of the first XOR gate, and its second output terminal IO2 outputs a low-level signal to the fourth input terminal INB of the second XOR gate. Furthermore, the motor is not stalled, the current sensing resistor R2 detects that the current flowing through the motor is less than the current threshold, and both the first diode Q3 and the second diode Q6 are not conducting. The third output terminal of the first control circuit outputs a high-level signal to the second input terminal INB of the first XOR gate, and its fourth output terminal outputs a low-level signal to the third input terminal INA of the second XOR gate. The first XOR gate is aligned with its first input terminal... The low-level signal of INA and the high-level signal of the second input terminal INB are XORed to output a first control signal, which is a high-level signal. The first control signal controls the first field-effect transistor Q1 to be cut off and the third field-effect transistor Q4 to be turned on. The second XOR gate XORs the low-level signal of its third input terminal INA and the low-level signal of its fourth input terminal INB to output a second control signal, which is a low-level signal. The second control signal controls the second field-effect transistor Q2 to be turned on and the fourth field-effect transistor Q5 to be cut off. The motor is in normal rotation state and the rotation direction is counterclockwise.

[0033] In one scenario, the embedded controller's first output terminal IO1 outputs a low-level signal to the first input terminal INA of the first XOR gate, and its second output terminal IO2 outputs a low-level signal to the fourth input terminal INB of the second XOR gate. When the motor stalls, the current sensing resistor R2 detects that the current flowing through the motor is greater than the current threshold, and the first diode Q3 conducts. The third output terminal of the first control circuit outputs a low-level signal to the second input terminal INB of the first XOR gate, and the fourth output terminal outputs a low-level signal to the third input terminal INA of the second XOR gate. The first XOR gate then outputs a low-level signal to its first input terminal INA. The first control gate performs an XOR operation on the low-level signals at its third input terminal INA and the fourth input terminal INB, outputting a low-level signal. This first control signal turns on the first field-effect transistor Q1 and turns off the third field-effect transistor Q4. The second XOR gate performs an XOR operation on the low-level signals at its third input terminal INA and the fourth input terminal INB, outputting a low-level signal. This second control signal turns on the second field-effect transistor Q2 and turns off the fourth field-effect transistor Q5. The motor's rotation state is abnormal, and the rotation direction is counterclockwise.

[0034] Figure 2 This illustration shows a schematic flowchart of a motor operation control method according to an embodiment of the present disclosure, including: Step 201: Collect the acquisition signal flowing through the motor.

[0035] Step 202: Generate a state control signal for controlling the rotation state of the motor based on the acquired signal.

[0036] Step 203: Receive a direction control signal for controlling the rotation direction of the motor.

[0037] Step 204: Perform a first logical operation on the direction control signal and the state control signal to generate a first control signal; perform a second logical operation on the direction control signal and the state control signal to generate a second control signal.

[0038] Step 205: Control the rotation state and rotation direction of the motor according to the first control signal and the second control signal.

[0039] The motor's power supply voltage is U, its coil internal resistance is R, and its back electromotive force (EMF) is E. The voltage balance equation is: U = E + IR. The coil internal resistance of a small motor is very small, resulting in minimal heat loss. Therefore, the EMF E is much greater than IR. Consequently, when the motor is operating normally, the motor current I = (UE) / R is relatively small. The motor's back EMF is directly proportional to the rotor speed. When the motor stalls, the back EMF disappears (E = 0), I = U / R, and the current increases instantaneously. Therefore, by collecting the signal flowing through the motor, it can be determined whether the motor is operating normally or stalled. Based on the collected signal, a status control signal is generated to control the motor's rotation state, either rotating or stopping. Additionally, a direction control signal is received to control the motor's rotation direction, either clockwise or counterclockwise. However, after generating the status and direction control signals, the motor's rotation state and direction are not directly controlled. Instead, logical operations are performed on the status and direction control signals to generate a control signal, which then controls the motor's rotation state and direction. Specifically, a first control signal is generated by performing a first logical operation on the direction control signal and the state control signal, and a second control signal is generated by performing a second logical operation on the direction control signal and the state control signal. The rotation state and rotation direction of the motor are controlled based on the first control signal and the second control signal.

[0040] By applying this method, the motor can be judged to be in a normal state or a blocked state by the collected signal flowing through the motor. Based on the different states, a state control signal is generated. Based on the state control signal and the direction control signal, the motor and drive circuit can be effectively prevented from being damaged by overheating due to blockage, thereby improving the motor's anti-interference ability and stability.

[0041] In one embodiment, generating a state control signal for controlling the rotation state of the motor based on the acquired signal includes: comparing the acquired signal with a signal threshold to obtain a comparison result; and generating a state control signal in response to the comparison result indicating that the acquired signal meets the signal threshold.

[0042] By comparing the acquired current signal with a current threshold, the comparison result is obtained. When the current signal is less than the current threshold, it is determined that the motor is working normally and no interference is made with the motor's state. When the current signal is greater than the current threshold, it is determined that the motor is blocked and a state control signal is generated. This state control signal is used to control the motor to rotate or stop.

[0043] In one possible implementation, the step of performing a first logical operation on the direction control signal and the state control signal to generate a first control signal includes: in response to the direction control signal being a low-level signal and the state control signal being a low-level signal, performing an XOR operation on the direction control signal and the state control signal to generate a first control signal, wherein the first control signal is a low-level signal; and in response to the direction control signal being a low-level signal and the state control signal being a high-level signal, performing an XOR operation on the direction control signal and the state control signal to generate a first control signal, wherein the first control signal is a high-level signal.

[0044] When both the direction control signal and the status control signal are low, an XOR operation is performed on them. Since both signals are low, the resulting first control signal is also low. When both are low and the status control signal is high, the XOR operation produces a high-level first control signal.

[0045] In one embodiment, the step of performing a second logical operation on the direction control signal and the state control signal to generate a second control signal includes: in response to the direction control signal being a high-level signal and the state control signal being a low-level signal, performing an XOR operation on the direction control signal and the state control signal to generate a second control signal, wherein the second control signal is a high-level signal; and in response to the direction control signal being a low-level signal and the state control signal being a low-level signal, performing an XOR operation on the direction control signal and the state control signal to generate a first control signal, wherein the second control signal is a low-level signal.

[0046] When both the direction control signal and the status control signal are high, an XOR operation is performed on them, resulting in a low-level control signal. Conversely, when both the direction control signal and the status control signal are low, an XOR operation is performed on them, resulting in a high-level control signal.

[0047] In one possible implementation, determining the rotation state and direction of the motor based on the first control signal and the second control signal includes: determining the motor's rotation state as normal and the rotation direction as clockwise in response to the first control signal being a low-level signal and the second control signal being a high-level signal; determining the motor's rotation state as abnormal and the rotation direction as clockwise in response to the first control signal being a high-level signal and the second control signal being a high-level signal; determining the motor's rotation state as normal and the rotation direction as counterclockwise in response to the first control signal being a high-level signal and the second control signal being a low-level signal; and determining the motor's rotation state as abnormal and the rotation direction as counterclockwise in response to the first control signal being a low-level signal and the second control signal being a low-level signal.

[0048] This application controls the rotation state and direction of a motor by controlling a field-effect transistor connected to the motor. When the first control signal is low and the second control signal is high, the motor is determined to be operating normally, and the motor continues to rotate clockwise. If a blockage occurs during the clockwise rotation of the motor, both the first and second control signals go high, and the motor stops rotating. When the first control signal is high and the second control signal is low, the motor is determined to be operating normally, and the motor continues to rotate counterclockwise. If a blockage occurs during the counterclockwise rotation of the motor, both the first and second control signals go low, and the motor stops rotating.

[0049] In one embodiment, the method further includes: obtaining the current rotation angle of the rotatable screen, the rotatable screen rotating based on the rotation of the motor; and determining the target rotation angle of the rotatable screen based on the current rotation angle, the rotation state of the motor, and the rotation direction.

[0050] In this application, a motor is connected to a rotatable screen. The rotation of the motor drives the rotation of the rotatable screen; clockwise rotation of the motor causes the rotatable screen to rotate clockwise, and counterclockwise rotation causes the rotatable screen to rotate counterclockwise. If the motor stops rotating due to blockage, it is processed, and then restarted via an embedded controller, resuming normal rotation upon power-up. The current rotation angle of the rotatable screen is obtained through an angle sensor. Based on the motor's rotation state and direction, the number of revolutions the motor has made is determined. Finally, based on the current rotation angle of the rotatable screen and the number of revolutions the motor has made, the target rotation angle of the rotatable screen is determined.

[0051] Figure 3 A schematic diagram of the components of a motor operation control device according to an embodiment of the present disclosure is shown.

[0052] like Figure 3 As shown, according to a second aspect of this disclosure, a control device for motor operation is provided. The device includes: a data acquisition module 301 for acquiring data acquisition signals flowing through the motor; a first generation module 302 for generating a state control signal for controlling the rotation state of the motor based on the acquired signals; a receiving module 303 for receiving a direction control signal for controlling the rotation direction of the motor; a second generation module 304 for performing a first logical operation on the direction control signal and the state control signal to generate a first control signal; and performing a second logical operation on the direction control signal and the state control signal to generate a second control signal; and a first determination module 305 for determining the rotation state and rotation direction of the motor based on the first control signal and the second control signal.

[0053] In one embodiment, the first generation module 302 includes: a comparison submodule 3021, used to compare the acquired signal with a signal threshold to obtain a comparison result; and a generation submodule 3022, used to generate a state control signal in response to the comparison result indicating that the acquired signal meets the signal threshold.

[0054] In one embodiment, the second generation module 304 is specifically configured to: in response to the direction control signal being a low-level signal and the state control signal being a low-level signal, perform an XOR operation on the direction control signal and the state control signal to generate a first control signal, wherein the first control signal is a low-level signal; and in response to the direction control signal being a low-level signal and the state control signal being a high-level signal, perform an XOR operation on the direction control signal and the state control signal to generate a first control signal, wherein the first control signal is a high-level signal.

[0055] In one embodiment, the second generation module 304 is specifically configured to: in response to the direction control signal being a high-level signal and the state control signal being a low-level signal, perform an XOR operation on the direction control signal and the state control signal to generate a second control signal, wherein the second control signal is a high-level signal; and in response to the direction control signal being a low-level signal and the state control signal being a low-level signal, perform an XOR operation on the direction control signal and the state control signal to generate a first control signal, wherein the second control signal is a low-level signal.

[0056] In one possible implementation, the first determining module 305 is specifically configured to: determine that the rotation state of the motor is normal and the rotation direction is clockwise in response to the first control signal being low and the second control signal being high; determine that the rotation state of the motor is abnormal and the rotation direction is clockwise in response to the first control signal being high and the second control signal being high; determine that the rotation state of the motor is normal and the rotation direction is counterclockwise in response to the first control signal being high and the second control signal being low; and determine that the rotation state of the motor is abnormal and the rotation direction is counterclockwise in response to the first control signal being low and the second control signal being low.

[0057] In one embodiment, the device further includes: an acquisition module 306, configured to acquire the current rotation angle of the rotatable screen, the rotatable screen rotating based on the rotation of the motor; and a second determination module 307, configured to determine the target rotation angle of the rotatable screen based on the current rotation angle, the rotation state of the motor, and the rotation direction.

[0058] According to embodiments of this disclosure, this disclosure also provides an electronic device and a readable storage medium.

[0059] Figure 4 A schematic block diagram of an example electronic device 400 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0060] like Figure 4As shown, device 400 includes a computing unit 401, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 402 or a computer program loaded from storage unit 408 into random access memory (RAM) 403. RAM 403 may also store various programs and data required for the operation of device 400. The computing unit 401, ROM 402, and RAM 403 are interconnected via bus 404. Input / output (I / O) interface 405 is also connected to bus 404.

[0061] Multiple components in device 400 are connected to I / O interface 405, including: input unit 406, such as keyboard, mouse, etc.; output unit 407, such as various types of monitors, speakers, etc.; storage unit 408, such as disk, optical disk, etc.; and communication unit 409, such as network card, modem, wireless transceiver, etc. Communication unit 409 allows device 400 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0062] The computing unit 401 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 401 performs the various methods and processes described above, such as a method for controlling motor operation. For example, in some embodiments, a method for controlling motor operation may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by the computing unit 401, one or more steps of the method for controlling motor operation described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform a method for controlling motor operation by any other suitable means (e.g., by means of firmware).

[0063] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0064] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0065] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0066] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0067] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0068] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.

[0069] It should be understood that the various forms of processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0070] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means two or more, unless otherwise explicitly specified.

[0071] The above description is merely a specific embodiment of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.

Claims

1. A method for controlling the operation of a motor, characterized in that, The method includes: Collect the signal flowing through the motor; A state control signal for controlling the motor rotation state is generated based on the acquired signal; Receives a direction control signal used to control the direction of motor rotation; The direction control signal and the state control signal are processed by a first logical operation to generate a first control signal; the direction control signal and the state control signal are processed by a second logical operation to generate a second control signal. The rotation state and direction of the motor are controlled according to the first control signal and the second control signal.

2. The method according to claim 1, characterized in that, The step of generating a state control signal for controlling the rotation state of the motor based on the acquired signal includes: The acquired signal is compared with a signal threshold to obtain a comparison result; In response to the comparison result indicating that the acquired signal meets the signal threshold, a state control signal is generated.

3. The method according to claim 1, characterized in that, The step of performing a first logical operation on the direction control signal and the state control signal to generate a first control signal includes: In response to the direction control signal being a low-level signal and the status control signal being a low-level signal, the direction control signal and the status control signal are XORed to generate a first control signal, which is a low-level signal. In response to the direction control signal being a low-level signal and the status control signal being a high-level signal, the direction control signal and the status control signal are XORed to generate a first control signal, which is a high-level signal.

4. The method according to claim 3, characterized in that, The step of performing a second logical operation on the direction control signal and the state control signal to generate a second control signal includes: In response to the direction control signal being a high-level signal and the status control signal being a low-level signal, the direction control signal and the status control signal are XORed to generate a second control signal, which is a high-level signal. In response to the direction control signal being a low-level signal and the status control signal being a low-level signal, the direction control signal and the status control signal are XORed to generate a first control signal, and the second control signal is a low-level signal.

5. The method according to claim 4, characterized in that, Determining the rotation state and direction of the motor based on the first control signal and the second control signal includes: In response to the first control signal being a low-level signal and the second control signal being a high-level signal, the rotation state of the motor is determined to be normal, and the rotation direction is clockwise. In response to the first control signal being a high-level signal and the second control signal being a high-level signal, it is determined that the rotation state of the motor is abnormal and the rotation direction is clockwise. In response to the first control signal being a high-level signal and the second control signal being a low-level signal, the rotation state of the motor is determined to be normal, and the rotation direction is counterclockwise. In response to the first control signal being a low-level signal and the second control signal being a low-level signal, it is determined that the rotation state of the motor is abnormal and the rotation direction is counterclockwise.

6. The method according to claim 1, characterized in that, The method further includes: Obtain the current rotation angle of the rotatable screen, which rotates based on the rotation of the motor; The target rotation angle of the rotatable screen is determined based on the current rotation angle, the rotation state of the motor, and the rotation direction.

7. A control device for motor operation, characterized in that, The device includes: The acquisition module is used to acquire the signals flowing through the motor; The first generation module is used to generate a state control signal for controlling the rotation state of the motor based on the acquired signal; The receiving module is used to receive the direction control signal used to control the rotation direction of the motor; The second generation module is used to perform a first logical operation on the direction control signal and the state control signal to generate a first control signal; and to perform a second logical operation on the direction control signal and the state control signal to generate a second control signal. The first determining module is used to control the rotation state and rotation direction of the motor according to the first control signal and the second control signal.

8. A control circuit for motor operation, characterized in that, include: A current sensing resistor is used to collect electrical signals flowing through the motor; The first control circuit is used to generate a state control signal for controlling the rotation state of the motor based on the electrical signal; An embedded controller is used to generate directional control signals that control the rotation direction of the motor. The first XOR gate is used to perform XOR processing on the state control signal and the direction control signal to generate the first control signal; The second XOR gate is used to perform XOR processing on the state control signal and the direction control signal to generate a second control signal. The second control circuit is used to control the rotation state and rotation direction of the motor according to the first control signal and the second control signal.

9. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.

10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-6.