Circuit for measuring wind direction based on magnetoelectric principle
By designing a circuit including power supply circuit, microcontroller, permanent magnet and RS485 communication circuit, the magnetic encoder SC60228 and RS485 communication circuits are used to realize wind direction detection, which solves the problem of wind direction detection accuracy and cost in the existing technology, and achieves high accuracy , low-cost wind direction monitoring effect.
Patent Information
- Application Number
- CN202322886098.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-25
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2033-10-25
AI Technical Summary
There is a lack of an effective circuit for measuring wind direction based on the magnetoelectric principle in the prior art, making it difficult to achieve high-precision, stable and low-cost wind direction detection.
A circuit including a power supply circuit, a microcontroller STM8S003F3P6, a permanent magnet, a chip SC60228 and a RS485 communication circuit is designed. The magnetic encoder SC60228 and RS485 communication circuits are used to realize wind direction detection, and current output is provided through the transformer current transmission circuit.
It realizes high-precision and real-time wind direction monitoring, avoids equipment damage, simple circuit, easy to miniaturize, low cost, easy to install, and long-term stable operation.
Smart Images

Figure CN222070647U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of environmental monitoring, in particular to a circuit for measuring wind direction based on a magnetoelectric principle. Background Art
[0002] As a common natural phenomenon, wind has a very important impact on all aspects of people's production and life. Especially in the field of meteorological survey, abnormal weather can be predicted according to the changes in wind, thereby reducing possible losses. In the field of agricultural production, wind speed and wind direction information can be used to grasp the timing of work such as sowing and spraying pesticides; in the field of industrial production, changes in wind direction and wind force will also have a certain impact on pollutants, so some industries with high requirements for energy conservation and emission reduction will also be restricted in this regard. Therefore, based on actual production needs, the detection of wind direction and wind speed is particularly important, which is also the main driving force and reason for the development of wind direction and wind speed sensors. Utility Model Content
[0003] The technical problem to be solved by the utility model is that, in view of the technical defects existing in the prior art, a circuit for measuring wind direction based on the magnetoelectric principle is provided, comprising a power supply circuit, a single-chip microcomputer STM8S003F3P6, a permanent magnet, a chip SC60228 and an RS485 communication circuit;
[0004] The power supply circuit is electrically connected to the single-chip computer STM8S003F3P6, the chip SC60228 and the RS485 communication circuit for power supply; the permanent magnet is fixedly arranged at the bottom of the wind vane that can swing with the wind, and the chip SC60228 is arranged directly below the wind vane when it is vertically downward; the 1st, 6th, 7th and 8th pins of the chip SC60228 are respectively connected to the 20th, 17th, 16th and 15th pins of the single-chip computer STM8S003F3P6.
[0005] In the circuit for measuring wind direction based on the magnetoelectric principle of the utility model, the RS485 communication circuit includes a chip TP8485E, the 1st and 4th pins of TP8485E are respectively connected to the 3rd and 2nd pins of STM8S003F3P6, and the 2nd and 3rd pins of TP8485E are connected together to the 10th pin of STM8S003F3P6; after the 6th and 7th pins of TP8485 are each connected to a fuse, the two output ends of the RS485 communication circuit are respectively led out, and the 6th pin of TP8485 is connected to the positive power supply through a pull-up resistor, the 7th pin of TP8485 is grounded through a pull-down resistor, and an SMBJ6.0CA is respectively connected between the 6th pin of TP8485 and the ground, between the 7th pin and the ground, and between the 6th and 7th pins.
[0006] In the circuit for measuring wind direction based on the magnetoelectric principle of the utility model, the pull-up resistor and the pull-down resistor are both 47KΩ, and the positive power supply is 5.0V.
[0007] In the circuit for measuring wind direction based on the magnetoelectric principle of the utility model, the power supply circuit includes a chip RY8401, the 5th pin of RY8401 is connected to the cathode of a diode, the cathode of the diode is connected in series with a first voltage-stabilizing capacitor and grounded, and an enable terminal resistor is connected in series between the cathode of the diode and the 4th pin of RY8401, the anode of the diode is used to input a 12V input power supply, a 0.1μF capacitor is connected in series between the 1st and 6th pins of RY8401, RY8401 is connected to one end of an inductor with a size of 4.7μH, the other end of the inductor is connected in series with a first output resistor and a second output resistor and then grounded, the 3rd pin of RY8401 is connected between the first output resistor and the second output resistor, and the other end of the inductor is connected to the ground through the second voltage-stabilizing capacitor and the filter capacitor in sequence, and then serves as the output end of the power supply circuit.
[0008] In the circuit for measuring wind direction based on the magnetoelectric principle of the utility model, the first output resistor and the second output resistor are 52.3KΩ and 10KΩ respectively, the first voltage stabilizing capacitor is 47μF, and the second voltage stabilizing capacitor is 10μF.
[0009] In the circuit for measuring wind direction based on the magnetoelectric principle of the utility model, the output of the power supply circuit is a positive power supply with a value of 5.0V.
[0010] The utility model of the circuit for measuring wind direction based on the magnetoelectric principle also includes a voltage-variable current transmitter circuit for converting voltage into current output for use by external devices. The input end of the voltage-variable current transmitter circuit is connected to the 13th pin of the single-chip computer STM8S003F3P6.
[0011] The beneficial effects of using the utility model are:
[0012] In the utility model, the power supply circuit adopts a diode to achieve anti-reverse connection protection, which effectively avoids equipment damage caused by wrong line connection. The magnetic encoder adopts a high-precision, non-contact magnetic encoder SC60228 with good stability. The utility model can monitor the current environmental wind direction in real time and can be connected to the background server through the RS485 communication circuit. The utility model has a simple circuit, is easy to miniaturize, and has low cost. It is easy to install and does not require frequent maintenance after installation to achieve long-term stable operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 It is a circuit principle diagram of the power supply circuit of the utility model.
[0014] Figure 2 This is the circuit schematic diagram of the single chip microcomputer part of the utility model.
[0015] Figure 3 The schematic diagram of the chip SC60228 and the RS485 communication circuit of the utility model.
[0016] Figure 4 The utility model is a circuit schematic diagram of the voltage-variable current transmission circuit. DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solution and advantages of the technical solution more clear, the technical solution is further described in detail below in conjunction with specific implementation methods. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the technical solution.
[0018] refer to Figure 1-Figure 4 The circuit for measuring wind direction based on the magnetoelectric principle of this embodiment includes a power supply circuit, a single-chip microcomputer STM8S003F3P6, a permanent magnet, a chip SC60228 and an RS485 communication circuit.
[0019] Please pay attention to Figure 2 , the power supply circuit is electrically connected to the single-chip computer STM8S003F3P6, the chip SC60228 and the RS485 communication circuit for power supply; the permanent magnet is fixedly set at the bottom of the wind vane that can swing with the wind, and the chip SC60228 is set directly below the wind vane when it is vertically downward; the 1st, 6th, 7th and 8th pins of the chip SC60228 are respectively connected to the 20th, 17th, 16th and 15th pins of the single-chip computer STM8S003F3P6. Among them, the 1st pin of the chip SC60228 is the chip select pin. After the pin is controlled to the specified voltage by the single-chip computer STM8S003F3P6, communication can begin. The 6th and 7th pins of the chip SC60228 are used to realize the communication with the single-chip computer STM8S003F3P6, and the 8th pin of the chip SC60228 is used to input the clock signal.
[0020] Please pay attention to Figure 3The RS485 communication circuit includes a chip TP8485E, the 1st and 4th pins of TP8485E are respectively connected to the 3rd and 2nd pins of STM8S003F3P6, and the 2nd and 3rd pins of TP8485E are connected together to the 10th pin of STM8S003F3P6; after the 6th and 7th pins of TP8485 are respectively connected to a fuse F1 and F2, the two output terminals 485- and 485+ of the RS485 communication circuit are respectively led out, and the 6th pin of TP8485 is connected to the positive power supply +5V through the pull-up resistor R25, the 7th pin of TP8485 is grounded through the pull-down resistor R23, and an SMBJ6.0CA is respectively connected between the 6th pin of TP8485 and the ground, between the 7th pin and the ground, and between the 6th and 7th pins. The pull-up resistor R25 and the pull-down resistor R23 are both 47KΩ. SMBJ6.0CA and the fuse are used to achieve surge protection.
[0021] Please pay attention to Figure 1 The power supply circuit includes a chip RY8401, the 5th pin of RY8401 is connected to the cathode of a diode D1, the cathode of the diode D1 is connected in series with the first voltage-stabilizing capacitor C1 and grounded, and the cathode of the diode D1 is connected in series with the enable terminal resistor R8 between the 4th pin of RY8401, the anode of the diode D1 is used to input a 12V input power supply, the 1st and 6th pins of RY8401 are connected in series with a 0.1μF capacitor C2, RY8401 is connected to one end of an inductor L2 of 4.7μH, the other end of the inductor L2 is connected in series with the first output resistor R15 and the second output resistor R13 and then grounded, the 3rd pin of RY8401 is connected between the first output resistor R15 and the second output resistor R13, and the other end of the inductor L2 is connected to the ground through the second voltage-stabilizing capacitor C24 and the filter capacitor C13 in turn, and then serves as the output end of the power supply circuit.
[0022] In this embodiment, the first output resistor R15 and the second output resistor R13 are 52.3KΩ and 10KΩ respectively, the terminal resistor R8 is 100KΩ, the first voltage stabilizing capacitor C1 is 47μF, the second voltage stabilizing capacitor C24 is 10μF, and the filter capacitor C13 is 0.1μF. The output of the power supply circuit is the right end of the resistor R20, and its size is 0.8*(1+R13 / R15)≈5V.
[0023] Please pay attention to Figure 4 In the circuit for measuring wind direction based on the magnetoelectric principle of the utility model, the voltage-variable current transmitter circuit is used to convert voltage into current output for use by external devices, and the input end of the voltage-variable current transmitter circuit is connected to the 13th pin of the single-chip computer STM8S003F3P6.
[0024] The working principle of the utility model is as follows: the magnetic encoder SC60228 has a built-in Hall sensing point matrix, which generates sine and cosine position signals by sensing the permanent magnet above. The internal analog-to-digital conversion circuit samples the amplified sine and cosine signals, and performs angle calculations through the internal DSP circuit. Finally, various angle signals are output to the microcontroller. The microcontroller calculates based on these signals to obtain the current wind direction, and transmits data to the background server through the RS485 communication circuit.
[0025] The above contents are only preferred embodiments of the present invention. For ordinary technicians in this field, many changes can be made in the specific implementation methods and application scopes based on the ideas of the present technical content. As long as these changes do not deviate from the concept of the present invention, they all fall within the scope of protection of this patent.
Claims
1. A circuit for measuring wind direction based on the magnetoelectric principle, characterized in that: It includes power supply circuit, microcontroller STM8S003F3P6, permanent magnet, chip SC60228 and RS485 communication circuit; The power supply circuit is electrically connected to the single-chip computer STM8S003F3P6, the chip SC60228 and the RS485 communication circuit for power supply; the permanent magnet is fixedly arranged at the bottom of the wind vane that can swing with the wind, and the chip SC60228 is arranged directly below the wind vane when it is vertically downward; the 1st, 6th, 7th and 8th pins of the chip SC60228 are respectively connected to the 20th, 17th, 16th and 15th pins of the single-chip computer STM8S003F3P6.
2. The circuit for measuring wind direction based on the magnetoelectric principle according to claim 1, characterized in that: The RS485 communication circuit includes a chip TP8485E, wherein the 1st and 4th pins of TP8485E are respectively connected to the 3rd and 2nd pins of STM8S003F3P6, and the 2nd and 3rd pins of TP8485E are connected together to the 10th pin of STM8S003F3P6; after the 6th and 7th pins of TP8485 are respectively connected to a fuse, two output ends of the RS485 communication circuit are respectively led out, and the 6th pin of TP8485 is connected to the positive power supply through a pull-up resistor, the 7th pin of TP8485 is grounded through a pull-down resistor, and an SMBJ6.0CA is respectively connected between the 6th pin of TP8485 and the ground, between the 7th pin and the ground, and between the 6th and 7th pins.
3. The circuit for measuring wind direction based on the magnetoelectric principle according to claim 2, characterized in that: The pull-up resistor and the pull-down resistor are both 47KΩ, and the positive power supply is 5.0V.
4. The circuit for measuring wind direction based on the magnetoelectric principle according to claim 1, characterized in that: The power supply circuit includes a chip RY8401, the 5th pin of RY8401 is connected to the cathode of a diode, the cathode of the diode is connected in series with a first voltage-stabilizing capacitor and grounded, and an enable terminal resistor is connected in series between the cathode of the diode and the 4th pin of RY8401, the anode of the diode is used to input a 12V input power supply, a 0.1μF capacitor is connected in series between the 1st and 6th pins of RY8401, RY8401 is connected to one end of an inductor with a size of 4.7μH, the other end of the inductor is connected in series with a first output resistor and a second output resistor and then grounded, the 3rd pin of RY8401 is connected between the first output resistor and the second output resistor, and the other end of the inductor is connected to the ground through the second voltage-stabilizing capacitor and the filter capacitor in sequence, and then serves as the output end of the power supply circuit.
5. The circuit for measuring wind direction based on the magnetoelectric principle according to claim 4, characterized in that: The first output resistor and the second output resistor are 52.3 KΩ and 10 KΩ respectively, the first voltage stabilizing capacitor is 47 μF, and the second voltage stabilizing capacitor is 10 μF.
6. The circuit for measuring wind direction based on the magnetoelectric principle according to claim 5, characterized in that: The output of the power supply circuit is a positive power supply with a value of 5.0V.
7. The circuit for measuring wind direction based on the magnetoelectric principle according to claim 2, characterized in that: It also includes a voltage-variable current transmission circuit for converting voltage into current output for use by external devices. The input end of the voltage-variable current transmission circuit is connected to the 13th pin of the single-chip computer STM8S003F3P6.
