Motor control method, device and electronic equipment
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-26
- Publication Date
- 2026-08-11
AI Technical Summary
[0005]本申请提供一种电机的控制方法、装置及电子设备,用于解决现有技术中具有电机的电子设备的复杂度和成本较高的技术问题
[0018] In summary, the motor control method, apparatus, and electronic device provided in this application, without incorporating Hall sensors or other devices for detecting motor speed, allows the processor in the electronic device to calculate the peak voltage of the AC power supply to the motor and the conduction time of the voltage control circuit supplying the AC power to the motor based on a zero-crossing detection signal. When the motor speed needs adjustment, the voltage control circuit adjusts the AC power supplied to the motor, thereby achieving speed adjustment. Therefore, the motor control method provided in this application can control motor speed without incorporating Hall sensors in the electronic device, reducing the structural complexity and cost of the electronic device, avoiding the risk of complete rework due to Hall sensor failure, and significantly improving the user experience of the electronic device.
Smart Images

Figure CN116032180B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of motor control, and more particularly to a motor control method, device, and electronic device. Background Technology
[0002] An electric motor is a common load drive device in electronic devices such as air conditioners. It can rotate under the drive of alternating current, thereby driving the load of the electronic device to work.
[0003] In existing technology, to control the motor speed, electronic devices are equipped with Hall sensors. The processor determines the current motor speed through the Hall sensor, and then uses a zero-crossing detection circuit to determine the zero point of the voltage supplied to the motor by the power supply circuit. Finally, when the processor determines that the motor speed needs to be adjusted, it uses a voltage control circuit, combined with the voltage zero-crossing point, to adjust the voltage supplied to the motor by the power supply circuit, thereby adjusting the motor speed.
[0004] However, using existing technology, devices such as Hall sensors to detect motor speed are installed in electronic devices to control the motor, which increases the structural complexity and cost of the electronic devices. Summary of the Invention
[0005] This application provides a method, apparatus, and electronic device for controlling an electric motor, which addresses the technical problems of high complexity and cost of existing electronic devices with electric motors.
[0006] The first aspect of this application provides a method for controlling a motor, comprising: acquiring a zero-crossing detection signal of the motor; wherein the zero-crossing detection signal is used to indicate the zero-crossing point of the AC voltage driving the motor; determining the zero-crossing point of the AC voltage and the rotational speed of the motor based on the zero-crossing detection signal; and adjusting the voltage of the AC voltage driving the motor based on the rotational speed of the motor and the zero-crossing point when the rotational speed does not meet a preset condition.
[0007] In one embodiment of the first aspect of this application, determining the motor speed based on the zero-crossing detection signal includes: determining the peak voltage of the AC power supply based on the zero-crossing detection signal, and determining the motor speed by using the peak voltage and the conduction time of the voltage control circuit that supplies AC power to the motor.
[0008] In one embodiment of the first aspect of this application, determining the peak voltage of the alternating current based on the zero-crossing detection signal includes: determining the peak voltage of the alternating current based on a preset relationship between a first pulse width in the zero-crossing detection signal, a second pulse width between adjacent pulses, the on-state voltage of the optocoupler in the zero-crossing detection circuit used to acquire the zero-crossing detection signal, and the peak voltage of the alternating current; wherein the zero-crossing detection signal includes a plurality of pulses, each pulse indicating the voltage zero-crossing point of the alternating current.
[0009] In one embodiment of the first aspect of this application, the preset relationship can be represented by the following formula.
[0010]
[0011] Wherein, V1 is the on-state voltage, Vmax is the peak voltage, TH is the first width, and TL is the second width.
[0012] In one embodiment of the first aspect of this application, obtaining the zero-crossing detection signal of the motor includes: rectifying the received AC power to obtain a first electrical signal; inputting the first electrical signal into the input terminal of an optocoupler; when the voltage of the first electrical signal is greater than the conduction voltage, the optocoupler isolates and transmits the first electrical signal and outputs the zero-crossing detection signal.
[0013] In one embodiment of the first aspect of this application, the method further includes: determining the on-state voltage based on the on-state current of the optocoupler and the resistance value of the voltage divider resistor at the input terminal of the optocoupler.
[0014] In one embodiment of the first aspect of this application, adjusting the voltage of the AC power driving the motor according to the motor speed and the voltage zero-crossing point includes: determining the conduction time length of the switching transistor in the voltage control circuit within a cycle according to the motor speed; and controlling the switching transistor in the voltage control circuit to conduct or close for a target time within the cycle according to the conduction time length and the voltage zero-crossing point.
[0015] In one embodiment of the first aspect of this application, the preset condition includes: the difference between the rotational speed and the target rotational speed of the motor is less than a preset threshold.
[0016] A second aspect of this application provides a motor control device for performing a motor control method as provided in the first aspect of this application. The device includes: an acquisition module for acquiring a zero-crossing detection signal of the motor; wherein the zero-crossing detection signal is used to indicate the zero-crossing point of the AC voltage driving the motor; a determination module for determining the zero-crossing point of the AC voltage and the rotational speed of the motor based on the zero-crossing detection signal; and an adjustment module for adjusting the voltage of the AC voltage driving the motor when the peak voltage does not meet preset conditions.
[0017] A third aspect of this application provides an electronic device, comprising: a motor; a power supply circuit for providing alternating current (AC) to the motor to drive its rotation; a zero-crossing detection circuit for generating a zero-crossing detection signal based on the AC; a voltage control circuit for adjusting the voltage of the AC supplied by the power supply circuit to the motor; and a processor for acquiring the zero-crossing detection signal through the zero-crossing detection circuit, determining the voltage zero-crossing point of the AC and the rotational speed of the motor based on the zero-crossing detection signal, and adjusting the voltage of the AC supplied by the power supply circuit to the motor based on the rotational speed of the motor and the voltage zero-crossing point through the voltage control circuit when the rotational speed meets a preset condition.
[0018] In summary, the motor control method, apparatus, and electronic device provided in this application, without incorporating Hall sensors or other devices for detecting motor speed, allows the processor in the electronic device to calculate the peak voltage of the AC power supply to the motor and the conduction time of the voltage control circuit supplying the AC power to the motor based on a zero-crossing detection signal. When the motor speed needs adjustment, the voltage control circuit adjusts the AC power supplied to the motor, thereby achieving speed adjustment. Therefore, the motor control method provided in this application can control motor speed without incorporating Hall sensors in the electronic device, reducing the structural complexity and cost of the electronic device, avoiding the risk of complete rework due to Hall sensor failure, and significantly improving the user experience of the electronic device. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a schematic diagram illustrating the application scenario of this application;
[0021] Figure 2 This is a flowchart illustrating a motor control method provided in the prior art.
[0022] Figure 3 A schematic diagram of the structure of an embodiment of an electronic device with a motor provided in this application;
[0023] Figure 4 A flowchart illustrating an embodiment of the motor control method provided in this application;
[0024] Figure 5 A schematic diagram of an embodiment of the zero-crossing detection circuit provided in this application;
[0025] Figure 6 A schematic diagram of a signal waveform in an embodiment of the motor control method provided in this application;
[0026] Figure 7 This is a schematic diagram of another embodiment of the signal waveform in the motor control method provided in this application. Detailed Implementation
[0027] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0028] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0029] Before formally introducing the embodiments of this application, let's first refer to the appendix. Figure 1-2 This paper explains the application scenarios and the problems existing in the prior art.
[0030] Figure 1 This is a schematic diagram illustrating the application scenario of this application, such as... Figure 1As shown, this application is applied to an electronic device 10 with a motor, and the provided motor control method can be used to control the rotational speed of the motor 102 within the electronic device. For example, as Figure 1 The illustrated electronic device 10 can be an air conditioner. When the air conditioner is running, the input AC power obtained from the power supply can sequentially drive the motor 102 to rotate through the zero-crossing detection circuit 104 and the voltage control circuit 101, thereby driving the load inside the air conditioner to operate. The zero-crossing detection circuit 104 is connected to the processor 103. The processor 103 determines the zero-crossing point of the input AC power through the zero-crossing detection circuit 104, and then controls the voltage control circuit 101 according to the timing corresponding to the zero-crossing point. In the various embodiments of this application, the electronic device 10 is used as an example of an air conditioner, and is not intended to limit it. The electronic device 10 can also be other electronic devices such as an electric fan.
[0031] In existing technologies, in order to adjust the speed of the motor, such as Figure 1 The electronic device 10 shown also includes a Hall effect detection circuit 105. Figure 2 This is a flowchart illustrating a motor control method provided in the prior art, showing how... Figure 1 The process by which the processor 103 in the electronic device 10 controls the motor 102. Specifically, in... Figure 2 In S10, the processor 103 of the electronic device 10 determines the current rotational speed of the motor 102 using a Hall sensor in the Hall detection circuit 105. The Hall sensor in the Hall detection circuit 105 generates induced voltage pulses under the influence of the magnetic field when the motor 102 rotates. The processor 103 can then calculate the rotational speed of the motor 102 based on the number of induced voltage pulses obtained from the Hall sensor. In S20, the processor 105 determines the zero point of the AC current input to drive the motor 102 through the zero-crossing detection circuit 104. Subsequently, in S30, when the processor 105 determines that the rotational speed of the motor 102 needs adjustment based on the rotational speed obtained in S10, the processor 105 adjusts the voltage input to the motor 102 through the voltage control circuit 101, thereby adjusting the rotational speed of the motor 102.
[0032] In summary, in existing technologies such as Figure 1 The electronic device 10 shown and Figure 2In the motor control method shown, the electronic device 10 needs to include modules such as a Hall sensor circuit 105 to determine the current speed of the motor 102. This allows the processor 103 to determine whether the speed of the motor 102 needs adjustment. When adjustment is required, the voltage control circuit 101 adjusts the voltage of the AC power input to the motor 102 to adjust the speed. However, the Hall sensor 105 installed in the existing electronic device 10 increases both the structural complexity and cost of the electronic device 10. Furthermore, if the Hall sensor circuit 105 malfunctions due to its own hardware, the entire electronic device 10 will become inoperable and require repair, significantly impacting the user experience.
[0033] Therefore, this application provides a method, apparatus, and electronic device for controlling a motor. The electronic device does not require a Hall sensor or similar device for detecting motor speed. Instead, a processor calculates the peak voltage of the AC power supply to the motor and the conduction time of the voltage control circuit supplying the AC power to the motor using a zero-crossing detection signal. Based on the peak voltage and conduction time, when the motor speed needs adjustment, the voltage control circuit adjusts the AC power supplied to the motor, thereby adjusting the motor speed. This achieves motor speed control without a Hall sensor, overcoming the technical problems of complex structure and high cost associated with Hall sensors in existing electronic devices for motor control.
[0034] The technical solutions of this application will be described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0035] Figure 3 A schematic diagram of an embodiment of the electronic device with a motor provided in this application is shown below. Figure 3 As shown, the electronic device 10 provided in this embodiment includes: a voltage control circuit 101, a motor 102, a processor 103, and a zero-crossing detection circuit 104, and... Figure 1 Compared to the electronic devices shown, such as Figure 3 The electronic device 10 shown does not have a Hall sensor or other device for detecting motor speed. Instead, the processor 103 determines the peak voltage of the AC power driving the motor 102 based on the zero-crossing detection signal obtained from the zero-crossing detection circuit 104, and then indirectly determines the current speed of the motor 103 based on the obtained peak voltage of the AC power, and adjusts the speed of the motor 103 based on the peak voltage.
[0036] In some embodiments, when motor 102 is specifically a PG motor in an air conditioner, according to the known mechanical characteristics of squirrel-cage induction motors, the smaller the voltage received on the stator of motor 102, the greater the slip rate of the motor when driving the same load, and the motor speed n and the voltage received by the motor can be expressed by the following formula:
[0037]
[0038] Where n is the rotational speed of motor 102, n1 is the rotational speed of the resultant magnetomotive force of motor 102, f is the frequency of the AC power received by electronic device 10, s is the slip of motor 102, and p is the number of pole pairs of motor 102. From the above formula, it can be seen that the larger the voltage received on the stator of motor 102 and the larger the slip s, the larger the rotational speed n of the motor; conversely, the smaller the voltage received on the stator of motor 102 and the smaller the slip s, the smaller the rotational speed n of the motor. Therefore, the voltage received by motor 102 is directly proportional to the rotational speed of motor 102, and the rotational speed n of motor 102 can be expressed by the voltage received by motor 102.
[0039] Furthermore, based on the theory of Formula 1 above, after inputting a constant peak voltage AC current to motor 102, the rotational speed n of motor 102 and the AC voltage V input to motor 102 are... moto The relationship between them can be expressed by the following formula:
[0040] n = K·V moto =K·T on ·V max Formula 2: sin(2πft)
[0041] Where K is the fitting coefficient, which is a fixed constant when the peak voltage of the input AC current is constant. The fitting coefficient K corresponding to motor 102 can be obtained through experimental testing. It can be seen from Formula 2 above that the rotational speed n of motor 102 is determined by the peak voltage V of the input AC current. max On-time T on The frequency f of the alternating current is determined. Therefore, when the processor 103 determines the peak voltage V of the alternating current received by the motor 102... max After the alternating current frequency f, due to the peak voltage V max The frequency f of the alternating current is related to the alternating current and can be considered fixed. If the peak voltage V... max If the voltage does not match the preset value, it means that the speed of motor 102 does not meet the currently set target speed, and the speed of motor 102 needs to be adjusted. At this time, processor 103 can adjust the speed based on the on-time T of the switching transistor in the voltage control circuit 101. on Adjust the effective voltage V of the AC power supplied to the motor 102 in a certain way rmsUltimately, this allows for the adjustment of the motor's speed. Thus, even without installing a Hall sensor or similar device within the electronic device 10 to detect motor speed, it is still possible to acquire and adjust the speed of the motor 102, thereby reducing the complexity and cost of the electronic device.
[0042] The following section, with reference to the accompanying drawings, details how processor 103 determines the peak voltage V based on the zero-crossing detection signal. max According to the peak voltage V max The process of adjusting the AC voltage supplied to the motor 102 at the voltage zero-crossing point, thereby adjusting the speed of the motor 102, is explained in detail.
[0043] In some embodiments, Figure 4 A flowchart illustrating an embodiment of the motor control method provided in this application is shown below. Figure 4 The control method of the motor shown can be as follows: Figure 3 The processor 103 shown executes, as follows: Figure 4 As shown, the motor control method provided in this embodiment includes:
[0044] S101: Processor 103 acquires the zero-crossing detection signal of the motor.
[0045] In some embodiments, the zero-crossing detection circuit 104 in the electronic device 10 is specifically used to generate a zero-crossing detection signal based on the AC power received by the electronic device 10, and send the zero-crossing detection signal to the processor 103. Then, the processor 103 can obtain the zero-crossing detection signal through the zero-crossing detection circuit 104 in S101.
[0046] In some embodiments, Figure 5 This is a schematic diagram of an embodiment of the zero-crossing detection circuit provided in this application, as shown below. Figure 5 The zero-crossing detection circuit 104 shown can be applied to, for example... Figure 3 In the illustrated electronic device 10, a zero-crossing detection signal is obtained based on the voltage of the AC power supply to the drive motor 102. Specifically, as shown... Figure 5 The zero-crossing detection circuit 104 shown includes a rectifier bridge (composed of four diodes D1-D4) and an optocoupler U3. The rectifier bridge can be used to rectify the AC power V1 of the motor driven by the electronic device 10 to obtain the first electrical signal V3.
[0047] For example, Figure 6This is a schematic diagram of an embodiment of the signal waveform in the motor control method provided in this application. It shows that after the alternating current V1 is rectified, a first electrical signal V3 with a "bun wave" shape and a full-wave rectified sinusoidal envelope is obtained. Subsequently, in the zero-crossing detection circuit 104, the first electrical signal V3 obtained after the rectifier bridge is input to the input terminal of the optocoupler U1. The first electrical signal V3 is specifically divided and current-limited by R1, generating a current I1 at the input terminal of the optocoupler U1.
[0048] Figure 7 A schematic diagram of another embodiment of the signal waveform in the motor control method provided in this application is shown below. Figure 7 As shown, when the current I1 generated by the first electrical signal V3 at the input terminal of optocoupler U1 exceeds the conduction current of phototransistor 11 inside optocoupler U1 at time 1 on the horizontal axis, phototransistor 11 conducts and emits light, and photosensitive element 12 inside optocoupler U1 outputs a low-level voltage under the action of light; when the current I1 is less than the conduction current of phototransistor 11 inside optocoupler U1 at time 9 on the horizontal axis, phototransistor 11 is turned off and stops emitting light, and photosensitive element 12 inside optocoupler U1 outputs a high-level voltage U1. After U1 is divided by resistor R4, a zero-crossing detection signal V_Zero is obtained. Finally, the zero-crossing detection signal V_Zero obtained by the zero-crossing detection circuit 104 is input to processor 103 for further processing.
[0049] In some embodiments, Figure 5 When the phototransistor 11 is turned on under the action of the conduction current, the voltage at the input terminal of the optocoupler U1 is denoted as the on-state voltage V1 of the optocoupler. The on-state voltage V1 can be calculated based on the conduction current I1_min of the optocoupler U1 and the resistance values of the voltage divider resistors R1 and R2 at the input terminal of the optocoupler U1. In some embodiments, V1 can be calculated using the following formula:
[0050]
[0051] In some embodiments, such as Figure 7 As shown, the change process of the voltage of the first electrical signal V3 from the peak to zero voltage can be detected by the process of the zero-crossing detection signal V_Zero changing from low level to high level. The change process of the voltage of the first electrical signal V3 from zero voltage to the peak can be detected by the process of the zero-crossing detection signal V_Zero changing from high level to low level. The process of the zero-crossing detection signal V_Zero maintaining a high level is the zero-crossing commutation process of the voltage of the first electrical signal V3. The above-mentioned zero-point change process of the first electrical signal V3 is also equivalent to the zero-point change process of the AC power of the drive motor.
[0052] It should be noted that, as Figure 5The specific circuit structure of the zero-crossing detection circuit 104 provided in the embodiment shown is only an example. In other possible implementations, the zero-crossing detection circuit 104 can also be other structures that can obtain a zero-crossing detection signal. This application does not limit the specific circuit structure of the zero-crossing detection circuit 104.
[0053] S102: The processor 103 determines the zero-crossing point of the AC voltage of the drive motor 102 and the speed of the motor 102 based on the zero-crossing detection signal.
[0054] In embodiment S102 of this application, the processor 103 specifically determines the peak voltage of the AC power supply to the drive motor 102, and indirectly indicates the rotational speed of the motor 102 through the peak voltage. As shown in Formula 1, the peak voltage V of the AC power supply... max It is directly proportional to the rotational speed n of motor 102.
[0055] In some embodiments, in S102, the processor 103 specifically determines the voltage based on the first pulse width in the zero-crossing detection signal V_Zero, the second pulse width between adjacent pulses, the on-state voltage V1 of the optocoupler U1 in the zero-crossing detection circuit 104, and the peak voltage V of the alternating current. max The preset relationship between these factors determines the peak voltage of the alternating current. This preset relationship can be expressed by the following formula:
[0056]
[0057] Where V1 is the on-state voltage of optocoupler U1, V max T is the peak voltage of the alternating current. H The first width of the pulse in V_Zero, T L This is the second width between adjacent pulses in V_Zero.
[0058] Specifically, such as Figure 7 Using the zero-crossing detection signal V_Zero as an example, it can be seen that the zero-crossing detection signal V_Zero includes multiple high-level pulses, each pulse corresponding to a voltage zero-crossing point of the alternating current. Therefore, the time length during which the voltage value of the first electrical signal V3 changes from V1 to 0 corresponds to the first width T of the high-level pulses in the zero-crossing detection signal V_Zero. H Meanwhile, the time length between adjacent high-level pulses in the zero-crossing detection signal V_Zero corresponds to the second width T. L And through the first width T H Second width T L The reciprocal of the sum can be used to calculate the frequency f of the alternating current, and Formula 3 can be obtained based on the sinusoidal variation law of alternating current.
[0059] In S102, after the processor 103 obtains the zero-crossing detection signal V_Zero through the zero-crossing detection circuit 104, it can convert the first width T in the zero-crossing detection signal V_Zero into... H Second width T L Substituting the known parameter V1 into Formula 3 above, the peak voltage V of the alternating current is calculated. max .
[0060] In some embodiments, in example S102 of this application, the processor 103 specifically determines the voltage zero-crossing point of the alternating current based on the timing of the pulse in the zero-crossing detection signal V_Zero. For example, for Figure 6 The zero-crossing detection signal V_Zero in the pulse can determine the voltage zero-crossing points t11, t12, t13, etc.
[0061] S103: If the motor speed determined in S102 does not meet the preset conditions, the AC voltage of the drive motor is adjusted according to the motor speed and the voltage zero crossing point.
[0062] Specifically, when the peak voltage of the AC power supply to the motor is used to indicate the motor speed in this embodiment, the motor speed can be determined to be within the preset target speed based on whether the peak voltage meets a preset voltage. For example, if the motor of the current electronic device is adjusted to a target speed according to work requirements, and the difference between the current motor speed and the target speed is greater than a preset threshold, it indicates that the motor speed needs to be adjusted. In this case, the difference between the peak voltage and the target voltage at the target speed is also greater than the preset voltage.
[0063] In some embodiments, the processor 103 may specifically adjust the voltage of the AC power supplied to the motor 102 by chopping the input AC power received by the electronic device and then outputting it to the motor 102 through the voltage control circuit 101. For example, when the processor 103 determines the peak voltage V that can be used to indicate the motor speed... max If V max If the difference between the voltage and the preset target voltage is greater than the preset threshold, the conduction time of the switching transistor in the voltage control circuit 102 within the cycle is determined based on the peak voltage of the motor 102's rotational speed. Then, based on the conduction time and the voltage zero-crossing point, the switching transistor in the voltage adjustment circuit 101 is controlled to conduct or close at the target time, thereby adjusting the voltage of the AC power output to the motor 102 through the voltage control circuit 101.
[0064] For example, in such Figure 6In the example shown, when the processor 103 determines that the speed of the motor 102 needs to be adjusted, for example, by reducing the speed, it corresponds to reducing the peak voltage of the AC power supplied to the motor 102. At this time, the processor 103 can determine the control signal V4 based on the zero-crossing point determined by the zero-crossing detection signal V_Zero. V4 includes multiple control pulses, each corresponding to the target time for the switching transistor in the voltage control circuit 101 to be turned on or off within one cycle of the AC power. Subsequently, the processor 103 controls the voltage control circuit 102 according to the control signal V4, causing the voltage control circuit 101 to turn off at each voltage zero-crossing point and turn on at each control pulse after receiving the AC power V1, resulting in the adjusted AC power V5. Ultimately, in the AC power V5, the first half of the voltage within the cycle between each adjacent zero-crossing point is "chopped," thereby reducing the effective voltage value of the AC power V5. When the effective voltage value of the AC power output to the motor 102 through the voltage control circuit 101 decreases, the speed of the motor 102 also decreases accordingly. Finally, by controlling the voltage of the AC power output to the motor 102, the speed of the motor 102 is controlled.
[0065] In summary, the motor control method provided in this application, without the need for Hall sensors or other devices to detect motor speed in the electronic device, allows the processor in the electronic device to calculate the peak voltage of the AC power supply to the motor and the conduction time of the voltage control circuit supplying the AC power to the motor based on a zero-crossing detection signal. Then, based on the peak voltage and conduction time, it determines when the motor speed needs adjustment, and adjusts the AC voltage supplied to the motor through the voltage control circuit, thereby achieving motor speed adjustment. Therefore, the motor control method provided in this embodiment can control motor speed even without Hall sensors in the electronic device, reducing the structural complexity and cost of the electronic device, avoiding the risk of complete rework of the electronic device due to Hall sensor failure, and greatly improving the user experience of the electronic device.
[0066] In the foregoing embodiments, the motor control method provided in this application has been described. To implement the functions of the methods provided in the embodiments of this application, the processor, as the execution entity, may include hardware structures and / or software modules, implementing the above functions in the form of hardware structures, software modules, or a combination of hardware structures and software modules. Whether a particular function is executed in the form of hardware structures, software modules, or a combination of hardware structures and software modules depends on the specific application and design constraints of the technical solution.
[0067] For example, this application provides a motor control device, which includes an acquisition module, a determination module, and an adjustment module. The acquisition module is used to acquire a zero-crossing detection signal of the motor; wherein the zero-crossing detection signal is used to indicate the zero-crossing point of the AC voltage driving the motor; the determination module is used to determine the zero-crossing point and peak voltage of the AC voltage based on the zero-crossing detection signal; and the adjustment module is used to adjust the voltage of the AC voltage driving the motor when the peak voltage does not meet preset conditions.
[0068] The specific implementation and principle of each module of the motor control device provided in this application can be referred to the motor control method provided in the foregoing embodiments of this application. The specific implementation and principle are the same and will not be repeated here.
[0069] It should be noted that the division of the various modules in the above device is merely a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated. These modules can be implemented entirely in software via processing element calls; they can be fully implemented in hardware; or some modules can be implemented by processing element calls to software, while others are implemented in hardware. They can be separate processing elements, integrated into a chip within the device, or stored as program code in the device's memory, invoked and executed by a processing element. The implementation of other modules is similar. Furthermore, these modules can be fully or partially integrated together, or implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above modules can be completed through integrated logic circuits in the hardware of the processor element or through software instructions.
[0070] For example, these modules can be one or more integrated circuits configured to implement the above methods, such as one or more application-specific integrated circuits (ASICs), one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs). As another example, when a module is implemented using processing element scheduler code, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processor capable of calling program code. Furthermore, these modules can be integrated together to implement a system-on-a-chip (SOC).
[0071] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0072] This application also provides an electronic device, including: a processor and a memory; wherein the memory stores a computer program, and when the processor executes the computer program, the processor can be used to execute a motor control method as described in any of the foregoing embodiments of this application.
[0073] This application also provides a computer-readable storage medium storing a computer program, which, when executed, can be used to perform a motor control method as described in any of the foregoing embodiments of this application.
[0074] This application also provides a chip for executing operating instructions, the chip being used to execute any of the motor control methods described above in this application.
[0075] This application also provides a program product, which includes a computer program stored in a storage medium. At least one processor can read the computer program from the storage medium. When the at least one processor executes the computer program, it can implement any of the motor control methods described above in this application.
[0076] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0077] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A method for controlling an electric motor, characterized in that, include: Acquire the zero-crossing detection signal of the motor; wherein the zero-crossing detection signal is used to indicate the zero-crossing point of the AC voltage driving the motor; Based on the zero-crossing detection signal, the zero-crossing point of the AC voltage and the rotational speed of the motor are determined; When the rotational speed does not meet the preset conditions, the voltage of the AC power driving the motor is adjusted according to the rotational speed of the motor and the voltage zero crossing point. Determining the motor speed based on the zero-crossing detection signal includes: Based on the zero-crossing detection signal, the peak voltage of the AC power is determined, and the rotational speed of the motor is determined by the peak voltage and the conduction time of the voltage control circuit that supplies AC power to the motor.
2. The method according to claim 1, characterized in that, Determining the peak voltage of the alternating current based on the zero-crossing detection signal includes: The peak voltage of the AC power is determined based on a preset relationship between the first pulse width in the zero-crossing detection signal, the second pulse width between adjacent pulses, the on-state voltage of the optocoupler in the zero-crossing detection circuit used to acquire the zero-crossing detection signal, and the peak voltage of the AC power. The zero-crossing detection signal includes multiple pulses, each pulse indicating the zero-crossing point of the alternating current voltage.
3. The method according to claim 2, characterized in that, The preset relationship can be represented by the following formula. Wherein, V1 is the conduction voltage, V max For the peak voltage, T H For the first width, T L This is the second width.
4. The method according to any one of claims 1-3, characterized in that, The step of acquiring the zero-crossing detection signal of the motor includes: The received alternating current is rectified to obtain the first electrical signal; The first electrical signal is input to the input terminal of the optocoupler. When the voltage of the first electrical signal is greater than the conduction voltage, the optocoupler isolates and transmits the first electrical signal and outputs the zero-crossing detection signal.
5. The method according to claim 4, characterized in that, Also includes: The on-state voltage is determined based on the on-state current of the optocoupler and the resistance value of the voltage divider resistor at the input terminal of the optocoupler.
6. The method according to any one of claims 1-3, characterized in that, The step of adjusting the AC voltage driving the motor based on the motor's rotational speed and the voltage zero-crossing point includes: The conduction time of the switching transistor in the voltage control circuit within a cycle is determined based on the speed of the motor. Based on the conduction time length and the voltage zero-crossing point, the switching transistor in the voltage control circuit is controlled to turn on or off at the target time within the cycle.
7. The method according to any one of claims 1-3, characterized in that, The preset conditions include: The difference between the rotational speed and the target rotational speed of the motor is less than a preset threshold.
8. A control device for an electric motor, characterized in that, include: An acquisition module is used to acquire the zero-crossing detection signal of the motor; wherein the zero-crossing detection signal is used to indicate the zero-crossing point of the AC voltage driving the motor; The determination module is used to determine the voltage zero-crossing point of the AC power and the speed of the motor based on the zero-crossing detection signal. An adjustment module is used to adjust the voltage of the AC power supply driving the motor according to the motor speed and the voltage zero-crossing point when the rotational speed does not meet the preset conditions. The determining module is specifically used for: Based on the zero-crossing detection signal, the peak voltage of the AC power is determined, and the rotational speed of the motor is determined by the peak voltage and the conduction time of the voltage control circuit that supplies AC power to the motor.
9. An electronic device, characterized in that, include: Electric motor; A power supply circuit is used to provide AC power to the motor to drive the motor to rotate. A zero-crossing detection circuit is used to generate a zero-crossing detection signal based on the AC current. A voltage control circuit is used to adjust the voltage of the AC power supplied by the power supply circuit to the motor; The processor is configured to acquire the zero-crossing detection signal through the zero-crossing detection circuit, and determine the voltage zero-crossing point of the AC power and the speed of the motor based on the zero-crossing detection signal. When the speed does not meet the preset conditions, the processor adjusts the voltage of the AC power supplied to the motor by the power supply circuit through the voltage control circuit based on the speed of the motor and the voltage zero-crossing point. The processor is specifically used for: Based on the zero-crossing detection signal, the peak voltage of the AC power is determined, and the rotational speed of the motor is determined by the peak voltage and the conduction time of the voltage control circuit that supplies AC power to the motor.
Citation Information
Patent Citations
Motor rotating speed control circuit, motor rotating speed controller and direct current motor
CN208836038U