Design of lighting information collection and management system for facility cultivation based on Intel80C51BH

Publisher:绿意盎然Latest update time:2012-07-03 Source: 电子设计工程 Keywords:80C51BH Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
Facility cultivation technology mainly refers to the technology of using ordinary greenhouses or greenhouses to produce crops such as vegetables and fruits. With the popularization of facility cultivation technology, the number of greenhouses is increasing. Crop yields often fluctuate with climate changes. How to improve climate awareness, adapt to climate laws, and rationally utilize climate resources is of great significance to the development of greenhouse agriculture. Among many climate resource information, light intensity is extremely important for crop growth. Different crops have different requirements for light intensity. Only by using light scientifically and rationally can the best products be produced. Existing light intensity measurement equipment has many shortcomings. This paper studies and designs an intelligent management system based on single-chip microcomputer for automatic light intensity measurement, recording and adjustment. This system is simple in design and reliable in performance. It monitors and records data around the clock, and can automatically execute data analysis.

1 System hardware design
The hardware of this system is composed of light sensor circuit, analog-to-digital converter, single-chip microcomputer and execution circuit. Specifically, the photocell is used to collect the light intensity signal, and the analog signal is converted into a digital signal through the analog-to-digital converter AD7812. Then the 80C51BH single-chip microcomputer is used to record and analyze the data and issue execution instructions. Finally, the execution circuit is used to adjust the shading device.
1.1 Light intensity collection and amplification circuit design
1.1.1 Photocell design
The light intensity collection of this design is completed by silicon photocells. The installation method is shown in Figure 1.

a.jpg


In the figure, the four photocells G1 to G4 are placed at the bottom of four independent boxes with only the top transparent to prevent direct light from hitting the photocells. Glass and shading materials are placed on top. According to the different light transmission weights, the shading degree of the shading materials from G1 to G4 is different. G1 does not put shading materials, G2 puts one layer, G3 puts two layers, and G4 puts four layers. The shading materials can be replaced by multiple layers of translucent plastic film.
1.1.2 Operational amplifier circuit design
The circuit design is shown in Figure 2.

b.jpg


The core device of this unit is the OP07 chip, which is a low-noise, non-chopper-stabilized bipolar operational amplifier integrated circuit. OP07 has the characteristics of low input bias current (±2 nA) and high open-loop gain (300 V/mV). Here, OP07 plays the role of amplifying the light intensity signal. The input signal is input as a negative current signal at pin 2, and the output signal is output as a voltage at pin 6. As the light intensity increases, the four photocells are turned on successively, thus converting the light intensity signal into a current signal. When the light intensity is the strongest (200 klux), the four photocells all output the highest current, so that the four transistors VT1~VT4 are all in a saturated conduction state. At this time, the output voltage is the maximum, and the theoretical output voltage UT=5.215 V. Considering that there is a certain amount of photocell current and transistor error in the circuit, the actual voltage is slightly lower than this value. The RP here is used for zero adjustment. If the measurement accuracy is not required to be high, RP can be omitted, and the 1st and 8th pins of OP07 are vacant. [page]

1.1.3 Shading material adjustment
Due to the different environments during specific applications, the shading degree of the shading material must be adjusted before applying this system. The adjustment steps are as follows:
1) When the strongest light is selected, appropriately increase or decrease the shading on G4 so that the output voltage UT≤5.0V is in a critical state.
2) Adjust the thickness of the shading material in proportion, from G1 to G4, the ratio is 0:1:2:4.
3) Repeat the above process several times to make the output voltage just the critical value of 5.0V.
1.2 A/D conversion circuit design
The voltage containing the information of light intensity output by the operational amplifier circuit is an analog signal. Here, the analog signal must be converted into a digital signal through the analog/digital conversion circuit before it can be received and processed by the microcontroller. In this design, AD7812 is used as the analog-to-digital converter. AD7812 is a 10-bit 8-channel successive approximation A/D converter with a serial port. Compared with similar circuits, it has the following advantages:
1) It is a data serial output, so using this A/D converter can save microcontroller input pins and facilitate system expansion.
2) There are 8 input channels that can collect 8 analog signals at the same time, which can also be used for further system function development.
3) It has software conversion start and software shutdown features.

c.jpg


The specific circuit design is shown in Figure 3. CREF is connected to a 10 nF capacitor, the transmission synchronization TFS and the reception synchronization RFS are connected to the P1.0 port of the single-chip microcomputer, the data output DOUT is connected to the P1.1 port of the single-chip microcomputer, the data input DIN is connected to the P1.2 port of the single-chip microcomputer, the reading clock SCLK is connected to the P1.3 port of the single-chip microcomputer, and the conversion start CONVST is connected to the P1.4 port of the single-chip microcomputer. In this way, it is easy to control the serial data reading by the single-chip microcomputer.
1.3 Single-chip microcomputer processor circuit design
Intel80C51BH single-chip microcomputer is a very practical 8-bit single-chip microcomputer produced by Intel Corporation in the United States. It has 4 kROM and 64 keprom, 21 special function registers, and is very suitable as a processor for this design. The single-chip microcomputer processing circuit is shown in Figure 4. The first 5 bits of the single-chip microcomputer P1 port are used to receive and control the signal from AD7812, and the P0.0 port is used to output the greenhouse shading adjustment instruction.

d.jpg

[page]

1.4 Execution circuit design
Since the command signal sent by the microcontroller has a low power, it cannot directly start the execution switch or motor, and a drive circuit must be used to achieve the action. In order to save costs, the operational amplifier OP07 is still used here to achieve this. The circuit is designed as a common-phase proportional operational circuit with a voltage amplification factor of 3. The execution command signal in the circuit is input at the IN+ pin through the resistor R1 and output at the OUT pin. Due to the use of an operational amplifier circuit, the output power is very large. The output signal controls the switch relay KA to complete the execution task.

e.jpg



2 System software design
In order to facilitate system expansion, the system is modularly designed. The system consists of four modules: light measurement circuit, A/D converter, data processing and execution output. The specific process is as follows: the light measurement circuit converts the light intensity signal (0-200 klux) into a voltage signal (0-5 V), and then the A/D conversion circuit converts the analog voltage signal into a digital signal that can be recognized by the single-chip microcomputer. Finally, the single-chip microcomputer performs data analysis, processing and judgment. When the conditions are met, the light adjustment circuit is started, as shown in Figure 6.

f.jpg


2.1 A/D converter module
In order to read data normally, the A/D converter must be initialized before startup. First, set the P1.4 port of the microcontroller to 1, and then the software starts a conversion process. During the conversion process, since any analog-to-digital conversion requires a certain duration, there must be a certain time delay when reading the data. This design is 5μs to ensure that the correct data is read.
2.2 Central processing unit module
This module mainly includes three parts: the microcontroller's control of the A/D conversion module, the data processing, and the control of the execution circuit.
The microcontroller's control of the A/D converter mainly includes the writing, clearing, and control of the analog-to-digital conversion steps of the A/D analog channel selection address; the data processing part mainly compares the read digital signal corresponding to the light intensity with the pre-set standard value, and issues an execution instruction when the temperature exceeds the specified value. This design determines that data recording and judgment are performed once every 30 minutes, and all-weather monitoring and recording.

3 Conclusion
This paper mainly designs an automatic light intensity management system for greenhouses and sheds. Compared with existing similar systems, it has many advantages. With modular design, system parameters can be modified, the system can be expanded to multi-point measurement and multi-point execution, temperature and humidity collection and ventilation and watering equipment can be added, and sound and light alarms can be added. The system has a wide light measurement range, high accuracy, easy adjustment, and flexible use. The design circuit is simple and practical, easy to implement, low cost, and suitable for wide promotion.

Keywords:80C51BH Reference address:Design of lighting information collection and management system for facility cultivation based on Intel80C51BH

Previous article:Analysis of the significance of using M430/OS on the microcontroller to the system
Next article:Remote automatic alarm device

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号