CN114382716A - Control circuit, control method, control device, equipment and medium of electric fan - Google Patents

Control circuit, control method, control device, equipment and medium of electric fan Download PDF

Info

Publication number
CN114382716A
CN114382716A CN202011138919.9A CN202011138919A CN114382716A CN 114382716 A CN114382716 A CN 114382716A CN 202011138919 A CN202011138919 A CN 202011138919A CN 114382716 A CN114382716 A CN 114382716A
Authority
CN
China
Prior art keywords
voltage
beat
resistor
comparator
control signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011138919.9A
Other languages
Chinese (zh)
Other versions
CN114382716B (en
Inventor
郭新生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GD Midea Environment Appliances Manufacturing Co Ltd
Original Assignee
GD Midea Environment Appliances Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GD Midea Environment Appliances Manufacturing Co Ltd filed Critical GD Midea Environment Appliances Manufacturing Co Ltd
Priority to CN202011138919.9A priority Critical patent/CN114382716B/en
Publication of CN114382716A publication Critical patent/CN114382716A/en
Application granted granted Critical
Publication of CN114382716B publication Critical patent/CN114382716B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D27/00Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D25/00Pumping installations or systems
    • F04D25/02Units comprising pumps and their driving means
    • F04D25/08Units comprising pumps and their driving means the working fluid being air, e.g. for ventilation
    • F04D25/10Units comprising pumps and their driving means the working fluid being air, e.g. for ventilation the unit having provisions for automatically changing direction of output air
    • F04D25/105Units comprising pumps and their driving means the working fluid being air, e.g. for ventilation the unit having provisions for automatically changing direction of output air by changing rotor axis direction, e.g. oscillating fans
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P8/00Arrangements for controlling dynamo-electric motors of the kind having motors rotating step by step
    • H02P8/14Arrangements for controlling speed or speed and torque
    • H02P8/20Arrangements for controlling speed or speed and torque characterised by bidirectional operation

Abstract

The embodiment of the application discloses control circuit, method, device, equipment and storage medium of an electric fan, wherein the control circuit comprises: a controller including M input terminals and S output terminals; an N-phase P-beat stepping motor; the master control circuit comprises N control modules, each control module comprises a triode, a protection resistor and a voltage division circuit, wherein: the first end of each voltage division circuit and the collector of the triode are connected with one output end of the stepping motor; the second end of each voltage division circuit is grounded with the emitter of the triode; the third end of each voltage division circuit and one end of the protection resistor are connected with the output end of the controller together, and the other end of the protection resistor is connected with the base electrode of the triode; the fourth end of each voltage division circuit is connected with the input end corresponding to the output end of the controller; and the fifth end of each voltage division circuit is connected with a first external power supply.

Description

Control circuit, control method, control device, equipment and medium of electric fan
Technical Field
The embodiment of the application relates to household technology, and relates to but is not limited to a control circuit, a control method, a control device, equipment and a storage medium of an electric fan.
Background
The current electric fan generally comprises a positioning system, an oscillating mechanism, a limiting device and the like. The limiting device is used for limiting the shaking range of the shaking mechanism, the positioning system can realize the positioning of the shaking mechanism when the shaking mechanism rotates in different angle ranges, and when the positioning system identifies that the shaking mechanism rotates to a shaking boundary (namely the boundary position of the shaking range), the shaking mechanism is controlled to rotate back.
After the existing electric fan is powered on, if the oscillating mechanism is at an oscillating boundary, the oscillating mechanism can be locked for a long time, and oscillating abnormal sound is easily caused for a long time, so that the user experience is influenced.
Disclosure of Invention
In view of this, embodiments of the present application provide a control circuit, a control method, an apparatus, a device, and a storage medium for an electric fan.
In a first aspect, an embodiment of the present application provides a control circuit for an electric fan, where the circuit includes: a controller including M input terminals and S output terminals; an N-phase P-beat stepping motor; the master control circuit comprises N control modules, each control module comprises a triode, a protection resistor and a voltage division circuit, wherein: the first end of each voltage division circuit and the collector of the triode are connected with one output end of the stepping motor; the second end of each voltage division circuit is grounded with the emitter of the triode; the third end of each voltage division circuit and one end of the protection resistor are connected with the output end of the controller together, and the other end of the protection resistor is connected with the base electrode of the triode; the fourth end of each voltage division circuit is connected with the input end corresponding to the output end of the controller; and the fifth end of each voltage division circuit is connected with a first external power supply.
In a second aspect, an embodiment of the present application provides a method for controlling an electric fan, where the method includes:
in a period of continuous four beats, sequentially controlling an ith output end to output a first voltage control signal in the ith beat of the stepping motor according to the sequence from a first phase to an Nth phase and from a first end to an Nth end, wherein the first voltage control signal respectively reaches a positive pin and a negative pin of a comparator through a protection resistor, a triode and a divider resistor, so that the comparator outputs a second voltage control signal;
controlling the ith output end to output a third voltage control signal in other beats of the stepping motor except the ith beat, wherein the second voltage control signal respectively reaches a positive pin and a negative pin of the comparator through a protective resistor, a triode and a divider resistor, an ith phase winding of the stepping motor generates reverse electromotive force in the (i + 2) th beat, so that the comparator outputs a fourth voltage control signal in the (i + 2) th beat, and the comparator outputs a fifth voltage control signal in the (i + 1) th beat and the (i + 3) th beat;
respectively acquiring a second voltage control signal received by an ith input end at the ith beat, a fourth voltage control signal received by the ith input end at the (i + 2) th beat and a fifth voltage control signal received by the ith input end at the (i + 1) th beat and the (i + 3) th beat;
respectively acquiring a first actual voltage control signal of an ith input end of the stepping motor at the ith beat, a second actual voltage control signal of the ith input end at the (i + 1) th beat, a third actual voltage control signal of the ith input end at the (i + 2) th beat and a fourth actual voltage control signal of the ith input end at the (i + 3) th beat;
comparing the first to fourth actual voltage control signals with the second, fourth, and fifth voltage control signals, respectively, that correspond to the beats;
and if the comparison result shows that the oscillating mechanism reaches an oscillating boundary, controlling the stepping motor to drive the oscillating mechanism to adjust the rotating direction.
In a third aspect, an embodiment of the present application provides a control apparatus for an electric fan, the apparatus including:
the first output module is used for sequentially controlling the ith output end to output a first voltage control signal in the ith beat of the stepping motor according to the sequence from the first phase to the Nth phase and from the first end to the Nth end in the continuous four beats as a period, and the first voltage control signal respectively reaches the positive pin and the negative pin of the comparator through the protection resistor, the triode and the divider resistor so that the comparator outputs a second voltage control signal;
the second output module is used for controlling the ith output end of the stepping motor to output a third voltage control signal in other beats except the ith beat, the second voltage control signal respectively reaches the positive pin and the negative pin of the comparator through a protective resistor, a triode and a divider resistor, the ith phase winding of the stepping motor generates reverse electromotive force in the (i + 2) th beat, so that the comparator outputs a fourth voltage control signal in the (i + 2) th beat, and the comparator outputs a fifth voltage control signal in the (i + 1) th beat and the (i + 3) th beat;
the first acquisition module is used for respectively acquiring a second voltage control signal received by the ith input end at the ith beat, a fourth voltage control signal received by the ith input end at the (i + 2) th beat and a fifth voltage control signal received by the ith input end at the (i + 1) th beat and the (i + 3) th beat;
a second obtaining module, configured to obtain a first actual voltage control signal at an ith input end of the stepping motor in a beat i, a second actual voltage control signal at an ith input end in a beat i +1, a third actual voltage control signal at an ith input end in a beat i +2, and a fourth actual voltage control signal at a beat i +3, respectively;
a comparison module, configured to compare the first to fourth actual voltage control signals with the second, fourth, and fifth voltage control signals that correspond to the beats, respectively;
and the adjusting module is used for controlling the stepping motor to drive the head shaking mechanism to adjust the rotating direction if the comparison result shows that the head shaking mechanism reaches the head shaking boundary.
In a fourth aspect, an embodiment of the present application provides a control device for an electric fan, including a memory and a processor, where the memory stores a computer program executable on the processor, and the processor implements the steps in the control method for the electric fan according to the embodiment of the present application when executing the computer program.
In a fifth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the control method of the electric fan according to the present application.
In the embodiment of the application, each phase winding of the stepping motor of the electric fan has a normal reverse electromotive force at a specific moment in a period, so that a corresponding input end of a controller of the electric fan can acquire a low-level pulse, and a shaking mechanism of the electric fan can also generate a low-level pulse when reaching a shaking boundary.
Drawings
Fig. 1 is a schematic circuit structure diagram of a control circuit of an electric fan according to an embodiment of the present disclosure;
fig. 2 is a schematic circuit diagram of a control circuit of another electric fan according to an embodiment of the present disclosure;
fig. 3 is a waveform diagram of an operation timing sequence of a stepping motor according to an embodiment of the present disclosure;
FIG. 4 is a waveform diagram of another operating timing sequence of the stepper motor according to the embodiment of the present application;
fig. 5 is a schematic circuit structure diagram of a control circuit of an electric fan according to another embodiment of the present disclosure;
fig. 6 is a schematic flowchart of a control method of an electric fan according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a control device of an electric fan according to an embodiment of the present application;
fig. 8 is a hardware entity diagram of a control device of an electric fan according to an embodiment of the present application.
Detailed Description
The technical solution of the present application is further elaborated below with reference to the drawings and the embodiments.
Fig. 1 is a schematic circuit structure diagram of a control circuit of an electric fan according to an embodiment of the present application, and referring to fig. 1, the circuit includes:
a controller 101 comprising M inputs and S outputs;
an N-phase P-beat stepping motor M1;
the main control circuit comprises N control modules 102, each control module 102 comprises a triode Q, a protection resistor R and a voltage division circuit 1021, wherein:
a first terminal 10211 of each of the voltage division circuits 1021 and a collector of the transistor Q are commonly connected to an output terminal of the stepping motor M1;
a second terminal 10212 of each of the voltage divider circuits 1021 is grounded to an emitter of the transistor Q;
a third terminal 10213 of each voltage division circuit 1021 and one end of the protection resistor R are commonly connected to the output terminal of the controller 101, and the other end of the protection resistor R is connected to the base of the triode Q;
a fourth terminal 10214 of each voltage divider circuit 1021 is connected to an input terminal corresponding to an output terminal of the controller 101;
the fifth terminal 10215 of each voltage divider circuit 1021 is connected to a first external power source V1.
In some embodiments, each of the voltage dividing circuits includes a voltage dividing resistor and a comparator, and the voltage dividing resistor includes a resistor Rd1、Rd2、Rd3、Rd4And Rd5Fig. 2 is a schematic circuit structure diagram of a control circuit of another electric fan according to an embodiment of the present application, referring to fig. 2, where:
the resistor Rd2One end of the triode and the collector of the triode are connected with the output end of the N-phase stepping motor;
the resistor Rd3One end of, the resistor Rd5And the emitter of the triode are grounded together;
the resistor Rd1One end of the protection resistor and one end of the protection resistor are connected with the output end of the controller together;
the resistor Rd1Another terminal of (3), the resistor Rd2Another terminal of (3), the resistor Rd3Are commonly connected to said comparatorCorrecting feet; the resistor Rd4And the resistor Rd5The other ends of the two-way switch are connected with the negative pin of the comparator together; the resistor Rd4The other end of the first power supply is connected with a first external power supply;
the output end of the comparator is connected with the input end of the controller, and the input end of the controller is the input end corresponding to the output end of the controller.
Wherein the resistance value of the protection resistor R may be 470 ohms (Ω), and the resistor Rd1May be 20 kilo-ohms (k Ω), and the resistance Rd2May be 86 kilo-ohms (k Ω), and the resistance Rd3May be 20 kilo-ohms (k Ω), and the resistance Rd4May be 15 kilo-ohms (k Ω), and the resistance Rd5The resistance of (c) may be 10 kilo-ohms (k Ω); the comparator may be of the type LM 324.
In the embodiment of the application, the comparator is added in the control circuit of the electric fan, so that the control circuit is simplified.
In some embodiments, the controller is configured to control an ith output terminal of the controller to output the first voltage control signal in an ith beat of the stepping motor in sequence according to an order of a first phase to an nth phase and a first end to an nth end in a cycle of consecutive beats P; wherein:
under the condition that the triode is driven to be conducted by the first voltage control signal through the protection resistor, the resistor Rd2And the resistance Rd3After being connected in parallel with the resistor Rd1In series, the resistance Rd4And the resistance Rd5In series connection, the voltage of the positive pin of the comparator is the resistor Rd1The resistor Rd2And the resistance Rd3The voltage of the junction, the voltage of the negative pin of the comparator is the resistor Rd4And the resistance Rd5The voltage of the connection part, the voltage of the positive pin of the comparator is larger than the voltage of the negative pin of the comparator, a second voltage control signal output by the comparator is input to the ith input end of the controller, and the ith phase winding of the stepping motor is electrified.
The N-phase P-beat stepping motor may be a four-phase four-beat stepping motor, or a four-phase eight-beat stepping motor, etc., and the four-phase four-beat stepping motor is taken as an example for description, the four phases may include an a phase, a B phase, a C phase, and a D phase, and the four beats may include a first beat, a second beat, a third beat, and a fourth beat; the duration for each beat may be 4 milliseconds (ms).
In a first beat (0-4 ms), the controller controls a 1 st output end A _ OUT end thereof to output a first voltage control signal of 5 volts (V); the first voltage control signal drives the triode Q to be conducted through the protective resistor R on one hand, so that an A-phase winding of the stepping motor is electrified, and the first voltage control signal drives the triode Q to be conducted through the resistor R on the other handd1Said resistance Rd2And the resistance Rd3The parallel voltage division is performed, and the resistor R is turned on due to the conduction of Q1d2And the resistance Rd3Equivalent parallel grounding with equivalent parallel resistance equal to Rd2*Rd3/(Rd2+Rd3) 20/(86+20) ═ 16.3K omega, and resistor Rd1The voltage divided after series connection is equal to (R)d2//Rd3)/(Rd1+(Rd2//Rd3) 16.3K/(20K +16.3K) a _ OUT 0.449 5V 2.25V, and a voltage of 2.25V is input to the positive pin of the comparator; the resistor Rd4And the resistance Rd5In series connection, the first external power supply V1 outputs 5V voltage through the resistor Rd4And the resistance Rd5Said resistance Rd5The voltage obtained after voltage division is equal to Rd5/(Rd5+Rd4) Since the voltage of 2V is input to the negative pin of the comparator, the voltage of the positive pin of the comparator is higher than the voltage of the negative pin of the comparator, and the comparator outputs a high level to be input to the a _ IN port of the controller.
In the second beat (4-8ms), the controller controls the 2 nd output end B _ OUT end thereof to output a first voltage control signal of 5 volts (V); the first voltage control signal drives the triode Q to be conducted through the protective resistor R on one hand, so that a B-phase winding of the stepping motor is electrified, and the first voltage control signal drives the triode Q to be conducted through the resistor R on the other handd1Said resistance Rd2And the resistance Rd3The parallel voltage division is performed, and the resistor R is turned on due to the conduction of Q1d2And the resistance Rd3Equivalent parallel grounding with equivalent parallel resistance equal to Rd2*Rd3/(Rd2+Rd3) 20/(86+20) ═ 16.3K omega, and resistor Rd1The voltage divided after series connection is equal to (R)d2//Rd3)/(Rd1+(Rd2//Rd3) 16.3K/(20K +16.3K) × B _ OUT ═ 0.449 × 5V ═ 2.25V, a voltage of 2.25V was input to the positive pin of the comparator; the resistor Rd4And the resistance Rd5In series connection, the first external power supply V1 outputs 5V voltage through the resistor Rd4And the resistance Rd5Said resistance Rd5The voltage obtained after voltage division is equal to Rd5/(Rd5+Rd4) Since the voltage of 2V is input to the negative pin of the comparator, the voltage of the positive pin of the comparator is higher than the voltage of the negative pin of the comparator, and the comparator outputs a high level to be input to the B _ IN port of the controller.
In the third beat (8-12 ms), the controller controls the 3 rd output end C _ OUT end thereof to output a first voltage control signal of 5 volts (V); the first voltage control signal drives the triode Q to be conducted through the protective resistor R on one hand, so that a C-phase winding of the stepping motor is electrified, and the first voltage control signal drives the triode Q to be conducted through the resistor R on the other handd1Said resistance Rd2And the resistance Rd3The parallel voltage division is performed, and the resistor R is turned on due to the conduction of Q1d2And the resistance Rd3Equivalent parallel grounding with equivalent parallel resistance equal to Rd2*Rd3/(Rd2+Rd3) 20/(86+20) ═ 16.3K omega, and resistor Rd1The voltage divided after series connection is equal to (R)d2//Rd3)/(Rd1+(Rd2//Rd3) 16.3K/(20K +16.3K) × C _ OUT ═ 0.449 × 5V ═ 2.25V, a voltage of 2.25V was input to the positive pin of the comparator; the resistor Rd4And the resistance Rd5In series connection, the first external power supply V1 outputs 5V voltage through the resistor Rd4And the resistance Rd5Said resistance Rd5Obtained after partial pressureVoltage equal to Rd5/(Rd5+Rd4) Since the voltage of 2V is input to the negative pin of the comparator, the voltage of the positive pin of the comparator is higher than the voltage of the negative pin of the comparator, and the comparator outputs a high level to be input to the C _ IN port of the controller.
In the fourth beat (12-16 ms), the controller controls the 4 th output end D _ OUT end thereof to output a first voltage control signal of 5 volts (V); the first voltage control signal drives the triode Q to be conducted through the protection resistor R on one hand, so that a D-phase winding of the stepping motor is electrified, and the first voltage control signal drives the triode Q to be conducted through the resistor R on the other handd1Said resistance Rd2And the resistance Rd3The parallel voltage division is performed, and the resistor R is turned on due to the conduction of Q1d2And the resistance Rd3Equivalent parallel grounding with equivalent parallel resistance equal to Rd2*Rd3/(Rd2+Rd3) 20/(86+20) ═ 16.3K omega, and resistor Rd1The voltage divided after series connection is equal to (R)d2//Rd3)/(Rd1+(Rd2//Rd3) 16.3K/(20K +16.3K) × D _ OUT ═ 0.449 × 5V ═ 2.25V, a voltage of 2.25V was input to the positive pin of the comparator; the resistor Rd4And the resistance Rd5In series connection, the first external power supply V1 outputs 5V voltage through the resistor Rd4And the resistance Rd5Said resistance Rd5The voltage obtained after voltage division is equal to Rd5/(Rd5+Rd4) Since the voltage of 2V is input to the negative pin of the comparator, the voltage of the positive pin of the comparator is higher than the voltage of the negative pin of the comparator, and the comparator outputs a high level to be input to the D _ IN port of the controller.
In some embodiments, the controller is further configured to control an ith output terminal of the controller to output a third voltage control signal in the other beats except the ith beat of the stepping motor in sequence according to the sequence from the first phase to the nth phase and from the first end to the nth end in a period of consecutive P beats;
the triode is cut off, and the second external power supply outputs a fourth voltage control signal to the stepping motorWhen the i-th phase winding of the motor is electrified, the resistor Rd1And the resistance Rd3After being connected in parallel with the resistor Rd2In series, the resistance Rd4And the resistance Rd5In series connection, the voltage of the positive pin of the comparator is the resistor Rd1The resistor Rd2And the resistance Rd3The voltage of the junction, the voltage of the negative pin of the comparator is the resistor Rd4And the resistance Rd5The voltage of the connection, the voltage of the positive pin of the comparator is larger than the voltage of the negative pin of the comparator, and a fifth voltage control signal output by the comparator is input to the ith input end of the controller.
Referring to fig. 2, in the second beat to the fourth beat (4ms to 16ms), the controller controls the a _ OUT terminal to output a low level, and the transistor Q is turned off. The second external power supply V2 outputs 24V voltage, and the 24V voltage passes through the resistor R by the A-phase winding of the stepping motord2And the resistance Rd3And the resistance Rd1A parallel ground voltage divider with an equivalent parallel resistance equal to Rd3*Rd1/(Rd3+Rd1) 20 × 20/(20+20) ═ 10K Ω, and a resistor Rd2The voltage divided after series connection is equal to (R)d1//Rd3)/(Rd2+(Rd1//Rd3) 10K/(86K +10K) 24V 0.104V 2.50V, and a voltage of 2.5V is input to the positive pin of the comparator; the resistor Rd4And the resistance Rd5In series connection, the first external power supply V1 outputs 5V voltage through the resistor Rd4And the resistance Rd5Said resistance Rd5The voltage obtained after voltage division is equal to Rd5/(Rd5+Rd4) The voltage of 2V is input to the negative pin of the comparator, so the voltage of the positive pin of the comparator is higher than that of the negative pin of the comparator, and the comparator still outputs high level and is input to the a _ IN port of the controller.
In the first beat (0-4 ms), the third beat (8-12 ms) and the fourth beat (12-16 ms), the controller controls the B _ OUT end to output low level, and the triode Q is cut off. The second external power supply V2 outputs 24V voltage, and the 24V voltage passes through the stepsThe B-phase winding of the motor passes through the resistor Rd2And the resistance Rd3And the resistance Rd1A parallel ground voltage divider with an equivalent parallel resistance equal to Rd3*Rd1/(Rd3+Rd1) 20 × 20/(20+20) ═ 10K Ω, and a resistor Rd2The voltage divided after series connection is equal to (R)d1//Rd3)/(Rd2+(Rd1//Rd3) 10K/(86K +10K) 24V 0.104V 2.50V, and a voltage of 2.5V is input to the positive pin of the comparator; the resistor Rd4And the resistance Rd5In series connection, the first external power supply V1 outputs 5V voltage through the resistor Rd4And the resistance Rd5Said resistance Rd5The voltage obtained after voltage division is equal to Rd5/(Rd5+Rd4) The voltage of 2V is input to the negative pin of the comparator, so the voltage of the positive pin of the comparator is higher than that of the negative pin of the comparator, and the comparator still outputs high level and is input to the B _ IN port of the controller.
In the first beat (0-4 ms), the second beat (4-8ms) and the fourth beat (12-16 ms), the controller controls the C _ OUT end to output low level, and the triode Q is cut off. The second external power supply V2 outputs 24V voltage, and the 24V voltage passes through the resistor R by the C-phase winding of the stepping motord2And the resistance Rd3And the resistance Rd1A parallel ground voltage divider with an equivalent parallel resistance equal to Rd3*Rd1/(Rd3+Rd1) 20 × 20/(20+20) ═ 10K Ω, and a resistor Rd2The voltage divided after series connection is equal to (R)d1//Rd3)/(Rd2+(Rd1//Rd3) 10K/(86K +10K) 24V 0.104V 2.50V, and a voltage of 2.5V is input to the positive pin of the comparator; the resistor Rd4And the resistance Rd5In series connection, the first external power supply V1 outputs 5V voltage through the resistor Rd4And the resistance Rd5Said resistance Rd5The voltage obtained after voltage division is equal to Rd5/(Rd5+Rd4) V10/(10 +15) × 5 2V, a voltage of 2V is inputted to the negative leg of the comparator, and therefore, the voltage of the positive leg of the comparator is higher than the voltage of the negative leg of the comparatorThe pin voltage, the comparator still outputs high and is input to the C _ IN port of the controller.
In the first beat to the third beat (0-12 ms), the controller controls the D _ OUT end to output a low level, and the triode Q is cut off. The second external power supply V2 outputs 24V voltage, and the 24V voltage passes through the resistor R by the D-phase winding of the stepping motord2And the resistance Rd3And the resistance Rd1A parallel ground voltage divider with an equivalent parallel resistance equal to Rd3*Rd1/(Rd3+Rd1) 20 × 20/(20+20) ═ 10K Ω, and a resistor Rd2The voltage divided after series connection is equal to (R)d1//Rd3)/(Rd2+(Rd1//Rd3) 10K/(86K +10K) 24V 0.104V 2.50V, and a voltage of 2.5V is input to the positive pin of the comparator; the resistor Rd4And the resistance Rd5In series connection, the first external power supply V1 outputs 5V voltage through the resistor Rd4And the resistance Rd5Said resistance Rd5The voltage obtained after voltage division is equal to Rd5/(Rd5+Rd4) The voltage of 2V is input to the negative pin of the comparator, so the voltage of the positive pin of the comparator is higher than that of the negative pin of the comparator, and the comparator still outputs high level and is input to the D _ IN port of the controller.
In some embodiments, in the i +2 th beat of the stepping motor, in a case where the i-th phase winding of the stepping motor generates an opposite electromotive force, a voltage of a positive leg of the comparator is smaller than a voltage of a negative leg of the comparator, and the sixth voltage control signal output by the comparator is input to the i-th input terminal of the controller.
When the third beat of the stepping motor is ended and the fourth beat (at 12ms) is entered, the C-phase winding is turned off, the a-phase winding has a reverse electromotive force, and when the reverse electromotive force is less than 79% of the 24V voltage, the voltage divided to the positive leg of the comparator changes (R is 18.96V) when the 24V 79% is 18.96Vd1//Rd3)/(Rd2+(Rd1//Rd3) 10K/(86K +10K) 18.96V 0.104 18.96V 1.975V, and therefore the voltage of the positive leg of the comparator is lowIN the voltage of the negative pin of the comparator, the comparator outputs a low level and inputs the low level to the a _ IN port of the controller, fig. 3 is a waveform diagram of the operation timing of the stepping motor according to the embodiment of the present application, and referring to fig. 3, the a _ IN port can obtain a low level pulse IN 12 ms.
When the fourth beat of the stepping motor is completed and the fifth beat (at 16ms) is entered, since the fourth beat is one cycle, the fifth beat is the new first beat, the D-phase winding is turned off, the B-phase winding has a reverse electromotive force, and when the reverse electromotive force is less than 79% of the 24V voltage, the 24V 79% becomes 18.96V, and the voltage divided to the positive leg of the comparator is changed (R is equal to 18.96V)d1//Rd3)/(Rd2+(Rd1//Rd3) 10K/(86K +10K) × 18.96 ═ 0.104 × 18.96V ═ 1.975V, therefore, the voltage of the positive pin of the comparator is lower than the voltage of the negative pin of the comparator, the comparator outputs low level and inputs it to the B _ IN port of the controller, fig. 3 is a waveform diagram of the operation timing of the stepping motor provided by the embodiment of the present application, and referring to fig. 3, the B _ IN port can obtain a pulse of low level IN 0ms and 16 ms.
When the fifth beat of the stepping motor is completed and the sixth beat (at 20 ms) is entered, the a-phase winding is turned off, the C-phase winding has a reverse electromotive force, and when the reverse electromotive force is less than 79% of the 24V voltage, the voltage divided to the positive leg of the comparator changes (R is 18.96V) when the 24V 79% is 18.96Vd1//Rd3)/(Rd2+(Rd1//Rd3) 10K/(86K +10K) × 18.96 ═ 0.104 × 18.96V ═ 1.975V, therefore, the voltage of the positive pin of the comparator is lower than the voltage of the negative pin of the comparator, the comparator outputs low level and inputs the low level to the C _ IN port of the controller, fig. 3 is a waveform diagram of the operation timing of the stepping motor provided by the embodiment of the present application, and referring to fig. 3, the C _ IN port can obtain a pulse of low level IN 4ms and 20 ms.
When the sixth beat of the stepping motor is completed and the seventh beat (at 24 ms) is entered, the phase B winding is turned off, the phase D winding has a reverse electromotive force, and when the reverse electromotive force is less than 79% of the 24V voltage, the voltage divided to the positive leg of the comparator changes (R is 18.96V) when 24V 79% is 18.96Vd1//Rd3)/(Rd2+(Rd1//Rd3) 10K/(86K +10K) × 18.96 ═ 0.104 × 18.96V ═ 1.975V, therefore, the voltage of the positive pin of the comparator is lower than the voltage of the negative pin of the comparator, the comparator outputs low level and inputs it to the D _ IN port of the controller, fig. 3 is a waveform diagram of the operation timing of the stepping motor provided by the embodiment of the present application, and referring to fig. 3, the D _ IN port can obtain a pulse of low level IN the 8 th ms and the 24 th ms.
In some embodiments, in the i +2 th beat of the stepping motor, in a case where the i-th phase winding of the stepping motor does not generate a reverse electromotive force, the i-th phase winding of the N-phase P-beat stepping motor is open.
Wherein, referring to fig. 3, in the case where the a-phase winding of the stepping motor does not generate the reverse electromotive force at the 12 th ms, it is explained that the a-phase winding of the stepping motor is open-circuited; in the case that the B-phase winding of the stepping motor does not generate reverse electromotive force at 0ms or 16ms, the B-phase winding of the stepping motor is open-circuited; in the case that the C-phase winding of the stepping motor does not generate the reverse electromotive force at the 4 th ms, the C-phase winding of the stepping motor is explained to be open; in the case where the D-phase winding of the stepping motor does not generate the reverse electromotive force at the 8 th ms, the D-phase winding of the stepping motor is explained to be open.
In the embodiment of the application, whether the winding is open-circuited is determined according to whether the winding of the stepping motor generates the reverse electromotive force at a specific beat, so that the state of the winding of the stepping motor can be determined more conveniently and accurately.
In some embodiments, in the other beats except for the (i + 2) th beat of the stepping motor, the N-phase P-beat stepping motor drives the oscillating mechanism of the electric fan to reach the boundary position in the case that the i-th phase winding of the stepping motor generates the reverse electromotive force.
In the embodiment of the application, whether the head shaking mechanism reaches the head shaking boundary is determined according to whether other beats except the specific beat of the winding of the stepping motor generate the reverse electromotive force, so that whether the head shaking mechanism reaches the boundary position can be determined more conveniently and accurately.
Fig. 4 is a waveform diagram of another operation timing sequence of a stepping motor according to an embodiment of the present invention, referring to fig. 4, a phase a winding of the stepping motor also generates an opposite phase electromotive force at a position of 8ms except 12ms, and a phase B winding of the stepping motor also generates an opposite phase electromotive force at a position of 11ms except 0ms and 12ms, since a driving motor of the oscillating mechanism is generally a four-phase stepping motor, if a number of electrode pairs of a stator of the stepping motor is 2 times of a number of electrode pairs of a rotor, the stepping motor will "reverse", and when the oscillating mechanism is locked, the winding of the stepping motor will output an opposite phase voltage as shown in fig. 4, so that it can be determined that the oscillating mechanism of the electric fan reaches one boundary position, and the oscillating mechanism is controlled to rotate to another boundary position.
In some embodiments, each of the voltage dividing circuits includes a voltage dividing resistor and a comparator, and the voltage dividing resistor includes a resistor Rd2、Rd3、Rd4And Rd5Fig. 2 is a schematic circuit structure diagram of a control circuit of an electric fan according to an embodiment of the present application, referring to fig. 2, where:
each of the resistors Rd2One end of the triode and the collector of the triode are connected with the output end of the N-phase stepping motor;
each of the resistors Rd3One end of, the resistor Rd5And the emitter of the triode are grounded together;
one end of each protection resistor is connected with the output end of the controller;
each of the resistors Rd2Another terminal of (3), the resistor Rd3The other ends of the two-way switch are connected with a positive pin of the comparator together; each of the resistors Rd4And the resistor Rd5The other ends of the two-way switch are connected with the negative pin of the comparator together;
the output end of the comparator is connected with the input end of the controller, and the input end of the controller is the input end corresponding to the output end of the controller;
each of the resistors Rd4The other end of the first power supply is connected with a first external power supply; the other end of each protective resistor is connected with the base electrode of the triode.
Wherein the securityThe resistance of the protection resistor R may be 470 ohms (Ω), the resistor Rd2May be 86 kilo-ohms (k Ω), and the resistance Rd3May be 10 kilo-ohms (k Ω), and the resistance Rd4May be 15 kilo-ohms (k Ω), and the resistance Rd5The resistance of (c) may be 10 kilo-ohms (k Ω); the comparator may be of the type LM 324.
The control principle of this application embodiment is the same as above-mentioned embodiment, and no longer repeated, IN this application embodiment, after the first beat to the fourth beat output of step motor, 2 normal pulses can be received to controller MCU U1's A _ IN port, B _ IN port, C _ IN port, D _ IN port, represent that the motor normally operates, if receive 1 or do not receive then represent that the motor winding is open a way, if receive more than 3 (including three) then represent that the motor has taken place the stall, reached the border position of shaking the head, set up current angle as the border angle, the location is accomplished.
In the embodiment of the application, whether the winding is open-circuited is determined according to whether the winding of the stepping motor generates the reverse electromotive force at a specific beat, so that the state of the winding of the stepping motor can be determined more conveniently and accurately; whether the oscillating mechanism reaches the oscillating boundary is determined according to whether other beats except the specific beat of the winding of the stepping motor generate reverse electromotive force, so that whether the oscillating mechanism reaches the boundary position can be determined more conveniently and accurately.
In the related technology, a stepping motor is used for connecting a line to monitor the reverse voltage of the motor during rotation, a limiting device is arranged at the oscillating boundary of an oscillating mechanism of a common electric fan, and the oscillating mechanism is limited by the limiting device after reaching the oscillating boundary and cannot exceed the physical oscillating range limited by the oscillating mechanism. The drive motor of the oscillating mechanism is typically a four-phase stepper motor.
Fig. 5 is a schematic circuit structure diagram of a control circuit of an electric fan according to an embodiment of the present application, referring to fig. 5, after a controller outputs a driving pulse, a stepping motor rotates by an angle, when an oscillating mechanism reaches an oscillating boundary, the oscillating mechanism is locked, the stepping motor cannot continue to rotate, a continuous output beat motor reverses, a motor winding outputs an inverse voltage, and it can be determined that the oscillating mechanism reaches the boundary. The controller shakes the head according to the current angle and the shaking angle set by the user, and the shaking angle can be positioned without a Hall sensor and a magnet. The following is an operation process based on the operating principle of a four-phase stepping motor, assuming that 4mS is output per beat, taking 4 beats as an example:
first beat (0 to 4 mS): the A _ OUT port of the controller MCU U1 outputs 5V high level, a triode Q1 is driven to be conducted through a protective resistor R1, and the phase A winding of the stepping motor is electrified and rotates for an angle; the other path of the voltage is divided by a voltage dividing resistor R2, a voltage dividing resistor R3 and a voltage dividing resistor R4 are connected in parallel, a transistor Q1 is turned on, so the voltage dividing resistor R3 and the voltage dividing resistor R4 are equivalently connected in parallel to the ground, the equivalent parallel resistance of the voltage dividing resistor R3 and the voltage dividing resistor R4 is equal to R3R 4/(R3+ R4) ═ 86/(86 +20) ═ 20/(86+20) ═ 16.3K, after the 5V high level output from the a _ OUT port is connected in parallel by the voltage dividing resistor R2, the voltage dividing resistor R3 and the voltage dividing resistor R4, the equivalent parallel voltage of the voltage dividing resistor R3 and the voltage dividing resistor R4 after voltage division is equal to (R3// R4)/(R2+ (R3/R4)) ═ 16.3K/(20K) + K) ═ a _ OUT ═ 0.449 × 5V × 2.25V, and the voltage is input to the positive terminal of the comparator; the 5V voltage output by the first external power supply is divided by the voltage dividing resistor R5 and the voltage dividing resistor R6, the divided voltage of the voltage dividing resistor R6 is equal to R6/(R6+ R5) × V10/(10 +15) × 5 ═ 2V, and the divided voltage is input to the negative terminal of the comparator, so that the positive terminal voltage 2.25V of the comparator is higher than the voltage 2V at the negative terminal of the machine, and the comparator outputs a high level and inputs the high level to the a _ IN port of the controller MCU.
The a _ OUT of the second to fourth beats (4 to 16mS) controller MCU U1 outputs a low level and the transistor Q1 is turned off. The 24V voltage output by the second external power supply is divided in parallel with a voltage dividing resistor R4 and a voltage dividing resistor R2 through a motor a phase winding via a voltage dividing resistor R3, a parallel equivalent resistor R4R 2/(R4+ R2) of the voltage dividing resistor R4 and the voltage dividing resistor R2 is 20/(20+20) 10K, after the 24V voltage is divided in parallel by a voltage dividing resistor R3, a voltage dividing resistor R4 and a voltage dividing resistor R2, the equivalent parallel voltage of the divided voltage dividing resistor R4 and the voltage dividing resistor R2 after voltage division is equal to (R2// R4)/(R3+ (R2// R4)) (10K/(86K +10K) 24 is 0.104V 24V 2.50V), and the divided voltage is input to the positive terminal of the comparator. The positive terminal voltage 2.50V of the comparator is higher than the negative terminal voltage 2V of the comparator, so the comparator still outputs a high level and inputs to the a _ IN port of the controller MCU. When the phase a winding has a normal back electromotive force at 12mS (when the phase C winding is disconnected), and when the back electromotive force is less than 79%, and 24V × 79% is 18.96V, the voltage is 1.97V after a voltage division ratio of 0.104, and the voltage is input to the positive terminal of the comparator, which is lower than the voltage 2V at the negative terminal of the comparator, so that the comparator outputs a low level and inputs the low level to the a _ IN port of the controller MCU for processing, and when the back electromotive force is higher than 80% (adjusting the resistances of the voltage division resistor R5 and the voltage division resistor R6, other ratios such as 70% may be selected), the comparator outputs a high level. When the a _ OUT port of the controller MCU U1 outputs a low level and the reverse phase voltage of the motor winding is less than 80%, referring to fig. 3, the a _ IN of the controller MCU U1 may obtain 1 pulse of a low level, and a low level may be obtained IN one period without stalling.
Second beat (4 to 8 mS): a B _ OUT port of the controller MCU U1 outputs a 5V high level, a triode Q2 is driven to be conducted through a divider resistor R7, and a B-phase winding of the stepping motor is electrified and rotates for an angle; the other path of the voltage is divided by a voltage dividing resistor R8, a voltage dividing resistor R9 and a voltage dividing resistor R10 are connected in parallel, and a transistor Q2 is turned on, so that the voltage dividing resistor R9 and the voltage dividing resistor R10 are equivalently connected in parallel to the ground, the equivalent parallel resistance of the voltage dividing resistor R9 and the voltage dividing resistor R10 is equal to R9R 10/(R9+ R10) ═ 86/(20 +20) ═ 16.3K, after the 5V high level output from the B _ OUT port passes through the parallel connection formed by the voltage dividing resistor R8, the voltage dividing resistor R9 and the voltage dividing resistor R10, the voltage at the ends of the voltage dividing resistor R9 and the voltage dividing resistor R10 after voltage division is equal to (R9// R10)/(R8+ (R9/R10)) ═ 16.3K/(20K +16.3K) ═ B _ OUT ═ 0.449 ═ 5V ═ 2.25V, and the voltage is input to the positive terminal of the comparator; the voltage of 5V output by the first external power supply is divided by the voltage dividing resistor R11 and the voltage dividing resistor R12, the voltage at the ends of the voltage dividing resistor R11 and the voltage dividing resistor R12 after voltage division is equal to R12/(R12+ R11) × V ═ 10/(10+15) × 5 ═ 2V, and the voltage is input to the negative terminal of the comparator, so that the voltage of 2.25V at the positive terminal of the comparator is higher than the voltage of 2V at the negative terminal of the comparator, and the comparator outputs a high level and inputs the high level to the B _ IN port of the MCU.
First beat (0 to 4mS), third beat (8 to 12mS), and fourth beat (12 to 16 mS): the B _ OUT output of the controller MCU U1 is low and the transistor Q2 is off. The 24V voltage output by the second external power supply is divided in parallel through a motor B phase winding and a voltage dividing resistor R9, a voltage dividing resistor R10 and a voltage dividing resistor R8, a parallel equivalent resistor R10R 8/(R10+ R8) is 20 × 20/(20+20) ═ 10K, after the 24V voltage is divided in parallel through a voltage dividing resistor R9, a voltage dividing resistor R10 and a voltage dividing resistor R8, the voltage at the ends of the voltage dividing resistor R10 and the voltage dividing resistor R8 after voltage division is equal to (R8// R10)/(R9+ (R8// R10))/10K/(86K +10K) × 24 is 0.104 × 24V is 2.50V, and the voltage is input to the positive terminal of the comparator. The positive terminal voltage 2.50V of the comparator is higher than the negative terminal voltage 2V of the comparator, so the comparator still outputs a high level and inputs to the B _ IN port of the MCU. When the phase-B winding has a normal reverse potential at 16mS (when the phase-D winding is disconnected), when the reverse potential is less than 79%, and 24V is 18.96V, the voltage is 1.97V after the voltage division ratio of 0.104, the voltage is input to the positive end of the comparator and is less than the voltage of the negative end of the machine by 2V, so that the comparator outputs a low level and is input to a B _ IN port of the controller MCU for processing, and when the reverse potential is higher than 80%, the comparator outputs a high level. When the B _ OUT port of the controller MCU U1 outputs a low level and the reverse phase voltage of the motor winding is less than 80%, referring to fig. 3, the B _ IN of the controller MCU U1 may obtain 1 pulse of a low level, and a low level may be obtained IN one period without stalling.
Third beat (8 to 12 mS): a C _ OUT port of the controller MCU U1 outputs a 5V high level, a triode Q3 is driven to be conducted through a divider resistor R13, and a C-phase winding of the stepping motor is electrified and rotates for an angle; the other path of the voltage is divided by a voltage dividing resistor R14, a voltage dividing resistor R15 and a voltage dividing resistor R16 are connected in parallel, and a transistor Q3 is turned on, so that the voltage dividing resistor R15 and the voltage dividing resistor R16 are equivalently connected in parallel to ground, the equivalent parallel resistance of the voltage dividing resistor R15 and the voltage dividing resistor R16 is equal to R15R 16/(R15+ R16) ═ 86/(20 +20) ═ 16.3K, after the 5V high level output from the C _ OUT port is connected in parallel by the voltage dividing resistor R14, the voltage dividing resistor R15 and the voltage dividing resistor R16, the voltage at the ends of the voltage dividing resistor R15 and the voltage dividing resistor R16 after voltage division is equal to (R15// R16)/(R14+ (R15/R16)) ═ 16.3K/(20K +16.3K) ═ C _ OUT ═ 0.449 ═ 5V ═ 2.25V, and the voltage is input to the positive terminal of the comparator; the voltage of 5V output by the first external power supply is divided by the voltage dividing resistor R17 and the voltage dividing resistor R18, and the divided voltages at the ends of the voltage dividing resistor R17 and the voltage dividing resistor R18 are equal to R18/(R18+ R17) × V ═ 10/(10+15) × 5 ═ 2V, and are input to the negative terminal of the comparator, so that the voltage of 2.25V at the positive terminal of the comparator is higher than the voltage of 2V at the negative terminal of the comparator, and the comparator outputs a high level and inputs the high level to the C _ IN port of the controller MCU.
First beat (0 to 4mS), second beat (4-8mS) and fourth beat (12 to 16 mS): the C _ OUT output of the controller MCU U1 is low and the transistor Q3 is turned off. The voltage of the second external power supply 24V is divided in parallel with a voltage dividing resistor R16 and a voltage dividing resistor R14 through a voltage dividing resistor R15 by a motor C phase winding, the parallel equivalent resistor R16 × R14/(R16+ R14) ═ 20 × 20/(20+20) ═ 10K, after the voltage of the 24V is divided in parallel through a voltage dividing resistor R15, a voltage dividing resistor R16 and a voltage dividing resistor R14, the voltage at the ends of the voltage dividing resistor R16 and the voltage dividing resistor R14 after voltage division is equal to (R14// R16)/(R15+ (R14// R16)) < 10K/(86K +10K) × 24 ═ 0.104 × 24V ═ 2.50V, and the voltage is input to the positive terminal of the comparator. The positive terminal voltage 2.50V of the comparator is higher than the negative terminal voltage 2V of the comparator, so the comparator still outputs a high level and inputs to the C _ IN port of the MCU. When the C-phase winding has a normal reverse potential at 4mS (when the A-phase winding is disconnected), when the reverse potential is less than 79%, and 24V is 18.96V, the voltage is 1.97V after the voltage division ratio of 0.104, the voltage is input to the positive end of the comparator and is less than the voltage of the negative end of the machine by 2V, so that the comparator outputs a low level and is input to the C _ IN port of the MCU for processing, and when the reverse potential is higher than 80%, the comparator outputs a high level. When the C _ OUT port of the MCU U1 outputs a low level, referring to fig. 3, when the reverse phase voltage of the motor winding is less than 80%, the C _ IN of the MCU U1 may obtain 1 pulse of a low level, and a low level may be obtained IN one cycle without stalling.
Fourth beat (12 to 16 mS): a D _ OUT port of the controller MCU U1 outputs a 5V high level, a triode Q4 is driven to be conducted through a divider resistor R19, and a D-phase winding of the stepping motor is electrified and rotates for an angle; the other path of the voltage is divided by a voltage dividing resistor R20, a voltage dividing resistor R21 and a voltage dividing resistor R22 are connected in parallel, and a transistor Q4 is turned on, so that the voltage dividing resistor R21 and the voltage dividing resistor R22 are equivalently connected in parallel to the ground, the equivalent parallel resistance of the voltage dividing resistor R21 and the voltage dividing resistor R22 is equal to R21R 22/(R21+ R22) ═ 86/(86 +20) ═ 16.3K, after the 5V high level output from the D _ OUT port passes through the parallel connection formed by the voltage dividing resistor R20, the voltage dividing resistor R21 and the voltage dividing resistor R22, the voltage at the ends of the voltage dividing resistor R21 and the voltage dividing resistor R22 after voltage division is equal to (R21// R22)/(R20+ (R21/R22)) ═ 16.3K/(20K +16.3K) ═ D _ OUT ═ 0.449 ═ 5V ═ 2.25V, and the voltage is input to the positive terminal of the comparator; the 5V voltage is divided by R23 and R24, and the divided voltage is R24/(R24+ R23) × V ═ 10/(10+15) × 5 ═ 2V, and is input to the negative terminal of the comparator. Therefore, the voltage of the positive terminal of the comparator 2.25V is higher than the voltage of the negative terminal of the comparator 2V, so the comparator outputs a high level and is input to the D _ IN port of the MCU.
First to third beats (0 to 12 mS): the D _ OUT of the controller MCU U1 outputs a low level and the transistor Q4 is turned off. The 24V voltage output by the second external power supply is divided in parallel through a motor D phase winding by a voltage dividing resistor R21, a voltage dividing resistor R22 and a voltage dividing resistor R20, a parallel equivalent resistor R22R 20/(R22+ R20) is 20 × 20/(20+20) ═ 10K, after the 24V voltage is divided in parallel through a voltage dividing resistor R21, a voltage dividing resistor R22 and a voltage dividing resistor R20, the voltage at the ends of the voltage dividing resistor R22 and the voltage dividing resistor R20 after voltage division is equal to (R20// R22)/(R21+ (R20// R22))/10K/(86K +10K) × 24 is 0.104 × 24V is 2.50V, and the voltage is input to the positive terminal of the comparator. The positive terminal voltage 2.50V of the comparator is higher than the negative terminal voltage 2V of the comparator, so the comparator still outputs a high level and inputs to the D _ IN port of the MCU. When the phase-reversed potential of the D-phase winding is 8mS (when the phase-B winding is disconnected), when the phase-reversed potential is less than 79%, and 24V is 18.96V, the voltage is 1.97V after the voltage division ratio of 0.104, the voltage is input to the positive end of the comparator and is less than the voltage of the negative end of the machine by 2V, so that the comparator outputs low level and is input to a D _ IN port of the controller MCU for processing, and when the phase-reversed potential is higher than 80%, the comparator outputs high level. When the D _ OUT port of the controller MCU U1 outputs a low level, referring to fig. 3, when the reverse phase voltage of the motor winding is less than 80%, the D _ IN of the controller MCU U1 may obtain 1 pulse of a low level, and a low level may be obtained IN one period without stalling.
After the outputs of the first to fourth beats are obtained, the a _ IN, B _ IN, C _ IN and D _ IN of the controller MCU U1 receive a normal pulse to indicate that the motor is operating normally, and if not, the winding of the motor is open-circuited. Referring to fig. 4, if more than 2 motors are received, the motor is locked, the swing boundary position is reached, the current angle is set as the boundary angle, and the positioning is completed.
The embodiment of the application further provides another control circuit, the resistance values of a divider resistor R2, a divider resistor R8, a divider resistor R14 and a divider resistor R20, which are not included IN the control circuit, are changed to 10K instead of the resistance values of the divider resistor R4, the divider resistor R10, the divider resistor R16 and the divider resistor R22, the control principle is the same as above, and details are not repeated, after the first beat to the fourth beat are output, the a _ IN port, the B _ IN port, the C _ IN port and the D _ IN port of the controller MCU U1 receive 2 normal pulses to indicate that the motor normally operates, if 1 or no pulse is received, the motor winding is open-circuited, if more than 3 (including three) pulses are received, the motor is blocked, the swing head boundary position is reached, the current angle is set as the boundary angle, and the positioning is completed.
In the related art, the electric fan needs to be reset at an absolute position (0 degree) in advance to realize swinging at accurate angles of 30 degrees, 60 degrees, 90 degrees, 120 degrees and the like, in the resetting process, the swinging mechanism needs different resetting time at different positions, the worst position possibly needs 15 seconds of locked rotor, the resetting time is very long, and the requirements of users cannot be well met. Meanwhile, a reset system consisting of the Hall sensor and the magnet is required, the circuit is complex, the structure is also complex, and the cost is high.
The output port of the MCU (controller) in the embodiment of the application is used for outputting and driving the motor to rotate, the comparator is controlled to output a high level (the level is unchanged), a normal feedback pulse can be received if the counter electromotive force of the motor winding is less than 80% when the low level is output, and the rotation blockage is indicated if more than 2 pulses are received. The MCU also integrates the function of a comparator, and the comparison can be carried out by utilizing the internal comparator of the MUC, so that the peripheral circuit is simplified.
Fig. 6 is a control method of an electric fan according to an embodiment of the present disclosure, and referring to fig. 6, the method includes:
step 602: in a period of continuous four beats, sequentially controlling an ith output end to output a first voltage control signal in the ith beat of the stepping motor according to the sequence from a first phase to an Nth phase and from a first end to an Nth end, wherein the first voltage control signal respectively reaches a positive pin and a negative pin of a comparator through a protection resistor, a triode and a divider resistor, so that the comparator outputs a second voltage control signal;
step 604: controlling the ith output end to output a third voltage control signal in other beats of the stepping motor except the ith beat, wherein the second voltage control signal respectively reaches a positive pin and a negative pin of the comparator through a protective resistor, a triode and a divider resistor, an ith phase winding of the stepping motor generates reverse electromotive force in the (i + 2) th beat, so that the comparator outputs a fourth voltage control signal in the (i + 2) th beat, and the comparator outputs a fifth voltage control signal in the (i + 1) th beat and the (i + 3) th beat;
step 606: respectively acquiring a second voltage control signal received by an ith input end at the ith beat, a fourth voltage control signal received by the ith input end at the (i + 2) th beat and a fifth voltage control signal received by the ith input end at the (i + 1) th beat and the (i + 3) th beat;
wherein, the ith beat may be one of first to fourth beats, the ith output terminal may be one of first to fourth output terminals, the first to fourth output terminals may be an a _ OUT terminal, a B _ OUT terminal, a C _ OUT terminal and a D _ OUT terminal IN this order, the ith input terminal may be one of first to fourth input terminals, the first to fourth input terminals may be an a _ IN terminal, a B _ IN terminal, a C _ IN terminal and a D _ IN terminal IN this order, the first voltage control signal may be a 5V high-level voltage control signal, and the second voltage control signal may be a high-level voltage control signal; the third voltage control signal may be a low-level voltage control signal, the fourth voltage control signal may be a low-level voltage control signal, and the fifth voltage control signal may be a high-level voltage control signal.
In one embodiment, the controller outputs a 5V high level at the a _ OUT terminal in the first beat, the 5V high level respectively reaches a positive pin and a negative pin of the comparator through the protection resistor, the triode and the divider resistor, so that the voltage of the positive pin of the comparator is greater than that of the negative pin, and the comparator outputs a high level.
Correspondingly, the controller controls the A _ OUT terminal to output a low level in the second beat to the fourth beat, the second external power supply outputs a 24V voltage, the voltage of the positive pin of the comparator is smaller than that of the negative pin due to the fact that the A-phase winding of the stepping motor generates reverse electromotive force at the tail (12ms) of the third beat, the comparator outputs a low level, the voltage of the positive pin of the comparator is larger than that of the negative pin in the second beat and the fourth beat, the comparator outputs a high level, and therefore the A-phase winding has a pulse of a low level at the 12 ms; the controller acquires high-level voltage control signals received by the A _ IN end IN the first beat, the second beat and the fourth beat, and acquires voltage control signals formed by high levels and low levels received by the A _ IN end IN the third beat.
Similarly, the controller controls the output of the B _ OUT end to be a 5V high level in the second beat, and the 5V high level respectively reaches the positive pin and the negative pin of the comparator through the protection resistor, the triode and the divider resistor, so that the voltage of the positive pin of the comparator is greater than that of the negative pin, and the comparator outputs the high level.
Correspondingly, the controller controls the B _ OUT terminal to output a low level in the first beat, the third beat and the fourth beat, the second external power supply outputs a 24V voltage, the voltage of the positive pin of the comparator is smaller than that of the negative pin due to the fact that the B-th phase winding of the stepping motor generates reverse electromotive force at the tail end (16ms) of the fourth beat, the comparator outputs a low level, the voltage of the positive pin of the comparator is larger than that of the negative pin in the first beat and the third beat, the comparator outputs a high level, and therefore the B-phase winding has a pulse of a low level at the 16 ms; the controller acquires high-level voltage control signals received by the B _ IN terminal IN the first beat, the second beat and the third beat, and acquires voltage control signals composed of high level and low level received by the B _ IN terminal IN the fourth beat.
Similarly, the controller outputs a 5V high level at the third beat control C _ OUT end, and the 5V high level respectively reaches the positive pin and the negative pin of the comparator through the protection resistor, the triode and the divider resistor, so that the voltage of the positive pin of the comparator is greater than that of the negative pin, and the comparator outputs the high level.
Correspondingly, the controller controls the C _ OUT terminal to output a low level in the first beat, the second beat and the fourth beat, the second external power supply outputs a 24V voltage, the voltage of the positive pin of the comparator is smaller than that of the negative pin due to the fact that the C-th phase winding of the stepping motor generates reverse electromotive force at the tail end (4ms) of the first beat, the comparator outputs a low level, the voltage of the positive pin of the comparator is larger than that of the negative pin in the second beat and the fourth beat, and the comparator outputs a high level, so that the C-phase winding has a pulse of a low level at the positions of 20ms and 4 ms; the controller acquires high-level voltage control signals received by the C _ IN end IN the second beat, the third beat and the fourth beat, and acquires voltage control signals formed by high levels and low levels received by the C _ IN end IN the first beat.
Similarly, the controller outputs 5V high level at the third beat control D _ OUT end, the 5V high level respectively reaches the positive pin and the negative pin of the comparator through the protective resistor, the triode and the divider resistor, so that the voltage of the positive pin of the comparator is greater than that of the negative pin, and the comparator outputs high level.
Correspondingly, the controller controls the D _ OUT terminal to output a low level in the first beat, the second beat and the third beat, the second external power supply outputs a 24V voltage, the voltage of the positive pin of the comparator is smaller than that of the negative pin due to the fact that the D-phase winding of the stepping motor generates reverse electromotive force at the tail end (8ms) of the second beat, the comparator outputs a low level, the voltage of the positive pin of the comparator is larger than that of the negative pin in the first beat and the third beat, and the comparator outputs a high level, so that the D-phase winding has a pulse of a low level at the 24ms and the 8 ms; the controller obtains high-level voltage control signals received by the D _ IN end IN the first beat, the third beat and the fourth beat, and obtains voltage control signals formed by high levels and low levels received by the D _ IN end IN the second beat.
Step 608: respectively acquiring a first actual voltage control signal of an ith input end of the stepping motor at the ith beat, a second actual voltage control signal of the ith input end at the (i + 1) th beat, a third actual voltage control signal of the ith input end at the (i + 2) th beat and a fourth actual voltage control signal of the ith input end at the (i + 3) th beat;
step 610: comparing the first to fourth actual voltage control signals with the second, fourth, and fifth voltage control signals, respectively, that correspond to the beats;
wherein the first actual voltage control signal may be compared to the second voltage control signal, the second actual voltage control signal may be compared to the fifth voltage control signal, the third actual voltage control signal may be compared to the fourth voltage control signal, and the fourth actual voltage control signal may be compared to the fifth voltage control signal.
Step 612: and if the comparison result shows that the oscillating mechanism reaches an oscillating boundary, controlling the stepping motor to drive the oscillating mechanism to adjust the rotating direction.
Under the condition that the first actual voltage control signal is matched with the second voltage control signal, the second actual voltage control signal is matched with the fifth voltage control signal, the third actual voltage control signal is matched with the fourth voltage control signal, and the fourth actual voltage control signal is matched with the fifth voltage control signal, the head shaking mechanism can be determined not to reach the boundary; if the phase A winding has a low level pulse at the other time except 12ms, or the phase B winding has a low level pulse at the other time except 16ms, or the phase C winding has a low level pulse at the other time except 4ms, or the phase D winding has a low level pulse at the other time except 8ms in a period, it indicates that the head shaking mechanism reaches the head shaking boundary.
In this application embodiment, beat different voltage control signal of output at the difference through the output of control controller to the input of receiving controller beats the received voltage control signal at the difference under the condition that voltage control signal satisfies certain condition, confirm the mechanism of shaking the head and reach the border of shaking the head, and the adjustment direction of rotation avoids the stall of the mechanism of shaking the head, and then avoids appearing the abnormal sound of shaking the head, the motor of shaking the head damages the scheduling problem.
Fig. 7 is a control device 700 for an electric fan according to an embodiment of the present application, and referring to fig. 7, the device 700 includes: a first output module 701, a second output module 702, a first obtaining module 703, a second obtaining module 704, a comparing module 705 and an adjusting module 706, wherein:
a first output module 701, configured to control an ith output end to output a first voltage control signal in an ith beat of the stepping motor in sequence according to an order from a first phase to an nth phase and from a first end to an nth end in a cycle of continuous four beats, where the first voltage control signal respectively reaches a positive pin and a negative pin of a comparator through a protection resistor, a triode, and a voltage dividing resistor, so that the comparator outputs a second voltage control signal;
a second output module 702, configured to control an ith output end of the stepping motor to output a third voltage control signal in other beats except for the ith beat, where the second voltage control signal respectively reaches a positive pin and a negative pin of the comparator through a protection resistor, a triode, and a voltage dividing resistor, an ith phase winding of the stepping motor generates an inverse electromotive force in the (i + 2) th beat, so that the comparator outputs a fourth voltage control signal in the (i + 2) th beat, and the comparator outputs a fifth voltage control signal in the (i + 1) th beat and the (i + 3) th beat;
a first obtaining module 703, configured to obtain a second voltage control signal received by an ith input terminal at the ith beat, a fourth voltage control signal received by the ith input terminal at the (i + 2) th beat, and a fifth voltage control signal received by the ith input terminal at the (i + 1) th beat and the (i + 3) th beat, respectively;
a second obtaining module 704, configured to obtain a first actual voltage control signal at the ith input end of the stepping motor in the ith beat, a second actual voltage control signal at the ith input end in the (i + 1) th beat, a third actual voltage control signal at the ith input end in the (i + 2) th beat, and a fourth actual voltage control signal at the (i + 3) th beat, respectively;
a comparing module 705, configured to compare the first to fourth actual voltage control signals with the second, fourth, and fifth voltage control signals that are correspondingly tapped, respectively;
and the adjusting module 706 is used for controlling the stepping motor to drive the oscillating mechanism to adjust the rotating direction if the comparison result shows that the oscillating mechanism reaches an oscillating boundary.
The above description of the apparatus embodiments, similar to the above description of the method embodiments, has similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be noted that, in the embodiment of the present application, if the control method of the electric fan is implemented in the form of a software functional module and is sold or used as a standalone product, the control method of the electric fan may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or a part contributing to the related art may be embodied in the form of a software product stored in a storage medium, and including a plurality of instructions for enabling a computer device (which may be a mobile phone, a tablet computer, a desktop computer, a personal digital assistant, a navigator, a digital phone, a video phone, a television, a sensing device, etc.) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
Correspondingly, an embodiment of the present application provides a control device of an electric fan, fig. 8 is a schematic diagram of a hardware entity of the control device of the electric fan according to the embodiment of the present application, and as shown in fig. 8, the hardware entity of the computer device 800 includes: the electric fan control system comprises a memory 801 and a processor 802, wherein the memory 801 stores a computer program capable of running on the processor 802, and the processor 802 executes the computer program to realize the steps in the control method of the electric fan provided in the embodiment.
The Memory 801 is configured to store instructions and applications executable by the processor 802, and may also buffer data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or already processed by the processor 802 and modules in the computer device 800, and may be implemented by a FLASH Memory (FLASH) or a Random Access Memory (RAM).
Correspondingly, embodiments of the present application provide a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements the steps in the control method of the electric fan provided in the above embodiments.
Here, it should be noted that: the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
Correspondingly, this application embodiment provides a control circuit of electric fan, includes: the driving circuit is electrically connected with the stepping motor of the electric fan and is used for driving the stepping motor to rotate and stop; the current acquisition circuit is used for acquiring the current value output by the driving circuit or electrically input by the stepping motor; the controller is used for controlling the driving mechanism of the electric fan to drive the oscillating mechanism of the electric fan to rotate; under the condition that the head shaking mechanism is determined to generate locked rotor according to the current value acquired by the current acquisition circuit, determining the corresponding angle when the head shaking mechanism generates locked rotor; determining the angle corresponding to the stalling of the oscillating mechanism as a reset angle; and controlling the oscillating mechanism to rotate according to the reset angle.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or a part contributing to the related art may be embodied in the form of a software product stored in a storage medium, and including a plurality of instructions for enabling a computer device (which may be a mobile phone, a tablet computer, a desktop computer, a personal digital assistant, a navigator, a digital phone, a video phone, a television, a sensing device, etc.) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments. Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict. The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A control circuit for an electric fan, the control circuit comprising:
a controller including M input terminals and S output terminals;
an N-phase P-beat stepping motor;
the master control circuit comprises N control modules, each control module comprises a triode, a protection resistor and a voltage division circuit, wherein:
the first end of each voltage division circuit and the collector of the triode are connected with one output end of the stepping motor;
the second end of each voltage division circuit is grounded with the emitter of the triode;
the third end of each voltage division circuit and one end of the protection resistor are connected with the output end of the controller together, and the other end of the protection resistor is connected with the base electrode of the triode;
the fourth end of each voltage division circuit is connected with the input end corresponding to the output end of the controller;
and the fifth end of each voltage division circuit is connected with a first external power supply.
2. The circuit of claim 1, wherein each of the voltage divider circuits comprises a voltage divider resistor and a comparator, and wherein the voltage divider resistor comprises a resistor Rd1、Rd2、Rd3、Rd4And Rd5Wherein:
the resistor Rd2One end of the triode and the collector of the triode are connected with the output end of the N-phase stepping motor;
the resistor Rd3One end of, the resistor Rd5And the emitter of the triode are grounded together;
the resistor Rd1And one end of the protection resistor are commonly connected with the controlAn output terminal of the device;
the resistor Rd1Another terminal of (3), the resistor Rd2Another terminal of (3), the resistor Rd3The other ends of the two-way switch are connected with a positive pin of the comparator together; the resistor Rd4And the resistor Rd5The other ends of the two-way switch are connected with the negative pin of the comparator together; the resistor Rd4The other end of the first power supply is connected with a first external power supply;
the output end of the comparator is connected with the input end of the controller, and the input end of the controller is the input end corresponding to the output end of the controller.
3. The circuit of claim 2, wherein the controller is configured to control an ith output terminal of the controller to output the first voltage control signal in an ith phase of the stepping motor in sequence from the first phase to the nth phase and from the first terminal to the nth terminal in a cycle of consecutive P phases; wherein:
under the condition that the triode is driven to be conducted by the first voltage control signal through the protection resistor, the resistor Rd2And the resistance Rd3After being connected in parallel with the resistor Rd1In series, the resistance Rd4And the resistance Rd5In series connection, the voltage of the positive pin of the comparator is the resistor Rd1The resistor Rd2And the resistance Rd3The voltage of the junction, the voltage of the negative pin of the comparator is the resistor Rd4And the resistance Rd5The voltage of the connection part, the voltage of the positive pin of the comparator is larger than the voltage of the negative pin of the comparator, a second voltage control signal output by the comparator is input to the ith input end of the controller, and the ith phase winding of the stepping motor is electrified.
4. The circuit according to claim 3, wherein the controller is further configured to control an ith output terminal of the controller to output a third voltage control signal in other beats except the ith beat of the stepping motor in sequence from the first phase to the nth phase and from the first terminal to the nth terminal in a period of consecutive beats P;
under the condition that the triode is cut off and the second external power supply outputs a fourth voltage control signal to electrify the ith phase winding of the stepping motor, the resistor Rd1And the resistance Rd3After being connected in parallel with the resistor Rd2In series, the resistance Rd4And the resistance Rd5In series connection, the voltage of the positive pin of the comparator is the resistor Rd1The resistor Rd2And the resistance Rd3The voltage of the junction, the voltage of the negative pin of the comparator is the resistor Rd4And the resistance Rd5The voltage of the connection, the voltage of the positive pin of the comparator is larger than the voltage of the negative pin of the comparator, and a fifth voltage control signal output by the comparator is input to the ith input end of the controller.
5. The circuit of claim 4, wherein in the i +2 th beat of the stepping motor, when the i-th phase winding of the stepping motor generates an opposite electromotive force, the voltage of the positive pin of the comparator is smaller than the voltage of the negative pin of the comparator, and the sixth voltage control signal output by the comparator is input to the i-th input terminal of the controller.
6. The circuit of claim 5, wherein in the i +2 th beat of the stepping motor, the i-th phase winding of the N-phase P-beat stepping motor is open-circuited in a case where the i-th phase winding of the stepping motor generates no reverse electromotive force.
7. The circuit of claim 5, wherein the N-phase P-beat stepping motor drives an oscillating mechanism of an electric fan to a boundary position in a case where an i-th phase winding of the stepping motor generates a reverse electromotive force in beats other than the (i + 2) th beat of the stepping motor.
8. A method for controlling an electric fan, applied to a circuit according to any one of claims 1 to 7, the method comprising:
in a period of continuous four beats, sequentially controlling an ith output end to output a first voltage control signal in the ith beat of the stepping motor according to the sequence from a first phase to an Nth phase and from a first end to an Nth end, wherein the first voltage control signal respectively reaches a positive pin and a negative pin of a comparator through a protection resistor, a triode and a divider resistor, so that the comparator outputs a second voltage control signal;
controlling the ith output end to output a third voltage control signal in other beats of the stepping motor except the ith beat, wherein the second voltage control signal respectively reaches a positive pin and a negative pin of the comparator through a protective resistor, a triode and a divider resistor, an ith phase winding of the stepping motor generates reverse electromotive force in the (i + 2) th beat, so that the comparator outputs a fourth voltage control signal in the (i + 2) th beat, and the comparator outputs a fifth voltage control signal in the (i + 1) th beat and the (i + 3) th beat;
respectively acquiring a second voltage control signal received by an ith input end at the ith beat, a fourth voltage control signal received by the ith input end at the (i + 2) th beat and a fifth voltage control signal received by the ith input end at the (i + 1) th beat and the (i + 3) th beat;
respectively acquiring a first actual voltage control signal of an ith input end of the stepping motor at the ith beat, a second actual voltage control signal of the ith input end at the (i + 1) th beat, a third actual voltage control signal of the ith input end at the (i + 2) th beat and a fourth actual voltage control signal of the ith input end at the (i + 3) th beat;
comparing the first to fourth actual voltage control signals with the second, fourth, and fifth voltage control signals, respectively, that correspond to the beats;
and if the comparison result shows that the oscillating mechanism reaches an oscillating boundary, controlling the stepping motor to drive the oscillating mechanism to adjust the rotating direction.
9. A control device for an electric fan, applied to a circuit according to any one of claims 1 to 7, comprising:
the first output module is used for sequentially controlling the ith output end to output a first voltage control signal in the ith beat of the stepping motor according to the sequence from the first phase to the Nth phase and from the first end to the Nth end in the continuous four beats as a period, and the first voltage control signal respectively reaches the positive pin and the negative pin of the comparator through the protection resistor, the triode and the divider resistor so that the comparator outputs a second voltage control signal;
the second output module is used for controlling the ith output end of the stepping motor to output a third voltage control signal in other beats except the ith beat, the second voltage control signal respectively reaches the positive pin and the negative pin of the comparator through a protective resistor, a triode and a divider resistor, the ith phase winding of the stepping motor generates reverse electromotive force in the (i + 2) th beat, so that the comparator outputs a fourth voltage control signal in the (i + 2) th beat, and the comparator outputs a fifth voltage control signal in the (i + 1) th beat and the (i + 3) th beat;
the first acquisition module is used for respectively acquiring a second voltage control signal received by the ith input end at the ith beat, a fourth voltage control signal received by the ith input end at the (i + 2) th beat and a fifth voltage control signal received by the ith input end at the (i + 1) th beat and the (i + 3) th beat;
a second obtaining module, configured to obtain a first actual voltage control signal at an ith input end of the stepping motor in a beat i, a second actual voltage control signal at an ith input end in a beat i +1, a third actual voltage control signal at an ith input end in a beat i +2, and a fourth actual voltage control signal at a beat i +3, respectively;
a comparison module, configured to compare the first to fourth actual voltage control signals with the second, fourth, and fifth voltage control signals that correspond to the beats, respectively;
and the adjusting module is used for controlling the stepping motor to drive the head shaking mechanism to adjust the rotating direction if the comparison result shows that the head shaking mechanism reaches the head shaking boundary.
10. A control apparatus for an electric fan, comprising a memory and a processor, the memory storing a computer program operable on the processor, wherein the processor implements the steps in the control method for an electric fan as claimed in claim 8 when executing the computer program.
11. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, carries out the steps of the method for controlling an electric fan according to claim 8.
CN202011138919.9A 2020-10-22 2020-10-22 Control circuit, control method, device, equipment and medium of electric fan Active CN114382716B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011138919.9A CN114382716B (en) 2020-10-22 2020-10-22 Control circuit, control method, device, equipment and medium of electric fan

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011138919.9A CN114382716B (en) 2020-10-22 2020-10-22 Control circuit, control method, device, equipment and medium of electric fan

Publications (2)

Publication Number Publication Date
CN114382716A true CN114382716A (en) 2022-04-22
CN114382716B CN114382716B (en) 2023-11-21

Family

ID=81194029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011138919.9A Active CN114382716B (en) 2020-10-22 2020-10-22 Control circuit, control method, device, equipment and medium of electric fan

Country Status (1)

Country Link
CN (1) CN114382716B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023217299A1 (en) * 2022-05-11 2023-11-16 深圳市几素科技有限公司 Portable fan

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996018848A1 (en) * 1994-12-15 1996-06-20 Firma J. Eberspächer Control circuit for a fan drive motor
CN1869851A (en) * 2005-05-27 2006-11-29 联想(北京)有限公司 Speed controller of CPU fan
CN202579252U (en) * 2012-03-15 2012-12-05 明纬(广州)电子有限公司 Control circuit of fan
CN202628580U (en) * 2012-06-26 2012-12-26 宁波毕士达智能洁具有限公司 Drying fan control circuit of intelligent toilet
US20130069633A1 (en) * 2011-09-20 2013-03-21 Hon Hai Precision Industry Co., Ltd. Fan speed detection device
US20150229253A1 (en) * 2014-02-12 2015-08-13 Alpha Networks Inc. Fan control circuit
CN207795650U (en) * 2017-12-06 2018-08-31 漳州科华技术有限责任公司 A kind of fan failure detection circuit
US20180335041A1 (en) * 2017-05-16 2018-11-22 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for controlling rotation angle of swinging head of fan, and fan
CN110247594A (en) * 2019-07-04 2019-09-17 珠海格力电器股份有限公司 Motor initial position determines method and apparatus
CN110273853A (en) * 2019-05-28 2019-09-24 苏州伟创电气设备技术有限公司 A kind of fan control circuitry and frequency converter
CN110416972A (en) * 2019-08-26 2019-11-05 无锡雷利电子控制技术有限公司 Rotation-clogging protection and stall restart circuit device
CN110848163A (en) * 2019-11-27 2020-02-28 珠海格力电器股份有限公司 Control device and control method of fan head-shaking assembly and fan
CN210196097U (en) * 2019-07-10 2020-03-27 山东省产品质量检验研究院 Fan locked rotor detection circuit for air purifier

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996018848A1 (en) * 1994-12-15 1996-06-20 Firma J. Eberspächer Control circuit for a fan drive motor
CN1869851A (en) * 2005-05-27 2006-11-29 联想(北京)有限公司 Speed controller of CPU fan
US20130069633A1 (en) * 2011-09-20 2013-03-21 Hon Hai Precision Industry Co., Ltd. Fan speed detection device
CN202579252U (en) * 2012-03-15 2012-12-05 明纬(广州)电子有限公司 Control circuit of fan
CN202628580U (en) * 2012-06-26 2012-12-26 宁波毕士达智能洁具有限公司 Drying fan control circuit of intelligent toilet
US20150229253A1 (en) * 2014-02-12 2015-08-13 Alpha Networks Inc. Fan control circuit
US20180335041A1 (en) * 2017-05-16 2018-11-22 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for controlling rotation angle of swinging head of fan, and fan
CN207795650U (en) * 2017-12-06 2018-08-31 漳州科华技术有限责任公司 A kind of fan failure detection circuit
CN110273853A (en) * 2019-05-28 2019-09-24 苏州伟创电气设备技术有限公司 A kind of fan control circuitry and frequency converter
CN110247594A (en) * 2019-07-04 2019-09-17 珠海格力电器股份有限公司 Motor initial position determines method and apparatus
CN210196097U (en) * 2019-07-10 2020-03-27 山东省产品质量检验研究院 Fan locked rotor detection circuit for air purifier
CN110416972A (en) * 2019-08-26 2019-11-05 无锡雷利电子控制技术有限公司 Rotation-clogging protection and stall restart circuit device
CN110848163A (en) * 2019-11-27 2020-02-28 珠海格力电器股份有限公司 Control device and control method of fan head-shaking assembly and fan

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023217299A1 (en) * 2022-05-11 2023-11-16 深圳市几素科技有限公司 Portable fan

Also Published As

Publication number Publication date
CN114382716B (en) 2023-11-21

Similar Documents

Publication Publication Date Title
JP4213040B2 (en) Method and apparatus for detecting a function stop state in a step motor
US5767639A (en) Electronic control system for a brushless electric motor
JPS62268387A (en) Commutation controller of brushless dc motor
CN114382716A (en) Control circuit, control method, control device, equipment and medium of electric fan
JPH037089A (en) Sensorless system brushless motor
US5914579A (en) Direct current command generation for a stepper motor drive
CN1992506B (en) Apparatus and method for controlling the number of rotations per unit time of brushless DC motor
JP2000245190A (en) Apparatus and method for controlling driving of brushless motor
JPH07114556B2 (en) Electric motors, current control devices provided for electric motors, arithmetic units used for these, or devices equipped with these devices
JPH0442796A (en) Driving method of brushless dc motor having no position detector
JP3085884B2 (en) Speed detector for brushless motor
JPS6299733A (en) Shutter driving device
US6121745A (en) Direct current command generation for a stepper motor drive
CN114060298B (en) Control circuit and method of electric fan
CN114060299B (en) Control method, control circuit, device, equipment and medium of electric fan
CN114337409A (en) Motor control method, circuit, device and storage medium
JP2502680B2 (en) Brushless motor drive
CN110445976A (en) A kind of camera telescopic device and its control method, electronic product
CN114060297B (en) Control method, circuit, device and storage medium of electric fan
JP2512048B2 (en) Drive device for plushless motor
JP3079617B2 (en) Commutatorless DC motor
CN114499298A (en) Control method and control device of stepping motor, terminal device and storage medium
SU1283927A1 (en) Reftifier electric drive
CN114320979A (en) Control method, control circuit, device, equipment and medium of electric fan
JP2563777B2 (en) Flexible disk drive device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant