w5300 Intelligent agriculture
Implementing Intelligent Agricultural Systems with Wiz830mj
Intelligent agriculture
- Project Introduction
The system is mainly used for agricultural irrigation and agricultural environmental monitoring, so that it meets the standards of agricultural production environment.
From a long-term perspective, smart agriculture is an important way to solve the contradiction between China's population and land, at present, smart agriculture is mostly used in agricultural production links, using new technologies to achieve the refinement and intelligence of agricultural production. With the deepening of the application of smart agriculture in China, in the future, China's smart agriculture will further develop in the direction of refinement, intelligence, intensification and science, and promote the quality and efficiency of agricultural products.
- PROJECT DESCRIPTION
This project was developed on the basis of the STM32F407ZET6 development board and is equipped with a WIZ830MJ module, soil moisture sensor, temperature and humidity sensor, photosensitive sensor, and TFT-LCD display.
This topic mainly collects data from each sensor to display data on the LCD screen and Alibaba Cloud, and at the same time can modify the threshold on the LCD screen and Alibaba Cloud, if the collected data does not meet the threshold conditions, it will drive the motor or water pump, and buzzer alarm reminder.
Function
- When the system is running, temperature, humidity, light sensitivity, and soil moisture sensors collect data and transmit the collected data to the MCU.
- After the microcontroller receives the data, it uploads the data to the Alibaba Cloud platform and displays it on the OLD screen
- If the soil moisture does not reach the threshold, it will drive the pump to pump water and replenish water; When the temperature exceeds the threshold, the fan is driven to cool down.
- Tap the plus or minus symbol on the screen to increase and decrease the size of the threshold, tap Reset to restore the threshold initialization, and click Save to save the revised value.
- Alibaba Cloud can also control the fast shutdown of the pump by modifying the threshold, when the temperature is too low, you can directly reduce the threshold of the temperature to make the fan rotate, when the soil moisture and air humidity are relatively high cannot trigger the pump, you can also adjust the threshold to control the pump work.
Demonstration Model:
Software Implementations
I used the Alibaba Cloud platform as a demonstration of MQTT because Alibaba Cloud servers allow users to use servers as conveniently and efficiently as public resources such as water, electricity, and natural gas.
Alibaba Cloud creates a TSL model:
- Enter the product interface, then find the created product and go in to view
- Once inside, click Feature definitions, then click Edit draft.
- Click Add custom features and configure them to suit your needs.
- After the configuration is completed, the TSL model will not take effect
- Click Online Debugging under Monitoring O&M, select the product equipment, and then set the threshold value of the modified sensor to control the fan and pump.
- Click Devices under Products to view the published TSL model in the device.
- Click TSL to view the reported data.
Screen display Introduction
The content on the screen is divided into serval rows. The first row is the application name. The next two rows show the soil moisture with its alarm threshold and pump status. For fourth and fifth rows, they are the environment humidity and alarm threshold and pump status. The sixth and seventh rows are the temperature and alarm threshold and fan status, 1 is on, 0 is off; The eighth row is the value of the photoelectric sensor; Then the last two rows are the reset and save threshold with the official website of WIZnet.