Circuit for measuring wind speed based on photoelectric principle
Through the circuit based on the photoelectric principle, combined with the photoelectric switch and the 485 communication circuit, the traditional wind cup measures the large volume, high price and inconvenient maintenance problems, and achieves accurate and low-cost wind speed detection.
Patent Information
- Application Number
- CN202322888592.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
The traditional wind cup measuring device is large in size, expensive and inconvenient to maintain. The existing microelectronic mechanical system (MEMS) wind speed sensors have problems of high accuracy but high cost and complexity.
A circuit based on the principle of photoelectricity was designed, including power supply circuit, microcontroller and photoinductor circuit, using photoelectric switch GK105 and NPN type transistor, combined with 485 communication circuit, wind speed is measured through photoelectric switches, infrared emission and photosensitive receiving tubes are used to match the light-shading grating. Realize wind speed detection.
It realizes accurate and efficient wind speed measurement, simple circuit and low cost, avoids the risk of equipment damage, and is suitable for miniaturization applications.
Smart Images

Figure CN222070644U_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 speed based on the photoelectric principle. Background Art
[0002] Wind speed is a very important part of meteorological data, and has important applications in weather forecasting, environmental monitoring and control. The traditional measurement method mainly uses wind cups to measure wind speed. This mechanical device is large, expensive, has moving parts, and is inconvenient to maintain. In the past 20 years, the development of micro-electromechanical systems (MEMS) has brought new breakthroughs in the development of wind speed sensors. Measuring wind speed based on the photoelectric principle has the advantages of high accuracy, small size, low power consumption, and not easy to damage. The wind speed monitoring device is used to monitor the current environmental wind speed in real time, and can be widely used in greenhouses, environmental protection, meteorology, breeding, vents and other industries. Utility Model Content
[0003] The technical problem to be solved by the utility model is to provide a circuit for measuring wind speed based on the photoelectric principle in view of the technical defects of the prior art that the wind cup is large in size, expensive, has moving parts and is inconvenient to maintain.
[0004] The circuit for measuring wind speed based on the photoelectric principle of the utility model comprises a power supply circuit, a single chip microcomputer and a photoelectric sensing circuit;
[0005] The photoelectric sensing circuit includes a photoelectric switch GK105 and an NPN transistor; the first pin of GK105 is grounded through a grounding resistor, the second pin is connected to a 5V power supply, the third pin is grounded, the fourth pin and the base of the NPN transistor are connected in series with a base resistor, and the fourth pin is connected in series with a pull-up resistor and then connected to a 5V power supply; the emitter of the NPN transistor is grounded, the collector is connected in series with a collector resistor and then connected to a 5V power supply; a signal input terminal of the single-chip computer is connected in series with an input resistor and then connected to the collector of the NPN transistor.
[0006] In the circuit for measuring wind speed based on the photoelectric principle of the utility model, the pull-up resistor is 10KΩ, the base resistor is 1KΩ, the collector resistor is 4.7KΩ, and the input resistor is 1KΩ.
[0007] In the circuit for measuring wind speed based on the photoelectric principle of the utility model, the NPN transistor is S9013.
[0008] In the circuit for measuring wind speed based on the photoelectric principle of the utility model, the single chip microcomputer is STM8S003F3P6.
[0009] In the circuit for measuring wind speed based on the photoelectric principle of the utility model, the signal input end is the first pin of STM8S003F3P6.
[0010] In the circuit for measuring wind speed based on the photoelectric 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 outputs a 5V power supply as the output end of the power supply circuit.
[0011] In the circuit for measuring wind speed based on the photoelectric principle of the present 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.
[0012] The circuit for measuring wind speed based on the photoelectric principle of the utility model also includes a 485 communication circuit, which is implemented by a chip TP485E. 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.
[0013] The beneficial effects of the utility model are:
[0014] In the utility model, the power supply circuit adopts a diode to realize anti-reverse connection protection, which effectively avoids equipment damage caused by wrong line connection. The utility model adopts a photoelectric switch to measure wind power, which has high accuracy, simple circuit, easy miniaturization and low cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a circuit principle diagram of the power supply circuit of the utility model.
[0016] Figure 2 This is the circuit schematic diagram of the single chip microcomputer part of the utility model.
[0017] Figure 3 The utility model is a circuit schematic diagram of a photoelectric sensing circuit and an RS485 communication circuit. DETAILED DESCRIPTION
[0018] 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.
[0019] refer to Figure 1-Figure 3 The circuit for measuring wind speed based on the photoelectric principle of the utility model in this embodiment includes a power supply circuit, a single-chip microcomputer and a photoelectric sensing circuit, and the single-chip microcomputer is STM8S003F3P6.
[0020] The photoelectric sensing circuit includes a photoelectric switch GK105 and an NPN transistor Q1. In this embodiment, the NPN transistor S9013 is selected; the first pin of GK105 is grounded through a grounding resistor R3, the second pin is connected to a 5V power supply, the third pin is grounded, the fourth pin and the base of the NPN transistor Q1 are connected in series with a base resistor R11, and the fourth pin is connected in series with a pull-up resistor R10 and then connected to a 5V power supply; the emitter of the NPN transistor Q1 is grounded, the collector is connected in series with a collector resistor R14 and then connected to a 5V power supply; the first pin of the single-chip computer is connected in series with an input resistor R17 as a signal input terminal and then connected to the collector of the NPN transistor Q1.
[0021] In this embodiment, the pull-up resistor R10 is 10KΩ, the base resistor R11 is 1KΩ, the collector resistor R14 is 4.7KΩ, the input resistor R17 is 1KΩ, and the grounding resistor R3 is 390Ω.
[0022] 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 and grounded, and an enable terminal resistor is connected in series between the cathode of the diode D1 and the 4th pin of RY8401, the anode of the diode D1 is used to input a 12V input power supply, a 0.1μF capacitor C2 is connected in series between the 1st and 6th pins of RY8401, one end of an inductor L2 of 4.7μH is connected to RY8401, and 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 outputs a 5V power supply as the output end of the power supply circuit. In this embodiment, the first output resistor and the second output resistor are 52.3KΩ and 10KΩ respectively, the first voltage stabilizing capacitor is 47μF, the second voltage stabilizing capacitor is 10μF, the output end of the power supply circuit is the right side of the inductor L2 or the right side of the resistor R20, and the actual output size is 0.8*(R15 / R13+1).
[0023] In the utility model, a 485 communication circuit is included, and the 485 communication circuit is implemented by a chip TP485E. 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 a pull-up resistor R25, and the 7th pin of TP8485 is grounded through a 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 fuses are used to implement surge protection to prevent circuit damage.
[0024] Working principle of the utility model: The utility model needs to be used in conjunction with a shading fence. The shading fence has a mounting seat, on which a circle of fences are evenly spaced and fixedly arranged. The mounting seat is connected to an external structure (such as a fan blade). When wind passes through, the infrared emitting diode and the photosensitive receiving tube drive the mounting seat and the fence to rotate together. The photoelectric switch GK105 is a U-shaped groove structure. The two sides of the U-shaped groove are respectively provided with an infrared emitting diode and a photosensitive receiving tube. When the fence rotates, it will pass through the groove structure. When the fence passes through the U-shaped groove, the light emitted by the infrared emitting diode is blocked, the photosensitive receiving tube cannot receive the light emitted by the infrared emitting diode, and the photoelectric switch GK105 is disconnected; when the gap between the fences passes through the U-shaped groove, the photosensitive receiving tube does not receive the light emitted by the infrared emitting diode, and the photoelectric switch GK105 is turned on. Therefore, the photoelectric switch GK105 will be repeatedly turned on and off, causing the high and low levels of the NPN transistor Q1 to change. The microcontroller collects the changing high and low levels, and counts the number of level changes per unit time to obtain the current ambient wind speed, which can be transmitted to the background through RS485 for storage and processing.
[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 speed based on the photoelectric principle, characterized in that: It includes a power supply circuit, a single chip microcomputer and a photoelectric sensing circuit; The photoelectric sensing circuit includes a photoelectric switch GK105 and an NPN transistor; the first pin of GK105 is grounded through a grounding resistor, the second pin is connected to a 5V power supply, the third pin is grounded, the fourth pin and the base of the NPN transistor are connected in series with a base resistor, and the fourth pin is connected in series with a pull-up resistor and then connected to a 5V power supply; the emitter of the NPN transistor is grounded, the collector is connected in series with a collector resistor and then connected to a 5V power supply; a signal input terminal of the single-chip computer is connected in series with an input resistor and then connected to the collector of the NPN transistor.
2. The circuit for measuring wind speed based on the photoelectric principle according to claim 1, characterized in that: The pull-up resistor is 10KΩ, the base resistor is 1KΩ, the collector resistor is 4.7KΩ, and the input resistor is 1KΩ.
3. The circuit for measuring wind speed based on the photoelectric principle according to claim 1, characterized in that: The NPN transistor is S9013.
4. The circuit for measuring wind speed based on the photoelectric principle according to claim 1, characterized in that: The single chip microcomputer is STM8S003F3P6.
5. The circuit for measuring wind speed based on the photoelectric principle according to claim 4, characterized in that: The signal input terminal is the first pin of STM8S003F3P6.
6. The circuit for measuring wind speed based on the photoelectric 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 turn, and then outputs a 5V power supply as the output end of the power supply circuit.
7. The circuit for measuring wind speed based on the photoelectric principle according to claim 6, characterized in that: 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.
8. The circuit for measuring wind speed based on the photoelectric principle according to claim 6, characterized in that: It also includes a 485 communication circuit, which is implemented by using a chip TP485E. 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.
