Keywords

1 Introduction

Aerobic composting is the process of absorption, oxidation and decomposition of organic compounds and pathogenic microorganisms in wastes such as livestock, sludge and straw with oxygen and bacteria. In the whole process, the composting temperature directly affect the inactivation of pathogenic microorganisms and the decomposition of organic compounds. Therefore, the composting temperature control is the key technical issue of the composting process [1, 2]. In most current production process, the mechanical artificial temperature measuring devices were adopted to measure the composting temperature, which could not monitor the composting process in real time, and would result in the dumping delayed, so that the pathogenic microorganisms in compost could not be inactivated effectively [3, 4].

To solve this problem, an intelligent monitoring device was designed to realize the real-time monitoring of the whole process of composting with the temperature sensor, which had the advantages of high temperature measurement accuracy, simple operation. Compared with the traditional use of mechanical temperature measuring instrument, the data support for scientific composting can be provided. Users could query the temperature of the compost online by web page or smartphone APP, and then dump in time, which could save the cost of composting and reduce the loss of compost nutrients.

2 The Design of Monitoring Systems

As Fig. 1, the system consisted of three parts: data acquisition terminal, server and client. The data acquisition terminal included a data collector and the composting temperature sensor. The sensor was connected to the data collector by RS-485 bus. STM32F103VB (ARM 32-bit Cortex-M3 CPU) was used as the core processor in the data collector, which could achieve the local storage and remote transmission of the data. The server was developed based on the Web platform, SQL Server 2008 and ASP.NET. And it was used to receive data storage and processing. The clients contained two parts: Web query and Android mobile client [5].

Fig. 1.
figure 1

The diagram of intelligent compost monitoring device

2.1 The Hardware Design

The data collector adopted the low power consumption microprocessor STM32F103VBT6 as CPU. The system function modules included the RS-485 data acquisition, GPRS wireless data sending, real-time clock, SD card data storage, human-computer interaction and power management (Fig. 2).

Fig. 2.
figure 2

The data structure diagram of the data collector

The RS-485 data acquisition module was used to connect with the composting temperature sensor (CG-01, Hefei heinford Electronic Technology Co. Ltd. The measurement range of air temperature: −40 °C – +85 °C, with the measurement accuracy: ±0.3 °C). The GPRS wireless data sending module could accomplish the real-time transmission of the composting temperature data to the remote server. Combining with SD card data storage module and the real-time clock module, the temperature data was stored in SD card. This design could effectively solve the data loss which due to the instability of signal transmission and improve the reliability of the real-time monitoring [6].

Human-computer interaction module included a 4.3-inch LCD and a keyboard. The composting temperature could be displayed in real-time on the LCD. The LCD power could be turn off or open automatically, which can reduce system power consumption and extend the LED working life. The keyboard was used for setting of the periodic sampling, filtering and the controlling mode of data transmission. Power management module included a DC12V 48AH large capacity cell group and the corresponding power conversion circuit.

2.2 The Software Design

The Software Design of Data Collector.

The monitoring terminal software was written in C language mainly to complete the collection of environment data and send them to the GPRS network by using Keil integrated development environment as software programming and debugging platform (Fig. 3).

Fig. 3.
figure 3

The data structure diagram of the data collector

When the system started, the data collector first determined whether the acquisition time reached, and sent the data acquisition command to the composting temperature sensor. If not, it continued to wait. Then the data collector received the composting temperature data from the sensor after three milliseconds delay, and performed CRC check. If the check result was correct, the data would be sent to the GPRS network. Otherwise the data acquisition instruction would be sent again.

To improve the reliability of the sensor measurement and reduce the measurement error caused by interference, the average filtering algorithm of anti-impulse interference was used to process the received temperature data. The average filtering method had the advantages of simple calculation, less time consumption and less storage, which was very suitable for embedded system.

The Software Design of Monitoring System.

The software of monitoring system platform included three parts: the server-side monitoring centre software, visual system software and the data query android APP.

The server-side monitoring centre software program was developed in Visual Studio 2010 with C# programming, which ran on the backend of the server. The service monitoring program established a communication connection with GPRS-DTU unit to accomplish two-way communication between the embedded terminal and the server. After the connection was established, the service monitor would parse the package data sent by the embedded device and store the parsed data in the SQL Server 2008 database. The specific process of the service monitoring centre software was shown in Fig. 4 [7, 8].

Fig. 4.
figure 4

The software design of data monitoring center

Data visualization platform mainly accomplished the function of data query, data download, data graphical display and remote control of monitoring device. The design process was shown in Fig. 5 and the compost temperature monitoring platform web page was shown in Fig. 6.

Fig. 5.
figure 5

The software design process of visual system

Fig. 6.
figure 6

The compost temperature monitoring platform web page

The data query android APP was developed based on eclipse. The android SDK plug-in was installed in eclipse. With android widget, Android clients could be quickly developed. In addition, the web service program was written on the server side to open the corresponding service port, so that the users could access the database from the Android client. The design process was shown in Fig. 7.

Fig. 7.
figure 7

The Android APP design process

3 Design of Composting Monitoring Experiments

The composting monitoring experiments were carried out from January 13 to February 22, 2017, in Linquan Quanyou breeding pig farm, Fuyang city, Anhui Province. Pig manure was taken from this pig farm, with C/N: 13: 1 and the moisture content: 70%. The corn stalk was taken from the Zhangguan town of Linquan county, with C/N: 53: 1 and the moisture content: 12%. First, the corn straw was crushed into 2 cm length, and fresh pig manure was treated by the processing of wet and dry separation. Second, pig manure and corn straw were mixed according to the proportion of 4:1 and the water content of the pile was 65%–75%. Then mixed with inoculum (Bacillus 0.3%). Finally, divided into two piles which were named No. 1 compost and No. 2 compost with each weighed about 500 kg. No. 1 composting temperature was collected every ten minutes with the intelligent composting process monitoring device. No. 2 composting temperature was measured at 12:00 noon every day with the mechanical artificial temperature measuring device. Two composting temperature measure devices were inserted in the middle of each compost down at 30 cm. No. 1 compost was turned once every 3 days after the temperature rose to 55 °C. No. 2 compost was turned once every 4 days [9,10,11].

4 Results and Discussion

In Fig. 8, we could see clearly that the temperature of the compost rose rapidly after composting, and it reached the high temperature degradation stage of composting from fifth days (>50 °C). Then the temperature of 55 °C or more lasted for 17 days. According to the U.S. Environmental Protection Agency (USEPA) reported the composting temperature was maintained at 55 °C 3 days or 50 °C for more than 7 days, the pathogenic bacteria could be effectively killed and the sanitary standard of fecal harmless for static aerobic composting could be conformed [12,13,14]. After 22 days of fermentation, composting entered the cooling stage. By 34 days, the composting temperature was close to the environment temperature indicating that the compost had been basically rotted [15].

Fig. 8.
figure 8

No. 1 compost and its temperature change

However, in Fig. 9, there were about 21 days of the maintenance time at the temperature of 55 °C or more for No. 2 compost. After 25 days of fermentation, the compost entered the cooling stage, and the composting temperature was not close to the environmental temperature until the fortieth day. From these two sets of composting, it could be seen that the intelligent composting process monitoring device could be used to monitor the whole process of composting. Accordingly, the users could do the dump in a timely manner, which could reduce the composting time. In this compost experiments, No. 1 compost took about 6 days less than No. 2 compost.

Fig. 9.
figure 9

No. 2 compost and its temperature change

5 Conclusions

In conclusion, an intelligent monitoring system was proposed in this paper, which could achieve the real-time monitoring of the whole process of composting. Users can query the temperature of the compost by web page or smartphone APP with the advantages of high temperature measurement accuracy, simple operation. Accordingly, the users can do the dump in time to improve the inactivation efficiency of pathogenic microorganisms and reduce the loss of compost nutrients. Therefore, this monitoring technology can significantly shorten the composting cycle, improve the compost quality, and have great potential.