CN113945147B - Detection circuit, detection method thereof, fan and readable storage medium - Google Patents

Detection circuit, detection method thereof, fan and readable storage medium Download PDF

Info

Publication number
CN113945147B
CN113945147B CN202010683730.1A CN202010683730A CN113945147B CN 113945147 B CN113945147 B CN 113945147B CN 202010683730 A CN202010683730 A CN 202010683730A CN 113945147 B CN113945147 B CN 113945147B
Authority
CN
China
Prior art keywords
power supply
switch
winding
square wave
wave 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.)
Active
Application number
CN202010683730.1A
Other languages
Chinese (zh)
Other versions
CN113945147A (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 CN202010683730.1A priority Critical patent/CN113945147B/en
Publication of CN113945147A publication Critical patent/CN113945147A/en
Application granted granted Critical
Publication of CN113945147B publication Critical patent/CN113945147B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B7/00Measuring arrangements characterised by the use of electric or magnetic techniques
    • G01B7/003Measuring arrangements characterised by the use of electric or magnetic techniques for measuring position, not involving coordinate determination
    • 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
    • F04D27/00Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids
    • F04D27/001Testing thereof; Determination or simulation of flow characteristics; Stall or surge detection, e.g. condition monitoring
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B7/00Measuring arrangements characterised by the use of electric or magnetic techniques
    • G01B7/30Measuring arrangements characterised by the use of electric or magnetic techniques for measuring angles or tapers; for testing the alignment of axes

Abstract

The invention discloses a detection circuit, a detection method thereof, a fan and a readable storage medium, wherein the detection circuit is used for detecting the boundary position in the process of swinging a fan, and comprises a controller, a power supply circuit, a stepping motor, a winding switch and a sampling resistor; the control end of the winding switch is connected with the controller, the input end of the winding switch is connected with the power supply circuit through a winding of the stepping motor, and the output end of the winding switch is grounded through the sampling resistor; the power supply circuit comprises a change-over switch, a first power supply passage and a second power supply passage which are connected in parallel, wherein the change-over switch is used for switching the first power supply passage and the second power supply passage to be conducted alternatively, the current of the first power supply passage when conducted is larger than that of the second power supply passage when conducted, and the change-over switch is connected with the controller. The invention has the advantages of simplifying the detection circuit and structure of the boundary position of the swing head of the fan.

Description

Detection circuit, detection method thereof, fan and readable storage medium
Technical Field
The present invention relates to a detection circuit, a detection method thereof, a fan and a readable storage medium.
Background
In the prior art, the fan head-shaking mechanism needs to realize head shaking in different angle ranges of 30 degrees, 60 degrees, 90 degrees, 120 degrees and the like, and a positioning system is formed by a Hall sensor sense, a magnet, a stepping motor, a controller and the like. The Hall sensor is usually arranged at the middle position, a magnet is further arranged in the head shaking mechanism, the Hall sensor senses signals when the magnet passes through the Hall sensor in the rotation process of the head shaking mechanism, the middle position of the head shaking path of the head shaking mechanism is determined, and then the head shaking mechanism is controlled to shake leftwards or rightwards, so that a control circuit and a control structure in the prior art are complex.
Disclosure of Invention
The main purpose of the present invention is to provide a detection circuit, which aims to solve the problem of complex structure of the fan oscillating control circuit in the prior art.
In order to achieve the above object, the present invention provides a detection circuit for detecting a boundary position in a fan shaking process, the detection circuit including a controller, a power supply circuit, a stepping motor, a winding switch and a sampling resistor; the control end of the winding switch is connected with the controller, the input end of the winding switch is connected with the power supply circuit through a winding of the stepping motor, and the output end of the winding switch is grounded through the sampling resistor; the power supply circuit comprises a change-over switch, a first power supply passage and a second power supply passage which are connected in parallel, wherein the change-over switch is used for switching the first power supply passage and the second power supply passage to be conducted alternatively, the current of the first power supply passage when conducted is larger than that of the second power supply passage when conducted, and the change-over switch is connected with the controller.
Further, the winding switch comprises a plurality of electronic switches corresponding to the number of windings of the stepping motor, the input end of each electronic switch is connected to the output end of the corresponding winding of the stepping motor, the output end of each electronic switch is grounded through the sampling resistor, and the control end of each electronic switch is connected to the controller.
Further, the switch is connected in series with the first power supply channel, the input end of the switch is connected to a power supply, the control end of the switch is connected to the controller, and the output end of the switch is connected to the input ends of all windings of the stepping motor; the second power supply path is connected in series with a capacitor, and two ends of the capacitor are respectively connected to the input end and the output end of the change-over switch.
Further, the change-over switch is arranged on the first power supply communication path, the input end of the change-over switch is connected to a power supply, the control end of the change-over switch is connected to the controller, and the output end of the change-over switch is connected to the input ends of all windings of the stepping motor; the second power supply path is connected in series with a current limiting resistor.
Further, the change-over switch is a single-pole double-throw switch, the first power supply channel is connected with a first power supply, the second channel is connected with a second power supply, the output voltage of the first power supply is larger than that of the second power supply, one of the input ends of the single-pole double-throw switch is connected with the first power supply or the second power supply, and the output end of the single-pole double-throw switch is connected with the input end of the winding of the stepping motor.
Further, the stepping motor is a four-phase eight-beat stepping motor.
In order to achieve the above object, the present invention also provides a detection method, the fan including the detection circuit as described above, the detection method including the steps of:
inputting a first square wave signal to the change-over switch;
inputting a second square wave signal to the winding switch, wherein the period of the first square wave signal is the same as that of the second square wave signal, the duration of the high level in the first square wave signal is smaller than that of the high level in the second square wave signal in the same period, and the starting time point of the high level in the second square wave signal is the same at the starting time point of the high level in the first square wave signal in the same period;
acquiring the sampling current of the sampling resistor;
and when the sampling current is smaller than a preset current, determining that the fan swings to reach a boundary position.
Further, the winding switch includes a plurality of the electronic switches, and the step of inputting a second square wave signal to the winding switch includes:
acquiring a second square wave signal corresponding to each electronic switch;
transmitting a corresponding second square wave signal to each electronic switch, wherein the duration of the high level corresponding to each electronic switch is the same, and the periods of the high levels in the electronic switches are adjacent in sequence
To achieve the above object, the present invention also provides a fan including the detection circuit as set forth in any one of the above; the fan further comprises a memory and a detection program stored on the memory and capable of running on the controller, wherein the detection program realizes the steps of the detection method when being executed by the controller.
In order to achieve the above object, the present invention also provides a readable storage medium having stored thereon a detection program which, when executed by a controller, implements the steps of the detection method as described above.
According to the technical scheme, the controller controls the conduction time of the first power supply passage, the second power supply passage and the winding switch, when the fan is not started to reach the boundary position, the sampling current is enabled to be larger than a preset current value in a certain period or a plurality of periods, when the fan is started to reach the boundary position, the sampling current of the sampling resistor is enabled to be smaller than the preset current value in a certain period or a plurality of periods, and therefore the fan is determined to reach the boundary position when the sampling current is acquired and is smaller than the preset current in a certain period or a plurality of periods.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the structures shown in these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a detection circuit according to an embodiment of the present invention;
FIG. 2 is a schematic circuit diagram of another embodiment of the detection circuit of the present invention;
FIG. 3 is a waveform diagram of the components of the detection circuit when the fan of the present invention does not reach the boundary position;
FIG. 4 is a waveform diagram of the components of the detection circuit when the fan of the present invention reaches a boundary position;
FIG. 5 is a flow chart of an embodiment of the detection method of the present invention;
fig. 6 is a specific flowchart of step S20 of the detection method of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that all directional indicators (such as up, down, left, right, front, and rear … …) in the embodiments of the present invention are merely used to explain the relative positional relationship, movement, etc. between the components in a particular posture (as shown in the drawings), and if the particular posture is changed, the directional indicator is changed accordingly.
Furthermore, the description of "first," "second," etc. in this disclosure is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not within the scope of protection claimed in the present invention.
Referring to fig. 1-4, the present invention provides a detection circuit for detecting a boundary position in a fan oscillating process, the detection circuit includes a controller 10, a power supply circuit 20, a stepper motor M, a winding switch 30, and a sampling resistor R1; the control end of the winding switch 30 is connected with the controller 10, the input end of the winding switch 30 is connected with the power supply circuit 20 through the winding of the stepping motor M, and the output end of the winding switch 30 is grounded through the sampling resistor R1; the power supply circuit 20 includes a switch Q5, and a first power supply path 21 and a second power supply path 22 connected in parallel, where the switch Q5 is configured to switch on one of the first power supply path 21 and the second power supply path 22, and a current when the first power supply path 21 is turned on is greater than a current when the second power supply path 22 is turned on, and the switch Q5 is connected to the controller 10.
In this embodiment, the detection circuit is configured to detect a boundary position in the process of oscillating the fan, where the boundary position is a position where the fan oscillates to the left or right to a limit, and the fan cannot continue to oscillate in the original direction due to the existence of the limiting mechanism. The controller 10 is configured to control the power supply circuit 20 and the winding switch 30 to operate, so as to control each winding of the stepper motor M to be sequentially turned on through the power supply circuit 20 and the winding switch 30, wherein a plurality of windings form a stator of the stepper motor M, a rotor of the stepper motor M is disposed in the stator, and when each winding is sequentially turned on, the rotor rotates under the action of the stator and drives a blade of the fan to rotate, thereby realizing a blowing function of the fan. The winding switch 30 may be of the die type UL2003 or IC2803.
In this embodiment, the switch Q5 is connected to the controller 10, and under the control of the controller 10, the switch Q5 controls the first power supply path 21 and the second power supply path 22 to be selectively turned on, where the on current of the first power supply path 21 is greater than the on current of the second power supply path 22, that is, the driving potential of the first power supply path 21 to the stepper motor M is greater than the driving potential of the second power supply path 22 to the stepper motor M. In a period, the first power supply path 21 is turned on for a first preset time period and turned off for a second preset time period, in the second preset time period, the second power supply path 22 is turned on, in the same period, the controller 10 controls one winding of the stepper motor M to be turned on for a third preset time period and turned off for a fourth preset time period through the winding switch 30, and the third preset time period is longer than the first preset time period, and based on the limitation of the conduction time periods of the first power supply path 21, the second power supply path 22 and the winding switch 30, the following effects can be achieved in this embodiment:
referring to fig. 3, when the fan does not swing to the boundary position, in a period, the controller 10 controls the first power supply path 21 to be turned on for a first preset time period through the switch Q5, and simultaneously controls one of the windings of the stepper motor M to be turned on through the winding switch 30, at this time, the first power supply path 21, the turned-on winding, the winding switch 30 and the sampling resistor R1 form a loop, and since the first preset time period is less than the third preset time period, that is, the switch Q5 is turned off in advance than the winding switch 30, the second power supply path 22 is turned on for a second preset time period, and the second power supply path 22, the turned-on winding, the winding switch 30 and the sampling resistor R1 form a loop, since the conduction current of the first power supply path 21 is greater than the conduction current of the second power supply path 22, the conduction current of the second power supply path 22 can be made to be small enough to enable the rotor to be unable to be driven continuously to rotate through reasonable configuration, at this time, since the fan does not swing to the boundary position, the rotor continues to rotate by inertia, according to faraday's law of electromagnetism, the conducting winding can generate current to prevent the rotor from continuing to rotate, and in a popular way, the stepping motor M is in a power generation state at this time, the conducting winding can generate current to be superposed with the conduction current of the second power supply path 22, so that the total current passing through the sampling resistor R1 is increased in a short time, and if the total current of the sampling resistor R1 is detected to be increased in a short time in a certain period or a plurality of periods, the fan is indicated to not swing to the boundary position.
Referring to fig. 4, when the fan is turned to the boundary position, in a period, the controller 10 controls the first power supply path 21 to be turned on for a first preset period through the switch Q5, and simultaneously, the controller 10 controls one of the windings of the stepper motor M to be turned on through the winding switch 30, at this time, the first power supply path 21, the turned-on winding, the winding switch 30 and the sampling resistor R1 form a loop, and since the first preset period is smaller than the second preset period, that is, the switch Q5 is closed in advance than the winding switch 30, then the second power supply path 22 is turned on for a second preset period, and since the conduction current of the first power supply path 21 is larger than the conduction current of the second power supply path 22 at this time, by reasonable configuration, the current of the second power supply path 22 is small enough to continue to drive the rotor to rotate, and since the first power supply path Q5 is smaller than the winding switch Q30, and the sampling resistor R1 is not increased until the total sampling current reaches the boundary position, that is not increased until the total sampling current reaches the predetermined boundary position, or the total sampling resistor R1 is not increased, and if the sampling current reaches the predetermined boundary position or the total sampling current is not increased in a short period.
In summary, in this embodiment, the controller 10 controls the conduction time of the first power supply path 21, the second power supply path 22, and the winding switch 30, so that the sampling current is larger than a preset current value in a certain period or a plurality of periods when the fan is not moving to the boundary position, and the sampling current of the sampling resistor R1 is smaller than the preset current value in a certain period or a plurality of periods when the fan is moving to the boundary position, so that whether the fan is moving to the boundary position can be determined by acquiring the sampling current of the sampling resistor R1.
Referring to fig. 1-2, further, the winding switch 30 includes a plurality of electronic switches, such as Q1, Q2, Q3, Q4, corresponding to the number of windings of the stepper motor M, and each of the input terminals of the electronic switches is connected to the output terminal of the corresponding winding of the stepper motor M, and each of the output terminals of the electronic switches is grounded via the sampling resistor R1, and each of the control terminals of the electronic switches is connected to the controller 10.
In this embodiment, the electronic switches such as Q1, Q2, Q3, and Q4 may be transistors or MOS transistors, the number of the electronic switches corresponds to the number of windings of the stepper motor M, that is, the input end of each electronic switch is connected to the output end of the corresponding winding, the control end of each electronic switch is connected to the controller 10, the controller 10 controls the electronic switches to be turned on and off by outputting a square wave signal to the electronic switches, when the rising edge of the square wave signal arrives, the electronic switches are turned on, and the controller controls a plurality of electronic switches to be turned on sequentially by the square wave signal; the output end of each electronic switch can be grounded through the same sampling resistor R1, and the output end of each electronic switch can also be grounded through different sampling resistors R1.
Referring to fig. 1, in an embodiment, the switch Q5 is connected in series to the first power supply path 21, an input end of the switch Q5 is connected to the power VCC, a control end of the switch Q5 is connected to the controller 10, and an output end of the switch Q5 is connected to input ends of windings of the stepper motor M; the second power supply path 22 is connected in series with a capacitor C1, and two ends of the capacitor C1 are respectively connected to the input end and the output end of the switch Q5.
In this embodiment, the switch Q5 may be a triode or a MOS transistor, the controller 10 controls the switch Q5 to be turned on and off by outputting a square wave signal to the switch Q5, when the rising edge of the square wave signal arrives, the switch Q5 is turned on, the first power supply path 21 is turned on, when the falling edge of the square wave signal arrives, the switch Q5 is turned off, and at this time, the capacitor C1 on the second power supply path 22 is turned on, that is, the second power supply path 22 is turned on, and according to the characteristics of the capacitor C1, it is known that the voltage of the capacitor C1 cannot be suddenly changed, and therefore, the current flowing through the capacitor C1 reaches a maximum value, that is, the conduction current of the second power supply path 22 reaches a maximum value, and thereafter, the current flowing through the capacitor C1, that is, the conduction current of the second power supply path 22 gradually decreases, that is, the conduction current of the second power supply path 22 is smaller than the conduction current of the first power supply path 21. It will be appreciated that, while the first power supply path 21 and the second power supply path 22 are conducting, the controller 10 is required to control the winding switch 30 to conduct together so as to conduct between one of the windings and the sampling resistor R1, and to let the current of the winding that is conducted or the current generated by the winding that is conducted pass through the sampling resistor R1 so as to sample the current.
Referring to fig. 2, in another embodiment, the switch Q5 is disposed on the first power supply path 21, an input end of the switch Q5 is connected to the power VCC, a control end of the switch Q5 is connected to the controller 10, and an output end of the switch Q5 is connected to input ends of windings of the stepper motor M; the second power supply path 22 is connected in series with a current limiting resistor R2.
In this embodiment, the switch Q5 may be a triode or a MOS transistor, when the controller 10 outputs a square wave signal to the switch Q5 to control the switch Q5 to be turned on and off, when a rising edge of the square wave signal arrives, the switch Q5 is turned on, the first power supply path 21 is turned on, and when a falling edge of the square wave signal arrives, the switch Q5 is turned off, and at this time, the current limiting resistor R2 of the second power supply path 22 is turned on, that is, the second power supply path 22 is turned on, and according to characteristics of the resistor, it is known that, under a certain voltage condition, the larger the resistance value of the resistor is, the smaller the current passing through the resistor is, and by reasonably setting the resistance value of the current limiting resistor R2, the current passing through the current limiting resistor R2 is smaller than the current passing through the switch Q5, that is, the on current of the second power supply path 22 is smaller than the current passing through the first power supply path 21. It will be appreciated that, while the first power supply path 21 and the second power supply path 22 are conducting, the controller 10 is required to control the winding switch 30 to conduct together so as to conduct between one of the windings and the sampling resistor R1, and to let the current of the winding that is conducted or the current generated by the winding that is conducted pass through the sampling resistor R1 so as to sample the current.
In yet another embodiment, the change-over switch Q5 is a single-pole double-throw switch (not shown), the first power supply path 21 is connected to a first power supply (not shown), the second power supply path 22 is connected to a second power supply (not shown), an output voltage of the first power supply is greater than an output voltage of the second power supply, an input end of the single-pole double-throw switch is selectively connected to the first power supply or the second power supply, and an output end of the single-pole double-throw switch is connected to an input end of a winding of the stepper motor M.
In this embodiment, when the single-pole double-throw switch is switched to be connected with the first power supply, the first power supply is connected with the input end of the winding through the single-pole double-throw switch, through reasonable configuration, the current output by the first power supply can drive the rotor to rotate, and when the single-pole double-throw switch is switched to be connected with the second power supply, the second power supply is connected with the input end of the winding through the single-pole double-throw switch, through reasonable configuration, the current output by the second power supply is smaller than the current output by the first power supply, and the second power supply cannot drive the rotor to rotate.
Further, the detection circuit further includes a switch control circuit (not shown), an input end of the switch control circuit is connected to the controller 10, and a plurality of output ends of the switch control circuit are respectively connected to control ends of the plurality of electronic switches.
In this embodiment, the switch control circuit includes an input end and a plurality of output ends, the input end of the switch control circuit is connected to the controller 10, the plurality of output ends of the switch control circuit are respectively connected to a plurality of control ends of the electronic switches, and the plurality of electronic switches in the windings are controlled to be sequentially turned on by the switch control circuit, that is, each winding of the stepper motor M is controlled to be sequentially turned on. The switch control circuit can be a pulse distribution chip, and the model can be CD4017.
Further, the stepper motor M is a four-phase eight-beat stepper motor M.
In this embodiment, the stepper motor M is a four-phase eight-beat stepper motor M, that is, the stator of the stepper motor M includes four windings, and the number of the electronic switches is also four. It is understood that the stepper motor M may be four double four-beat stepper motors M, four single four-beat stepper motors M, or the like.
To achieve the above object, the present invention also provides a detection method, the fan including the detection circuit as described above, in embodiment 1 of the detection method, the detection method including the steps of:
step S10, inputting a first square wave signal to the change-over switch;
step S20, inputting a second square wave signal to the winding switch, where the period of the first square wave signal is the same as that of the second square wave signal, the duration of the high level in the first square wave signal is smaller than that of the high level in the second square wave signal in the same period, and the starting time point of the high level in the second square wave signal is the same at the starting time point of the high level in the first square wave signal in the same period;
step S30, obtaining the sampling current of the sampling resistor;
and S40, determining that the fan swings to reach the boundary position when the sampling current is smaller than a preset current.
In this embodiment, the controller inputs a first square wave signal to the change-over switch, so that the first power supply channel and the second power supply channel are selectively turned on, and simultaneously inputs a second square wave signal to the winding switch, so that a plurality of windings of the stepper motor are sequentially turned on, because the period of the first square wave signal is the same as that of the second square wave signal, and the starting time point of the high level in the first square wave signal is the same as that of the second square wave signal in the same period, and in the same period, the total conduction time of the first power supply channel and the second power supply channel is equal to the conduction time of the winding switch in the period, so that when the first power supply channel and the second power supply channel are turned on, one winding keeps on with the sampling resistor, the conduction current of the second power supply channel and the current generated by the conducted winding flow through the sampling resistor, and the controller can determine that the current reaches the boundary of the fan in the opposite direction of the fan by acquiring the sampling current of the sampling resistor in one period or more periods, and detecting the current in the same period, and determining that the current reaches the boundary of the fan reaches the boundary in the opposite direction when the fan is controlled by the detection principle.
Based on embodiment 1 of the detection method, embodiment 2 of the detection method is provided, the winding switch includes a plurality of the electronic switches, and the step of inputting a second square wave signal to the winding switch includes:
step S21, obtaining a second square wave signal corresponding to each electronic switch;
step S22, sending a corresponding second square wave signal to each electronic switch, where duration of a high level corresponding to each electronic switch is the same, and periods of the high levels in the electronic switches are sequentially adjacent.
In this embodiment, the second square wave signal corresponding to each electronic switch is obtained, and the corresponding second square wave signal is sent to each electronic switch, where duration of a high level corresponding to each electronic switch is the same, and periods of the high levels in the electronic switches are sequentially adjacent to each other, so that the electronic switches are sequentially turned on according to the received second square wave signals, where when a rising edge, i.e., a high level, of the second square wave signal arrives, the electronic switches are turned on, and when a falling edge, i.e., a low level, of the second square wave signal arrives, the electronic switches are turned off.
In order to achieve the above object, the present invention also provides a fan including the detection circuit as described above; the fan further comprises a memory and a detection program stored on the memory and capable of running on the controller, wherein the detection program realizes the steps of the detection method when being executed by the controller.
In order to achieve the above object, the present invention also provides a readable storage medium having stored thereon a detection program which, when executed by a controller, implements the steps of the detection method as described above.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the invention, and all equivalent structural changes made by the description of the present invention and the accompanying drawings or direct/indirect application in other related technical fields are included in the scope of the invention.

Claims (8)

1. The detection circuit is characterized by being used for detecting the boundary position in the process of swinging the fan, and comprises a controller, a power supply circuit, a stepping motor, a winding switch and a sampling resistor; the control end of the winding switch is connected with the controller, the input end of the winding switch is connected with the power supply circuit through a winding of the stepping motor, and the output end of the winding switch is grounded through the sampling resistor; the power supply circuit comprises a change-over switch, a first power supply passage and a second power supply passage which are connected in parallel, wherein the change-over switch is used for switching on one of the first power supply passage and the second power supply passage, the current of the first power supply passage when being conducted is larger than that of the second power supply passage when being conducted, the change-over switch is connected with the controller, the change-over switch is a single-pole double-throw switch, the first power supply passage is connected with a first power supply, the second power supply passage is connected with a second power supply, the output voltage of the first power supply is larger than that of the second power supply, one of the input ends of the single-pole double-throw switch is connected with the first power supply or the second power supply, and the output end of the single-pole double-throw switch is connected with the input end of a winding of the stepping motor; the winding switch comprises a plurality of electronic switches corresponding to the number of windings of the stepping motor, the input end of each electronic switch is connected to the output end of the corresponding winding of the stepping motor, the output end of each electronic switch is grounded through the sampling resistor, and the control end of each electronic switch is connected to the controller.
2. The detection circuit of claim 1, wherein the switch is connected in series with the first power supply path, an input end of the switch is connected to a power supply, a control end of the switch is connected to the controller, and an output end of the switch is connected to an input end of each winding of the stepper motor; the second power supply path is connected in series with a capacitor, and two ends of the capacitor are respectively connected to the input end and the output end of the change-over switch.
3. The detection circuit according to claim 1, wherein the change-over switch is disposed on the first power supply path, an input end of the change-over switch is connected to a power source, a control end of the change-over switch is connected to the controller, and an output end of the change-over switch is connected to an input end of each winding of the stepper motor; the second power supply path is connected in series with a current limiting resistor.
4. A fan comprising the detection circuit of any one of claims 1-3.
5. A method of testing, wherein the fan comprises a test circuit as claimed in any one of claims 1 to 3, the method comprising the steps of:
inputting a first square wave signal to the change-over switch;
inputting a second square wave signal to the winding switch, wherein the period of the first square wave signal is the same as that of the second square wave signal, the duration of the high level in the first square wave signal is smaller than that of the high level in the second square wave signal in the same period, and the starting time point of the high level in the second square wave signal is the same at the starting time point of the high level in the first square wave signal in the same period;
acquiring the sampling current of the sampling resistor;
and when the sampling current is smaller than a preset current, determining that the fan swings to reach a boundary position.
6. The method of detecting as claimed in claim 5, wherein the winding switch includes a plurality of electronic switches, and the step of inputting a second square wave signal to the winding switch includes:
acquiring a second square wave signal corresponding to each electronic switch;
and sending a corresponding second square wave signal to each electronic switch, wherein the duration of the high level corresponding to each electronic switch is the same, and the periods of the high level in each electronic switch are adjacent in sequence.
7. A fan, characterized in that it further comprises a memory and a detection program stored on the memory and operable on the controller, which detection program, when executed by the controller, implements the steps of the detection method according to claim 5 or 6.
8. A readable storage medium, wherein a detection program is stored on the readable storage medium, which when executed by a controller, implements the steps of the detection method according to claim 5 or 6.
CN202010683730.1A 2020-07-15 2020-07-15 Detection circuit, detection method thereof, fan and readable storage medium Active CN113945147B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010683730.1A CN113945147B (en) 2020-07-15 2020-07-15 Detection circuit, detection method thereof, fan and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010683730.1A CN113945147B (en) 2020-07-15 2020-07-15 Detection circuit, detection method thereof, fan and readable storage medium

Publications (2)

Publication Number Publication Date
CN113945147A CN113945147A (en) 2022-01-18
CN113945147B true CN113945147B (en) 2023-12-12

Family

ID=79326548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010683730.1A Active CN113945147B (en) 2020-07-15 2020-07-15 Detection circuit, detection method thereof, fan and readable storage medium

Country Status (1)

Country Link
CN (1) CN113945147B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07337080A (en) * 1994-06-10 1995-12-22 Hitachi Ltd Air-conditioner
US6256181B1 (en) * 1998-06-25 2001-07-03 Matsushita Electric Industrial Co., Ltd. Fan drive device
CN205315324U (en) * 2015-11-24 2016-06-15 珠海格力电器股份有限公司 Fan
CN107676281A (en) * 2017-11-09 2018-02-09 信宜市汇美电器有限公司 Fan head angle-adjusting mechanism
CN207554390U (en) * 2017-11-09 2018-06-29 广东美的环境电器制造有限公司 Fan and its speed-regulating control circuit
CN108880274A (en) * 2017-05-15 2018-11-23 赤多尼科两合股份有限公司 A kind of output current detection circuit of controlled resonant converter
CN209117756U (en) * 2018-12-03 2019-07-16 东莞市杰创电子测控科技有限公司 Fan monitor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201486905U (en) * 2009-07-08 2010-05-26 李文钦 Multi-section electric fan with selection of swing angles

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07337080A (en) * 1994-06-10 1995-12-22 Hitachi Ltd Air-conditioner
US6256181B1 (en) * 1998-06-25 2001-07-03 Matsushita Electric Industrial Co., Ltd. Fan drive device
CN205315324U (en) * 2015-11-24 2016-06-15 珠海格力电器股份有限公司 Fan
CN108880274A (en) * 2017-05-15 2018-11-23 赤多尼科两合股份有限公司 A kind of output current detection circuit of controlled resonant converter
CN107676281A (en) * 2017-11-09 2018-02-09 信宜市汇美电器有限公司 Fan head angle-adjusting mechanism
CN207554390U (en) * 2017-11-09 2018-06-29 广东美的环境电器制造有限公司 Fan and its speed-regulating control circuit
CN209117756U (en) * 2018-12-03 2019-07-16 东莞市杰创电子测控科技有限公司 Fan monitor

Also Published As

Publication number Publication date
CN113945147A (en) 2022-01-18

Similar Documents

Publication Publication Date Title
JP3124473U (en) Motor control device for brushless DC motor
US6400116B1 (en) Motor drive control apparatus
JP2004040943A (en) Method and device for detecting rotor stop position of sensorless motor, and method and device for starting
CN113945147B (en) Detection circuit, detection method thereof, fan and readable storage medium
JP3802547B2 (en) Single phase motor drive
JP2002039808A (en) Indicating instrument for vehicle
JP2002153091A (en) Control device for stepping motor
JP3828785B2 (en) Initialization drive
JP4652610B2 (en) Step motor rotation control device
CN107769641A (en) A kind of direct current generator PMW governing systems
JPH0799796A (en) Driving device for stepping motor
CN117375335B (en) Method for adjusting line sequence of Hall sensor by motor, control device and BLDC motor
KR20160082888A (en) Apparatus for detecting rotation direction of motor
JPH0631426Y2 (en) Load drive circuit
JP2001275398A (en) Zero-point detection method and positioning device
KR0163807B1 (en) Double speed driving method of a variable reluctance motor
JPH03190588A (en) Brushless motor drive circuit
JP2002272189A (en) Microstep drive apparatus and its drive method, and stepping motor apparatus using the same
JP2021145463A (en) Motor drive and control method
JP2844081B2 (en) DC motor drive circuit
JP2024048927A (en) Motor Control Device
CN117054730A (en) Zero-crossing detection circuit, motor driving circuit and zero-crossing detection method
JP2990396B2 (en) Display switching device
JP2024048947A (en) Motor Control Device
KR0176840B1 (en) Motor control method of airconditioner

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