CN220819888U - Water quality detection interface circuit - Google Patents

Water quality detection interface circuit Download PDF

Info

Publication number
CN220819888U
CN220819888U CN202321658043.XU CN202321658043U CN220819888U CN 220819888 U CN220819888 U CN 220819888U CN 202321658043 U CN202321658043 U CN 202321658043U CN 220819888 U CN220819888 U CN 220819888U
Authority
CN
China
Prior art keywords
circuit
pin
interface circuit
water quality
chip
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.)
Active
Application number
CN202321658043.XU
Other languages
Chinese (zh)
Inventor
王星杰
王新蕾
夏宇辰
马浩杰
宋嘉伦
翟嘉政
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi University
Original Assignee
Wuxi University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuxi University filed Critical Wuxi University
Priority to CN202321658043.XU priority Critical patent/CN220819888U/en
Application granted granted Critical
Publication of CN220819888U publication Critical patent/CN220819888U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The utility model discloses a water quality detection interface circuit, which comprises: the sensor comprises a control circuit, a sensor interface circuit, a communication circuit and a power management circuit; the control circuit is used for processing data and signals of water quality detection; the sensor interface circuit is used for connecting a water quality sensor, a turbidity sensor, a temperature sensor and a positioning sensor, realizing the detection of water quality and transmitting the detection result to external receiving equipment through the communication circuit; the power supply management circuit is used for providing power supply for the water quality detection circuit; the Beidou positioning circuit is used for positioning the position of the water quality detection circuit. The integrated sensor interface circuit solves the problem that the existing water quality detection circuit is low in integration level and relatively high in power consumption due to insufficient resource utilization rate.

Description

Water quality detection interface circuit
Technical Field
The utility model relates to the technical field of circuits, in particular to a water quality detection interface circuit.
Background
Along with the improvement of environmental awareness and the increasing of water pollution problems, the requirements of people on water quality detection are higher and higher; the traditional water quality detection method needs to consume a great deal of time and manpower and needs professional personnel to operate; in the field of buoy type water quality detection, the traditional data acquisition device is easy to generate unstable data transmission during regular uploading, so that data is lost. Meanwhile, the utilization rate of the integrated circuit is low, and more power consumption is consumed;
The utility model relates to an integrated circuit board data acquisition module, which is invented by China with the bulletin number of CN216561766U, and when the integrated circuit board data acquisition module is used, a power supply is connected, so that the power supply module supplies power to a plurality of modules of a main board, an overall circuit can work normally, a wireless communication module is connected with an MCU processing module through signals, and a memory interface, a counter Timer interface, a USB interface, an A/D conversion interface, a UART interface, a PLC interface and a DMA interface are electrically connected with interfaces of corresponding devices respectively; the inconvenience of current data acquisition has been solved, and the power supply is convenient, and data processing conversion is more simplified simultaneously, but its is not enough in: the integration level is low, and the insufficient utilization rate of resources leads to relatively high power consumption.
Disclosure of utility model
The utility model provides a water quality detection interface circuit which is used for solving the problem that the water quality detection interface circuit board is low in integration level and relatively high in power consumption due to insufficient resource utilization rate.
In order to achieve the above purpose, the technical scheme of the utility model is as follows:
a water quality testing interface circuit, comprising: the sensor comprises a control circuit, a sensor interface circuit, a communication circuit and a power management circuit; wherein,
The control circuit is used for processing data and signals of water quality detection; the sensor interface circuit is used for connecting a water quality sensor, a turbidity sensor, a temperature sensor and a positioning sensor, realizing the detection of water quality and transmitting the detection result to external receiving equipment through the communication circuit; the power supply management circuit is used for providing power supply for the water quality detection interface circuit;
The Beidou positioning circuit is used for positioning the position of the water quality detection interface circuit.
As a preferable technical scheme of the utility model, the control circuit comprises an STM32F103C8T6 chip, a capacitor C10 and a capacitor C24, wherein a VBAT pin of the STM32F103C8T6 chip is respectively connected with one end of the capacitor C10 and one end of the capacitor C24, the VBAT pin is externally connected with a 3V voltage source, and the other end of the capacitor C10 and the other end of the capacitor C24 are grounded.
The communication circuit can provide a 4G wireless communication mode, and is convenient for users to carry out outdoor data transmission and remote monitoring; the water quality detection interface circuit realizes multi-parameter detection of water quality, including common parameters such as pH value, dissolved oxygen, conductivity and the like.
The utility model has compact structure and high space utilization rate, and the integrated circuit board is easy to install and disassemble, can be used in various water quality detection application scenes such as river water and the like, and has wide application prospect. The problems of low integration level, unstable network, high power consumption and the like of a data acquisition system of a water quality detection interface circuit used in the current water quality detection market are solved; the integrated circuit main board independently researched and developed adopts an optocoupler technology, integrates a multi-sensor circuit, and has rich interfaces and expansion functions; by adopting a low-power consumption design, each circuit can wake up or sleep at regular time, and the solar battery is added to greatly prolong the endurance time.
As the preferable technical scheme of the utility model, the sensor interface circuit comprises a water quality interface circuit, a turbidity interface circuit, a temperature interface circuit, a Beidou positioning interface circuit and a communication circuit; wherein, one pin of the water quality interface circuit, the turbidity interface circuit, the temperature interface circuit, the Beidou positioning interface circuit and the communication interface circuit is grounded, and the other pin is connected with 5V voltage;
The water quality sensor is connected with PA0 and PB12 pins of STM32F103C8T6 through a water quality interface circuit; the turbidity sensor is connected with a PA1 pin of an STM32F103C8T6 chip through a turbidity interface circuit; the temperature sensor is connected with a PA4 pin of the STM32F103C8T6 chip through a temperature interface circuit; the positioning sensor is connected with the PA10 and PA9 pins of the STM32F103C8T6 chip through the Beidou positioning interface circuit, and the communication circuit is connected with the PA2 and PA3 pins of the STM32F103C8T6 chip through the communication interface circuit.
As a preferable technical scheme of the utility model, the communication circuit is connected with a 4G module.
As a preferable technical scheme of the utility model, the water quality detection interface circuit is provided with a crystal oscillator circuit; and a PD0 pin, a PD1 pin, a PC15 pin and a PC14 pin of the crystal oscillator circuit are respectively connected with the PD0 pin, the PD1 pin, the PC15 pin and the PC14 pin of the STM32F103C8T6 chip.
As a preferable technical scheme of the utility model, the water quality detection interface circuit is also provided with a reset circuit, and the reset circuit comprises a resistor R12, a capacitor C11, a switch U11 and a RST pin; wherein,
The RST pin is connected with a NRST pin of the STM32F103C8T6 chip; one end of the capacitor C11 and the pin 1 of the switch U11 are grounded; the other end of the capacitor C11 and the No. 2 pin of the switch U11 are both connected with the RST pin and one end of the resistor R12, and the other end of the resistor R12 is externally connected with a 3V voltage source.
As the preferable technical scheme of the utility model, the water quality detection interface circuit is provided with an RS485 conversion circuit, and the RS485 conversion circuit adopts a MAX485ESA+T chip.
As a preferable technical scheme of the utility model, the power management circuit is provided with a lithium battery charging and discharging circuit, a power input interface circuit and a 6pinTYPEC circuit.
As a preferable technical scheme of the utility model, a charging management chip is arranged in the power management circuit, and the charging management chip adopts a TP4056 chip.
As a preferable technical scheme of the utility model, the water quality detection interface circuit is provided with a key circuit, and the key circuit is connected with the pins of PA10, PA11 and PA12 of the STM32F103C8T6 chip and is used for detecting and debugging the water quality detection interface circuit.
Compared with the prior art, the technical scheme of the utility model has the beneficial effects that:
The water quality detection interface circuit is provided with a control circuit, a sensor interface circuit, a communication circuit and a power management circuit, wherein the control circuit is used for processing data and signals of water quality detection; the sensor interface circuit is used for connecting a water quality sensor, a turbidity sensor, a temperature sensor and a positioning sensor to realize water quality detection; the communication circuit supports 4G data transmission, so that real-time monitoring can be realized; the integrated control circuit and the sensor interface circuit solve the problem that the power consumption of the existing water quality detection interface circuit is relatively high due to low integrated level and insufficient resource utilization rate.
Drawings
The drawings are for illustrative purposes only and are not to be construed as limiting the utility model; for the purpose of better illustrating the embodiments, certain elements of the drawings may be omitted, enlarged or reduced and do not represent the actual product dimensions; it will be appreciated by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted.
FIG. 1 is a schematic diagram of a control circuit according to an embodiment of the utility model;
FIG. 2 is a schematic diagram of a sensor interface circuit according to an embodiment of the utility model;
FIG. 3 is a schematic diagram of a crystal oscillator circuit according to an embodiment of the utility model;
FIG. 4 is a schematic diagram of a reset circuit according to an embodiment of the utility model;
Fig. 5 is a schematic diagram of an RS485 conversion circuit according to an embodiment of the utility model;
fig. 6 is a schematic diagram of a charging and discharging circuit of a lithium battery according to an embodiment of the utility model;
FIG. 7 is a schematic diagram of a power input interface circuit according to an embodiment of the utility model;
FIG. 8 is a schematic diagram of a circuit of 6pinTYPEC according to one embodiment of the present utility model;
FIG. 9 is a schematic diagram of a serial port screen circuit according to an embodiment of the utility model;
FIG. 10 is a schematic diagram of a key circuit according to an embodiment of the utility model;
FIG. 11 is a schematic diagram of a buck-boost circuit according to an embodiment of the utility model;
FIG. 12 is a schematic diagram of a BOOT setting circuit according to an embodiment of the utility model;
FIG. 13 is a schematic diagram of SWD debug pin circuitry according to an embodiment of the present utility model;
fig. 14 is a schematic diagram of an M3 copper pillar according to an embodiment of the utility model.
Detailed Description
In order that those skilled in the art will better understand the present utility model, a technical solution in the embodiments of the present utility model will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present utility model, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present utility model without making any inventive effort, shall fall within the scope of the present utility model.
Example 1
For ease of understanding, referring to fig. 1, an embodiment of a water quality detection interface circuit provided by the present utility model includes: the sensor comprises a control circuit, a sensor interface circuit, a communication circuit and a power management circuit; wherein,
The control circuit is used for processing data and signals of water quality detection; the sensor interface circuit is used for connecting a water quality sensor, a turbidity sensor, a temperature sensor and a positioning sensor, realizing the detection of water quality and transmitting the detection result to external receiving equipment through the communication circuit; the power supply management circuit is used for providing power for the water quality detection interface circuit.
The Beidou positioning circuit is used for positioning the position of the water quality detection interface circuit.
The utility model integrates various sensors and circuits, can rapidly and accurately detect water quality, and uses 4G communication to improve the stability of detection result transmission and reduce the packet drop rate; the integrated level is high, and the problem of scattered installation and too many connecting lines is solved; the method can be applied to the fields of water resource detection, environment monitoring and the like of river channels, lakes and the like; the water quality condition can be known more conveniently and rapidly, the water pollution problem can be found in time, and the safety and sustainable use of water resources can be ensured;
Example 2
The scheme of example 1 is further described in conjunction with the specific operation described below:
As shown in fig. 1, as a preferred embodiment, based on the above manner, the control circuit further includes an STM32F103C8T6 chip, a capacitor C10, and a capacitor C24, the VBAT pin of the STM32F103C8T6 chip is connected to one end of the capacitor C10 and one end of the capacitor C24, the VBAT pin is externally connected to a 3V voltage source, and the other end of the capacitor C10 and the other end of the capacitor C24 are grounded.
It should be noted that, the STM32F103C8T6 chip is a single chip microcomputer, 3 serial ports, such as an RS485 conversion circuit, included in the STM32F103C8T6 chip, are connected when the sensor thereof adopts an optocoupler technology and is turned on when the sensor is at a low level, and signals are transmitted to the STM32F103C8T6 chip, so that only one signal needs to be input at any moment.
As shown in fig. 2, as a preferred embodiment, based on the above manner, the sensor interface circuit further includes a water quality interface circuit, a turbidity interface circuit, a temperature interface circuit, a beidou positioning interface circuit, and a communication circuit; wherein, one pin of the water quality interface circuit, the turbidity interface circuit, the temperature interface circuit, the Beidou positioning interface circuit and the communication interface circuit is grounded, and the other pin is connected with 5V voltage;
The water quality sensor is connected with the PA0 and PB12 pins of the STM32F103C8T6 chip through a water quality interface circuit; the turbidity sensor is connected with a PA1 pin of an STM32F103C8T6 chip through a turbidity interface circuit; the temperature sensor is connected with a PA4 pin of the STM32F103C8T6 chip through a temperature interface circuit; the positioning sensor is connected with the PA10 and PA9 pins of the STM32F103C8T6 chip through the Beidou positioning interface circuit, and the communication circuit is connected with the PA2 and PA3 pins of the STM32F103C8T6 chip through the communication interface circuit.
The water quality detection sensor comprises a Y560-A ammonia nitrogen sensor; a Y519-A model COD sensor; a Y532-B model PH sensor; Y504-A dissolved oxygen sensor; y521 quadrupole conductivity sensor.
As shown in fig. 3, as a preferred embodiment, in addition to the above manner, the water quality detection interface circuit is further provided with a crystal oscillator circuit; and a PD0 pin, a PD1 pin, a PC15 pin and a PC14 pin of the crystal oscillator circuit are respectively connected with the PD0 pin, the PD1 pin, the PC15 pin and the PC14 pin of the STM32F103C8T6 chip.
The crystal oscillator circuit is used for providing a basic clock signal. The crystal oscillator circuit selects CL of 16pf, cl1=cl2 is set, and Cstray is selected to be 5pf, cl1=cl2=22pf, so the matching capacitance of the 8MHZ crystal oscillator is selected to be 22pf. For an external crystal oscillator of 32.768KHZ, a resonator with a load capacitance cl\u003 c=7pf is used according to the description in STMSTM F103C8T6 chip data manual for an external low speed crystal oscillator; cl=6pf, cstray=2pf, cl1=cl2=8pf are thus selected. Three clock sources are arranged in the STM32, five clock sources are needed in a clock tree of the STM32F103C8T6 chip, and an external high-speed clock and an external low-speed clock are needed to be placed by the water quality detection interface circuit; the high-speed external clock can be connected with a quartz/ceramic resonator or an external clock source, and the frequency range is 4 MHz-16 MHz; the main frequency of the water quality detection interface circuit is a quartz crystal with the frequency of 32.768kHz, and the quartz crystal is used for driving an RTC clock.
As shown in fig. 4, as a preferred embodiment, in addition to the above manner, the water quality detection interface circuit is further provided with a reset circuit, where the reset circuit includes a resistor R12, a capacitor C11, a switch U11, and a RST pin; wherein,
The RST pin is connected with a NRST pin of the STM32F103C8T6 chip; one end of the capacitor C11 and the pin 1 of the switch U11 are grounded; the other end of the capacitor C11 and the No. 2 pin of the switch U11 are both connected with the RST pin and one end of the resistor R12, and the other end of the resistor R12 is externally connected with a 3V voltage source.
It can be understood that in the RESET circuit, when the singlechip is electrified again, the capacitor C11 is charged and turned on, the voltage of the RESET is low level, the system is RESET, after a period of time, the capacitor is charged and turned off, the voltage of the RESET is high level, and the singlechip is kept stable and cannot be RESET; when the key is pressed, the key is kept on for 20-50 ms, RST is conducted with the grounding end, and at the moment, the voltage is low level, and system reset is carried out.
As shown in fig. 5, in a preferred embodiment, in addition to the above embodiment, the water quality detection interface circuit is further provided with an RS485 conversion circuit, and the RS485 conversion circuit adopts a MAX485esa+t chip.
In the RS485 conversion circuit, a DE pin, a RE# pin and an RO pin of a MAX485ESA+T chip (called MAX485 for short) are respectively connected with a PA8 pin, a PB11 pin and a PB10 pin of an STM32F103C8T6 chip. Pin A and pin B of the MAX485ESA+T chip are respectively connected with the collector and the emitter of the triode to form an interface. MAX485 is an RS-485 chip of Maxim corporation, a low power consumption transceiver for RS-485 and RS-422 communication, each device having a driver and a receiver; the drive slew rate of MAX485 is not limited and a transmission rate of up to 2.5Mbps can be achieved. The transceiver draws a power supply current between 120mA and 500mA in an idle or full state with the driver disabled; a single power supply is adopted for +5V operation, rated current is 300 mu A, and a half-duplex communication mode is adopted; it performs the function of converting TTL level into RS-485 level. The structure and the pins of the MAX485 chip are very simple, and a driver and a receiver are arranged in the MAX485 chip; the RO end and the DI end are respectively the output end of the receiver and the input end of the driver, and are connected with the singlechip only by being respectively connected with RXD and TXD of the singlechip; the/RE and DE terminals are respectively the receiving and transmitting enabling terminals, and when the/RE is logic 0, the device is in a receiving state; when DE is logic 1, the device is in a transmitting state, and because MAX485 works in a half duplex state, only one pin of the singlechip is used for controlling the two pins; the A end and the B end are differential signal ends for receiving and transmitting respectively, and when the level of the A pin is higher than that of the B pin, the data representing transmission is 1; when the level of A is lower than that of the B end, the data representing transmission is 0; the wiring is very simple when the single chip microcomputer is connected; only one signal is needed to control the receiving and transmitting of MAX 485. MAX485 adopts the multiplexing serial port resource of opto-coupler technology timesharing, and control circuit passes through RS485 conversion circuit and connects five sensors with three serial ports, solves the problem that the serial ports is not enough. The serial port 1 of the control circuit is a TXPA pin and a RXPA pin of an STM32F103C8T6 chip; serial port 2 is TXPA pins and RXPA pins; serial port 3 is TXPB pin, RXPB pin.
In a preferred embodiment, in addition to the above embodiment, the power management circuit is a lithium battery charge/discharge circuit, a power input interface circuit, or a 6pinTYPEC circuit.
As shown in fig. 6, in a preferred embodiment, in addition to the above embodiment, a charging management chip is further provided in the power management circuit, and the charging management chip is a TP4056 chip.
The power management circuit is set to be a lithium battery charging and discharging circuit and comprises a TP4056 chip, a resistor R34, a resistor R35, a resistor R36, a light emitting diode LED3, a light emitting diode LED4, a capacitor C20 and a capacitor C23. The pins 1 and 3 of the TP4056 chip are grounded, and the pin 2 is connected with the resistor R36 in series and then grounded; the pins 4 of the TP4056 chip are connected with the capacitor C23 in series and then grounded, the pins 4 and the pins 8 are connected in series, the pins 4 are sequentially connected with the LED3 and the resistor R35 in series and then connected with the pin 7, and the pins 4 are sequentially connected with the LED4 and the resistor R34 in series and then connected with the pin 6; pin 9 is grounded.
As shown in fig. 7, in a preferred embodiment, the power input interface circuit further includes U36 and U37 of the power input interface circuit as extensions of the power supply section. The voltage terminal (SUN pin) of the power input interface circuit is connected in series with the Schottky diode BAT54C and then connected to the No. 4 pin of the TP4056 chip.
The water quality detection interface circuit is powered by converting a booster circuit into 5V voltage, the STM32F103C8T6 chip is powered by 3V through a solar panel or a lithium battery through a step-down circuit, and the circuit provides a type-C interface.
As shown in fig. 8, in a preferred embodiment, the 6pinTYPEC circuit is further provided with a USB-TYPE-C6P chip, and the A9 pin of the USB-TYPE-C6P chip is connected to the fuse U10 and the diode D3 and then to pin 4 of the TP4056 chip. The voltage end of the power input interface circuit is connected with a Schottky diode BAT54C in series and then is connected with a pin 4 of the TP4056 chip.
The utility model is provided with five 485 transfer ttl transfer serial port interface circuits, a water quality detection sensor circuit, a communication circuit and a Beidou positioning circuit; realizing the functions of water quality detection, data storage, uploading and positioning of the device. Low power consumption, stable network, easy installation and replacement, and simple and convenient control.
The water quality detection interface circuit is provided with a lithium battery and a solar power supply power management circuit to realize voltage conversion power supply, respectively supplies power for the sensor and the singlechip in a voltage-increasing and voltage-decreasing manner, and is provided with keys to support debugging and detection. Each sensor adopts 485 communication protocol, and is connected with the RS485 conversion circuit to convert signals into ttl level, and the MAX485 chip is adopted to transmit signals to the singlechip. And the cloud platform docking is supported, so that the remote storage and analysis of the data can be realized. The device is simple and convenient to manufacture, and can be installed in equipment such as a water quality detection buoy and the like.
Example 3
The schemes of examples 1 and 2 are further described below in conjunction with specific modes of operation, as described below:
As shown in fig. 9, as a preferred embodiment, based on the above manner, the water quality detection interface circuit is further provided with a serial port screen circuit, and PA2 and PA3 pins of the serial port screen circuit are connected with PA2 and PA3 in STM32F103C8T6, and are used for externally connecting USARTHMI intelligent serial port screens, and can be used for man-machine interaction devices in communication with controllers such as MCUs and PLCs through serial ports; the touch screen is used for displaying various information such as texts, images and curves and supporting touch screen operation; the main functions are as follows:
Man-machine interaction: visual interfaces can be provided for users, interaction between the users and the controller is simplified, and the operation efficiency and the control precision are improved;
And (3) monitoring and controlling: the intelligent serial port screen can monitor various sensor parameters in real time and send monitoring results to the controller through the serial port; and (3) data storage: the monitored data can be stored in an internal Flash or SD card, so that the user can conveniently check and analyze the data in the future;
Alarm function: USARTHMI the intelligent serial port screen can alarm according to a threshold value configured by a user, so that the user can know the system fault condition in time, and the equipment fault loss is reduced.
As shown in fig. 10, as a preferred embodiment, in addition to the above manner, the water quality detection interface circuit is further provided with a key circuit, and the key circuit is connected with pins PA10, PA11 and PA12 of the STM32F103C8T6 chip, and is used for detecting and debugging the water quality detection interface circuit; the parallel capacitors of the circuits realize hardware jitter elimination and absorb fluctuation, and when a key is pressed, the circuit ground is changed to a low level, and the key is identified as being pressed.
As shown in fig. 11, in a preferred embodiment, the water quality detection interface circuit is further provided with a step-up/down circuit for raising/lowering a power supply voltage and a protection circuit. The step-up circuit comprises a step-down circuit (shown in figure 11 a) and a step-up circuit (shown in figure 11 b), wherein the step-down circuit adopts an AMS1117-3.3 voltage stabilizing module; and a No. 1 pin of the AMS1117-3.3 voltage stabilizing module is grounded, and a No. 2 pin is connected with a No. 4 pin. The No. 3 pin of the AMS1117-3.3 voltage stabilizing module is externally connected with a 4.2V voltage source and is respectively connected with one end of a capacitor C6 and one end of a capacitor C9, and the No. 3 pin of the AMS1117-3.3 voltage stabilizing module is connected with a light emitting diode LED1 and a resistor R4 in series and then grounded. The No. 4 pin of the AMS1117-3.3 voltage stabilizing module is externally connected with a 3V voltage source and is respectively connected with one end of a capacitor C7 and one end of a capacitor C8. The other ends of the capacitors C6, C7, C8 and C9 are grounded.
The booster circuit adopts an ncp1400asn50t1g module, a No. 1 pin and a No. 2 pin of the ncp1400asn50t1g module are connected in series and then connected to a cathode of a diode D2 and a 5V voltage source, and a No. 5 pin of the ncp1400asn50t1g module is connected to one end of an inductor L1; and a pin 4 of the ncp1400asn50t1g module is connected with a capacitor C21 and then connected with a 5V voltage source. The other end of the inductor L1 is connected to a +4.2V voltage source and is connected in series with a capacitor C22 and then grounded.
The +4.2V voltage source is connected with the lithium battery charging and discharging circuit, the 5V voltage source of the voltage boosting circuit is connected with the sensor circuit, and the 3V voltage source of the voltage reducing circuit is connected with the 48 # pin of the singlechip
As shown in fig. 12, as a preferred embodiment, based on the above manner, the control circuit is further provided with a BOOT setting circuit, where the BOOT setting circuit is connected to a BOOT0 pin of the STM32F103C8T6 chip; the BOOT0 and BOOT1 of STM32 control the starting mode of the chip, which supports the internal FLASH starting, the system memory starting and the internal SRAM starting; user Flash = Flash built in chip;
sram=ram area built in chip, i.e. memory;
System memory = a specific area inside the chip, and a section of Bootloader, i.e. ISP program, is preset when the chip leaves the factory; the content of the area can not be modified or erased by people after the chip leaves the factory, namely the area is a ROM area, the area uses USART1 as a communication port, uses SWD debugging downloading program and downloads the area into a flash memory, and can directly set a BOOT0 pin and a BOOT1 pin to be low level; the reason for connecting 10K is that BOOT0 and BOOT1 are in a high-resistance state under the condition of not connecting any peripheral equipment, and the pull-up resistor R2 and the pull-down resistor R13 of 10K can play a good current limiting role and can protect an internal IC chip. The user may select the start mode after reset by setting the state of the BOOT1 and BOOT0 pins.
As shown in fig. 13, as a preferred embodiment, based on the above manner, the control circuit is further provided with a SWD debug pin circuit, where the SWD debug pin is connected to the PA14 pin of the STM32F103C8T6 chip; the debugging PIN is commonly used as Jlink downloader, which has the defects that the Jtag20PIN interface is used, too many PINs can cause crowding of some small PCB boards, and the wiring difficulty is increased; the SWD interface of the utility model is used for downloading and debugging, only 4 PINs are needed to be used for GND, RST, SWDIO, SWDCLK, and the downloading speed can reach 10M/s, so that the advantages are obvious. The M3 copper pillars are used to secure the integrated circuit board and provide a stable grounding function.
In the scheme, the water quality detection interface circuit forms an integrated circuit board, and the control circuit uses a high-efficiency energy-saving processor chip; the communication circuit supports a plurality of communication protocols and has stable and reliable communication connection; the power management circuit supports various power inputs, and can realize high-efficiency and energy-saving power management; the sensor interface uses standard interface protocol and has stable and reliable connection; the display screen interface uses a standard interface protocol and can realize a high-definition display effect. Having smaller volumes for more scenes; the integrated circuit board has higher integration level, lower power consumption, longer endurance and more stable signal transmission.
Wherein: the input end is electrically connected with the output end of the integrated circuit board, and the output end is electrically connected with the control end of the integrated circuit board and the input end of the signal output device; the integrated circuit board is provided with a connecting plug, and the upper surface of the integrated circuit board is provided with an interface corresponding to the connecting plug; the utility model can be connected with the cloud server network and the information is interconnected.
The sensor interface comprises a plurality of sensor interfaces such as a water quality sensor interface, a temperature sensor interface and the like; the storage circuit has data backup so as to ensure the reliability and the safety of the data.
As shown in fig. 14, as a preferred embodiment, in addition to the above manner, the integrated circuit board of the water quality detection interface circuit is further provided with an M3 copper pillar for fixing the integrated circuit board and providing a grounding function.
It is to be understood that the above examples of the present utility model are provided by way of illustration only and not by way of limitation of the embodiments of the present utility model. Other variations or modifications of the above teachings will be apparent to those of ordinary skill in the art. It is not necessary here nor is it exhaustive of all embodiments. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the utility model are desired to be protected by the following claims.

Claims (8)

1. A water quality testing interface circuit, comprising: the sensor comprises a control circuit, a sensor interface circuit, a communication circuit and a power management circuit; wherein,
The control circuit is used for processing data and signals of water quality detection; the sensor interface circuit is used for connecting a water quality sensor, a turbidity sensor, a temperature sensor and a positioning sensor, realizing the detection of water quality and transmitting the detection result to external receiving equipment through the communication circuit; the power supply management circuit is used for providing power supply for the water quality detection interface circuit;
The Beidou positioning circuit is used for positioning the position of the water quality detection interface circuit;
The control circuit comprises an STM32F103C8T6 chip, a capacitor C10 and a capacitor C24, wherein a VBAT pin of the STM32F103C8T6 chip is respectively connected with one end of the capacitor C10 and one end of the capacitor C24, the VBAT pin is externally connected with a 3V voltage source, and the other end of the capacitor C10 and the other end of the capacitor C24 are grounded;
The water quality detection interface circuit is provided with an RS485 conversion circuit, and the RS485 conversion circuit adopts a MAX485ESA+T chip; the DE pin, the RE# pin and the RO pin of the MAX485ESA+T chip are respectively connected with the PA8 pin, the PB11 pin and the PB10 pin of the STM32F103C8T6 chip.
2. The water quality detection interface circuit of claim 1, wherein the sensor interface circuit comprises a water quality interface circuit, a turbidity interface circuit, a temperature interface circuit, a Beidou positioning interface circuit, and a communication circuit; wherein, one pin of the water quality interface circuit, the turbidity interface circuit, the temperature interface circuit, the Beidou positioning interface circuit and the communication interface circuit is grounded, and the other pin is connected with 5V voltage;
The water quality sensor is connected with PA0 and PB12 pins of STM32F103C8T6 through a water quality interface circuit; the turbidity sensor is connected with a PA1 pin of an STM32F103C8T6 chip through a turbidity interface circuit; the temperature sensor is connected with a PA4 pin of the STM32F103C8T6 chip through a temperature interface circuit; the positioning sensor is connected with the PA10 and PA9 pins of the STM32F103C8T6 chip through the Beidou positioning interface circuit, and the communication circuit is connected with the PA2 and PA3 pins of the STM32F103C8T6 chip through the communication interface circuit.
3. The water quality testing interface circuit of claim 2, wherein the communication circuit is connected with a 4G module.
4. The water quality detection interface circuit according to claim 2, wherein the water quality detection interface circuit is provided with a crystal oscillator circuit; and a PD0 pin, a PD1 pin, a PC15 pin and a PC14 pin of the crystal oscillator circuit are respectively connected with the PD0 pin, the PD1 pin, the PC15 pin and the PC14 pin of the STM32F103C8T6 chip.
5. The water quality detection interface circuit according to claim 2, wherein the water quality detection interface circuit is further provided with a reset circuit, and the reset circuit comprises a resistor R12, a capacitor C11, a switch U11 and a RST pin; wherein,
The RST pin is connected with a NRST pin of the STM32F103C8T6 chip; one end of the capacitor C11 and the pin 1 of the switch U11 are grounded; the other end of the capacitor C11 and the No. 2 pin of the switch U11 are both connected with the RST pin and one end of the resistor R12, and the other end of the resistor R12 is externally connected with a 3V voltage source.
6. The water quality testing interface circuit of claim 1, wherein the power management circuit is at least one of a lithium battery charge-discharge circuit, a power input interface circuit, and a 6pinTYPEC circuit.
7. The water quality testing interface circuit of claim 6, wherein a charging management chip is disposed in the power management circuit, and the charging management chip is a TP4056 chip.
8. The water quality detection interface circuit according to claim 1, wherein the water quality detection interface circuit is provided with a key circuit, and the key circuit is connected with pins PA10, PA11 and PA12 of the STM32F103C8T6 chip for detecting and debugging the water quality detection interface circuit.
CN202321658043.XU 2023-06-27 2023-06-27 Water quality detection interface circuit Active CN220819888U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202321658043.XU CN220819888U (en) 2023-06-27 2023-06-27 Water quality detection interface circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202321658043.XU CN220819888U (en) 2023-06-27 2023-06-27 Water quality detection interface circuit

Publications (1)

Publication Number Publication Date
CN220819888U true CN220819888U (en) 2024-04-19

Family

ID=90704432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202321658043.XU Active CN220819888U (en) 2023-06-27 2023-06-27 Water quality detection interface circuit

Country Status (1)

Country Link
CN (1) CN220819888U (en)

Similar Documents

Publication Publication Date Title
CN200979743Y (en) An intelligent self-study type multi-functional infrared remote controller
CN204516015U (en) A kind of multifunctional low power consumption water environment Wireless data acquisition unit
CN102135791A (en) Energy-saving control method for display and circuit design thereof
CN103313003B (en) Readiness control circuit and television set
CN110855013A (en) Intelligent constant display power monitoring device and control method thereof
CN203643779U (en) Outage wake-up circuit of ammeter metering terminal
CN220819888U (en) Water quality detection interface circuit
CN211878729U (en) Intelligent monitoring system for acquisition equipment
CN204759710U (en) Site environment parameter monitoring module based on zigBee wireless LAN
CN109470825B (en) Remote power supply low-power consumption methane sensor
CN208421596U (en) A kind of low-power consumption sound collection equipment automatically waken up with suspend mode
CN207965106U (en) L ED driving power supply remote monitoring device
CN217787767U (en) Mobile photoelectric reading device for reading logistics information data
CN201903954U (en) Integrated acquisition and transfer device
CN202976440U (en) Novel temperature detection and transmission device
CN215865302U (en) Battery-free hygrothermograph device
CN202057713U (en) Online monitoring device for wireless lightning arrester
CN209895153U (en) Intelligent motor-pumped well control device
CN209784775U (en) Data acquisition device applied to intelligent production
CN209002236U (en) A wireless energy wake-up circuit
CN210217374U (en) Low-power consumption pronunciation intelligence lock
CN209057212U (en) A kind of super long standby time positioning device based on NB-IOT
CN202617059U (en) Off-grid intelligent type fan controller
CN202736272U (en) Wireless transceiving module and inversion system thereof
CN211061459U (en) Low-power-consumption soil sensor acquisition control system

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant