CN115167586B - Greenhouse simulation and environmental data monitoring system based on Unity3D - Google Patents

Greenhouse simulation and environmental data monitoring system based on Unity3D Download PDF

Info

Publication number
CN115167586B
CN115167586B CN202210921431.6A CN202210921431A CN115167586B CN 115167586 B CN115167586 B CN 115167586B CN 202210921431 A CN202210921431 A CN 202210921431A CN 115167586 B CN115167586 B CN 115167586B
Authority
CN
China
Prior art keywords
greenhouse
simulation
equipment
period
temperature
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
CN202210921431.6A
Other languages
Chinese (zh)
Other versions
CN115167586A (en
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.)
Sichuan University of Science and Engineering
Original Assignee
Sichuan University of Science and Engineering
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 Sichuan University of Science and Engineering filed Critical Sichuan University of Science and Engineering
Priority to CN202210921431.6A priority Critical patent/CN115167586B/en
Publication of CN115167586A publication Critical patent/CN115167586A/en
Application granted granted Critical
Publication of CN115167586B publication Critical patent/CN115167586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D27/00Simultaneous control of variables covered by two or more of main groups G05D1/00 - G05D25/00
    • G05D27/02Simultaneous control of variables covered by two or more of main groups G05D1/00 - G05D25/00 characterised by the use of electric means

Abstract

The invention discloses a greenhouse simulation and environmental data monitoring system based on Unity3D, which is based on a Unity3D platform and can simulate the same environment, full-period simulation growth of crops and simulation operation of equipment as a real greenhouse; the roaming module can be used for roaming the greenhouse in the virtual space, observing the running of the simulation equipment and the full-period simulation growth of crops, so that a user can participate in the greenhouse in an immersive manner in a virtual interaction mode; utilize Arduino development board to combine with Unity3D platform, realize temperature, illumination, CO to reality warmhouse booth with the characteristic of virtual-real combination 2 The concentration is monitored in real time, the dynamic change data is visually displayed in real time, and meanwhile, the equipment simulating the greenhouse is adaptively adjusted, so that the equipment simulating the greenhouse can be correspondingly adjusted.

Description

Greenhouse simulation and environmental data monitoring system based on Unity3D
Technical Field
The invention relates to the technical field of greenhouse environment monitoring and simulation, in particular to a greenhouse simulation and environment data monitoring system based on Unity 3D.
Background
Greenhouse is typical of modern high-yield and high-efficiency agriculture, and construction and development of the greenhouse are increasingly and highly valued. The greenhouse can realize the production of out-of-season vegetables, and the temperature in the greenhouse can be manually adjusted, so that spring vegetables can be marketed in advance. Vegetables in the greenhouse realize uninterrupted vegetable supply all the year around by staggering the vegetable production seasons, so that people can eat fresh vegetables all the time.
The existing greenhouse is managed by manual experience, or is managed by a single measurement and control system formed by a single chip microcomputer, so that the automatic degree is low, the efficiency is low, and the management is inconvenient.
Solving the problems is urgent
Disclosure of Invention
In order to solve the technical problems, the invention provides a greenhouse simulation and environmental data monitoring system based on Unity 3D.
The technical scheme is as follows:
greenhouse simulation and environmental data monitoring system based on Unity3D, its main points lie in, include:
the system user login module is used for receiving input user information and controlling login permission of a user;
the system UI design module is used for carrying out UI design on the login interface and the main operation control interface;
greenhouse simulation operation module for carrying out 1 with the environment and the equipment of reality warmhouse booth: 1, simulating, namely controlling environmental parameters of the simulated greenhouse by controlling the start and stop of equipment in the simulated greenhouse, so as to realize full-period growth simulation of crops;
a roaming module for roaming the greenhouse by operating the character;
environmental monitoring module, it is through Arduino development board and reality warmhouse booth's temperature sensor (503), illumination sensor (502) and CO 2 The concentration sensor (504) is connected to obtain the temperature, illumination and CO of the real greenhouse 2 Concentration of the environmental parameters, and adjusting the temperature, illumination and CO of the simulated greenhouse in real time according to the acquired environmental parameters 2 Concentration.
Compared with the prior art, the invention has the beneficial effects that:
1. based on the Unity3D platform, the environment which is the same as that of a real greenhouse, full-period simulation growth of crops and simulation operation of equipment can be simulated;
2. the roaming module can be used for roaming the greenhouse in the virtual space, observing the running of the simulation equipment and the full-period simulation growth of crops, so that a user can participate in the greenhouse in an immersive manner in a virtual interaction mode;
3. utilize Arduino development board to combine with Unity3D platform, realize temperature, illumination, CO to reality warmhouse booth with the characteristic of virtual-real combination 2 The concentration is monitored in real time, the dynamic change data is visually displayed in real time, and meanwhile, the equipment simulating the greenhouse is adaptively adjusted, so that the equipment simulating the greenhouse can be correspondingly adjusted.
Drawings
FIG. 1 is a flow chart of a simulated warmhouse booth environmental model construction;
FIG. 2 shows Arduino development board, temperature sensor, illumination sensor, and CO 2 Schematic diagrams of concentration sensor and liquid crystal display;
FIG. 3 is CO 2 Wiring schematic diagram of concentration sensor and Arduino development board;
FIG. 4 is a schematic diagram of the wiring of a temperature sensor and an Arduino development board;
FIG. 5 is a schematic diagram of wiring between an illumination sensor and an Arduino development board
Detailed Description
The invention is further described below with reference to examples and figures.
A greenhouse simulation and environmental data monitoring system based on Unity3D mainly comprises a system user login module, a system UI design module, a greenhouse simulation operation module, a roaming module and an environmental monitoring module.
The system user login module is used for receiving input user information and controlling login permission of a user. After the user inputs the account number and the password, the system sends the input account number and password information to be used for sending the login information input by the user to the server for user permission verification. User rights verification is divided into three types: ordinary user rights, manager rights, and no rights.
And the system receives the verification information returned by the server and judges whether the current user has the system login authority according to the verification information. And when the current user is judged to have the system login authority, the system jumps to the simulation operation main interface from the user login interface. And when the current user is judged not to have the system login authority, controlling to exit the current user login interface.
The personnel permission of logging in the system can be controlled through the judgment of the user login permission, the user can put the information of the required personnel on the server in advance, and the server can compare the information with the personnel information stored in the server when receiving the login information sent by the system, verify whether the sent personnel information is on the personnel information or a list stored in the server, send the personnel verification information back to the system, and log out of the login interface or successfully verify the normal optional interface of the login system according to the condition or control after receiving the verification information.
When the current user is judged to have the login authority of the common user, the system has buttons such as equipment simulation operation, plant simulation growth and the like, corresponding button clicking events are added, and the system has a first-person roaming function of the greenhouse. When the current user is judged to have the login authority of the manager, the system has the functions of equipment simulation operation, environment parameter visual interface display control buttons, plant simulation growth and the like, corresponding button clicking events are added, environment parameter visual interface display and first person roaming of the greenhouse.
The system UI design module is used for carrying out UI design on the login interface and the main operation control interface. The system UI design module comprises a login interface UI design and a main operation control interface UI design.
The login interface is provided with an input box capable of inputting an account number and a password, login and registration buttons and corresponding click events, a greenhouse LOGO, user protocol instructions, some prompt information and the like. The main operation control interface is provided with a device start-stop control button, the visual interface displays the control button and a system exit button, and a corresponding click event and greenhouse environmental parameter visual interface are added.
The greenhouse simulation operation module is used for carrying out 1 on the environment and equipment of the real greenhouse: 1 simulation, namely controlling the environmental parameters of the simulation greenhouse by controlling the start and stop of equipment in the simulation greenhouse, so as to realize full-period growth simulation of crops.
Referring to fig. 1, the greenhouse simulation operation module, based on the Unity3D platform, can simulate the same environment as a real greenhouse, full-period simulation growth of crops and simulation operation of equipment, and operates according to the following steps:
s1, establishing a three-dimensional environment model of the simulated greenhouse, and performing the following steps:
s11, measuring the framework and equipment of the real greenhouse, and recording the size and color change of the whole-period growth of crops.
And S12, drawing a three-dimensional structure model of the simulation greenhouse and equipment by using three-dimensional modeling software, and different models of full-period growth of crops. In this embodiment, the three-dimensional modeling software may be commonly used three-dimensional modeling software such as SolidWorks.
Wherein, the different models of the full-period growth of the crops comprise a germination period model, a seedling period model, a fruiting period model, a maturation period model and a dyeing period model.
S2, rendering the three-dimensional environment model of the simulated greenhouse, wherein the three-dimensional environment model is performed according to the following steps:
s21, drawing an interior map, an equipment appearance map and an equipment layout map of the real greenhouse.
S22, building materials of the simulated greenhouse and equipment by using an interior map, an equipment appearance map and an equipment layout map of the actual greenhouse, so as to render a three-dimensional structure model of the simulated greenhouse and equipment. In this embodiment, the rendering of the three-dimensional structure model may use 3D Max, where the mapping before rendering may use Photoshop. Rendering the whole environment through tree, material map, topography map and other materials, and rendering the whole environment into the environment of the real greenhouse.
S3, establishing a three-dimensional scene of the simulation greenhouse and equipment on the Unity3D platform, wherein the three-dimensional scene is carried out according to the following steps:
s31, taking the origin of the simulation greenhouse skeleton as the origin (0, 0) of the three-dimensional scene, and orienting the inlet and outlet of the simulation greenhouse to the direction of the x axis of the three-dimensional scene. The greenhouse framework comprises a structural framework of the greenhouse and a planting groove, wherein the planting groove is arranged on the ground for planting plants. The germination period model, seedling period model, fruiting period model, maturation period model, and dyeing period model of the whole period growth of the crop are arranged on the planting groove in a model layout mode, and the self-origin points of the crop are located at the same position. The crop models with different growth periods are put into an empty father object, the crop models are sequentially activated by using For circulation according to the period sequencing, after the model with the next period is activated, the model with the previous period is set to be unactivated, and the number of child objects is used as a termination circulation, so that the full-period growth process of the simulated crop is realized.
S32, placing simulation equipment at a set position of the simulation greenhouse, wherein the simulation equipment at least comprises CO 2 Storage tanks, automatic irrigation machines, fans, skylights, lights, and automatic curtain rolling machines.
The fan is arranged at the middle-upper position of the greenhouse. The skylight is arranged at the top of the greenhouse and integrated with the greenhouse. The automatic curtain rolling machine is arranged outside the top of the greenhouse. CO 2 The storage tank is arranged at the left side of the inlet and the outlet of the greenhouse. The automatic irrigation machine comprises a reservoir, a water pump, a pipeline and a spraying device, wherein the spraying device is arranged right above the planting groove, and is used for supplying water to crops in a proper amount in a simulation and simulation manner.
S33, setting the origins of different models of the whole period growth of crops at the same position in the simulation greenhouse, sequentially activating the crop models according to the period sequencing, and setting the crop model of the previous period to be unactivated when the crop model of the next period is activated.
S34, writing CO 2 Operating program of storage tank, automatic irrigation machine, fan, skylight, lamp and automatic curtain rolling machine, CO 2 The operation of the storage tanks, automatic irrigators, fans, skylights and automatic curtain winders are adjusted in real time based on the environmental parameters collected by the Arduino development board 506.
S4, verifying whether the scene of the simulation greenhouse is consistent with the scene of the real greenhouse: if yes, entering the next step; and if not, returning to the step S3.
S5, optimizing the scene of the simulation greenhouse, so that the operation speed of the simulation operation module of the greenhouse can be increased.
S6, testing whether the performance meets the requirements: and is completed; and if not, returning to the step S5.
The roaming module roams the greenhouse by operating the character. In the roaming module, firstly, a capsule is created in a three-dimensional scene of the simulation greenhouse and equipment established by the Unity3D platform to simulate a person, then a camera is put into the capsule to serve as a sub-object of the capsule, and the movement of the capsule is controlled, and scene images are collected by the camera, so that the first-person roaming scene function is realized in the three-dimensional scene of the simulation greenhouse and equipment established by the Unity3D platform.
The function of roaming scenes by the first person is realized by writing a C# program for the capsule and the camera and controlling the left, back, right and up movements by the keys A/S/D/W.
In the three-dimensional scene of the simulation greenhouse and the equipment built by the Unity3D platform, collision bodies for preventing the capsule from penetrating through the mould are added to the models of the simulation greenhouse and the equipment.
The Light component on the Unity3D object Directional Light is used for simulating the natural phenomenon of sunset sunrise, and the weather change is simulated through the replacement of the sky boxes with different weather, so that the virtual greenhouse is more practical.
Referring to fig. 2-5, the environmental monitoring module is connected with a temperature sensor 503, an illumination sensor 502 and CO of a real greenhouse through an Arduino development board 2 The concentration sensor 504 is connected to obtain the temperature, illumination and CO of the real greenhouse 2 Concentration of the environmental parameters, and adjusting the temperature, illumination and CO of the simulated greenhouse in real time according to the acquired environmental parameters 2 Concentration.
CO 2 RX end, TX end, vin end and GND end of concentration sensor 504 are connected respectively to D11 end, D10 end, 5V end and GND end of Arduino development board 506, S end, VCC end and GND end of temperature sensor 503 are connected respectively to D3 end, 5V end and GND end of Arduino development board 506, SDA end, SCL end, VCC end and GND end of illumination sensor 502 are connected respectively to A4 end, A5 end, 5V end and GND end of Arduino development board 506, and USB connector of Arduino development board 506 is connected through USB connection serial line to USB interface of liquid crystal display 505.
CO 2 The concentration sensor 504 employs MH-Z16CO 2 Sensor, MH-Z16CO 2 Detection principle of the sensor: the vibration of crystal lattice of ceramic material and the blocking action to electron movement, when the temperature is raised, the vibration of crystal lattice is strengthened, the amplitude is increased, and the blocking action to electrons is strengthened. Known from the theory of selective absorption of gases, when lightWhen the emission wavelength of the source coincides with the absorption wavelength of the gas, resonance absorption occurs, the absorption intensity of which is related to the concentration of the gas, and we can directly measure the concentration of the gas after measuring the absorption intensity of the light.
The temperature sensor 503 adopts an 18B20 temperature sensor, and the temperature measurement principle of the 18B20 temperature sensor is as follows: the oscillation frequency of the low temperature coefficient oscillator is slightly affected by temperature, a pulse signal for generating a fixed frequency is sent to the first down counter, the oscillation frequency of the high temperature coefficient oscillator is obviously changed along with the temperature change, and the generated signal is used as the pulse input of the down counter. When the counting gate is opened, the 18B20 temperature sensor counts clock pulses generated by the low temperature coefficient oscillator, and further temperature measurement is completed. The starting time of the counting gate is determined by a high temperature coefficient oscillator, before each measurement, the base corresponding to-55 ℃ is firstly placed in a first down counter and a temperature register respectively, and the first down counter and the temperature register are preset at a base value corresponding to-55 ℃. The first down counter counts down the pulse signal generated by the low temperature coefficient oscillator, when the preset value of the first down counter is reduced to 0, the value of the temperature register is increased by 1, the preset value of the first down counter is reloaded, the first down counter restarts counting the pulse signal generated by the low temperature coefficient oscillator, and the process is circulated until the second down counter counts to 0, the accumulation of the value of the temperature register is stopped, and the numerical value in the temperature register is the measured temperature. The slope accumulator is used for compensating and correcting nonlinearity in the temperature measuring process, the output of the slope accumulator is used for correcting the preset value of the subtraction counter, and the process is repeated as long as the counting gate is not closed, until the temperature register value reaches the measured temperature value.
The light sensor 502 adopts a BH-1750 light sensor 502, and the BH-1750 light sensor 502 is a digital light intensity sensor integrated circuit for a two-wire serial bus interface. The integrated circuit can adjust the brightness of the liquid crystal or the keyboard backlight according to the collected light intensity data. With its high resolution, a wide range of light intensity variations can be detected. BH-1750 light sensor 502 has a spectral sensitivity characteristic that approximates visual sensitivity, which supports an I2C BUS interface, supporting a 1.8v logic input interface. The sensor has two alternative I2C slave addresses, no other external components are required. The light source dependence is weak and is little affected by infrared rays. The sensor realizes low current by reducing the power function. Stable measurement is realized through the 50Hz/60Hz light and noise removing function, and the minimum error variation is +/-20%.
The greenhouse simulation operation module is provided with a simulated temperature regulation module 507, a simulated illuminance regulation module 508 and a simulated CO 2 The concentration adjusting module 509, the simulated temperature adjusting module 507 is used for controlling the rotating speed of a fan in the simulated greenhouse and the opening area of a skylight, the simulated illuminance adjusting module 508 is used for controlling the opening and closing conditions of lamps in the simulated greenhouse and the automatic curtain rolling machine, and simulating CO 2 The concentration adjusting module 509 is used for controlling CO in the simulated greenhouse 2 The output of the tank.
Finally, it should be noted that the above description is only a preferred embodiment of the present invention, and that many similar changes can be made by those skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (1)

1. The greenhouse simulation and environment data monitoring system based on the Unity3D is characterized by comprising a system user login module, a system UI design module, a greenhouse simulation operation module, a roaming module and an environment monitoring module;
the system user login module is used for receiving input user information and controlling login permission of a user; after the user inputs the account number and the password, the system sends the input account number and password information to be used for sending the login information input by the user to a server for user permission verification; user rights verification is divided into three types: ordinary user rights, manager rights, and no rights;
the system receives verification information returned by the server and judges whether the current user has system login permission according to the verification information; when the current user is judged to have the system login authority, the system jumps to the simulation operation main interface from the user login interface; when the current user is judged to have no system login authority, controlling to exit the current user login interface;
the personnel permission of logging in the system can be controlled through the judgment of the user login permission, the user can put the information of the required personnel on the server in advance, and the server can compare the information with the personnel information stored in the server when receiving the login information sent by the system, verify whether the sent personnel information is on the personnel information or a list stored in the server, send the personnel verification information back to the system, and log out the login interface or successfully verify the normal optional interface of the login system according to the situation or control after receiving the verification information;
when the current user is judged to have the login authority of the common user, the system has equipment simulation running, a plant simulation growth button is added with a corresponding button clicking event, and the system has a first-person roaming function of the greenhouse; when the current user is judged to have the login authority of the manager, the system has the functions of equipment simulation operation, display of a control button on an environment parameter visual interface, plant simulation growth button and addition of a corresponding button clicking event, display of the environment parameter visual interface and first-person roaming of the greenhouse;
the system UI design module is used for carrying out UI design on the login interface and the main operation control interface; the system UI design module comprises a login interface UI design and a main operation control interface UI design;
an input box capable of inputting an account number and a password is arranged on the login interface, and corresponding clicking events, greenhouse LOGO, user protocol descriptions and prompting information are added to login and register buttons; the main operation control interface is provided with an equipment start-stop control button, a visual interface displays the control button and a system exit button, and a corresponding click event and greenhouse environmental parameter visual interface are added;
the greenhouse simulation operation module is used for carrying out 1 on the environment and equipment of the real greenhouse: 1, simulating, namely controlling environmental parameters of the simulated greenhouse by controlling the start and stop of equipment in the simulated greenhouse, so as to realize full-period growth simulation of crops;
the greenhouse simulation operation module can simulate the same environment as a real greenhouse, full-period simulation growth of crops and simulation operation of equipment based on the Unity3D platform, and operates according to the following steps:
s1, establishing a three-dimensional environment model of the simulated greenhouse, and performing the following steps:
s11, measuring a framework and equipment of a real greenhouse, and recording the size and color change of the whole-period growth of crops;
s12, drawing three-dimensional structure models of the simulation greenhouse and equipment by using three-dimensional modeling software, and different models of full-period growth of crops;
wherein, different models of the full-period growth of crops comprise a germination period model, a seedling period model, a fruiting period model, a maturation period model and a dyeing period model;
s2, rendering the three-dimensional environment model of the simulated greenhouse, wherein the three-dimensional environment model is performed according to the following steps:
s21, drawing an interior map, an equipment appearance map and an equipment layout map of the real greenhouse;
s22, building materials of the simulated greenhouse and equipment by using an interior map, an equipment appearance map and an equipment layout map of the actual greenhouse, so as to render a three-dimensional structure model of the simulated greenhouse and equipment; rendering the whole environment through tree, material mapping and topographic mapping materials, and rendering the whole environment into an environment similar to a real greenhouse;
s3, establishing a three-dimensional scene of the simulation greenhouse and equipment on the Unity3D platform, wherein the three-dimensional scene is carried out according to the following steps:
s31, taking an origin of a simulation greenhouse skeleton as an origin (0, 0) of a three-dimensional scene, and orienting an inlet and an outlet of the simulation greenhouse in an x-axis direction of the three-dimensional scene; the greenhouse framework comprises a structural framework of the greenhouse and a planting groove, wherein the planting groove is arranged on the ground for planting plants; the germination period model, the seedling period model, the fruiting period model, the maturation period model and the dyeing period model of the whole period growth of the crops are arranged on the planting groove in a model layout construction mode, and the self-origin points of the crops are located at the same position; the crop models with different growth periods are put into an empty father object, ordered according to the periods, the crop models are activated in sequence by using For circulation, after the model with the next period is activated, the model with the previous period is set to be unactivated, and the number of child objects is used as a termination circulation, so that the process of simulating the full-period growth of crops is realized;
s32, placing simulation equipment at a set position of the simulation greenhouse, wherein the simulation equipment at least comprises CO 2 Storage tanks, automatic irrigators, fans, skylights, lights and automatic curtain rolling machines;
the fan is arranged at the middle upper position of the greenhouse; the skylight is arranged at the top of the greenhouse and integrated with the greenhouse; the automatic curtain rolling machine is arranged outside the top of the greenhouse; CO 2 The storage tank is arranged at the left side of an inlet and an outlet of the greenhouse; the automatic irrigation machine comprises a reservoir, a water pump, a pipeline and a spraying device, wherein the spraying device is arranged right above the planting groove, and is used for supplying water to crops in a proper amount in a simulation and simulation manner;
s33, setting origins of different models of the whole period growth of crops at the same position in the simulation greenhouse, sequentially activating the crop models according to the period sequencing, and setting the crop model of the previous period to be unactivated when the crop model of the next period is activated;
s34, writing CO 2 Operating program of storage tank, automatic irrigation machine, fan, skylight, lamp and automatic curtain rolling machine, CO 2 The operation conditions of the storage tank, the automatic irrigation machine, the fan, the skylight and the automatic curtain rolling machine are adjusted in real time according to the environmental parameters acquired by the Arduino development board 506;
s4, verifying whether the scene of the simulation greenhouse is consistent with the scene of the real greenhouse: if yes, entering the next step; if not, returning to the step S3;
s5, optimizing the scene of the simulation greenhouse, so that the operation speed of the simulation operation module of the greenhouse can be increased;
s6, testing whether the performance meets the requirements: and is completed; if not, returning to the step S5;
the roaming module roams the greenhouse by operating the roles; in the roaming module, firstly, a capsule is created in a three-dimensional scene of a simulation greenhouse and equipment established by the Unity3D platform to simulate a person, then a camera is put into the capsule to be used as a sub-object of the capsule, and scene images are acquired by controlling the movement of the capsule, so that the first-person roaming scene function is realized in the three-dimensional scene of the simulation greenhouse and equipment established by the Unity3D platform;
the method comprises the steps of programming a C# program for a capsule and a camera, and controlling left, back, right and up movements by a key A/S/D/W, so that the function of roaming scenes by a first person is realized;
in the three-dimensional scene of the simulation greenhouse and the equipment built by the Unity3D platform, collision bodies for preventing the capsule from penetrating through the mould are added to the models of the simulation greenhouse and the equipment;
the Light component on the Unity3D object with Directional Light is used for simulating the natural phenomenon of sunset sunrise, and the weather change is simulated through the replacement of the sky boxes with different weather, so that the virtual greenhouse is more practical;
temperature sensor (503), illumination sensor (502) and CO of environment monitoring module and real warmhouse booth through Arduino development board 2 The concentration sensor (504) is connected to obtain the temperature, illumination and CO of the real greenhouse 2 Concentration of the environmental parameters, and adjusting the temperature, illumination and CO of the simulated greenhouse in real time according to the acquired environmental parameters 2 Concentration;
CO 2 RX end, TX end, vin end and GND end of the concentration sensor (504) are respectively connected with D11 end, D10 end, 5V end and GND end of the Arduino development board (506), S end, VCC end and GND end of the temperature sensor (503) are respectively connected with D3 end, 5V end and GND end of the Arduino development board (506), SDA end, SCL end, VCC end and GND end of the illumination sensor (502) are respectively connected with A4 end, A5 end, 5V end and GND end of the Arduino development board (506), and USB connectors of the Arduino development board (506) are connected with USB interfaces of the liquid crystal display (505) through USB connection serial lines;
CO 2 the concentration sensor (504) adopts MH-Z16CO 2 Sensor, MH-Z16CO 2 Detection principle of the sensor: the vibration of the crystal lattice of the ceramic material and the blocking effect on the electron movement are generated, when the temperature is increased, the vibration of the crystal lattice is enhanced, the amplitude is increased, and the electron blocking effect is enhanced; according to the theory of gas selective absorption, when the emission wavelength of the light source is matched with the absorption wavelength of the gas, resonance absorption occurs, the absorption intensity of the resonance absorption is related to the concentration of the gas, and the concentration of the gas can be directly measured by measuring the absorption intensity of light;
the temperature sensor (503) adopts an 18B20 temperature sensor, and the temperature measurement principle of the 18B20 temperature sensor is as follows: the oscillation frequency of the low temperature coefficient oscillator is slightly influenced by temperature, the low temperature coefficient oscillator is used for generating a pulse signal with fixed frequency to be sent to the first down counter, the oscillation frequency of the high temperature coefficient oscillator is obviously changed along with the temperature change, and the generated signal is used as the pulse input of the down counter; when the counting gate is opened, the 18B20 temperature sensor counts clock pulses generated by the low temperature coefficient oscillator, so that temperature measurement is completed; the starting time of the counting gate is determined by a high temperature coefficient oscillator, before each measurement, the base corresponding to-55 ℃ is firstly placed in a first down counter and a temperature register respectively, and the first down counter and the temperature register are preset at a base value corresponding to-55 ℃; the first down counter counts down the pulse signal generated by the low temperature coefficient oscillator, when the preset value of the first down counter is reduced to 0, the value of the temperature register is increased by 1, the preset value of the first down counter is reloaded, the first down counter restarts counting the pulse signal generated by the low temperature coefficient oscillator, and the process is circulated until the second down counter counts to 0, the accumulation of the value of the temperature register is stopped, and the numerical value in the temperature register is the measured temperature; the slope accumulator is used for compensating and correcting nonlinearity in the temperature measuring process, the output of the slope accumulator is used for correcting a preset value of the subtraction counter, and the process is repeated as long as the counting gate is not closed yet until the temperature register value reaches the measured temperature value;
the illumination sensor (502) adopts a BH-1750 illumination sensor (502), and the BH-1750 illumination sensor (502) is a digital light intensity sensor integrated circuit for a two-wire serial bus interface; the integrated circuit can adjust the brightness of the liquid crystal or the keyboard background light according to the collected light intensity data; the high resolution of the light intensity sensor can be used for detecting a wide range of light intensity variation; the BH-1750 illumination sensor (502) has spectral sensitivity characteristics close to visual sensitivity, and supports an I2C BUS interface and a 1.8v logic input interface; the sensor has two optional I2C slave addresses, and no other external parts are needed; the light source dependence is weak and is little affected by infrared rays; the sensor realizes low-current control through a power reduction function; the stable measurement is realized through the 50Hz/60Hz light and noise removing function, and the minimum error variation is +/-20%;
the greenhouse simulation operation module is provided with a simulation temperature regulation module (507), a simulation illuminance regulation module (508) and a simulation CO 2 The concentration adjusting module (509) is used for controlling the rotating speed of a fan and the opening area of a skylight in the simulated greenhouse, the simulated illuminance adjusting module (508) is used for controlling the opening and closing conditions of lamps in the simulated greenhouse and the automatic curtain rolling machine, and simulating CO 2 The concentration adjusting module (509) is used for controlling CO in the simulation greenhouse 2 The output of the tank.
CN202210921431.6A 2022-08-02 2022-08-02 Greenhouse simulation and environmental data monitoring system based on Unity3D Active CN115167586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210921431.6A CN115167586B (en) 2022-08-02 2022-08-02 Greenhouse simulation and environmental data monitoring system based on Unity3D

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210921431.6A CN115167586B (en) 2022-08-02 2022-08-02 Greenhouse simulation and environmental data monitoring system based on Unity3D

Publications (2)

Publication Number Publication Date
CN115167586A CN115167586A (en) 2022-10-11
CN115167586B true CN115167586B (en) 2023-11-03

Family

ID=83478264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210921431.6A Active CN115167586B (en) 2022-08-02 2022-08-02 Greenhouse simulation and environmental data monitoring system based on Unity3D

Country Status (1)

Country Link
CN (1) CN115167586B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109635347A (en) * 2018-11-15 2019-04-16 江苏农林职业技术学院 A kind of overhead Strawberry in Greenhouse production of intelligent facility virtual emulation platform
CN111538362A (en) * 2020-06-17 2020-08-14 中能建地热有限公司 Greenhouse environment monitoring system based on BIM visualization
CN111694426A (en) * 2020-05-13 2020-09-22 北京农业信息技术研究中心 VR virtual picking interactive experience system, method, electronic equipment and storage medium
CN112106620A (en) * 2020-09-09 2020-12-22 山东农业大学 Irrigation method suitable for growth of autumn and winter eggplant in sunlight greenhouse

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180231973A1 (en) * 2017-02-16 2018-08-16 Wal-Mart Stores, Inc. System and Methods for a Virtual Reality Showroom with Autonomous Storage and Retrieval

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109635347A (en) * 2018-11-15 2019-04-16 江苏农林职业技术学院 A kind of overhead Strawberry in Greenhouse production of intelligent facility virtual emulation platform
CN111694426A (en) * 2020-05-13 2020-09-22 北京农业信息技术研究中心 VR virtual picking interactive experience system, method, electronic equipment and storage medium
CN111538362A (en) * 2020-06-17 2020-08-14 中能建地热有限公司 Greenhouse environment monitoring system based on BIM visualization
CN112106620A (en) * 2020-09-09 2020-12-22 山东农业大学 Irrigation method suitable for growth of autumn and winter eggplant in sunlight greenhouse

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
毛雨晗.温室自动化多层栽培装备数字孪生监控方法.《中国优秀硕士论文辑》.2020,第3章. *
田梦薇.三维虚拟现实技术在农业实验站系统中的应用与实现.《中国优秀硕士论文辑》.2019,第5章. *

Also Published As

Publication number Publication date
CN115167586A (en) 2022-10-11

Similar Documents

Publication Publication Date Title
CN104025092B (en) The method of solar protection devices in configuration and operation building
CN105741194A (en) Unreal engine technology-based home decoration system
US20150089867A1 (en) Intelligent light sources to enhance plant response
US20020021288A1 (en) Dynamic art form display apparatus
CN106774070A (en) One plant growth monitoring method, device and system
CN108172175A (en) It is a kind of for the bearing calibration of optical sensor, device, equipment and storage medium
KR100668159B1 (en) Landscape Architecture Design Method Based On Real Image and System thereof
CN104503518A (en) Small intelligent plant growing system
CN107491168A (en) Pig farm intersection control routine design method based on virtual reality
CN110324937A (en) Simulate the Healthy Lighting method and intelligence control system of natural light variation tendency
Duchemin et al. Tree crowns grow into self-similar shapes controlled by gravity and light sensing
KR20180032905A (en) System and method for simulating of sunshine availability for buildings
CN115167586B (en) Greenhouse simulation and environmental data monitoring system based on Unity3D
EP2339420A2 (en) System, device and method for monitoring a wind turbine using data quality inidicators
CN102662379B (en) Intelligent control system for plant wall
CN107567153A (en) A kind of system and method for adjusting room light
CN104699042A (en) Internet of Things based facility agricultural management and control system and control method thereof
Anil Sai Kumar et al. Smart Irrigation System Using Machine Learning Techniques
CN106053964A (en) Distributed battlefield electromagnetic environment dynamic simulated building method
US20200153385A1 (en) Methods of and apparatus for locating energy harvesting devices in an environment
Mooney Unreal Development Kit Game Design Cookbook
Janani et al. Automatic indoor hydroponic plant grow pot using Arduino
Bhavikatti et al. Automated roof top plant growth monitoring system in urban areas
CN114341935A (en) Presenting images stored with planting plans along with conditions for each planting stage
Fue et al. A solar-powered, Wi-Fi re-programmable precision irrigation controller

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
GR01 Patent grant
GR01 Patent grant