Search

CN-116010318-B - Interface conversion device and method of propeller type anemometry sensor

CN116010318BCN 116010318 BCN116010318 BCN 116010318BCN-116010318-B

Abstract

The invention discloses an interface conversion device and method of a propeller type wind measuring sensor, wherein the device comprises a filter circuit, a shaping circuit, a singlechip, a signal conditioning circuit, a power supply unit and a relay, wherein the singlechip comprises a CPU, a program memory, a data memory, an interrupt system, an I/O port, a clock circuit, a timing/counter, a D/A converter, an SPI bus and a serial port, the singlechip is used for processing a filtered wind speed signal or a shaped wind direction signal, and the signal conditioning circuit comprises a pulse signal conditioning circuit, a voltage signal conditioning circuit, a current signal conditioning circuit and a digital signal conditioning circuit and is used for conditioning and outputting the pulse signal, the voltage signal, the current signal or the digital signal. The device and the method disclosed by the invention can convert the output signal type into the existing general signal type, are convenient for the compatibility of the anemometry sensor and the processing system, are convenient for signal processing, and improve the working efficiency.

Inventors

  • GUO YANPING
  • ZHANG ZHIWEI
  • CAO RUI
  • ZHANG BIN
  • WANG DONGMING
  • WANG NI
  • QI SUIPING
  • YU HONGBO
  • WANG JIANXIAO
  • WANG PING
  • CUI TIANGANG
  • WANG ZHONGQIU

Assignees

  • 山东省科学院海洋仪器仪表研究所

Dates

Publication Date
20260512
Application Date
20230214

Claims (9)

  1. 1. The interface conversion method of the propeller type wind measuring sensor is characterized by comprising a pulse signal conditioning method, a voltage signal conditioning method, a current signal conditioning method and a digital signal conditioning method, wherein the pulse signal conditioning method comprises the following steps that a wind speed signal enters a singlechip after being filtered by a filter circuit, an external interrupt service subprogram is introduced by an interrupt system of the singlechip, the external interrupt service subprogram carries out frequency conversion according to a set conversion method, an I/O port of the singlechip is controlled to output a pulse signal with a corresponding frequency, then the circuit signal is converted into a negative pulse sequence by an inverse proportion operation circuit built by a first-stage operation circuit, then voltage translation is carried out by an inverse summation operation circuit built by a second-stage operation circuit, the positive pulse sequence and the negative pulse sequence are adjusted to be positive-negative alternating pulse signals, and finally a voltage follower built by a third-stage operation circuit outputs the wind speed frequency pulse signal, and the frequency conversion method is specifically as follows: under the same wind power condition, the wind speed is recorded as Units of The rotation speed of the wind speed shaft of the propeller type anemometer sensor is recorded as Units of The number of pulses output per revolution is counted as The rotation speed of the wind speed shaft of the target anemometer sensor to be converted is recorded as Units of The number of pulses output per revolution is counted as The number of pulses increased per second of the propeller type anemometer sensor and the target anemometer sensor to be converted is respectively as follows And The following steps are: ; ; Split type Performing reduction to obtain the simplest formula: ; Wherein, the 、 Is a positive integer with the common divisor removed; the frequency conversion between the anemometry sensors with different rotation speeds and different output pulse numbers in unit time is realized through the formula, and the following cases are explained: ① When (when) When 1 pulse signal is input, 1 pulse signal is synchronously output; ② When (when) When it will The obtained quotient is rounded and then is marked as N, N is a natural number larger than 1, and every time N pulse signals are received by external interrupt, namely 1 pulse signal is output at the I/O port of the singlechip, the process is called as a process A, and the process needs to be repeatedly completed Every time when the external interrupt receives N+1 pulse signals, namely 1 pulse signal is output at the I/O port of the singlechip, the process is called as a process B, and the process needs to be repeatedly completed for y times, and x and y meet the equation (1): (1); obtaining the values of x and y by solving the equation set; The frequency conversion method comprises defining a counting variable, counting external pulse from zero, adding 1 to the counting variable, performing process A or process B according to the condition, and performing process B for y times every time process A is completed for x times, wherein the value of the counting variable is equal to Then the counting variable is cleared to restart counting, the processing process is repeated, and the like is continuously carried out; ③ When (when) When it will The obtained quotient is rounded and then is recorded as , For natural number greater than 1, 1 pulse signal is received when external interrupt, i.e. output at SCM I/O port The process is called process A, and is repeated for x times, and 1 pulse signal is received every time the external interrupt is received, i.e. output at I/O port of single-chip microcomputer +1 Pulse signals, such a process is called process B, provided that such a process needs to be repeated y times, x and y satisfy equation (2): (2); obtaining the values of x and y by solving the equation set; The frequency conversion method comprises defining a counting variable, counting external pulse from zero, adding 1 to the counting variable, performing process A or process B according to the condition, and performing process B for y times every time process A is completed for x times, wherein the value of the counting variable is equal to Then the counting variable is cleared to restart counting, the above processing is repeated, and the like continues.
  2. 2. The conversion method according to claim 1, wherein the voltage signal conditioning method comprises the steps of inputting wind direction signals from an I/O port of a singlechip after being shaped by a shaping circuit, converting the wind direction signals into corresponding wind direction angles by a CPU, converting the wind direction angles into corresponding digital quantities according to a linear proportion relation, driving a D/A converter to output corresponding analog voltages, and outputting wind direction voltage signals to the outside after passing through a voltage follower.
  3. 3. The conversion method of the current signal conditioning method of the current sensor according to the claim 1 is characterized in that the wind speed signal is filtered by the filter circuit and enters the single chip microcomputer, a CPU of the single chip microcomputer converts the wind speed signal into a wind speed value through the counter and then into a wind speed digital quantity corresponding to the current transducer according to a linear proportion relation, the wind direction signal is input from an I/O port of the single chip microcomputer after being shaped by the shaping circuit, the single chip microcomputer converts the wind direction signal into a corresponding wind direction angle through the CPU and then into a wind direction digital quantity corresponding to the current transducer according to the linear proportion relation, and the wind speed digital quantity and the wind direction digital quantity drive the current transducer to output corresponding current signals through an SPI bus and an optical coupler of the single chip microcomputer respectively.
  4. 4. The conversion method according to claim 1, wherein the digital signal conditioning method comprises the following steps that after being filtered by a filter circuit, a wind speed signal enters a singlechip, and a CPU (central processing unit) of the singlechip converts the wind speed signal into a wind speed value through a counter; the serial port instruction data is output to the RS485 interface chip through the serial port of the singlechip and outputs signals conforming to the RS485 serial communication standard, and the CAN instruction data is output to the CAN controller and the CAN transceiver through the SPI bus of the singlechip and finally outputs signals conforming to the CAN bus standard.
  5. 5. The interface conversion device of the propeller type anemometry sensor, adopting the method as claimed in claim 1, is characterized by comprising a filter circuit, a shaping circuit, a singlechip, a signal conditioning circuit, a power supply unit and a relay; The filter circuit and the shaping circuit are used for respectively filtering and shaping the received wind speed signal and the wind direction signal and then entering the singlechip; The singlechip comprises a CPU, a program memory, a data memory, an interrupt system, an I/O port, a clock circuit, a timing/counter, a D/A converter, an SPI bus and a serial port, and is used for processing a filtered wind speed signal or a shaped wind direction signal, converting the filtered wind speed signal or the shaped wind direction signal into a pulse signal, a voltage signal, a current signal or a digital signal, and controlling a power supply unit to supply power or cut off power to a signal conditioning circuit through a relay so as to realize selection of wind speed and wind direction signal output modes; the signal conditioning circuit comprises a pulse signal conditioning circuit, a voltage signal conditioning circuit, a current signal conditioning circuit and a digital signal conditioning circuit, and is used for conditioning and outputting pulse signals, voltage signals, current signals or digital signals.
  6. 6. The interface conversion device of a propeller type wind measurement sensor according to claim 5, wherein the pulse signal conditioning circuit comprises a three-stage operational amplifier circuit and a DC/DC converter, the three-stage operational amplifier circuit is used for realizing polarity adjustment of signals, and the DC/DC converter is used for providing positive and negative power supplies to supply power to the three-stage operational amplifier circuit.
  7. 7. The interface conversion device of the propeller type wind measuring sensor according to claim 5, wherein the voltage signal conditioning circuit comprises a voltage follower connected with a D/A converter of the single chip microcomputer and a precision reference voltage source, the voltage follower is used for isolating influences of an external sampling circuit on an internal circuit of the sensor, guaranteeing lossless output of wind direction voltage signals and reducing measurement errors of the external sampling circuit, and the precision reference voltage source is used for providing reference voltages.
  8. 8. The interface conversion device of the propeller type wind measuring sensor according to claim 5, wherein the current signal conditioning circuit comprises an optical coupler and a current transducer, the optical coupler is used for realizing communication isolation between a singlechip and the current transducer and guaranteeing reliable transmission of signals, and the current transducer is powered by a current loop and is used for inputting digital signals of the singlechip in a serial mode and converting the digital signals into 4-20 mA current for output.
  9. 9. The interface conversion device of the propeller type wind measuring sensor according to claim 5, wherein the digital signal conditioning circuit comprises an RS485 interface chip, a CAN controller and a CAN transceiver, the RS485 interface chip is used for converting TTL level of a single chip microcomputer into RS-485 level, the CAN controller is used for receiving instruction data of the single chip microcomputer and then sending the instruction data to the CAN transceiver, and meanwhile is also used for receiving data of the CAN transceiver, analyzing the data and then sending the data to the single chip microcomputer, and the CAN transceiver is used for connecting the CAN controller with a CAN bus and converting logic level output by the CAN controller into differential signals and outputting the differential signals to the CAN bus.

Description

Interface conversion device and method of propeller type anemometry sensor Technical Field The invention relates to the field of anemometry sensors, in particular to an interface conversion device and method of a propeller type anemometry sensor. Background The wind measuring sensor is widely applied to ships, ocean buoys, weather stations, ocean stations and the like, and the wind speed and wind direction information provided by the wind measuring sensor plays a vital role in ship safe navigation, wind prevention and platform prevention and emergency rescue. The existing wind measuring sensors are various in types and different in wind measuring principles, some of the wind measuring sensors measure wind speed by adopting an electromagnetic induction principle and wind directions by adopting a contact potentiometer, and some of the wind measuring sensors measure wind speed by adopting a photoelectric switch principle and wind direction azimuth angles by adopting a non-contact photoelectric conversion device, so that the types of output signals are different, wind speed signals have frequency output forms, current output forms, RS485 output forms and the like, and wind direction signals mainly have voltage output forms, current output forms, RS485 output forms and the like. The propeller type wind measuring sensor is designed for the marine environment, has excellent performance, adopts a photoelectric switch principle, effectively improves the anti-interference capability and electromagnetic compatibility, adopts a non-contact photoelectric conversion device to measure azimuth angles, can avoid contact abrasion and measurement blind areas, is beneficial to prolonging the service life, has stronger anti-electromagnetic interference capability, and is an ideal marine wind measuring instrument at present. The propeller type wind measuring sensor senses wind speed through a propeller, the working principle of the propeller type wind measuring sensor is quite different from that of other existing wind measuring sensors, the rotating speed of a blade of the propeller type wind measuring sensor is converted into an electric signal through a photoelectric switch, a positive pulse signal proportional to the wind speed is output, and the wind direction is Gray code output through a photoelectric conversion device. Therefore, the type of the output signal is different from that of other existing wind measuring sensors, and when the signal is subjected to post-processing, the signal cannot be directly matched by adopting an existing general processing system. Therefore, an interface conversion device is needed to be designed to convert the wind speed and direction signals of the propeller type anemometer sensor into the existing general signal types. Disclosure of Invention In order to solve the technical problems, the invention provides an interface conversion device and an interface conversion method of a propeller type anemometer sensor, so as to achieve the purposes of converting the output signal type into the existing general signal type, facilitating the compatibility of the anemometer sensor and a processing system, facilitating signal processing and improving the working efficiency. In order to achieve the above purpose, the technical scheme of the invention is as follows: An interface conversion device of a propeller type anemometry sensor comprises a filter circuit, a shaping circuit, a singlechip, a signal conditioning circuit, a power supply unit and a relay; The filter circuit and the shaping circuit are used for respectively filtering and shaping the received wind speed pulse signals and wind direction signals and then entering the singlechip; The singlechip comprises a CPU, a program memory, a data memory, an interrupt system, an I/O port, a clock circuit, a timing/counter, a D/A converter, an SPI bus and a serial port, and is used for processing a filtered wind speed signal or a shaped wind direction signal, converting the filtered wind speed signal or the shaped wind direction signal into a pulse signal, a voltage signal, a current signal or a digital signal, and controlling a power supply unit to supply power or cut off power to a signal conditioning circuit through a relay so as to realize selection of wind speed and wind direction signal output modes; the signal conditioning circuit comprises a pulse signal conditioning circuit, a voltage signal conditioning circuit, a current signal conditioning circuit and a digital signal conditioning circuit, and is used for conditioning and outputting pulse signals, voltage signals, current signals or digital signals. In the above scheme, the pulse signal conditioning circuit comprises a three-stage operational amplifier circuit and a DC/DC converter, wherein the three-stage operational amplifier circuit is used for realizing polarity adjustment of signals, and the DC/DC converter is used for providing positive and negative power supplies to supply power to t