CN112858611A - Dissolved oxygen sensor interface middleware - Google Patents
Dissolved oxygen sensor interface middleware Download PDFInfo
- Publication number
- CN112858611A CN112858611A CN202110072360.2A CN202110072360A CN112858611A CN 112858611 A CN112858611 A CN 112858611A CN 202110072360 A CN202110072360 A CN 202110072360A CN 112858611 A CN112858611 A CN 112858611A
- Authority
- CN
- China
- Prior art keywords
- analog
- dissolved oxygen
- module
- digital conversion
- oxygen sensor
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N33/00—Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
- G01N33/18—Water
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
Landscapes
- Chemical & Material Sciences (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Automation & Control Theory (AREA)
- Food Science & Technology (AREA)
- Medicinal Chemistry (AREA)
- Analytical Chemistry (AREA)
- Biochemistry (AREA)
- General Health & Medical Sciences (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
The invention belongs to the technical field of aquaculture Internet of things, and discloses a dissolved oxygen sensor interface middleware which comprises an input end interface, a signal amplification module, an analog-to-digital conversion module, a control unit, a wireless WiFi output end and a power module; the input end interface is connected with the analog-to-digital conversion module through the signal amplification module, the control unit is respectively connected with the analog-to-digital conversion module and the wireless WiFi output end, and the power supply module is respectively connected with the signal amplification module, the analog-to-digital conversion module, the control unit and the wireless WiFi output end. The invention can convert various dissolved oxygen sensors of different brands and different types to realize the unification of interfaces, effectively solves the problem that the dissolved oxygen sensors of different brands are incompatible with an upper computer, and has the characteristics of modular structure, strong universality and high data integration level.
Description
Technical Field
The invention belongs to the technical field of aquaculture Internet of things, and particularly relates to a dissolved oxygen sensor interface middleware.
Background
China is a big aquaculture country, and the aquaculture yield exceeds 70% of the total global yield. As an important component of agricultural production in China, aquaculture plays an important role in promoting the development of agricultural economy in China, improving the living standard of people and the like. Water is an important part in aquaculture, and is very important for monitoring the water quality of aquaculture water. With the continuous progress of the technology of the internet of things, various sensors are utilized in the prior art to monitor multiple indexes of the aquaculture water body, such as water temperature, dissolved oxygen, pH, ammonia, nitrogen, nitrite and the like, particularly dissolved oxygen, which is an important water quality environmental factor in aquaculture and is of great importance to water quality and breeding and growth of cultured animals. The existing dissolved oxygen sensors can be mainly classified into a chemical type, an electrochemical type and an optical type. Different manufacturers and different types of dissolved oxygen sensor interfaces are not standard and are not compatible with each other, if the dissolved oxygen sensor probe of the brand is damaged or aged, the internet of things system may need to be rebuilt when the dissolved oxygen sensor probe of other brands is replaced, the application cost of the internet of things system is greatly increased, and the popularization and application of the aquaculture internet of things technology are restricted. The invention aims to solve the technical problem that how to overcome the defect that the existing various dissolved oxygen sensors and brands of dissolved oxygen sensors are poor in compatibility with a water quality monitoring Internet of things system.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides a dissolved oxygen sensor interface middleware.
The technical scheme of the invention is realized as follows:
a dissolved oxygen sensor interface middleware comprising: the device comprises an input end interface, a signal amplification module, an analog-to-digital conversion module, a control unit, a wireless WiFi output end and a power supply module;
the input end interface is used for accessing an analog signal output by the dissolved oxygen sensor;
the signal amplification module is used for amplifying the analog signal received by the input end;
the analog-to-digital conversion module is used for converting the amplified analog signals into digital signals which can be identified by an upper computer;
the wireless WiFi output end is used for realizing network connection;
the power supply module is used for supplying power;
the input end interface is connected with the analog-to-digital conversion module through the signal amplification module, the control unit is respectively connected with the analog-to-digital conversion module and the wireless WiFi output end, and the power supply module is respectively connected with the signal amplification module, the analog-to-digital conversion module, the control unit and the wireless WiFi output end.
Preferably, the input end interface comprises a plurality of signal access ports, and each signal access port is provided with an access port switch.
Further preferably, the signal amplifying module is a current/voltage conversion circuit of the RCV 420.
Further preferably, the analog-to-digital conversion module is an AD7705 analog-to-digital converter.
More preferably, the wireless WiFi output is an ESP8266 WiFi chip.
Most preferably, the control unit is an STM32F103C8T6 control chip.
The invention can convert the interfaces of various dissolved oxygen sensors of different brands and different types to realize the unification of the interfaces, effectively solves the problem that the dissolved oxygen sensors of different brands are incompatible with an upper computer, and has the characteristics of modular structure, strong universality and high data integration level.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a block diagram of the present invention;
FIG. 2 is a flow chart of the operation of the present invention;
FIG. 3 is a schematic diagram of the connection of the present invention;
fig. 4 is a flowchart of a main process of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1: a dissolved oxygen sensor interface middleware comprising: the device comprises an input end interface, a signal amplification module, an analog-to-digital conversion module, a control unit, a wireless WiFi output end and a power supply module;
the input end interface is used for accessing the dissolved oxygen sensor interface and transmitting an analog signal sent by the dissolved oxygen sensor to the signal amplification module; the input end interface comprises a plurality of signal access ports, and each signal access port is respectively provided with an access port switch;
the signal amplification module preferably selects a current/voltage conversion circuit built by an RCV420 chip (the RCV420 adopts a +/-12V double power supply, a power supply decoupling capacitor adopts a 1 muF tantalum capacitor, and the decoupling capacitor needs to be close to an RCV420 power supply pin as much as possible in order to avoid gain and common mode suppression errors introduced by other circuits; pins 2, 5 and 13 of the RCV420 are grounded, so that the grounding resistance of the pins is minimum, and the conversion errors caused by a ground wire loop are avoided), and the signal amplification module is used for amplifying a received analog signal (0-20mA) to the input voltage (0-5V) of the analog-to-digital conversion module;
the analog-to-digital conversion module is used for converting the amplified analog signals into digital signals which can be recognized by an upper computer, preferably, an AD7705 analog-to-digital converter (main pins and functions of the AD 7705: two groups of analog signal input ends AIN1(+), AIN1(-), AIN2(+), and AIN2(-), can be respectively configured into a single-polarity input and a differential inputThe low level is active for the chip select terminal; DIN is the serial data input, DOUT is the serial data output of the conversion result, SCLK is the serial shift pulse, typically provided by the control chip,for logic output, high level indicates that data is being updated, and low level indicates that AD conversion is finished and can be readAnd (4) data. ) (ii) a
The control unit plays a role in information processing, generation of various operation control signal conversion, signal transmission and the like in a dissolved oxygen sensor interface integrated module system, and preferably adopts an STM32F103C8T6 chip of ST company (the STM32C8T6 chip is a low-power-consumption and high-performance 32-bit singlechip, a wide voltage power supply range of 2.0-3.6, the highest working frequency of a CPU can reach 72MHz, the control unit has a single-cycle multiplication instruction and hardware division and a priority programmable interrupt system, a Flash program memory which contains 64KB and can be repeatedly erased and erased for 1000 times and a SRAM memory of 20KB are arranged in the chip, and the control unit has the main performances of being compatible with 51 singlechip products and fully static operation, a three-level encryption program memory, 32 programmable UART I/O ports, three 16 timers/counters, 8 interrupt sources, a full-duplex serial channel, a wakeup after power failure, a watchdog timer, a double data pointer, a data pointer and a timer, Easy programming. ) (ii) a
The wireless WiFi output end is used for realizing network connection of the whole system, an ESP8266 WiFi chip is preferably selected, and MQTT communication is adopted to send the digital signals to an upper computer (a raw water quality monitoring system) through the ESP8266 WiFi chip; the WiFi chip ESP8266 is very convenient to connect with the single chip microcomputer, and can be used only by connecting VCC, GND, TX, RX and RST of the single chip microcomputer; the TX and RX pins of the ESP8266 are respectively connected with the PA3(RX) and PA2(TX) pins of a single chip microcomputer (STM32F103C8T 6); the baud rate of the unified transmission of both sides during the communication, the baud rate set by the data transmission of the system is 115200;
the power supply module is used for supplying power;
the input end interface is connected with the analog-to-digital conversion module through the signal amplification module, the control unit is respectively connected with the analog-to-digital conversion module and the wireless WiFi output end, and the power supply module is respectively connected with the signal amplification module, the analog-to-digital conversion module, the control unit and the wireless WiFi output end.
As shown in fig. 2 and 3: when the oxygen sensor is used, the signal access port is connected with interfaces of dissolved oxygen sensors of different brands or different types, output signals of the dissolved oxygen sensors are determined, and then the signals are processed and converted through the signal conversion circuit (mainly analog signals output by the dissolved oxygen sensors are converted into digital signals which can be identified by an upper computer); because the wireless WiFi output end is arranged, the Internet can be accessed through a WiFi chip, and the processed signal is sent to the original system by using a communication means to realize data interaction with a background server of the network; and finally, the upper computer (water quality monitoring system) takes corresponding data from the background server through the Internet and monitors the dissolved oxygen in the water in real time.
The signal inlet interfaces can be connected with various brands of dissolved oxygen sensors, and can be matched with the various brands of dissolved oxygen sensors under the condition that the system architecture is not changed, so that the practicability is high, the equipment integration cost is low, the equipment volume is small, and the power supply requirement is low.
Fig. 4 is a flow chart of the main program of the present invention: the invention can initialize the single chip microcomputer after being electrified and operated, and mainly initializes the modules used by the single chip microcomputer. After initialization is completed, firstly, detecting the ADC to see whether analog-to-digital conversion is completed or not, and if not, waiting for completion; after the analog-to-digital conversion is finished, whether the system is connected with a network is detected, if the system is connected with the network, the application code interacts with the MQTT server, the data signal is transmitted to the MQTT server, and the data signal is stored in the MQTT server to be subscribed by an upper computer (a water quality monitoring system).
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (6)
1. A dissolved oxygen sensor interface middleware, comprising: the method comprises the following steps: the device comprises an input end interface, a signal amplification module, an analog-to-digital conversion module, a control unit, a wireless WiFi output end and a power supply module;
the input end interface is used for accessing an analog signal output by the dissolved oxygen sensor;
the signal amplification module is used for amplifying the analog signal received by the input end;
the analog-to-digital conversion module is used for converting the amplified analog signals into digital signals which can be identified by an upper computer;
the wireless WiFi output end is used for realizing network connection;
the power supply module is used for supplying power;
the input end interface is connected with the analog-to-digital conversion module through the signal amplification module, the control unit is connected with the analog-to-digital conversion module and the wireless WiFi output end respectively, and the power supply module is connected with the signal amplification module, the analog-to-digital conversion module, the control unit and the wireless WiFi output end respectively.
2. The dissolved oxygen sensor interface middleware of claim 1, wherein: the input end interface comprises a plurality of signal access ports, and each signal access port is provided with an access port switch.
3. The dissolved oxygen sensor interface middleware of claim 1, wherein: the signal amplification module is a current/voltage conversion circuit of the RCV 420.
4. The dissolved oxygen sensor interface middleware of claim 1, wherein: the analog-to-digital conversion module is an AD7705 analog-to-digital converter.
5. The dissolved oxygen sensor interface middleware of claim 1, wherein: the wireless WiFi output end is an ESP8266 WiFi chip.
6. The dissolved oxygen sensor interface middleware of claim 1, wherein: the control unit is an STM32F103C8T6 control chip.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110072360.2A CN112858611A (en) | 2021-01-20 | 2021-01-20 | Dissolved oxygen sensor interface middleware |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110072360.2A CN112858611A (en) | 2021-01-20 | 2021-01-20 | Dissolved oxygen sensor interface middleware |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112858611A true CN112858611A (en) | 2021-05-28 |
Family
ID=76007484
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110072360.2A Pending CN112858611A (en) | 2021-01-20 | 2021-01-20 | Dissolved oxygen sensor interface middleware |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112858611A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115452919A (en) * | 2022-09-21 | 2022-12-09 | 湖南爱益森科技有限公司 | Measurement system based on ceramic zirconia oxygen sensor in dispersed oxygen |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201548834U (en) * | 2009-11-27 | 2010-08-11 | 山东省科学院海洋仪器仪表研究所 | Universal intelligent type information collection operating device used for marine monitoring |
JP2012141950A (en) * | 2011-01-04 | 2012-07-26 | Middleland Sensing Technology Inc | Sensor system |
CN203490568U (en) * | 2013-09-14 | 2014-03-19 | 陕西亚泰电器科技有限公司 | Aquaculture water quality parameter monitoring system based on MSC1210 one-chip microcomputer |
CN203672870U (en) * | 2014-01-24 | 2014-06-25 | 河海大学常州校区 | Remote water dissolved oxygen monitoring device |
CN205941530U (en) * | 2016-08-24 | 2017-02-08 | 合肥莱瑞科技有限公司 | Two probe dissolved oxygens observe and control appearance |
CN106533424A (en) * | 2016-11-02 | 2017-03-22 | 西安电子科技大学 | Interface circuit compatible with resistive and capacitive sensors |
CN108956927A (en) * | 2018-09-21 | 2018-12-07 | 中国科学院电工研究所无锡分所 | High-precision dissolved oxygen detection device |
-
2021
- 2021-01-20 CN CN202110072360.2A patent/CN112858611A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201548834U (en) * | 2009-11-27 | 2010-08-11 | 山东省科学院海洋仪器仪表研究所 | Universal intelligent type information collection operating device used for marine monitoring |
JP2012141950A (en) * | 2011-01-04 | 2012-07-26 | Middleland Sensing Technology Inc | Sensor system |
CN203490568U (en) * | 2013-09-14 | 2014-03-19 | 陕西亚泰电器科技有限公司 | Aquaculture water quality parameter monitoring system based on MSC1210 one-chip microcomputer |
CN203672870U (en) * | 2014-01-24 | 2014-06-25 | 河海大学常州校区 | Remote water dissolved oxygen monitoring device |
CN205941530U (en) * | 2016-08-24 | 2017-02-08 | 合肥莱瑞科技有限公司 | Two probe dissolved oxygens observe and control appearance |
CN106533424A (en) * | 2016-11-02 | 2017-03-22 | 西安电子科技大学 | Interface circuit compatible with resistive and capacitive sensors |
CN108956927A (en) * | 2018-09-21 | 2018-12-07 | 中国科学院电工研究所无锡分所 | High-precision dissolved oxygen detection device |
Non-Patent Citations (3)
Title |
---|
宋卫海 等: "《嵌入式系统的设计、开发与应用》", 31 August 2018, 延边大学出版社 * |
廖义奎: "《物联网应用开发——基于STM32》", 30 September 2019, 北京航空航天大学出版社 * |
浦昭邦 等: "《测控仪器设计》", 31 May 2007, 机械工业出版社 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115452919A (en) * | 2022-09-21 | 2022-12-09 | 湖南爱益森科技有限公司 | Measurement system based on ceramic zirconia oxygen sensor in dispersed oxygen |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110221997A (en) | A kind of USB interface-based versatile interface interconnecting device | |
CN107360195B (en) | Encoder conversion device of industrial Ethernet interface | |
CN203851126U (en) | Circuit realizing two-way communication by using single line | |
CN112858611A (en) | Dissolved oxygen sensor interface middleware | |
CN104977111B (en) | The synchronous oar power acquisition system of low-power consumption multiple wireless based on STM32 | |
CN204667611U (en) | A kind of farm field data remote supervision system | |
CN204831576U (en) | Low -power consumption multiple spot wireless temperature collection system based on NRF905 | |
CN210719453U (en) | Thermal resistance temperature measuring device based on RS485 bus | |
CN111223283A (en) | Multi-path data classification type big data acquisition method | |
CN206862961U (en) | A kind of portable general multichannel ultrasonic detection module | |
CN205302607U (en) | Wireless sensor node data collection system under water | |
CN201675926U (en) | Pulse signal acquisition device based on RF wireless communication technology | |
CN201255731Y (en) | Road tunnel carbon monoxide concentration detection device having network interface | |
CN211741881U (en) | Signal monitoring transmission device based on FPGA | |
CN209373596U (en) | A kind of signal processing circuit | |
CN208850035U (en) | A kind of voice amplification processing circuit | |
CN106201986A (en) | A kind of SOC for power energy system | |
CN217237860U (en) | Wisdom orchard soil moisture content monitoring system based on loRa technique | |
CN208270983U (en) | Wisdom pumping plant master controller | |
CN110190868A (en) | Wake-up circuit and IoT device | |
CN213069017U (en) | Electromagnetic radiation alarm device and system | |
CN208737264U (en) | A kind of novel digital display instrument | |
CN203708240U (en) | RF-485 signal converter | |
CN209297141U (en) | A kind of parsing of industrial data and Transmission system | |
CN204740357U (en) | Long -range meteorological monitoring system based on GPRS communication |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210528 |
|
RJ01 | Rejection of invention patent application after publication |