Embodiment
Below in conjunction with the drawings and specific embodiments, more detailed description is further done to technical scheme of the present invention.Obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the prerequisite of not making creative work, all should belong to the scope of protection of the invention.
In describing the invention, it is to be appreciated that term " first ", " second " etc. are only for describing object, and instruction or hint relative importance can not be interpreted as.In describing the invention, it should be noted that, unless otherwise clearly defined and limited, term " is connected ", " connection " should be interpreted broadly, such as, can be fixedly connected with, also can be removably connect, or connect integratedly; Can be mechanical connection, also can be electrical connection; Can be directly be connected, also indirectly can be connected by intermediary.For the ordinary skill in the art, above-mentioned term concrete meaning in the present invention can be understood in conjunction with concrete condition.In addition, in describing the invention, except as otherwise noted, the implication of " multiple " is two or more.
Describe and can be understood in process flow diagram or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
Fig. 1 is the schematic flow sheet according to the method for wind direction adjustment device orientation in first embodiment of the invention.As shown in the figure, the method according to wind direction adjustment device orientation that the present embodiment provides, comprising:
Step S11: detect wind direction by accelerometer.
Step S12: according to the wind direction adjustment device orientation detected.
Wherein, described equipment can for needing arbitrarily electronic equipment according to wind direction adjustment direction or Non-electronic devices, such as window, screw propeller, sailing boat, aircraft, aerogenerator etc.The described method according to wind direction adjustment device orientation provided by the invention can adjust device orientation according to the wind direction detected, to tackle different occasions and to reach different object.Such as, according to the direction of wind direction adjustment window, the direction of window can be made completely down the wind, realize best ventilation effect.For another example, according to the direction of the sail of wind direction adjustment sailing boat, sailing boat can be made to maximally utilise natural wind and to optimize course line and promote the speed of a ship or plane.For convenience of describing, hereafter only describe technical scheme of the present invention in detail for window.
Fig. 2 is the detailed process schematic diagram detecting wind direction in the embodiment of the present invention according to the accelerometer of the method for wind direction adjustment device orientation.As shown in the figure, describedly detect wind direction step by accelerometer and comprise:
Step S111: accelerometer obtains acceleration.
Wherein, described accelerometer can be the accelerometer of any type, for acceleration measurement vector.In the present embodiment, consider cost and sensitivity factor, select MEMS (micro electro mechanical system) (MEMS, Micro-Electro-MechanicalSystem) inertia device three axis accelerometer.Described accelerometer can be arranged on the neighbouring void spaces of window, detects the wind-force wind speed of natural wind with interference-free as far as possible.The coordinate system of described accelerometer is set to OX
by
bz
b, horizontal coordinate is OX
hy
hz
h, then described accelerometer coordinate system to the transformation matrix of horizontal coordinates is:
Wherein: γ is lateral misalignment angle, θ is vertical drift angle.
Described accelerometer detects wind-force wind speed, obtains acceleration
That is to say that gravity acceleration g is at described accelerometer coordinate system OX
by
bz
bon projection.
Step S112: derive lateral misalignment angle and vertical drift angle according to described acceleration.
Fastening each axle acceleration component in horizontal coordinate is
According to the equation of coordinate transform
Then have:
According to
Lateral misalignment angle can be derived:
And then the described lateral misalignment angle of deriving is updated to:
Vertical drift angle can be derived:
Step S113: according to deriving lateral misalignment angle, indulging the mass density derivation wind intensity of drift angle and described accelerometer shell.
Wherein, according to described lateral misalignment angle
with vertical drift angle
wind intensity can be derived easily with the outer cover quality density of described accelerometer.Described lateral misalignment angle and vertical drift angle numerical value larger, illustrate that wind intensity is larger.
Step S114: judge whether the wind intensity derived exceedes preset value.
Step S115: when judging that the wind intensity derived exceedes preset value, directly adjusts device orientation to preset direction.
In the present embodiment step S113, step S114 and step S115, by deriving wind intensity, directly adjust window direction when described wind intensity is excessive to closed condition direction, by wind-force gear outside window, affect property safety in window to avoid hurricane.
Certainly, described in other, equipment is in the embodiment of aerogenerator, when detecting wind intensity and reaching hurricane strength, the wind-force flabellum of aerogenerator can be adjusted to direction down the wind, reduce wind area and angle as far as possible, to avoid the hurricane of high strength, wind-force flabellum is damaged.When judging that the wind intensity derived does not exceed preset value, then adjusted the direction of equipment by normal adjustment mode.
Step S1116: accelerometer continues to obtain additional acceleration in Preset Time.
Step S117: judge whether the additional acceleration that described accelerometer obtains in Preset Time exceedes default fluctuation range;
Step S118: when the additional acceleration that accelerometer described in Preset Time obtains exceedes in default fluctuation range, described accelerometer obtains acceleration again.
In the present embodiment step S116, step S117 and step S118, by confirming that the additional acceleration that described accelerometer obtains in Preset Time does not exceed default fluctuation range, to determine that acceleration that described accelerometer obtains is for the acceleration under normal continuous wind-force state, avoids the situation adjusting the direction of equipment because wind-force has just blown afloat or rested transition state.When the additional acceleration that accelerometer described in Preset Time obtains exceedes in default fluctuation range, then judge that wind-force is not continual and steady state as the transition state just blown afloat or rest, described accelerometer needs again to obtain acceleration and rejudges wind-force state.
Step S119: the positive and negative and ratio according to the lateral misalignment angle derived and vertical drift angle derives wind direction.
Concrete, when have wind-force get excited described accelerometer time, described accelerometer can run-off the straight.Suppose that window is arranged on west, for independent north and south aweather, X-axis level over the ground all the time, described accelerometer tilts forward or backward, and described accelerometer state as shown in Figure 3.
If when having separately south wind, face upward hypsokinesis before device, the accekeration of Y-axis is negative, is just according to right-hand rule θ value, if when having separately north wind, the swing of described accelerometer 20, the acceleration of Y-axis is just, is negative, passes through formula according to right-hand rule θ value
vertical bias angle theta can be derived; In like manner, lateral misalignment angle can be derived according to the acceleration value of X-axis accelerometer when there being thing aweather
when wind direction be the southeast to or north-westward etc. non-parallel in change in coordinate axis direction wind time, wind direction can be extrapolated by the positive and negative and ratio of vertical bias angle theta and lateral misalignment angle γ.Such as, when wind direction is north by east 45° angle, vertical bias angle theta and lateral misalignment angle γ are negative simultaneously and ratio is 1:1.
In the present embodiment, when actual wind direction is north by east 45° angle, described accelerometer wind direction detected and derive vertical bias angle theta and lateral misalignment angle γ simultaneously for negative and ratio is 1:1 time, described window can be controlled and under right-handed coordinate system, turn clockwise 45 ° to make window completely down the wind, to realize best ventilation effect.Concrete, the adjustment in described window direction is realized by being arranged on servomotor on described window axle and control chip, described control chip can derive the orientation angle of described servomotor adjustment window according to the positive and negative and ratio of the lateral misalignment angle derived and vertical drift angle, and controls described servomotor and described window is rotated the orientation angle derived.Certainly, described accelerometer also can send the positive and negative and ratio of the lateral misalignment angle derived and vertical drift angle to mobile terminal by the wireless communication mode such as WIFI, bluetooth, derive according to the positive and negative and ratio of the lateral misalignment angle derived and vertical drift angle the orientation angle that described servomotor adjusts window by mobile terminal, and control the direction of described servomotor adjustment window by wireless signal.
The described method adjusting device orientation according to wind direction that the present embodiment provides, detects wind direction by accelerometer and according to the wind direction adjustment device orientation detected, can detect the direction that real-time wind direction also dynamically adjusts equipment automatically and accurately.
Fig. 4 is the structural representation according to the device of wind direction adjustment device orientation in second embodiment of the invention.As shown in the figure, the device 10 according to wind direction adjustment device orientation that the present embodiment provides, comprises accelerometer 20 and device orientation adjustment unit 30.
Wherein, described equipment can for needing arbitrarily electronic equipment according to wind direction adjustment direction or Non-electronic devices, such as window, screw propeller, sailing boat, aircraft, aerogenerator etc.The described device 10 according to wind direction adjustment device orientation provided by the invention can adjust device orientation according to the wind direction detected, to tackle different occasions and to reach different object.Such as, according to the direction of wind direction adjustment window, the direction of window can be made completely down the wind, realize best ventilation effect.For another example, according to the direction of the sail of wind direction adjustment sailing boat, sailing boat can be made to maximally utilise natural wind and to optimize course line and promote the speed of a ship or plane.
Described accelerometer 20 can be the accelerometer of any type, for acceleration measurement vector.In the present embodiment, consider cost and sensitivity factor, select MEMS (micro electro mechanical system) (MEMS, Micro-Electro-MechanicalSystem) inertia device three axis accelerometer.Described accelerometer 20 can be arranged on the neighbouring void spaces of window, detects the wind-force wind speed of natural wind with interference-free as far as possible.
Fig. 5 is the structural representation according to the accelerometer of the device of wind direction adjustment device orientation in second embodiment of the invention.As shown in the figure, described accelerometer 20 comprises acceleration acquiring unit 201, lateral misalignment angle and vertical drift angle derivation unit 202 and wind direction derivation unit 203.
Described acceleration acquiring unit 201, for obtaining the acceleration of described accelerometer 20.Concrete, the coordinate system of described accelerometer 10 is set to OX
by
bz
b, horizontal coordinate is OX
hy
hz
h, then the transformation matrix that described accelerometer 20 coordinate is tied to horizontal coordinates is:
Wherein: γ is lateral misalignment angle, θ is vertical drift angle.
Described accelerometer 20 detects wind-force wind speed, obtains acceleration
That is to say that gravity acceleration g is at described accelerometer coordinate system OX
by
bz
bon projection.
Fig. 6 is the structural representation according to the acceleration acquiring unit of the device of wind direction adjustment device orientation in second embodiment of the invention.As shown in the figure, described acceleration acquiring unit 201 comprises original acceleration vector acquiring unit 2011, coriolis acceleration vector acquiring unit 2012 and acceleration judging unit 2013.
Described original acceleration vector acquiring unit 2011, for obtaining the original acceleration of described accelerometer 20.
Coriolis acceleration vector acquiring unit 2012, continues to obtain additional acceleration for obtaining at described original acceleration vector acquiring unit 2011 in the Preset Time after original acceleration.
Acceleration judging unit 2013, for judging whether the acceleration that described coriolis acceleration vector acquiring unit 2012 acquisition is additional in Preset Time remains in default fluctuation range.
When described acceleration judging unit 2013 judges that the acceleration that described coriolis acceleration vector acquiring unit 2012 acquisition is additional in Preset Time exceedes default fluctuation range, described original acceleration vector acquiring unit 2011 obtains original acceleration again.
Described acceleration acquiring unit 201, by confirming that the additional acceleration that described accelerometer 20 obtains in Preset Time does not exceed default fluctuation range, to determine that acceleration that described accelerometer 20 obtains is for the acceleration under normal continuous wind-force state, avoids the situation adjusting the direction of equipment because wind-force has just blown afloat or rested transition state.When the additional acceleration that accelerometer 20 described in Preset Time obtains exceedes in default fluctuation range, then judge that wind-force is not continual and steady state as the transition state just blown afloat or rest, described accelerometer 20 needs again to obtain acceleration and rejudges wind-force state.
Described lateral misalignment angle and vertical drift angle derivation unit 202, derive lateral misalignment angle and vertical drift angle for the described acceleration obtained according to described acceleration acquiring unit 201.Concrete, fastening each axle acceleration component in horizontal coordinate is
According to the equation of coordinate transform
Then have:
According to
Lateral misalignment angle can be derived:
And then the described lateral misalignment angle of deriving is updated to:
Vertical drift angle can be derived:
Like this, the described acceleration that described lateral misalignment angle and vertical drift angle derivation unit 202 can obtain according to described acceleration acquiring unit 201 derives lateral misalignment angle and vertical drift angle.
Described wind direction derivation unit 203, the positive and negative and ratio for the lateral misalignment angle derived according to described lateral misalignment angle and vertical drift angle derivation unit 202 and vertical drift angle derives wind direction.
Concrete, when have wind-force get excited described accelerometer 20 time, described accelerometer 20 can run-off the straight.Suppose that window is arranged on west, for independent north and south aweather, X-axis level over the ground all the time, described accelerometer 20 tilts forward or backward.
If when having separately south wind, face upward hypsokinesis before device, the accekeration of Y-axis is negative, is just according to right-hand rule θ value, if when having separately north wind, the swing of described accelerometer 20, the acceleration of Y-axis is just, is negative, passes through formula according to right-hand rule θ value
vertical bias angle theta can be derived; In like manner, lateral misalignment angle can be derived according to the acceleration value of X-axis accelerometer when there being thing aweather
when wind direction be the southeast to or north-westward etc. non-parallel in change in coordinate axis direction wind time, described wind direction derivation unit 203 can extrapolate wind direction by the positive and negative and ratio of vertical bias angle theta and lateral misalignment angle γ.Such as, when wind direction is north by east 45° angle, vertical bias angle theta and lateral misalignment angle γ are negative simultaneously and ratio is 1:1.
In the present embodiment, when actual wind direction is north by east 45° angle, described accelerometer 20 wind direction detected and by described wind direction derivation unit 203 derive vertical bias angle theta and lateral misalignment angle γ simultaneously for negative and ratio is 1:1 time, described device orientation adjustment unit 30 can control described window and under right-handed coordinate system, turn clockwise 45 ° to make window completely down the wind, to realize best ventilation effect.Concrete, described device orientation adjustment unit 30 can comprise and is arranged on servomotor on described window axle and control chip, described control chip can derive the orientation angle of described servomotor adjustment window according to the positive and negative and ratio of the lateral misalignment angle derived and vertical drift angle, and controls described servomotor and described window is rotated the orientation angle derived.Certainly, positive and negative and the ratio of the lateral misalignment angle that described wind direction derivation unit 203 also can be derived by the wireless communication mode such as WIFI, bluetooth by described accelerometer 20 and vertical drift angle sends mobile terminal to, the lateral misalignment angle derived according to described wind direction derivation unit 203 by mobile terminal and the positive and negative and ratio of vertical drift angle derive the orientation angle that described servomotor adjusts window, and control the direction of described servomotor adjustment window by wireless signal.
The described device adjusting device orientation according to wind direction that the present embodiment provides, detects wind direction by accelerometer and according to the wind direction adjustment device orientation detected, can detect the direction that real-time wind direction also dynamically adjusts equipment automatically and accurately.
Fig. 7 is the structural representation according to the accelerometer of the device of wind direction adjustment device orientation in third embodiment of the invention.As shown in the figure, on the basis of the second embodiment, described accelerometer 20 comprises wind intensity derivation unit 204 and wind intensity judging unit 205 further.
Described wind intensity derivation unit 204, for the mass density derivation wind intensity according to the lateral misalignment angle derived, vertical drift angle and described accelerometer shell.Described wind intensity derivation unit 204 is according to described lateral misalignment angle
with vertical drift angle
wind intensity can be derived easily with the outer cover quality density of described accelerometer.Described lateral misalignment angle and vertical drift angle numerical value larger, illustrate that wind intensity is larger.
Described wind intensity judging unit 205, for judging whether the wind intensity that described wind intensity derivation unit 204 is derived exceedes preset value, when described wind intensity judging unit 205 judges that the wind intensity derived exceedes preset value, described device orientation adjustment unit 30 directly adjusts device orientation to preset direction.
In the present embodiment, derive wind intensity by described wind intensity derivation unit 204, directly adjust window direction when described wind intensity is excessive to closed condition direction, by wind-force gear outside window, affect property safety in window to avoid hurricane.
Certainly, described in other, equipment is in the embodiment of aerogenerator, when described accelerometer detection wind intensity reaches hurricane strength, the wind-force flabellum of aerogenerator can be adjusted to direction down the wind, reduce wind area and angle as far as possible, to avoid the hurricane of high strength, wind-force flabellum is damaged.When judging that the wind intensity derived does not exceed preset value, then adjusted the direction of equipment by normal adjustment mode.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction executing device or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
In the description of this instructions, reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. describe the specific features, structure, material or the feature that mean to describe in conjunction with this embodiment or example and are contained at least one embodiment of the present invention or example.In this manual, identical embodiment or example are not necessarily referred to the schematic representation of above-mentioned term.And the specific features of description, structure, material or feature can combine in an appropriate manner in any one or more embodiment or example.
Although illustrate and describe embodiments of the invention, those having ordinary skill in the art will appreciate that: can carry out multiple change, amendment, replacement and modification to these embodiments when not departing from principle of the present invention and aim, scope of the present invention is by claim and equivalents thereof.