Driven by the Internet of Things technology, wireless sensor network technology has achieved many practical and effective applications in all aspects of society, saving a lot of manpower and material resources compared to the use of traditional technologies. The wireless sensor network designed in this paper is a wireless monitoring system based on ZigBee technology, which can collect temperature and humidity in vegetable greenhouses in real time, so that growers can make appropriate adjustments according to the detected vegetable growth environment, increase production and obtain greater benefits. It is suitable for large-scale vegetable planting bases.
The complete Zigbee protocol stack consists of the physical layer, media access control layer, network layer, security layer and high-level application specifications. The core part of the ZigBee protocol stack is in the network layer. The network layer mainly implements functions such as nodes joining or leaving the network, receiving or abandoning other nodes, route search and data transmission, supports multiple routing algorithms such as Cluster-Tree, AODVjr, Cluster-Tree+AODVir, and supports multiple topological structures such as star, tree, and mesh. The application layer is developed according to its own needs.
1 Overall system design
The wireless sensor network coordination node designed in this paper is responsible for establishing the network using ZigBee, and completing the data exchange function with the PC through the USB interface; the sensor node is responsible for collecting the temperature and humidity values in the vegetable greenhouse and sending and forwarding the data to the coordination node, and vice versa, it can also receive and forward the command information sent by the coordination node; the communication of the entire system is based on ZigBee technology, and the interaction of data and control information between the sensor node and the coordination node in the wireless sensor network is realized on this stable network. Figure 1 System block diagram.
[page]
2 Sensor Nodes
The sensor node collects the temperature and humidity values in the vegetable greenhouse through the sensor SHT11, and transmits them through the 2.4G antenna after being processed by CC2533; on the contrary, the antenna receives the control command and hands it to the CC2533 chip, which makes the corresponding operation.
SHT11 is a new temperature and humidity sensor based on CMOSensTM technology launched by Swiss Sensirion. This sensor combines CMOS chip technology with sensor technology to play their powerful complementary role. The main features of the temperature and humidity sensor are as follows: 1) The temperature and humidity sensor, signal amplification, A/D conversion, and I2C bus interface are all integrated into one chip (CMOSensTM technology); 2) It can give fully calibrated relative humidity and temperature output values; 3) It has the function of calculating and outputting dew point values; 4) It has excellent long-term stability; 5) The output resolution of the humidity value is 14 bits, the output resolution of the temperature value is 12 bits, and it can be programmed to 12 bits and 8 bits; 6) It is small in size (7.65×5.08×23.5mm) and can be surface mounted; 7) It has a reliable CRC data transmission verification function; 8) The calibration coefficients loaded on the chip can ensure 100% interchangeability; 9) The current consumption is 550μA during measurement, 28μA on average, and 3μA in sleep mode.
The CC2533 chip is a 2.4GHz RF system-on-chip produced by TI, which integrates the ZigBee RF front-end, memory and microcontroller. Its main features are as follows: high-performance and low-power 8051 microcontroller core; integrated 2.4GHz RF radio transceiver that complies with the IEEE 802.15.4 standard; excellent wireless reception sensitivity and robustness; only 1 μA current consumption in sleep mode; hardware support for CSMA/CA function; I2C interface; digital RSSI (received signal strength indication)/LQI (link quality indication) support and powerful 5-channel DMA (direct memory access) function; battery monitoring function; integrated AES (Advanced Encryption Standard) security coprocessor; with 2 powerful USARTs (universal asynchronous synchronous receivers and transmitters) that support several groups of protocols, and 1 MAC (media access control layer) timer that complies with the IEEE802.15.4 specification, 1 conventional 16-bit timer and 2 8-bit timers; 23 programmable I/O pins.
3 Coordination Node
The coordination node of the wireless sensor network needs to take on the work of wireless network formation, uplink data and downlink command forwarding. In the wireless sensor network, the coordinator mainly handles five aspects of work: 1) Add terminal devices to the wireless sensor network; 2) Receive and process the data sent by the terminal device, and then send it to the computer through the USB port for processing or display; 3) Receive the command information sent by the computer through the USB port, and send it to the corresponding terminal device after processing; 4) Remove the terminal device from the wireless sensor network; 5) Display the working status of the terminal device and automatically report repairs.
The CC2531 chip is a 2.4GHz RF system-on-chip produced by TI, which integrates the ZigBee RF front end, memory and microcontroller. Its main features are as follows: high-performance and low-power 8051 microcontroller core; integrated 2.4GHz RF radio transceiver compliant with IEEE 802.15.4 standard; excellent wireless reception sensitivity and robustness; only 1μA current consumption in sleep mode; hardware support for CSMA/CA function; USB2.0 certified full-speed device (12Mbps); digital RSSI/LQI support and powerful 5-channel DMA (direct memory access) function; battery monitoring and temperature sensing functions; integrated 12-bit ADC; integrated AES (Advanced Encryption Standard) security coprocessor; with 2 powerful USARTs (Universal Asynchronous Synchronous Receiver/Transmitter) supporting several groups of protocols, as well as 1 MAC timer compliant with IEEE802.15.4 specification, 1 conventional 16-bit timer and 2 8-bit timers; 21 programmable I/O pins. Figure 3 Coordination node hardware block diagram.
[page]
4 Software
According to the needs of this system, the application layer development uses IAR Embedded Workbench software to modify the Z-Stack protocol stack, compile, download and debug. The coordination node is connected to the computer through the USB port, and the USB driver is developed in C++; the computer and the coordination node are the upper and lower computers, and the cache area is divided in the RAM of the coordination node CC2531. Both the computer and the coordination node can read and write data from the cache area; VB is used to write the management display interface, as shown in Figure 4. Each vegetable greenhouse is a group, which contains several sensor nodes. Groups and nodes can be added, deleted, matched and commented; the time can be set by the sensor node to collect and send back temperature and humidity data, and real-time operation can also be performed.
5 Conclusion
The wireless sensor network designed in this paper can meet the basic needs of growers to monitor the temperature and humidity in the vegetable greenhouse in real time. The system networking is simple and easy to use. In order to make the system more perfect, it is planned to focus on improving the following two functions in the next development process: optimizing the routing algorithm for communication between nodes and node energy control. This paper has a certain reference value for the design of other wireless monitoring networks, such as forest fire early warning systems, mine earthquake monitoring systems, etc.
Previous article:Research on constant current source technology based on single chip microcomputer
Next article:Design of analog street light control system
Recommended ReadingLatest update time:2024-11-16 21:26
- Popular Resources
- Popular amplifiers
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- Raspberry Pi Python Programming Guide
- A_2.89_uW_Dry-Electrode_Enabled_Clockless_Wireless_ECG_SoC_for_Wearable_Applications
- Security for Wireless Sensor Networks – Configuration Aid
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- The problem of DC brushless motor UVW waveform without Hall connection
- 【TI recommended course】#Introduction to isolation topology#
- Regarding the situation where OBD multi-frame transmission fails to receive data
- Selling simulink models and TI28335 programs
- Infrared alarm circuit diagram
- EEWORLD University ---- Huawei IOT Internet of Things Tutorial
- [TI recommended course] #[High Precision Lab] ADC Series 5: ADC Frequency Domain Indicators#
- Please provide the equation for the LC series resonant circuit plus a rectangular wave, thank you.
- GD32E230C Display Variables
- I would like to ask about the LCD configuration of Imx6ull