Wind direction and wind speed measuring device and method

By using magnetic sensors and wind resistance balls in the wind speed measurement device to detect wind speed and wind direction, combined with electronic compass and fixed cover, the noise, cost and structural complexity of existing wind speed measurement instruments are solved, and high accuracy and low cost wind speed measurement are achieved.

CN119805619APending Publication Date: 2025-04-11DEMING COMM SHANGHAI CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510075925.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-17
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

Existing wind speed measurement instruments, such as mechanical wind cup anemometers and ultrasonic air meters, have problems such as mechanical noise, high cost, complex structure and poor anti-interference, which are difficult to meet the wide application needs in the civilian field.

Method used

A wind direction and wind speed measurement device is adopted, including a base, a swing needle, a wind resistance ball, a magnetic sensor and a controller. The magnetic sensor detects the change in magnet magnetic flux when the wind resistance ball is displaced, determines the wind direction and wind speed, and combines components such as electronic compass and fixed covers to improve the accuracy and convenience of measurement.

Benefits of technology

It realizes noise-free, low-cost, simple structure and high test accuracy, and is suitable for a wide range of applications in the civilian field and reduces the cost of energy-consuming components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119805619A_ABST
    Figure CN119805619A_ABST
Patent Text Reader

Abstract

The invention provides a wind direction and wind speed measuring device and method. The device comprises a base, a swing needle, a wind resistance ball, a magnetic sensor and a controller, the wind resistance ball is suspended above the base through a swing needle, and a magnet is arranged at the bottom of the wind resistance ball; the magnetic sensor is installed on the base and located below the magnet in the height direction. The magnetic sensor is used for detecting magnetic flux of the magnet; the controller is connected with the magnetic sensor and is used for acquiring the current magnetic flux of the magnet; and determining the current wind speed and wind direction at least according to the difference between the current magnetic flux of the magnet and the initial magnetic flux of the magnet in the windless state. The device is simple in structure, low in cost and capable of accurately measuring the wind direction and the wind speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of wind direction and wind speed measurement, and more specifically to a wind direction and wind speed measurement device and method. Background Art

[0002] As a natural phenomenon, wind is one of the important factors affecting the climate, and it also contains huge energy. Since the size of wind speed directly affects all aspects of human life and social production, people have always attached great importance to wind monitoring. Wind speed measurement is widely used in meteorology, civil aviation, highways, bridges, new energy and other industries, and has broad prospects.

[0003] In the related technology, the following two types of anemometers are mainly used: one is the traditional mechanical cup (3-Cup) type, and the other is the ultrasonic anemometer. The mechanical cup anemometer relies on mechanical rotation to measure wind speed, and there is mechanical rotation noise; although the ultrasonic anemometer has no mechanical rotating parts, the ultrasonic device is expensive, the cost is high, and the popularity rate is low.

[0004] In view of this, the present invention is proposed. Summary of the invention

[0005] The present invention is proposed in view of the above problems. According to one aspect of the present invention, a wind direction and wind speed measuring device is provided, comprising: a base, a pendulum needle, a wind resistance ball, a magnetic sensor and a controller; The wind resistance ball is suspended above the base through the pendulum needle, and a magnet is arranged at the bottom of the wind resistance ball; The magnetic sensor is mounted on the base and is located below the magnet in the height direction; the magnetic sensor is used to detect the magnetic flux of the magnet; The controller is connected to the magnetic sensor, and is used to obtain the current magnetic flux of the magnet; and determine the current wind speed and wind direction based on at least the difference between the current magnetic flux of the magnet and the initial magnetic flux of the magnet in a windless state.

[0006] Exemplarily, it also includes an electronic compass, which is installed on the base; the controller is connected to the electronic compass to obtain the geomagnetic azimuth detected by the electronic compass.

[0007] Exemplarily, it also includes a fixed cover, which is fixedly arranged above the base, the wind resistance ball is located between the fixed cover and the base, one end of the pendulum needle is fixed on the fixed cover, and the other end is connected to the wind resistance ball.

[0008] Exemplarily, a protective net is provided between the fixed cover and the base, and the protective net is arranged around the outer side of the wind resistance ball.

[0009] According to another aspect of the present invention, a method for measuring wind direction and wind speed is provided, and the method is applied to any of the above-mentioned devices; the method comprises: obtaining the current magnetic flux of the magnet; The current wind speed and wind direction are determined based at least on the difference between the current magnetic flux of the magnet and the initial magnetic flux of the magnet in a windless state.

[0010] Exemplarily, the magnetic flux includes a first magnetic flux along the x-axis direction of the magnetic sensor, a second magnetic flux along the y-axis direction of the magnetic sensor, and a third magnetic flux along the z-axis direction of the magnetic sensor; the current magnetic flux includes a current first magnetic flux, a current second magnetic flux, and a current third magnetic flux, and the initial magnetic flux includes an initial first magnetic flux, an initial second magnetic flux, and an initial third magnetic flux; The determining of the current wind speed and wind direction based on at least a difference between the current magnetic flux of the magnet and the initial magnetic flux of the magnet in a windless state comprises: Determine the magnetic wind direction according to a first magnetic flux difference and a second magnetic flux difference, wherein the first magnetic flux difference is the difference between the current first magnetic flux and the initial first magnetic flux, and the second magnetic flux difference is the difference between the current second magnetic flux and the initial second magnetic flux; The current wind direction is determined at least based on the magnetic wind direction.

[0011] Exemplarily, the device includes an electronic compass; the method further includes: Obtaining the geomagnetic azimuth detected by the electronic compass; The determining the current wind direction at least according to the magnetic wind direction comprises: The current wind direction is determined based at least on the magnetic wind direction and the geomagnetic azimuth.

[0012] Exemplarily, determining the current wind direction at least according to the magnetic wind direction and the geomagnetic azimuth includes: Determining the actual geomagnetic azimuth according to the difference between the geomagnetic azimuth and the geomagnetic declination; Determining the current wind direction according to the magnetic wind direction, the actual geomagnetic azimuth, and the deviation angle between the electronic compass and the magnetic sensor; The deviation angle is the angle between the device coordinate system corresponding to the electronic compass and the device coordinate system corresponding to the magnetic sensor.

[0013] Exemplarily, determining the magnetic wind direction according to the first magnetic flux difference and the second magnetic flux difference includes: When the first magnetic flux difference is greater than 0 and the second magnetic flux difference is equal to 0, the magnetic wind direction is determined to be 90°; When the first magnetic flux difference is less than 0 and the second magnetic flux difference is equal to 0, the magnetic wind direction is determined to be 270°; When the second magnetic flux difference is not 0, the magnetic wind direction is determined based on the current wind angle, wherein the current wind angle is the arc tangent value of the ratio of the first magnetic flux difference to the second magnetic flux difference.

[0014] Exemplarily, determining the current wind speed and wind direction at least based on the difference between the current magnetic flux of the magnet and the magnetic flux of the magnet in a windless state includes: The current wind speed is determined according to the difference between the current magnetic flux of the magnet and the magnetic flux of the magnet in a windless state.

[0015] Exemplarily, the magnetic flux includes a first magnetic flux along the x-axis direction of the magnetic sensor, a second magnetic flux along the y-axis direction of the magnetic sensor, and a third magnetic flux along the z-axis direction of the magnetic sensor; the current magnetic flux of the magnet includes a current first magnetic flux, a current second magnetic flux, and a current third magnetic flux, and the magnetic flux of the magnet in a windless state includes an initial first magnetic flux, an initial second magnetic flux, and an initial third magnetic flux; determining the current wind speed according to the difference between the current magnetic flux of the magnet and the magnetic flux of the magnet in a windless state includes: Determining a current magnetic flux intensity according to a difference between the current first magnetic flux and the initial first magnetic flux, and a difference between the current second magnetic flux and the initial second magnetic flux; Based on the current magnetic flux intensity, the current wind speed is determined.

[0016] Exemplarily, before determining the current magnetic flux intensity according to the difference between the current first magnetic flux and the initial first magnetic flux, and the difference between the current second magnetic flux and the initial second magnetic flux, the method further includes: Determining whether the current third magnetic flux exceeds a magnetic flux threshold; When the current third magnetic flux exceeds the magnetic flux threshold, determining the current wind speed based on the current third magnetic flux; Wherein, the step of determining the current magnetic flux strength based on the difference between the current first magnetic flux and the initial first magnetic flux, and the difference between the current second magnetic flux and the initial second magnetic flux is performed when the current third magnetic flux does not exceed the magnetic flux threshold.

[0017] Exemplarily, the obtaining the magnetic flux of the current magnet includes: Using the magnetic sensor to repeatedly detect the magnetic flux of the magnet within a preset time period and according to a preset period to obtain multiple sets of magnetic flux data; The average values ​​of the multiple sets of magnetic flux data are calculated to obtain the current magnetic flux.

[0018] The device provided by the above technical solution uses a magnetic sensor to detect the change in the magnetic flux of the magnet when the wind resistance ball is displaced to determine the wind direction and wind speed. Compared with the mechanical cup anemometer, the device has no continuous mechanical rotating parts, only a small displacement of the wind resistance ball, no noise, and is environmentally friendly. The overall structure of the device is simple, and the cost is low compared to the ultrasonic anemometer, so it is easy to be promoted and used in the civilian field. In addition, the device has fewer energy-consuming components (such as controllers and magnetic sensors) when working, and the energy consumption required for operation is low, and the cost of use is low. In short, the device of this scheme has a simple structure, low cost, no noise, and high test accuracy, and can be used for wind speed measurement in the civilian field.

[0019] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The above and other purposes, features and advantages of the present invention will become more apparent by describing the embodiments of the present invention in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0021] Figure 1 A schematic flow chart showing a wind direction and wind speed measuring device according to an embodiment of the present invention; Figure 2 A schematic diagram of a measurement principle according to an embodiment of the present invention is shown; Figure 3 Show Figure 2 A schematic diagram of a coordinate system of the illustrated embodiment; Figure 4 A schematic block diagram showing the circuit principle of a device according to an embodiment of the present invention; Figure 5 A schematic flow chart showing a method for measuring wind direction and wind speed according to an embodiment of the present invention is shown; Figure 6 A schematic diagram of wind direction according to an embodiment of the present invention is shown; Figure 7 A schematic diagram showing the movement of a wind resistance ball under the action of wind force according to an embodiment of the present invention is shown; Figure 8 FIG. 4 is a schematic diagram showing a change in magnetic flux according to an embodiment of the present invention.

[0022] Figure 1 Among them, 1. fixed cover; 2. pendulum needle; 3. support column; 4. protection net; 5. wind resistance ball; 6. magnet; 7. base; 8. magnetic sensor. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical scheme and advantages of the present invention more obvious, the exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments of the present invention, and it should be understood that the present invention is not limited to the exemplary embodiments described herein. Based on the embodiments of the present invention described in the present invention, all other embodiments obtained by those skilled in the art without creative work should fall within the protection scope of the present invention.

[0024] As mentioned above, in the related art, the following two types of anemometers are mainly used: one is the traditional mechanical wind cup (3-Cup) type, and the other is the ultrasonic anemometer. The mechanical wind cup anemometer relies on mechanical rotation to measure wind speed, and there is mechanical rotation noise, which pollutes the environment. In addition, the mechanical wind cup anemometer device is large, the response speed is slow, the hysteresis phenomenon is obvious, there is mechanical wear, and the result accuracy is low, especially when measuring low wind speeds, the measurement result error is large. Although the ultrasonic anemometer has no mechanical rotating parts, the ultrasonic device is expensive and has high cost, and the popularity rate in the civilian field is low. In addition, the installation of the ultrasonic anemometer will directly affect the accuracy of the measurement, so the installation requirements are very strict, the structure is relatively complex, and the anti-interference performance is poor. In view of this, the present invention provides a wind direction and wind speed measurement device and method, which has a simple structure, low cost, no noise, high test accuracy, and can be used for wind speed measurement in the civilian field. The device and method are described in detail below.

[0025] According to one aspect of an embodiment of the present invention, a wind direction and wind speed measuring device is provided. Figure 1 FIG. 2 is a schematic flow chart of a wind direction and wind speed measuring device according to an embodiment of the present invention. Figure 1 As shown, the device includes: a base 7, a pendulum needle 2, a wind resistance ball 5, a magnetic sensor 8 and a controller; the wind resistance ball 5 is suspended above the base 7 by the pendulum needle 2, and a magnet 6 is arranged at the bottom of the wind resistance ball 5; the magnetic sensor 8 is installed on the base 7, and the magnetic sensor 8 is located below the magnet 6 along the height direction; the magnetic sensor 8 is used to detect the magnetic flux of the magnet 6; the controller is connected to the magnetic sensor 8, and the controller is used to obtain the current magnetic flux of the magnet 6; the current wind speed and wind direction are determined at least according to the difference between the current magnetic flux of the magnet 6 and the initial magnetic flux of the magnet 6 in a windless state.

[0026] Optionally, the controller may select any existing or future developed chip with control function, for example, nRF52832 chip may be used.

[0027] In this article, the wind resistance ball 5 is made of light material and can be displaced under the action of wind force. The bottom and top of the wind resistance ball 5 refer to the lowest point and the highest point of the wind resistance ball 5 in a windless state, respectively.

[0028] In this article, the wind resistance ball 5 is suspended above the base 7 by the pendulum needle 2. That is, the pendulum needle 2 is vertically arranged, its top end is fixed, and the bottom end is connected to the wind resistance ball 5. The pendulum needle 2 has a certain flexibility, so as to ensure that the wind resistance ball 5 can be displaced under the action of wind force. The way of fixing the top of the pendulum needle 2 can be set as needed. For example, the top of the pendulum needle 2 can be fixed by an independently arranged bracket. The material, diameter and length of the pendulum needle 2 can be selected as needed. In a specific embodiment, the pendulum needle 2 is a steel wire with a diameter of 0.8 mm and a carbon steel material. In another specific embodiment, a wind pressure calculation formula for the wind resistance ball 5 and a pendulum needle deformation calculation formula under the action of wind pressure can be established. These two formulas are used to simulate the theoretical data of the displacement of pendulum needles and wind resistance balls of different specifications under the action of wind force, and the parameters such as the diameter of the wind resistance ball, the diameter of the pendulum needle, and the length of the pendulum needle are determined according to the simulation results.

[0029] Optionally, the initial magnetic flux may be obtained by testing in a windless state before leaving the factory, or may be obtained by measuring using the magnetic sensor 8 in a windless state after the wind direction and speed measuring device is installed in the working environment, which will not be described in detail.

[0030] In this article, the magnetic sensor 8 is used to detect the magnetic flux of the magnet 6. Specifically, it can be used to detect the magnetic flux of the magnet 6 in each axis (x-axis, y-axis, z-axis) in the device coordinate system of the magnetic sensor 8. The magnetic sensor 8 can be any existing or future developed magnetic sensor that can detect the magnetic flux of the magnet 6 in three-dimensional directions. For example, it can be Infineon's 3D magnetic sensor TLV493D-W2B6.

[0031] To facilitate understanding of this solution, the testing principle of this solution is described below. Figure 2 FIG. 2 shows a schematic diagram of the measurement principle according to an embodiment of the present invention. Figure 2 As shown, based on the measurement principle of the joystick of the 3D magnetic sensor, the magnet 6 moves spherically around the fulcrum A close to the magnetic sensor 8. The magnetic sensor 8 can detect the changes in magnetic flux in three directions x, y, and z. The movement direction angle and size of the magnet 6 can be calculated through this change.

[0032] Figure 3 Show Figure 2 The coordinate system diagram of the embodiment shown is as follows. Figure 3 As shown, with the detection center point of the magnetic sensor 8 as the origin, a magnetic spherical model can be established. The movement of the magnet 6 can be equivalent to the spherical movement based on Br (remanent magnetic force, that is, the maximum magnetic flux of the magnet 6), and all the final movements can be obtained through and to describe. is the vertical offset angle, is the horizontal deviation angle, i.e. the wind direction.

[0033] exist Figure 3 In the figure, B represents a magnetic point under the spherical magnetic model, and γ represents the radius from this magnetic point to the center point.

[0034] From the above magnetic spherical model, we can know that:

[0035]

[0036]

[0037] In this solution, the inventor considers that the radius r of the magnetic spherical model is equivalent to Br, the magnetic flux in the x direction is equivalent to Bx, the magnetic flux in the y direction is equivalent to By, and the magnetic flux in the z direction is equivalent to Bz. The magnetic sensor 8 can detect the change of magnetic flux in the x, y, and z directions. Through the change of magnetic flux in the x and y directions, it can be calculated As the current wind direction, the current wind speed can be obtained by fitting the changes in magnetic flux in the x and y directions.

[0038] In this example, the working principle of the device is as follows: the wind resistance ball 5 generates a displacement in a certain wind direction under the action of wind force, driving the magnet 6 installed at the bottom of the wind resistance ball 5 to be displaced. The magnetic sensor 8 located below the magnet 6 can detect the magnetic flux of the magnet 6 after the displacement. The controller can determine the current wind speed and wind direction based on at least the difference between the current magnetic flux of the magnet 6 and the initial magnetic flux of the magnet 6 in the windless state (that is, the change in the magnetic flux of the magnet 6).

[0039] The device provided by the above technical solution uses a magnetic sensor to detect the change in the magnetic flux of the magnet when the wind resistance ball is displaced to determine the wind direction and wind speed. Compared with the mechanical cup anemometer, the device has no continuous mechanical rotating parts, only a small displacement of the wind resistance ball, no noise, and is environmentally friendly. The overall structure of the device is simple, and the cost is low compared to the ultrasonic anemometer, so it is easy to be promoted and used in the civilian field. In addition, the device has fewer energy-consuming components (such as controllers and magnetic sensors) when working, and the energy consumption required for operation is low, and the cost of use is low. In short, the device of this scheme has a simple structure, low cost, no noise, and high test accuracy, and can be used for wind speed measurement in the civilian field.

[0040] Exemplarily, the device further includes an electronic compass, which is mounted on the base 7; the controller is connected to the electronic compass to obtain the geomagnetic azimuth detected by the electronic compass.

[0041] The electronic compass used in the device can be any existing or future developed sensor capable of measuring the direction of the earth's magnetic field, for example, Honeywell HMC5883L.

[0042] The inventors found that the traditional anemometer needs to calibrate the reference direction when installing in order to determine the correct wind direction. This method is complicated to operate, and if the installation position of the device is offset during actual use, it needs to be recalibrated, which is inefficient. In this example, the installation azimuth of the device (i.e., the geomagnetic azimuth) is sensed by an electronic compass, which can correct the wind direction calculated by the change in magnetic flux, thereby ensuring that the result is more accurate.

[0043] The installation position of the electronic compass can be selected as needed. In some embodiments, the x and y axes of the device coordinate system of the electronic compass can be made consistent with the x and y axes of the device coordinate system of the magnetic sensor 8. Of course, the x and y axes of the electronic compass and the x and y axes of the magnetic sensor 8 can also be inconsistent, for example, the angle between them can be a preset angle, which will not be repeated.

[0044] The above technical solution can accurately sense the geomagnetic azimuth of the device by setting up an electronic compass. Compared with the existing anemometer, the device does not need to calibrate the reference direction, is easy to install and use, and even if the installation position is offset, the detected geomagnetic azimuth can be used to automatically correct the wind direction result, which helps to further improve the accuracy of the results.

[0045] For example, Figure 1 As shown, the device also includes a fixed cover 1, which is fixedly arranged above the base 7. The wind resistance ball 5 is located between the fixed cover 1 and the base 7. One end of the pendulum needle 2 is fixed on the fixed cover 1, and the other end is connected to the wind resistance ball 5.

[0046] In such Figure 1In the illustrated embodiment, a support column 3 is provided between the fixed cover 1 and the base 7. The support column 3 can support the fixed cover 1. In an embodiment not shown in the present invention, the fixed cover 1 may not be connected to the base 7. For example, a support frame may be provided separately to arrange the fixed cover 1 above the base 7, which will not be described in detail.

[0047] This technical solution not only simplifies the installation and positioning process of the pendulum needle by designing a fixed protective cover, but also provides effective protection for the pendulum needle and wind resistance ball below. The protective cover can prevent rain and other external factors from directly damaging the pendulum needle and wind resistance ball, thereby reducing the occurrence of corrosion and significantly improving the service life of the device.

[0048] Exemplarily, a protection net 4 is provided between the fixed cover 1 and the base 7 , and the protection net 4 is arranged around the outer side of the wind resistance ball 5 .

[0049] In this example, the mesh size of the protection net 4 can be selected as needed so as not to hinder the wind force from acting on the wind resistance ball 5 as much as possible.

[0050] The solution of this example can protect the wind resistance ball 5 by setting a protective net 4 around the wind resistance ball 5, preventing the wind resistance ball 5 from being damaged by animals or other foreign objects in the wild, which helps to further improve the service life of the device.

[0051] Exemplarily, the device further comprises a communication module, which is connected to the controller and is used to send the determined wind direction and wind speed to a user terminal.

[0052] Optionally, the communication module includes but is not limited to a Bluetooth chip, a Wi-Fi module, a 4G / 5G communication module, etc. In a specific embodiment, the communication module is a Bluetooth chip, and the user can read the wind direction and wind speed determined by the device through a Bluetooth device.

[0053] Exemplarily, the device also includes a power supply. The power supply is connected to the controller, the magnetic sensor 8 and the electronic compass respectively. The power supply can be a wired power supply or a battery. In a specific embodiment, the power supply is a dry cell. It can be understood that since the device of this solution has few energy-consuming elements and the required energy consumption is low, the dry cell can be used to provide power for a long time.

[0054] Optionally, the controller can also be used to control the power supply to periodically power on the magnetic sensor 8 to control the magnetic sensor 8 to work periodically. The power-on period can be selected as needed. For example, it can be 1 day. In this case, the device determines the wind direction and wind speed once a day.

[0055] Optionally, the controller can also be used to control the power supply to power on the electronic compass while controlling the power supply to power on the magnetic sensor 8. In this embodiment, the electronic compass can be turned on at the same time when the magnetic sensor 8 is used for testing each time. In this way, the magnetic flux obtained by the magnetic sensor 8 and the geomagnetic azimuth obtained by the electronic compass are substantially corresponding in time, which helps to improve the accuracy of the wind direction finally determined.

[0056] In some embodiments, the device further comprises a key switch, which is connected to the controller. The key switch can be arranged on the base 7. In other embodiments, the device can further comprise an indicator light, which is connected to the controller and is used to indicate the working state of the device. The indicator light can be mounted on the base 7. For example, the indicator light can emit light when the magnetic sensor 8 is working.

[0057] Figure 4 FIG. 2 is a schematic block diagram showing the circuit principle of a device according to an embodiment of the present invention. Figure 4 As shown, the controller uses a Bluetooth low-power processor, which is connected to a Bluetooth antenna. The Bluetooth low-power processor is connected to the magnetic sensor 8 and the electronic compass sensor (i.e., the electronic compass) respectively. The magnetic sensor and the electronic compass sensor are connected to the power supply through LDO respectively, and the power supply is 3 dry batteries. The power supply, indicator light, and key switch are all connected to the Bluetooth low-power processor. In this embodiment, the Bluetooth low-power processor is connected to two LDOs respectively, and the Bluetooth low-power processor can control the on and off of the magnetic sensor and the electronic compass by controlling the on and off of the LDO. In this embodiment, the Bluetooth low-power processor automatically wakes up periodically, powers on the magnetic sensor, continuously reads the magnetic flux in the x, y, and z directions output by the magnetic sensor according to a period of 5ms-20ms, continuously samples for 3s-20s, processes and averages all sampling points, and outputs the magnetic direction of the wind direction and the wind force. For the magnetic direction of the wind direction, the actual wind direction information of the earth's east, west, south, and north is output by referring to the geomagnetic azimuth of the electronic compass read. The final wind direction and wind force information is sent out via Bluetooth broadcast or Bluetooth connection.

[0058] According to another aspect of the present invention, a method for measuring wind direction and wind speed is provided, which is applied to the device in any of the above embodiments. The specific structure of the device has been described in detail above and will not be repeated here. Figure 5 FIG. 2 is a schematic flow chart of a method for measuring wind direction and wind speed according to an embodiment of the present invention. Figure 5 As shown, the method may include the following steps S510 and S520.

[0059] In step S510, the current magnetic flux of the magnet is obtained.

[0060] Optionally, the current magnetic flux of the magnet may be the magnetic flux detected by the magnetic sensor at the current moment. Alternatively, the current magnetic flux of the magnet may also be determined based on the average value of the magnetic flux detected by the magnetic sensor multiple times, which will not be described in detail.

[0061] In step S520, the current wind speed and wind direction are determined based on at least the difference between the current magnetic flux of the magnet and the initial magnetic flux of the magnet in a windless state.

[0062] After the current magnetic flux of the magnet is obtained, the current wind speed and wind direction can be determined based on the difference between the current magnetic flux and the initial magnetic flux.

[0063] The above technical solution determines the current wind speed and wind direction by utilizing the change in magnetic flux of the magnet when the wind resistance ball swings with the wind. The operation is simple and the result is highly accurate. It can be applied to wind speed measurement scenarios of different sizes.

[0064] Exemplarily, the magnetic flux includes a first magnetic flux along the x-axis direction of the magnetic sensor, a second magnetic flux along the y-axis direction of the magnetic sensor, and a third magnetic flux along the z-axis direction of the magnetic sensor; the current magnetic flux includes a current first magnetic flux, a current second magnetic flux, and a current third magnetic flux, and the initial magnetic flux includes an initial first magnetic flux, an initial second magnetic flux, and an initial third magnetic flux.

[0065] Step S520, determining the current wind speed and wind direction at least based on the difference between the current magnetic flux of the magnet and the initial magnetic flux of the magnet in a windless state, including: determining the magnetic wind direction based on the first magnetic flux difference and the second magnetic flux difference, the first magnetic flux difference being the difference between the current first magnetic flux and the initial first magnetic flux, and the second magnetic flux difference being the difference between the current second magnetic flux and the initial second magnetic flux; determining the current wind direction at least based on the magnetic wind direction.

[0066] As mentioned above, the magnetic flux changes in the x and y directions can be calculated. As the current wind direction. In this example, the first magnetic flux difference and the second magnetic flux difference are the magnetic flux changes in the x and y directions. After obtaining the first magnetic flux difference and the second magnetic flux difference, the magnetic wind direction can be determined according to the magnetic flux changes in these two directions.

[0067] In some embodiments, after the magnetic wind direction is obtained, the magnetic wind direction can be directly used as the current wind direction. In other embodiments, the current wind direction can also be determined by combining the magnetic wind direction and the geomagnetic azimuth.

[0068] In the above technical solution, the magnetic wind direction can be determined more accurately by the change of magnetic flux in the x and y directions, which helps to provide a more accurate basis for determining the current wind direction.

[0069] Exemplarily, the device includes an electronic compass; the method further includes: obtaining a geomagnetic azimuth detected by the electronic compass. Determining the current wind direction at least based on the magnetic wind direction includes: determining the current wind direction at least based on the magnetic wind direction and the geomagnetic azimuth.

[0070] Optionally, before obtaining the geomagnetic azimuth detected by the electronic compass, the electronic compass can be calibrated. In one embodiment, the electronic compass can be rotated horizontally at a constant speed to collect the x-axis data and y-axis data of the electronic compass. Then, the mean of the maximum and minimum values ​​of the x-axis data and the y-axis data is calculated to obtain the error values ​​of the x-axis data and the y-axis data, respectively, that is: Xoffset=(X max +X min ) / 2 Yoffset=(Y max +Y min ) / 2 Among them, Xoffset is the x-axis data error value of the electronic compass, Yoffset is the y-axis data error value of the electronic compass, max and X min are the maximum and minimum values ​​of the x-axis data, and Y max and Y min are the maximum and minimum values ​​of the y-axis data respectively.

[0071] After obtaining the error values ​​of the x-axis data and the y-axis data, the x-axis data and the y-axis data obtained by the current detection (i.e., the x in the following formula) can be used to calculate the error values ​​of the x-axis data and the y-axis data. 1 and Y 1 ), and the corresponding error value, to obtain the actual geomagnetic x and y values ​​(i.e. X, Y in the following formula), and determine the geomagnetic azimuth according to the actual geomagnetic x and y values. That is: X = X 1 -Xoffset Y = Y 1 – Yoffset Geomagnetic azimuth = arctan(Y / X).

[0072] The above technical solution can use the geomagnetic azimuth to correct the magnetic wind direction, thereby improving the accuracy of the current wind direction finally determined.

[0073] Exemplarily, the current wind direction is determined based on at least the magnetic wind direction and the geomagnetic azimuth, including: determining the actual geomagnetic azimuth based on the difference between the geomagnetic azimuth and the geomagnetic declination; determining the current wind direction based on the magnetic wind direction, the actual geomagnetic azimuth, and the deviation angle between the electronic compass and the magnetic sensor; wherein the deviation angle is the angle between the device coordinate system corresponding to the electronic compass and the device coordinate system corresponding to the magnetic sensor.

[0074] In this article, the deviation angle is the angle between the device coordinate system corresponding to the electronic compass and the device coordinate system corresponding to the magnetic sensor. Specifically, the angle between the x-axis in the device coordinate system corresponding to the electronic compass and the x-axis in the device coordinate system corresponding to the magnetic sensor can be taken as the deviation angle.

[0075] In this example, considering that different regions have certain geomagnetic declination, in order to improve the accuracy of the determined geomagnetic azimuth, the scheme of this example first uses the geomagnetic declination to correct the measured geomagnetic azimuth to obtain the actual geomagnetic azimuth, thereby helping to improve the accuracy of the wind direction finally determined.

[0076] In this example, it is also considered that the difference in the placement of the magnetic sensor and the electronic compass may affect the result. Therefore, when determining the current wind direction, the current wind direction is determined based on the magnetic wind direction, the actual geomagnetic azimuth, and the deviation angle between the electronic compass and the magnetic sensor. This helps to further improve the accuracy of the determined current wind direction.

[0077] In one embodiment, the x-axis and y-axis of the magnetic sensor are consistent with the x-axis and y-axis of the electronic compass, and the deviation angle is 0. In this embodiment, the current wind direction is determined according to the magnetic wind direction, the actual geomagnetic azimuth, and the deviation angle between the electronic compass and the magnetic sensor, including: calculating the difference between the magnetic wind direction and the actual geomagnetic azimuth to obtain the current wind direction. For example, if the magnetic wind direction is 45° and the actual geomagnetic azimuth is 0°, then the current wind direction is 45°. If the magnetic wind direction is 55° and the actual geomagnetic azimuth is 10°, then the current wind direction is 45°.

[0078] In another embodiment, the x-axis and y-axis of the magnetic sensor are not in the same direction as the x-axis and y-axis of the electronic compass, and the angle between the x-axis of the magnetic sensor and the x-axis of the electronic compass is a preset angle. In this case, the current wind direction is determined according to the magnetic wind direction, the actual geomagnetic azimuth, and the deviation angle between the electronic compass and the magnetic sensor, including: calculating the difference between the magnetic wind direction and the actual geomagnetic azimuth; when the direction of the preset angle is positive, adding the difference to the preset angle to obtain the current wind direction; when the direction of the preset angle is negative, calculating the difference between the difference and the preset angle to obtain the current wind direction.

[0079] The following is a specific example for explanation. Figure 6 FIG. 2 shows a schematic diagram of wind direction according to an embodiment of the present invention. Figure 6 As shown, if the sensor Y direction (i.e. the magnetic sensor Y direction) is defined as 0 degrees, the wind direction relative to the magnetic sensor is calculated as β There is a distance between the Y direction of the geomagnetic field (i.e. the Y direction of the electronic compass) and the Y direction of the magnetic sensor. α The actual wind direction is β - α.

[0080] In the above technical solution, the current wind direction can be determined more accurately by combining the magnetic wind direction, the actual geomagnetic azimuth, and the deviation angle between the electronic compass and the magnetic sensor. The results of this solution can provide a more accurate basis for fields such as meteorological monitoring.

[0081] Exemplarily, the magnetic wind direction is determined based on the first magnetic flux difference and the second magnetic flux difference, including: when the first magnetic flux difference is greater than 0 and the second magnetic flux difference is equal to 0, determining the magnetic wind direction to be 90°; when the first magnetic flux difference is less than 0 and the second magnetic flux difference is equal to 0, determining the magnetic wind direction to be 270°; when the second magnetic flux difference is not 0, determining the magnetic wind direction based on the current wind angle, wherein the current wind angle is the inverse tangent of the ratio of the first magnetic flux difference to the second magnetic flux difference.

[0082] In some embodiments, the current first magnetic flux is X1, the current second magnetic flux is Y1, the initial first magnetic flux is X0, and the initial second magnetic flux is Y0.

[0083] If Y1-Y0=0, X1-X0>0, then the magnetic wind direction Angle = 90; If Y1-Y0=0, X<0, then the magnetic wind direction Angle = 270; If X1-X0>=0, Y1-Y0>0, then the magnetic wind direction Angle = atan(Alpha)*180 / π; If X1-X0>=0, Y1-Y0<0, then the magnetic wind direction Angle = 180-atan(Alpha)*180 / π; If X1-X0<0, Y1-Y0>0, then the magnetic wind direction Angle = 360-atan(Alpha)*180 / π; If X1-X0<0, Y1-Y0<0, then the magnetic wind direction Angle = 180+atan(Alpha)*180 / π; Among them, the current wind angle Alpha = atan(|X1-X0| / | Y1-Y0|).

[0084] Optionally, determining the magnetic wind direction according to the first magnetic flux difference and the second magnetic flux difference also includes: determining that the current state is in a windless state when the first magnetic flux difference and the second magnetic flux difference are both equal to 0. That is, if X1-X0=0, Y1-Y0=0, the magnetic wind direction cannot be determined at this time, and the current state may be in a windless state, and N / A can be output.

[0085] The above technical solution can ensure the accuracy of the determined current wind direction in different situations by classifying the first magnetic flux difference and the second magnetic flux difference.

[0086] Exemplarily, determining the current wind speed and wind direction at least based on the difference between the current magnetic flux of the magnet and the magnetic flux of the magnet in a windless state includes: determining the current wind speed based on the difference between the current magnetic flux of the magnet and the magnetic flux of the magnet in a windless state. This solution can determine the current wind speed more accurately.

[0087] Exemplarily, the magnetic flux includes a first magnetic flux along the x-axis direction of the magnetic sensor, a second magnetic flux along the y-axis direction of the magnetic sensor, and a third magnetic flux along the z-axis direction of the magnetic sensor; the magnetic flux of the current magnet includes a current first magnetic flux, a current second magnetic flux, and a current third magnetic flux, and the magnetic flux of the magnet in a windless state includes an initial first magnetic flux, an initial second magnetic flux, and an initial third magnetic flux; The current wind speed is determined based on the difference between the magnetic flux of the current magnet and the magnetic flux of the magnet in a windless state, including: determining the current magnetic flux intensity based on the difference between the current first magnetic flux and the initial first magnetic flux, and the difference between the current second magnetic flux and the initial second magnetic flux; determining the current wind speed based on the current magnetic flux intensity.

[0088] Optionally, determining the current magnetic flux intensity according to the difference between the current first magnetic flux and the initial first magnetic flux, and the difference between the current second magnetic flux and the initial second magnetic flux, includes: determining the current magnetic flux intensity S by the following formula: S = sqrt((X1-X0) 2 + (Y1-Y0) 2 ) Among them, X1 is the current first magnetic flux, X0 is the initial first magnetic flux, Y1 is the current second magnetic flux, and Y0 is the initial second magnetic flux.

[0089] Based on the current magnetic flux intensity, the current wind speed is determined, including: determining the current wind speed V by the following formula: V 2 = k 1 *S + b 1 Among them, k 1 represents the first slope, b 1 represents the first intercept, k 1 and b 1 are all known quantities and can be obtained through pre-testing. For example, the device can be tested under different wind speed conditions to obtain the magnetic flux intensity under different wind speed conditions. Then, linear regression can be performed based on these data to obtain k 1 and b1 For example, after obtaining the magnetic flux intensity under different wind speed conditions, k can be calculated using the function formula SLOPE in xls. 1 , calculate b through the function formula INTERCEPT in xls 1 .

[0090] Figure 7 FIG. 2 is a schematic diagram showing the movement of a wind resistance ball under the action of wind force according to an embodiment of the present invention. Figure 7 As shown, P is the wind pressure on the wind resistance ball, L is the length of the pendulum needle, and yb is the deflection offset of the wind resistance ball.

[0091] According to the winding curve formula:

[0092] x = L , the maximum winding formula is:

[0093] in, E is the elastic modulus of the pendulum needle, I is the moment of inertia of the pendulum cross section, ; d is the cross-sectional diameter of the pendulum needle.

[0094] According to the Bernoulli equation, the wind pressure formula is: P=0.5*R0*V*V Where P is wind pressure, unit is kN / m 2 , R0 is the air density, unit is kg / m 3 , V is wind speed, unit is m / s.

[0095] Since the relationship between air density and weight is R=R0*g, it can be concluded that R0=R / g. According to the wind pressure formula of the Bernoulli equation above, the wind pressure formula can be obtained: P=0.5*R*V*V / g Among them, R is the air density under standard conditions (pressure 1013hPa, temperature 15 degrees), R=0.01225kN / m 3 , g=9.8m / s 2 .

[0096] Substituting the air weight and g under standard conditions, we can get the standard wind pressure formula: P=V*V / 1600 At this time, the cross-sectional area of ​​the wind resistance ball can be expressed as

[0097] According to the pressure formula: P= Bf / Bs = V*V / 1600*1000 We can get: Bf = Bs * V * V / 1600 * 1000 =

[0098] Through the above formula, the inventor found that the square of wind speed is proportional to the deflection of the wind resistance ball, and the deflection is proportional to the magnetic flux intensity within a short range. Therefore, there must be a conversion relationship between the square of wind speed and magnetic flux intensity. That is, V 2 = k 1 *S + b 1 Based on this, the solution of this example determines the wind speed by the difference between the current first magnetic flux and the initial first magnetic flux, and the difference between the current second magnetic flux and the initial second magnetic flux. This method is simple to operate and has high accuracy.

[0099] Exemplarily, before determining the current magnetic flux strength based on the difference between the current first magnetic flux and the initial first magnetic flux, and the difference between the current second magnetic flux and the initial second magnetic flux, the method also includes: judging whether the current third magnetic flux exceeds the magnetic flux threshold; when the current third magnetic flux exceeds the magnetic flux threshold, determining the current wind speed based on the current third magnetic flux; wherein, the step of determining the current magnetic flux strength based on the difference between the current first magnetic flux and the initial first magnetic flux, and the difference between the current second magnetic flux and the initial second magnetic flux is performed when the current third magnetic flux does not exceed the magnetic flux threshold.

[0100] Figure 8 FIG. 1 is a schematic diagram showing the change of magnetic flux according to an embodiment of the present invention. The horizontal axis represents the offset angle of the magnet, and the vertical axis represents the magnetic flux intensity. The inventors have found through research that Figure 8 As shown, when the wind resistance ball deviates to the left or right from a stationary state (corresponding to the origin in the figure), the magnetic flux Bx in the x direction will increase, but after a certain angle of deviation, the magnetic flux Bx will reach a peak value, and then deviate, the magnetic flux Bx will decrease. When the magnetic flux Bx reaches a peak value and then deviates, the wind speed determined by the magnetic flux Bx may not be accurate. In view of this, the inventors consider determining the wind speed by the magnetic flux in the z direction after exceeding a certain critical point. The critical point is the magnetic flux threshold. In some embodiments, the magnetic flux in the z direction corresponding to the peak point of the magnetic flux in the x direction can be determined in advance by experiments to obtain the magnetic flux threshold.

[0101] In some embodiments, determining the current wind speed based on the current third magnetic flux includes: determining the current wind speed by the following formula: V 2 = k 2*Z + b 2 .

[0102] Wherein, Z is the current third magnetic flux. 2 and b 2 are the second slope and the second intercept, respectively, k 2 and b 2 are all known quantities and can be obtained through pre-testing. For example, the third magnetic flux under different wind speed conditions when the third magnetic flux exceeds the magnetic flux threshold can be obtained. Then, linear regression can be performed based on these data to obtain k 2 and b 2 .

[0103] In the above technical solution, when the current third magnetic flux does not exceed the magnetic flux threshold, the current wind speed is determined based on the difference between the current first magnetic flux and the initial first magnetic flux, and the difference between the current second magnetic flux and the initial second magnetic flux. When the current third magnetic flux exceeds the magnetic flux threshold, the current wind speed is determined based on the current third magnetic flux. In this way, the accuracy of the determined wind speed can be guaranteed under different wind speed conditions.

[0104] Exemplarily, obtaining the current magnetic flux of the magnet includes: using a magnetic sensor to repeatedly detect the magnetic flux of the magnet according to a preset period within a preset time length to obtain multiple sets of magnetic flux data; calculating the average of the multiple sets of magnetic flux data to obtain the current magnetic flux.

[0105] It can be understood that the mean of multiple sets of magnetic flux data refers to the mean of the magnetic flux in the same direction in the multiple sets of magnetic flux data. That is, when the magnetic flux data includes magnetic flux in three directions of x, y, and z, the mean magnetic flux in the x direction, the mean magnetic flux in the y direction, and the mean magnetic flux in the z direction of the multiple sets of magnetic flux data can be calculated respectively to obtain the current magnetic flux.

[0106] Optionally, both the preset duration and the preset period can be selected according to actual needs. In a specific embodiment, the preset duration can be in the range of [3, 20] s, and the preset period can be in the range of [5, 20] ms. That is, the magnetic flux in the x, y, and z directions output by the magnetic sensor is continuously read at a period of 5 ms-20 ms, and the continuous sampling is 3 s-20 s.

[0107] The above technical solution determines the current magnetic flux by integrating the results of multiple measurements, which can avoid the adverse effect of a single measurement error on the result, thereby helping to improve the accuracy of the wind speed and wind direction finally determined.

[0108] Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above example embodiments are merely exemplary and are not intended to limit the scope of the present invention thereto. Various changes and modifications may be made therein by one of ordinary skill in the art without departing from the scope and spirit of the present invention. All such changes and modifications are intended to be included within the scope of the present invention as required by the appended claims.

[0109] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0110] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.

[0111] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0112] Similarly, it should be understood that in order to streamline the present invention and help understand one or more of the various inventive aspects, in the description of the exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, the method of the present invention should not be interpreted as reflecting the following intention: the claimed invention requires more features than the features explicitly stated in each claim. More specifically, as reflected in the corresponding claims, the inventive point is that the corresponding technical problem can be solved with less than all the features of a single disclosed embodiment. Therefore, the claims following the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present invention.

[0113] Those skilled in the art will understand that, except for mutually exclusive features, all features disclosed in this specification (including the accompanying claims, abstract and drawings) and all processes or units of any method or device disclosed in this specification may be combined in any combination. Unless otherwise explicitly stated, each feature disclosed in this specification (including the accompanying claims, abstract and drawings) may be replaced by an alternative feature that provides the same, equivalent or similar purpose.

[0114] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims, any one of the claimed embodiments may be used in any combination.

[0115] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some modules in a controller according to an embodiment of the present invention. The present invention may also be implemented as a device program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0116] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.

[0117] The above is only a specific embodiment of the present invention or an explanation of a specific embodiment. The protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. The protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A wind direction and wind speed measuring device, characterized in that: include: Base, pendulum needle, wind resistance ball, magnetic sensor and controller; The wind resistance ball is suspended above the base through the pendulum needle, and a magnet is arranged at the bottom of the wind resistance ball; The magnetic sensor is mounted on the base and is located below the magnet in the height direction; the magnetic sensor is used to detect the magnetic flux of the magnet; The controller is connected to the magnetic sensor, and is used to obtain the current magnetic flux of the magnet; and determine the current wind speed and wind direction based on at least the difference between the current magnetic flux of the magnet and the initial magnetic flux of the magnet in a windless state.

2. The device according to claim 1, characterized in that It also includes an electronic compass, which is installed on the base; the controller is connected to the electronic compass to obtain the geomagnetic azimuth detected by the electronic compass.

3. The device according to claim 1, characterized in that It also includes a fixed cover, which is fixedly arranged above the base. The wind resistance ball is located between the fixed cover and the base. One end of the pendulum needle is fixed on the fixed cover, and the other end is connected to the wind resistance ball.

4. The device according to claim 3, characterized in that A protection net is arranged between the fixing cover and the base, and the protection net is arranged around the outer side of the wind resistance ball.

5. A method for measuring wind direction and wind speed, characterized in that: The device according to any one of claims 1 to 4; the method comprising: obtaining the current magnetic flux of the magnet; The current wind speed and wind direction are determined based at least on the difference between the current magnetic flux of the magnet and the initial magnetic flux of the magnet in a windless state.

6. The method according to claim 5, characterized in that The magnetic flux includes a first magnetic flux along the x-axis direction of the magnetic sensor, a second magnetic flux along the y-axis direction of the magnetic sensor, and a third magnetic flux along the z-axis direction of the magnetic sensor; the current magnetic flux includes a current first magnetic flux, a current second magnetic flux, and a current third magnetic flux, and the initial magnetic flux includes an initial first magnetic flux, an initial second magnetic flux, and an initial third magnetic flux; The determining of the current wind speed and wind direction based on at least a difference between the current magnetic flux of the magnet and the initial magnetic flux of the magnet in a windless state comprises: Determine the magnetic wind direction according to a first magnetic flux difference and a second magnetic flux difference, wherein the first magnetic flux difference is the difference between the current first magnetic flux and the initial first magnetic flux, and the second magnetic flux difference is the difference between the current second magnetic flux and the initial second magnetic flux; The current wind direction is determined at least based on the magnetic wind direction.

7. The method according to claim 6, characterized in that The device includes an electronic compass; the method further includes: Obtaining the geomagnetic azimuth detected by the electronic compass; The determining the current wind direction at least according to the magnetic wind direction comprises: Determining the current wind direction at least according to the magnetic wind direction and the geomagnetic azimuth; Preferably, determining the current wind direction at least according to the magnetic wind direction and the geomagnetic azimuth includes: Determining the actual geomagnetic azimuth according to the difference between the geomagnetic azimuth and the geomagnetic declination; Determining the current wind direction according to the magnetic wind direction, the actual geomagnetic azimuth, and the deviation angle between the electronic compass and the magnetic sensor; The deviation angle is the angle between the device coordinate system corresponding to the electronic compass and the device coordinate system corresponding to the magnetic sensor.

8. The method according to claim 6 or 7, characterized in that: Determining the magnetic wind direction according to the first magnetic flux difference and the second magnetic flux difference includes: When the first magnetic flux difference is greater than 0 and the second magnetic flux difference is equal to 0, the magnetic wind direction is determined to be 90°; When the first magnetic flux difference is less than 0 and the second magnetic flux difference is equal to 0, the magnetic wind direction is determined to be 270°; When the second magnetic flux difference is not 0, the magnetic wind direction is determined based on the current wind angle, wherein the current wind angle is the arc tangent of the ratio of the first magnetic flux difference to the second magnetic flux difference.

9. The method according to claim 5, characterized in that The determining of the current wind speed and wind direction based on at least the difference between the current magnetic flux of the magnet and the magnetic flux of the magnet in a windless state comprises: determining the current wind speed according to the difference between the current magnetic flux of the magnet and the magnetic flux of the magnet in a windless state; Preferably, the magnetic flux includes a first magnetic flux along the x-axis direction of the magnetic sensor, a second magnetic flux along the y-axis direction of the magnetic sensor, and a third magnetic flux along the z-axis direction of the magnetic sensor; the current magnetic flux of the magnet includes a current first magnetic flux, a current second magnetic flux, and a current third magnetic flux, and the magnetic flux of the magnet in a windless state includes an initial first magnetic flux, an initial second magnetic flux, and an initial third magnetic flux; determining the current wind speed according to the difference between the current magnetic flux of the magnet and the magnetic flux of the magnet in a windless state comprises: Determining a current magnetic flux intensity according to a difference between the current first magnetic flux and the initial first magnetic flux, and a difference between the current second magnetic flux and the initial second magnetic flux; Based on the current magnetic flux intensity, determining the current wind speed; Preferably, before determining the current magnetic flux intensity according to the difference between the current first magnetic flux and the initial first magnetic flux, and the difference between the current second magnetic flux and the initial second magnetic flux, the method further comprises: Determining whether the current third magnetic flux exceeds a magnetic flux threshold; When the current third magnetic flux exceeds the magnetic flux threshold, determining the current wind speed based on the current third magnetic flux; Wherein, the step of determining the current magnetic flux strength based on the difference between the current first magnetic flux and the initial first magnetic flux, and the difference between the current second magnetic flux and the initial second magnetic flux is performed when the current third magnetic flux does not exceed the magnetic flux threshold.

10. The method according to claim 5, characterized in that The obtaining of the magnetic flux of the current magnet comprises: Using the magnetic sensor to repeatedly detect the magnetic flux of the magnet within a preset time period and according to a preset period to obtain multiple sets of magnetic flux data; The average values ​​of the multiple sets of magnetic flux data are calculated to obtain the current magnetic flux.