Pig house environment monitoring system
By designing the Internet of Things pig house environment monitoring system, the shortcomings of artificial environmental monitoring data in small and medium-sized farms have been solved, and the precise monitoring and control of the pig house environment has been achieved, and the breeding efficiency and benefits have been improved.
Patent Information
- Application Number
- CN202323072487.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-13
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2033-11-13
AI Technical Summary
Due to insufficient funds, small and medium-sized breeding enterprises and household pig farms adopt traditional breeding model of manually monitoring environmental data, resulting in poor environmental control effect, low degree of automation and refinement, which makes it difficult to adapt to market development, affecting the healthy growth of pigs and reducing returns. .
A pig house environment monitoring system was designed, including a collection device and a control device, which monitors and controls the pig house environment data in real time through the Internet of Things platform, and adopts temperature and humidity, light intensity, CO2 and NH3 concentration acquisition units, combined with weighted average value and relay control , achieve accurate adjustment of the pig house environment.
It realizes accurate monitoring and control of pig house environmental data, reduces costs, and is suitable for small and medium-sized farms with limited budgets, improves the healthy growth environment of pigs, and improves breeding efficiency and benefits.
Smart Images

Figure CN222213222U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the field of data monitoring, in particular to a pig house environment monitoring system. Background Art
[0002] my country's pig farming industry is developing in the direction of intelligence. The name of the Chinese utility model patent is: a pig house environment monitoring system based on the Internet of Things, application number: 202022954088.4, which provides a pig house environment monitoring system based on the Internet of Things, including multiple environment acquisition modules, a central processing unit, an environment control module, a display module, a cloud server and a wireless communication module; the environment acquisition module is wirelessly connected to the central processing unit, and the cloud server communicates wirelessly with the central processing unit through the wireless communication module; the environment control module and the display module are connected to the output end of the central processing unit. The system collects pig farm environmental information through wireless sensor network technology and transmits it to the cloud server, and combines image processing technology to identify the lying posture of the pigs to judge the suitability of the pig house temperature, and then adjusts the pig house environment through the environment control module.
[0003] However, in reality, most small and medium-sized breeding companies or family pig farms still adopt the traditional breeding model of manual monitoring of environmental data due to lack of funds. This method has poor control effect on the environment, is time-consuming and labor-intensive, has low levels of automation and refinement, and is difficult to adapt to market development. In addition, breeders cannot accurately monitor environmental data or accurately control environmental conditions. This breeding model is not conducive to the healthy growth of pigs and may even cause pigs to become sick, reducing the income of breeders. Utility Model Content
[0004] In view of the problems existing in the prior art, the utility model provides a pig house environment monitoring system which is low in cost, integrates multiple modules into one, and is simple and easy to use.
[0005] The technical solution adopted by the utility model is as follows:
[0006] A pig house environment monitoring system includes electrical equipment, a collection device, a control device, and an Internet of Things platform in the pig house. The control device is communicatively connected to the collection device, and the collection device is used to collect environmental data inside the pig house and send the environmental data to the control device; the control device is communicatively connected to the Internet of Things platform, and the control device performs weighted averaging on the environmental data and sends the average value to the Internet of Things platform. The control device is also used to control the opening and closing of electrical equipment in the pig house.
[0007] Furthermore, the collection device includes: a main controller module 1, an environment collection module, a wireless transmission module 1, and a power supply module 1. The environment collection module is connected to the main controller module 1 and is used to collect environmental data in the pig house. The wireless transmission module 1 adopts the STA mode and is used to send data. The power supply module 1 supplies power to the collection device.
[0008] Furthermore, the control device includes: a main controller module 2, a control module, a wireless transmission module 2, a power supply module 2, and a display module. The display module includes: a conversion circuit and an LED display screen. The control module includes a relay. The relay is connected to the main controller module 2 and is used to receive control instructions from the main controller module 2. The conversion circuit is electrically connected to the main controller module 2 and is used for level conversion. The control module is electrically connected to the main controller module 2. The wireless transmission module 2 is electrically connected to the main controller module 2 and adopts the STA+AP mode for sending and receiving data. The power supply module 2 supplies power to the control device.
[0009] The environment acquisition module includes: a temperature and humidity acquisition unit, a light intensity acquisition unit, a CO2 concentration acquisition unit, and an NH3 concentration acquisition unit, which are used to collect temperature and humidity, light intensity, CO2 concentration, and NH3 concentration. The connection method of the environment acquisition module is specifically as follows: the VDD pin of the temperature and humidity acquisition unit is grounded through a capacitor C1, the VDD pin of the temperature and humidity acquisition unit is connected to one end of resistors R1 and R2, and a 3.3V voltage connection, the SCL pin of the temperature and humidity acquisition unit is connected to the other end of resistor R1, the SDA pin of the temperature and humidity acquisition unit is connected to the other end of resistor R2, and the GND pin of the temperature and humidity acquisition unit is grounded; the VCC pin of the light intensity acquisition unit is connected to the VCC pin of the power supply module one and one end of capacitor C3, the ADDR pin and GND pin of the light intensity acquisition unit are connected to the other end of capacitor C3, the other end of capacitor C3 is grounded, and the SCL pin of the light intensity acquisition unit is connected to the VCC pin of the power supply module one through a resistor R4. The SDA pin of the light intensity acquisition unit is connected to the VCC pin of the power supply module one through the resistor R5, the DVI pin of the light intensity acquisition unit is connected to the VCC pin of the power supply module one through the resistor R3, the DVI pin of the light intensity acquisition unit is grounded through the capacitor C2, the VCC pin of the CO2 concentration acquisition unit is connected to the VCC pin of the power supply module one, the GND pin of the CO2 concentration acquisition unit is grounded, the SDA pin of the CO2 concentration acquisition unit is connected to the VCC pin of the power supply module one through the resistor R6, the SCL pin of the CO2 concentration acquisition unit is connected to the VCC pin of the power supply module one through the resistor R7, the DOUT pin of the NH3 concentration acquisition unit is connected to the output end of the operational amplifier, the AOUT pin of the NH3 concentration acquisition unit is connected to the inverting input end of the operational amplifier, the VCC pin of the NH3 concentration acquisition unit is connected to the VCC pin of the power supply module one, and the GND pin of the NH3 concentration acquisition unit is grounded;
[0010] The connection method of the control module is as follows: the IN pin of the relay is connected to the PB2 pin of the main controller module 2, the GND pin of the relay is grounded, and the VCC pin of the relay is connected to the 5V voltage of the power supply module 2;
[0011] The PA2 pin of the main controller module 2 of the control device is connected to the RX pin of the wireless transmission module 2, and the PA3 pin of the main controller module 2 of the control device is connected to the TX pin of the wireless transmission module 2;
[0012] The PA2 pin of the main controller module one of the acquisition device is connected to the RX pin of the wireless transmission module one, and the PA3 pin of the main controller module one of the acquisition device is connected to the TX pin of the wireless transmission module one; the PB0 pin of the main controller module one of the acquisition device is connected to the SCL pin of the CO2 concentration acquisition unit, the PB1 pin of the main controller module one of the acquisition device is connected to the SDA pin of the CO2 concentration acquisition unit, the PB10 pin of the main controller module one of the acquisition device is connected to the SCL pin of the temperature and humidity acquisition unit, the PB11 pin of the main controller module one of the acquisition device is connected to the SDA pin of the temperature and humidity acquisition unit, the PB8 pin of the main controller module one of the acquisition device is connected to the SCL pin of the light intensity acquisition unit, the PB9 pin of the main controller module one of the acquisition device is connected to the SDA pin of the light intensity acquisition unit, and the PB3 pin of the main controller module one of the acquisition device is connected to the AOUT pin of the NH3 concentration acquisition unit;
[0013] The D+ pin of the power supply module 1 is connected to the PA12 pin of the main controller module 1, the D- pin of the power supply module 1 is connected to the PA11 pin of the main controller module 1, the D+ pin of the power supply module 2 is connected to the PA12 pin of the main controller module 2, and the D- pin of the power supply module 2 is connected to the PA11 pin of the main controller module 2;
[0014] The connection mode of the display module is as follows: the VCC pin of the conversion circuit is connected to the 5V pin of the power supply module 2, the TX pin of the conversion circuit is connected to the PA10 pin of the main controller module 2, the RX pin of the conversion circuit is connected to the PA9 pin of the main controller module 2, the GND pin of the conversion circuit is connected to the GND pin of the LED display, the A pin of the conversion circuit is connected to the A pin of the LED display, and the B pin of the conversion circuit is connected to the B pin of the LED display;
[0015] GPIO15 is the RST pin, which is the reset pin of the module; GPIO0 is the IO_0 pin, which is used to select the startup mode when updating the firmware. During normal communication, GPIO15 is connected to ground through a resistor, and GPIO0 is connected to a 3.3V voltage through a resistor.
[0016] The beneficial effects of the utility model are as follows: the system realizes the monitoring and control of various environmental data in the pig house by setting the collection device and the control device. The control device of the system takes a weighted average of the measured environmental data to make the environmental data more accurate. The system only needs to set up some sensors to realize the monitoring of environmental data. The overall structure is simpler and the cost is low, which is suitable for small and medium-sized enterprises or family pig houses with insufficient budget. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0019] Figure 1 This is a structural schematic diagram of a pig house environment monitoring system of the utility model;
[0020] Figure 2 This is the circuit schematic diagram of the acquisition device of the utility model;
[0021] Figure 3 This is a circuit diagram of the control device of the utility model;
[0022] Figure 4 This is the circuit schematic diagram of the temperature and humidity acquisition unit of the utility model;
[0023] Figure 5 This is a circuit schematic diagram of the light intensity acquisition unit of the utility model;
[0024] Figure 6 This is the circuit schematic diagram of the CO2 concentration acquisition unit of the utility model;
[0025] Figure 7 This is a circuit schematic diagram of the NH3 concentration acquisition unit of the utility model;
[0026] Figure 8 It is the circuit principle diagram of the relay of the utility model;
[0027] Fig. 9 This is a circuit schematic diagram of the display module of the utility model;
[0028] Fig.10 This is a circuit schematic diagram of the wireless transmission module of the utility model;
[0029] Fig.11This is a circuit schematic diagram of the USB interface of power supply module 1 and power supply module 2 in the embodiment of the utility model. DETAILED DESCRIPTION
[0030] The utility model is further described below in conjunction with the accompanying drawings and embodiments: In order to clearly illustrate the technical features of the present solution, the utility model is described in detail below through specific implementation methods and in conjunction with its accompanying drawings. The disclosure below provides many different embodiments or examples for realizing different structures of the utility model. In order to simplify the disclosure of the utility model, the components and settings of specific examples are described below. In addition, the utility model may repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed. It should be noted that the components illustrated in the accompanying drawings are not necessarily drawn to scale. The utility model omits the description of known components and processing techniques and processes to avoid unnecessary limitations on the utility model.
[0031] like Figure 1 As shown, the utility model provides a pig house environment monitoring system. The system is divided into a collection device and a control device. The control device also has the function of a gateway. Each collection device collects environmental data in the pig house through an environmental collection module, and transmits the collected data to the control device through a wireless transmission module 1. The control device calculates the weighted average value of the received data and transmits it to the Internet of Things platform through a wireless transmission module 2. The control device can control the electrical equipment in the pig house to work through a relay according to the weighted average value. The user can send commands to the main controller module 2 through the Internet of Things platform. After receiving the command, the control device controls the electrical equipment, further realizing the user's remote control of the opening and closing of the equipment.
[0032] In one embodiment of the utility model, the system is provided with 3 collection devices and 1 control device. The collection devices include: a main controller module 1, an environment collection module, a wireless transmission module 1, and a power supply module 1. The environment collection module includes a temperature and humidity collection unit, a light intensity collection unit, a CO2 concentration collection unit, and an NH3 concentration collection unit. In each collection device, the environment collection module is connected to the main controller module 1 to collect five environmental data items, namely, air temperature and humidity, light intensity, CO2 concentration, and NH3 concentration in the pig house. The wireless transmission module 1 is connected to the main controller module 1 and uses the STA working mode for data transmission. The power supply module 1 is connected to the main controller module 1 to supply energy to the entire collection device.
[0033] The control device consists of a main controller module 2, a control module, a wireless transmission module 2, a power supply module 2, and a display module. The control module includes a relay. In the control device, the control module is connected to the main controller module 2. When the user remotely issues a control instruction through the Internet of Things platform, the relay in the control module acts according to the control instruction to realize the control of the electrical equipment in the pig house. The wireless transmission module 2 is connected to the main controller module 2 and uses the STA+AP working mode for receiving and sending data. The power supply module 2 is connected to the main controller module 2 and is used for energy supply of the entire control device.
[0034] In one embodiment of the utility model, the Internet of Things platform adopts the OneNET Internet of Things platform, the main controller module 1 and the main controller module 2 use the STM32F103C8T6 minimum unit, and the wireless transmission module 1 and the wireless transmission module 2 use the ESP8266 WiFi unit. Fig.11 As shown, power supply module 1 and power supply module 2 use a power converter or a USB interface to directly power each module. In an embodiment, power supply module 1 and power supply module 2 also need to cooperate with a 5V conversion head and a USB data cable to realize the power supply function.
[0035] The working principle of this system is as follows: after each device is powered on and started, the environmental acquisition module of each acquisition device will collect environmental data in the pig house, including air temperature, air humidity, light intensity, CO2 concentration and NH3 concentration. The environmental acquisition module will transmit the data to the main controller module 1. After the main controller module 1 receives the data, it will send the data to the control device through the wireless transmission module 1. The conversion circuit uses a TTL to RS485 module and a MAX485 chip.
[0036] After the control device receives the data from each environment acquisition module, the main controller module 2 in the device will fuse the data, that is, obtain the weighted average of various environmental data, and then send the monitoring results to the Internet of Things platform through the wireless transmission module 2 to realize the visualization display of the data. The main controller module 2 compares the fused result (i.e., the weighted average) with the set environmental threshold. If it is lower than or higher than the threshold, the main controller module 2 will command the relay in the control module to work, and the electrification equipment in the pig house can be operated through the conversion circuit. For example, CO2 concentration and NH3 concentration only need to set a high threshold. If it is higher than the threshold, the main controller module 2 gives the relay a high level (the relay is a high level trigger in this embodiment) to control the fan in the pig house to work and ventilate the pig house. If the light intensity is higher than the threshold, the main controller module 2 gives the relay a high level to control the sunshade in the pig house. If the light intensity is lower than the threshold, the main controller module 2 gives the relay a high level to control the lighting in the pig house to turn on. Therefore, in the embodiment of the utility model, the number of relays is selected according to the situation of the monitored environmental parameters and the situation of the regulating equipment in the pig house.
[0037] The IoT platform can store, view and export environmental data. If the expected threshold is exceeded, the IoT platform can also send an alarm signal to the breeders.
[0038] like Figure 2 As shown, it is a circuit schematic diagram of the collection device of the utility model. The collection device includes: a main controller module 1, an environment collection module, a wireless transmission module 1, and a power supply module 1. The environment collection module is connected to the main controller module 1 and is used to collect environmental data in the pig house. The wireless transmission module 1 adopts the STA mode for sending data. The power supply module 1 is used to power the collection device.
[0039] like Figure 3 As shown, it is a circuit schematic diagram of the control device of the utility model, the control device includes: main controller module 2, control module, wireless transmission module 2, power supply module 2, display module, the display module includes: conversion circuit, LED display screen, control module includes relay, in the embodiment of the utility model, the control module can be composed of multiple relays, the number of relays can be selected according to the monitored environmental parameters and the equipment to be controlled, the functional principle is the same, this embodiment is described by taking one relay as an example. The relay is connected to the main controller module 2, used to receive the control instruction of the main controller module 2, the conversion circuit is electrically connected to the main controller module 2, used for level conversion, the control module is electrically connected to the main controller module 2, the wireless transmission module 2 is electrically connected to the main controller module 2, the STA+AP mode is adopted, used for sending and receiving data, and the power supply module 2 is used to power the control device.
[0040] The specific connection method of this system is as follows:
[0041] like Figure 4-Figure 7 As shown, it is a circuit schematic diagram of the environment acquisition module of the utility model. The environment acquisition module includes: a temperature and humidity acquisition unit, a light intensity acquisition unit, a CO2 concentration acquisition unit, and an NH3 concentration acquisition unit, which are used to collect temperature and humidity, light intensity, CO2 concentration, and NH3 concentration. The temperature and humidity acquisition unit adopts the chip AHT20, the light intensity acquisition unit adopts the chip BH1750, the CO2 concentration acquisition unit adopts the chip SGP30, and the NH3 concentration acquisition unit adopts the chip MQ135. The connection method of the environment acquisition module is specifically as follows: the VDD pin of the temperature and humidity acquisition unit is grounded through the capacitor C1, the VDD pin of the temperature and humidity acquisition unit is connected to one end of the resistors R1 and R2, and the 3.3V voltage is connected, the SCL pin of the temperature and humidity acquisition unit is connected to the other end of the resistor R1, the SDA pin of the temperature and humidity acquisition unit is connected to the other end of the resistor R2, and the GND pin of the temperature and humidity acquisition unit is grounded; the VCC pin of the light intensity acquisition unit is connected to the VCC pin of the power supply module one and one end of the capacitor C3, the ADDR pin and GND pin of the light intensity acquisition unit are connected to the other end of the capacitor C3, the other end of the capacitor C3 is grounded, the SCL pin of the light intensity acquisition unit is connected to the VCC pin of the power supply module one through the resistor R4, and the SDA pin of the light intensity acquisition unit is connected to the VCC pin of the power supply module one through the resistor R5. The DVI pin of the light intensity acquisition unit is connected to the VCC pin of the power supply module one via the resistor R3, the DVI pin of the light intensity acquisition unit is grounded via the capacitor C2, the VCC pin of the CO2 concentration acquisition unit is connected to the VCC pin of the power supply module one, the GND pin of the CO2 concentration acquisition unit is grounded, the SDA pin of the CO2 concentration acquisition unit is connected to the VCC pin of the power supply module one via the resistor R6, the SCL pin of the CO2 concentration acquisition unit is connected to the VCC pin of the power supply module one via the resistor R7, the DOUT pin of the NH3 concentration acquisition unit is connected to the output end of the operational amplifier, the AOUT pin of the NH3 concentration acquisition unit is connected to the inverting input end of the operational amplifier, the VCC pin of the NH3 concentration acquisition unit is connected to the VCC pin of the power supply module one, and the GND pin of the NH3 concentration acquisition unit is grounded.
[0042] like Figure 8 , Fig. 9 As shown, the connection method of the control module is specifically as follows: the IN pin of the relay is connected to the PB2 pin of the main controller module 2, the GND pin of the relay is grounded, and the VCC pin of the relay is connected to the 5V voltage of the power supply module 2.
[0043] The PA2 pin of the main controller module 2 of the control device is connected to the RX pin of the wireless transmission module 2, and the PA3 pin of the main controller module 2 of the control device is connected to the TX pin of the wireless transmission module 2.
[0044] The D+ pin of power supply module one is connected to the PA12 pin of main controller module one, the D- pin of power supply module one is connected to the PA11 pin of main controller module one, the D+ pin of power supply module two is connected to the PA12 pin of main controller module two, and the D- pin of power supply module two is connected to the PA11 pin of main controller module two.
[0045] The PA2 pin of the main controller module one of the acquisition device is connected to the RX pin of the wireless transmission module one, and the PA3 pin of the main controller module one of the acquisition device is connected to the TX pin of the wireless transmission module one; the PB0 pin of the main controller module one of the acquisition device is connected to the SCL pin of the CO2 concentration acquisition unit, the PB1 pin of the main controller module one of the acquisition device is connected to the SDA pin of the CO2 concentration acquisition unit, the PB10 pin of the main controller module one of the acquisition device is connected to the SCL pin of the temperature and humidity acquisition unit, the PB11 pin of the main controller module one of the acquisition device is connected to the SDA pin of the temperature and humidity acquisition unit, the PB8 pin of the main controller module one of the acquisition device is connected to the SCL pin of the light intensity acquisition unit, the PB9 pin of the main controller module one of the acquisition device is connected to the SDA pin of the light intensity acquisition unit, and the PB3 pin of the main controller module one of the acquisition device is connected to the AOUT pin of the NH3 concentration acquisition unit.
[0046] The circuit connection of the display module of the utility model is specifically as follows: the VCC pin of the conversion circuit is connected to the 5V pin of the power supply module 2, the TX pin of the conversion circuit is connected to the PA10 pin of the main controller module 2, the RX pin of the conversion circuit is connected to the PA9 pin of the main controller module 2, the GND pin of the conversion circuit is connected to the GND pin of the LED display screen, the A pin of the conversion circuit is connected to the A pin of the LED display screen, and the B pin of the conversion circuit is connected to the B pin of the LED display screen.
[0047] like Fig.10 As shown, it is the circuit principle diagram of the wireless transmission module of the utility model. The GPIO15 of the chip is the RST pin, which is the reset pin of the module. GPIO0 is the IO_0 pin, which is used to select the startup mode when updating the firmware. In normal communication, GPIO15 is grounded through a resistor, and GPIO0 is connected to a 3.3V voltage through a resistor.
[0048] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the utility model rather than to limit it. Although the utility model is described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the utility model can still be modified or replaced by equivalents, and any modification or equivalent replacement that does not depart from the spirit and scope of the utility model should be included in the scope of protection of the claims of the utility model.
Claims
1. A pig house environment monitoring system, characterized in that: The system includes: a collection device, a control device, an Internet of Things platform, and electrical equipment in a pig house. The control device is connected to the collection device in communication, and the collection device is used to collect environmental data inside the pig house and send the environmental data to the control device; the control device is connected to the Internet of Things platform and the electrical equipment in the pig house in communication, and the control device performs weighted average on the environmental data and sends the weighted average to the Internet of Things platform. The control device is also used to control the opening and closing of the electrical equipment in the pig house; The collection device includes: a main controller module 1, an environment collection module, a wireless transmission module 1, and a power supply module 1. The environment collection module is connected to the main controller module 1 and is used to collect environmental data in the pig house. The wireless transmission module 1 adopts the STA mode and is used to send data. The power supply module 1 supplies power to the collection device. The control device includes: a main controller module 2, a control module, a wireless transmission module 2, a power supply module 2, and a display module. The display module includes: a conversion circuit and an LED display screen. The control module includes a relay. The relay is connected to the main controller module 2 and is used to receive control instructions from the main controller module 2. The conversion circuit is electrically connected to the main controller module 2 and is used for level conversion. The control module is electrically connected to the main controller module 2. The wireless transmission module 2 is electrically connected to the main controller module 2 and adopts a STA+AP mode for sending and receiving data. The power supply module 2 supplies power to the control device. The environment acquisition module includes: a temperature and humidity acquisition unit, a light intensity acquisition unit, a CO2 concentration acquisition unit, and an NH3 concentration acquisition unit, which are used to collect temperature and humidity, light intensity, CO2 concentration, and NH3 concentration. The connection method of the environment acquisition module is specifically as follows: the VDD pin of the temperature and humidity acquisition unit is grounded through a capacitor C1, the VDD pin of the temperature and humidity acquisition unit is connected to one end of resistors R1 and R2, and a 3.3V voltage connection, the SCL pin of the temperature and humidity acquisition unit is connected to the other end of resistor R1, the SDA pin of the temperature and humidity acquisition unit is connected to the other end of resistor R2, and the GND pin of the temperature and humidity acquisition unit is grounded; the VCC pin of the light intensity acquisition unit is connected to the VCC pin of the power supply module one and one end of capacitor C3, the ADDR pin and GND pin of the light intensity acquisition unit are connected to the other end of capacitor C3, the other end of capacitor C3 is grounded, and the SCL pin of the light intensity acquisition unit is connected to the VCC pin of the power supply module one through a resistor R4. The SDA pin of the light intensity acquisition unit is connected to the VCC pin of the power supply module one through the resistor R5, the DVI pin of the light intensity acquisition unit is connected to the VCC pin of the power supply module one through the resistor R3, the DVI pin of the light intensity acquisition unit is grounded through the capacitor C2, the VCC pin of the CO2 concentration acquisition unit is connected to the VCC pin of the power supply module one, the GND pin of the CO2 concentration acquisition unit is grounded, the SDA pin of the CO2 concentration acquisition unit is connected to the VCC pin of the power supply module one through the resistor R6, the SCL pin of the CO2 concentration acquisition unit is connected to the VCC pin of the power supply module one through the resistor R7, the DOUT pin of the NH3 concentration acquisition unit is connected to the output end of the operational amplifier, the AOUT pin of the NH3 concentration acquisition unit is connected to the inverting input end of the operational amplifier, the VCC pin of the NH3 concentration acquisition unit is connected to the VCC pin of the power supply module one, and the GND pin of the NH3 concentration acquisition unit is grounded; The connection method of the control module is as follows: the IN pin of the relay is connected to the PB2 pin of the main controller module 2, the GND pin of the relay is grounded, and the VCC pin of the relay is connected to the 5V voltage of the power supply module 2; The PA2 pin of the main controller module 2 of the control device is connected to the RX pin of the wireless transmission module 2, and the PA3 pin of the main controller module 2 of the control device is connected to the TX pin of the wireless transmission module 2; The PA2 pin of the main controller module one of the acquisition device is connected to the RX pin of the wireless transmission module one, and the PA3 pin of the main controller module one of the acquisition device is connected to the TX pin of the wireless transmission module one; the PB0 pin of the main controller module one of the acquisition device is connected to the SCL pin of the CO2 concentration acquisition unit, the PB1 pin of the main controller module one of the acquisition device is connected to the SDA pin of the CO2 concentration acquisition unit, the PB10 pin of the main controller module one of the acquisition device is connected to the SCL pin of the temperature and humidity acquisition unit, the PB11 pin of the main controller module one of the acquisition device is connected to the SDA pin of the temperature and humidity acquisition unit, the PB8 pin of the main controller module one of the acquisition device is connected to the SCL pin of the light intensity acquisition unit, the PB9 pin of the main controller module one of the acquisition device is connected to the SDA pin of the light intensity acquisition unit, and the PB3 pin of the main controller module one of the acquisition device is connected to the AOUT pin of the NH3 concentration acquisition unit; The D+ pin of the power supply module 1 is connected to the PA12 pin of the main controller module 1, the D- pin of the power supply module 1 is connected to the PA11 pin of the main controller module 1, the D+ pin of the power supply module 2 is connected to the PA12 pin of the main controller module 2, and the D- pin of the power supply module 2 is connected to the PA11 pin of the main controller module 2; The connection mode of the display module is as follows: the VCC pin of the conversion circuit is connected to the 5V pin of the power supply module 2, the TX pin of the conversion circuit is connected to the PA10 pin of the main controller module 2, the RX pin of the conversion circuit is connected to the PA9 pin of the main controller module 2, the GND pin of the conversion circuit is connected to the GND pin of the LED display, the A pin of the conversion circuit is connected to the A pin of the LED display, and the B pin of the conversion circuit is connected to the B pin of the LED display; GPIO15 is the RST pin, which is the reset pin of the module; GPIO0 is the IO_0 pin, which is used to select the startup mode when updating the firmware. During normal communication, GPIO15 is connected to ground through a resistor, and GPIO0 is connected to a 3.3V voltage through a resistor.
Citation Information
Patent Citations
Hog house environment monitoring system based on Internet of Things
CN213634155U
