CN105867476A - System for controlling plant growth chamber based on STM32F103RC - Google Patents
System for controlling plant growth chamber based on STM32F103RC Download PDFInfo
- Publication number
- CN105867476A CN105867476A CN201610186025.4A CN201610186025A CN105867476A CN 105867476 A CN105867476 A CN 105867476A CN 201610186025 A CN201610186025 A CN 201610186025A CN 105867476 A CN105867476 A CN 105867476A
- Authority
- CN
- China
- Prior art keywords
- data
- chip
- control
- stm32
- upper computer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D27/00—Simultaneous control of variables covered by two or more of main groups G05D1/00 - G05D25/00
- G05D27/02—Simultaneous control of variables covered by two or more of main groups G05D1/00 - G05D25/00 characterised by the use of electric means
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
The invention discloses a system for controlling a plant growth chamber based on STM32F103RC. The system includes three main parts: an upper computer part, a data signal transmission part and a terminal control part. The upper computer part is mainly composed of an upper computer interface and a serial communication. The upper computer part conducts signal transmission with a STM32 chip through a serial port, can transmit signal to a CAN bus and receives signals, and at the same time displays the received data on the upper computer interface, than transmits the data to a one-chip computer for processing. The data transmission part transmits and receives data by the master control STM32 chip via the CAN bus. The terminal control part is composed of one slave control STM32 one-chip computer, two AT89C51 one-chip computers and a 485 communication bus. According to the system, the upper computer transmits control data to the master control STM32 chip via the serial port, then the master control STM32 chip transmits signals to the slave control STM32 chip via the CAN bus, then the slave control STM32 chip transmits the signals to one or a plurality of AT89C51 one-chip computers via the 485 bus so as to control a terminal device and complete industrial production. The system can detect production data and information, detect all kinds of data through a sensor on the AT89C51 one-chip computers, and return the data to the upper computer via a signal transmission path and display the data on the upper computer interface, which is convenient for observation and adjustment.
Description
Technical field
The present invention relates to the control system of growth chamber, this system mainly monitors plant growing in real time
Temperature in case, humidity, light intensity, the index such as gas concentration lwevel, and according to actual needs each is joined
Number is adjusted, and is carried out process and the analysis of data by control system, in finally making growth chamber
Environment reach the suitableeest parameter of plant growing.
Background technology
Network control system is applied widely in a lot of fields, and its one is important
Application is agricultural production.Along with our national economy increases rapidly, agricultural research and application technology
Increasingly being paid attention to by everybody, particularly growth chamber has become an important portion of high-efficiency agriculture
Point.In the agricultural production of modernization, an important ring is exactly some the critically important ginsengs to agriculture production environment
Number carries out Detection & Controling.Such as: air themperature, humidity, the content of carbon dioxide, soil moisture content
Etc..These parameters of scientific and reasonable regulation, form the growth of favourable veterinary antibiotics in making growth chamber
Good environment, be vegetable and fruit precocity, high-quality, an important link of high benefit.
For the problems referred to above, present invention STM32 foundation CAN communication, 485 bus communications, TCP/IP
The communications protocol such as protocol network communication propose a kind control system, and this system is passed through serial ports by host computer
Sending to master control STM32 chip and control data, master control STM32 chip passes through CAN by signal then
It is transferred to, from control STM32 chip, then transmit a signal to one from control STM32 chip by 485 buses
Individual or multiple AT89C51 single-chip microcomputers, thus control terminal unit, complete commercial production.
Summary of the invention
The present invention proposes a kind of growth chamber control system based on STM32F103RC, and this system is by three
Part composition, respectively epigynous computer section, data signal transmission part and terminal control part.Each several part
Between carry out communication by different communication modes, the epigynous computer section of this system pass through serial ports and data signal
Hop communicates, and can the data that receive be shown in real time in host computer interface, convenient operation
Personnel control with carry out equipment regulation.Data signal transmission part passes through CAN and terminal control part
Carry out communication, it is ensured that the stability of signal transmission and real-time, and carry out large-scale signal transmission.
STM32 single-chip microcomputer in terminal control part carries out communication by 485 buses and AT89C51 single-chip microcomputer,
Thus ensure that the long-distance transmissions of signal, and then meet industrial demand.
The technical solution adopted in the present invention is: a kind of growth chamber control based on STM32F103RC
System processed, system is divided into three parts: epigynous computer section, data signal transmission part and terminal control portion
Point, epigynous computer section is mainly made up of host computer interface and serial communication, it is characterised in that: pass through serial ports
Carry out signal transmission with STM32 chip, can send to CAN and accept signal, will receive simultaneously
Data show in host computer interface, then pass data back single-chip microcomputer and process;Data signal passes
The nucleus module of defeated part is master control STM32 single-chip microcomputer, it is characterised in that: master control STM32 chip passes through
CAN send with receive data, can realize data transmission stability with carry out mass transport;Eventually
End controls part by a piece of from control STM32 single-chip microcomputer, two panels AT89C51 single-chip microcomputer and 485 communication buses
Composition, it is characterised in that: STM32 chip is used for analyzing the data of CAN and regulates and perform whole
The data of growth chamber, the most a piece of described AT98C51 single-chip microcomputer is sensor development board, on it
Mask has the sensings such as temperature-humidity monitoring module, intensity of illumination detection module, gas concentration lwevel detection module
Device, can pass to the parameter within growth chamber the master control core of growth chamber by 485 buses
Sheet, another block AT89C51 chip is for controlling development board, and it connects PWM light source, can regulate plant
Grow the intensity of illumination within case, and connection has a relay, is used for controlling water pump, regulates and plant
Thing growth humidity value within case.
Wherein the host computer of epigynous computer section be by Visual Basic software programming go out to be easy to observe with
The user-centered interface of operation.The left side, interface is that serial communication situation shows, interposition detect for equipment
Working condition, and data can be always maintained at refresh.Picture right is the value of device parameter to be regulated, logical
Cross the virtual push button clicked on interface and complete the practical operation to equipment.The major function of this software includes:
Opening serial port function, detection in real time and the display of equipment working index, equipment controls the regulation of parameter.
The present invention controls and the situation of detection growth chamber in the case of at a distance with fully effective,
Realize the Automated condtrol of growth chamber, meet industrial demand, and cost is reasonable, sexual valence
Ratio is high, may be implemented in industrial extensive application.And this system is easy and simple to handle, easy to use, makes
Valency is cheap, and power consumption is low, and transplantability is strong, and these characteristics will commercially open a piece of world for it.
Accompanying drawing explanation
The flow chart that Fig. 1 control system is overall
The flow chart of Fig. 2 serial ports program
The flow chart of Fig. 3 CAN program
Fig. 4 485 bus program flow chart
Detailed description of the invention
Provide specific embodiment below in conjunction with the accompanying drawings, further illustrate how the present invention realizes.
A kind of growth chamber control system based on STM32F103RC, system is divided into
Three parts: epigynous computer section, data signal transmission part and terminal control part, epigynous computer section master
To be made up of host computer interface and serial communication, it is characterised in that: carried out with STM32 chip by serial ports
Signal transmits, and can send to CAN and accept signal, shows the data received upper simultaneously
On machine interface, then pass data back single-chip microcomputer and process;The nucleus module of data signal transmission part
It is master control STM32 single-chip microcomputer, it is characterised in that: master control STM32 chip is sent by CAN and connects
Receive data, can realize data transmission stability with carry out mass transport;Terminal control part is by a piece of
From control STM32 single-chip microcomputer, two panels AT89C51 single-chip microcomputer and 485 communication buses composition, it is characterised in that:
STM32 chip is used for analyzing the data of CAN and regulates and perform the data of whole growth chamber,
The most a piece of described AT98C51 single-chip microcomputer is sensor development board, has temperature-humidity monitoring mould above it
Block, intensity of illumination detection module, the sensor such as gas concentration lwevel detection module, can be plant growing
Parameter within case passes to the main control chip of growth chamber by 485 buses, another block AT89C51
Chip is for controlling development board, and it connects PWM light source, can be strong with the illumination within coordinate plant growth case
Spend, and connection has a relay, is used for controlling water pump, carrys out the humidity within coordinate plant growth case
Value.
Host computer is to be gone out by Visual Basic software programming to be easy to observe and the user-centered interface of operation.
The left side, interface is that serial communication situation shows, interposition detect for equipment working condition, and data
Can be always maintained at refreshing.Picture right is the value of device parameter to be regulated, virtual by click on interface
Button completes the practical operation to equipment.
Serial communication (Serial Communication), is referred to peripheral hardware and intercomputer, is believed by data
Number line, ground wire, control line etc., step-by-step is transmitted a kind of communication modes of data.This communication party
The data wire that formula uses is few, can save communications cost, but its transmission speed ratio is also in telecommunication
Row transmission is low.
Serial ports be on computer the most general a kind of equipment communication protocol (not with USB (universal serial bus)
Universal SerialBus or USB obscures).Most computers comprises two based on RS232
Serial ports.Serial ports is also the communication interface that instrumentation devices is general simultaneously;A lot of compatible setting of GPIB
Standby also with RS-232 mouth.Meanwhile, serial communication protocol can be used for obtaining remote collection equipment
Data.
CAN is another important component part of data signal transmission part, controller area network
Belong to the category of fieldbus, be the serial communication network of a kind of effective support dcs.It is
A kind of serial communication developed exclusively for automobile industry in the eighties in 20th century by company of German Bosch is total
Line.Increasingly it is subject to people's attention, quilt due to the design of its high-performance, high reliability and uniqueness
It is widely used in numerous areas.And it is capable of detecting when any mistake produced.When signal transmission distance reaches
During to 10km, CAN stills provide the message transmission rate of up to 50kbit/s.And CAN has
The highest real-time performance and range of application, reach as high as the express network of 1Mbps to low cost from bit rate
Multi 50Kbps network can arbitrarily be arranged in pairs or groups.
485 buses are the important component parts of terminal control part, and it uses differential signal negative logic, patrols
Volume " 0 " represents with the voltage difference of line-to-line for+(2~6) V;Logic " 1 " with the voltage difference of line-to-line is
-(2~6) V represents.Interface signal level reduces than RS-232-C, is just hardly damaged the core of interface circuit
Sheet, and this level is compatible with Transistor-Transistor Logic level, can facilitate and be connected with TTL circuit.The communication that RS-485 is maximum
Distance about 1219m, peak transfer rate is 10Mbps, and transfer rate is inversely proportional to transmission range,
Under the transfer rate of 100Kb/S, just can reach maximum communication distance, if need to transmit longer away from
From, need to add 485 repeaters.RS-485 bus is typically maximum supports 32 nodes, if using spy
485 chips of system, can reach 128 or 256 nodes, and maximum can support 400
Node.
Claims (2)
1. a growth chamber control system based on STM32F103RC, system is divided into three parts:
Epigynous computer section, data signal transmission part and terminal control part, epigynous computer section is mainly by host computer
Interface and serial communication composition, it is characterised in that: carry out signal transmission by serial ports and STM32 chip,
Can send to CAN and accept signal, the data received be shown in host computer interface simultaneously,
Then pass data back single-chip microcomputer to process;The nucleus module of data signal transmission part is master control
STM32 single-chip microcomputer, it is characterised in that: master control STM32 chip is sent by CAN and receives data,
Can realize data transmission stability with carry out mass transport;Terminal control part by a piece of from control
STM32 single-chip microcomputer, two panels AT89C51 single-chip microcomputer and 485 communication buses composition, it is characterised in that: STM32
Chip is used for analyzing the data of CAN and regulates and perform the data of whole growth chamber, described
The most a piece of AT98C51 single-chip microcomputer is sensor development board, has temperature-humidity monitoring module, light above it
According to sensors such as intensity detection module, gas concentration lwevel detection modules, can be inside growth chamber
Parameter passed to the main control chip of growth chamber by 485 buses, another block AT89C51 chip is
Controlling development board, it connects PWM light source, can with the intensity of illumination within coordinate plant growth case, with
And connection has a relay, it is used for controlling water pump, carrys out the humidity value within coordinate plant growth case.
2. control according to a kind of based on STM32F103RC the growth chamber described in claims 1
System, it is characterised in that: host computer is to go out to be easy to observe and behaviour by Visual Basic software programming
The user-centered interface made.The left side, interface is that serial communication situation shows, interposition detect for equipment work
Make situation, and data can be always maintained at refreshing.Picture right is the value of device parameter to be regulated, and passes through
The virtual push button clicked on interface completes the practical operation to equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610186025.4A CN105867476A (en) | 2016-03-29 | 2016-03-29 | System for controlling plant growth chamber based on STM32F103RC |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610186025.4A CN105867476A (en) | 2016-03-29 | 2016-03-29 | System for controlling plant growth chamber based on STM32F103RC |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105867476A true CN105867476A (en) | 2016-08-17 |
Family
ID=56626288
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610186025.4A Pending CN105867476A (en) | 2016-03-29 | 2016-03-29 | System for controlling plant growth chamber based on STM32F103RC |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105867476A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2906710Y (en) * | 2006-04-29 | 2007-05-30 | 浙江工业大学 | CAN bus-based greenhouse group environment monitoring device |
CN202025218U (en) * | 2011-03-14 | 2011-11-02 | 长春市万易科技有限公司 | Data acquisition terminal machine for internet of things |
CN203337188U (en) * | 2013-07-16 | 2013-12-11 | 桂林电子科技大学 | Wireless sensing and CAN (controller area network) bus field test system |
CN203480288U (en) * | 2013-08-21 | 2014-03-12 | 湖北九洲农信科技有限公司 | Facility agriculture environment intelligent monitoring system based on internet of things |
CN204086969U (en) * | 2014-09-11 | 2015-01-07 | 长沙学院 | A kind of booth vegetable production environment automated watch-keeping facility |
CN104536393A (en) * | 2014-12-05 | 2015-04-22 | 浪潮集团有限公司 | Short-message-based monitoring, alarming and controlling system of greenhouse |
CN204989939U (en) * | 2015-07-21 | 2016-01-20 | 南京信息工程大学 | Intelligent greenhouse governing system |
-
2016
- 2016-03-29 CN CN201610186025.4A patent/CN105867476A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2906710Y (en) * | 2006-04-29 | 2007-05-30 | 浙江工业大学 | CAN bus-based greenhouse group environment monitoring device |
CN202025218U (en) * | 2011-03-14 | 2011-11-02 | 长春市万易科技有限公司 | Data acquisition terminal machine for internet of things |
CN203337188U (en) * | 2013-07-16 | 2013-12-11 | 桂林电子科技大学 | Wireless sensing and CAN (controller area network) bus field test system |
CN203480288U (en) * | 2013-08-21 | 2014-03-12 | 湖北九洲农信科技有限公司 | Facility agriculture environment intelligent monitoring system based on internet of things |
CN204086969U (en) * | 2014-09-11 | 2015-01-07 | 长沙学院 | A kind of booth vegetable production environment automated watch-keeping facility |
CN104536393A (en) * | 2014-12-05 | 2015-04-22 | 浪潮集团有限公司 | Short-message-based monitoring, alarming and controlling system of greenhouse |
CN204989939U (en) * | 2015-07-21 | 2016-01-20 | 南京信息工程大学 | Intelligent greenhouse governing system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN207380507U (en) | Wireless modbus concentrators based on LoRa technologies | |
CN205193529U (en) | Intelligent greenhouse control system | |
CN206115310U (en) | Intelligent agriculture monitored control system based on thing networking | |
CN205318221U (en) | Intelligent greenhouse monitored control system based on internet of things | |
CN206057854U (en) | A kind of intelligent aquaculture execution system | |
CN107588803A (en) | A kind of wisdom environment friendly system | |
CN103576652B (en) | A kind of Solar pond production process data gathers and management system | |
CN212083939U (en) | Remote intelligent agricultural Internet of things system | |
CN105867476A (en) | System for controlling plant growth chamber based on STM32F103RC | |
CN202028306U (en) | FFU (Fan Filter Unit) group control system based on wireless sensor network technique | |
CN107991921A (en) | A kind of production equipment data acquisition facility, power circuit and production equipment | |
CN204989915U (en) | Aquaculture monitored control system | |
CN205793568U (en) | A kind of LED long distance control system | |
CN204302791U (en) | A kind of water quality monitoring system be applied in aquaculture | |
CN204086969U (en) | A kind of booth vegetable production environment automated watch-keeping facility | |
CN202975865U (en) | Intelligent automatic ventilating equipment centralized management control system for greenhouses | |
CN207895275U (en) | A kind of mushroom breeding environment is automatic to be monitored and grouping regulation device | |
CN207081638U (en) | Hand held air quality monitor | |
CN107357327A (en) | The pH value control system and method for one plant growth | |
CN106774560A (en) | A kind of aquaculture system based on Internet of Things | |
CN205138547U (en) | Agriculture environmental monitoring system | |
CN202269026U (en) | Wireless sensor network monitoring device | |
CN201623685U (en) | Remote online monitoring device of transformer cooling device | |
CN206363106U (en) | A kind of multi-functional I/O module for robot | |
CN211293722U (en) | Intelligent agricultural production measurement and control device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160817 |