Design and Development of Low Power Sensor Node for an IoT Based Plant Monitoring System

DOI : 10.17577/IJERTCONV6IS13216

Download Full-Text PDF Cite this Publication

Text Only Version

Design and Development of Low Power Sensor Node for an IoT Based Plant Monitoring System

Sreelakshmi P

Dept. of TCE,

SIT, Tumkur, karnatak, India

C Prabhavathi

Dept. of TCE,

SIT, Tumkur, karnatak, India

Navyashree K SaiTektronix Pvt.Ltd Bangalore, Karnataka, india

.AbstractPlant monitoring system is used to monitor the environmental condition in around the plants to have proper growth and maintenance .In the proposed system, a sensor node is designed which runs with battery for longer duration and measuring parameters like temperature, sun light intensity, moisture level and carbon-dioxide. Specially capacitive type moisture level sensor is designed in order to measure the moisture level of the soil. A wireless Sensor network (WSN) is created to sense parameter related to individual plants. Here a MCU having inbuilt 16 bit ADC is used, programmed to transmit the data from using XBee S2C as router. The XBee S2C is configured in low power mode using hardware control. The data transmitted by sensing node will be received by coordinator XBee S2C connected to Raspberry Pi using UART acting as Brain unit. This Raspberry Pi is also connected with CO2 sensor using UART as communication protocol through a 2:1 MUX as Raspberry Pi has only one UART. The data is processed and pushed to the server through Wi-Fi.Now a days Internet of Things (IoT) is playing a prominent role in order to have communication between things and people and between things and things. IoT technology enables to improve the access to care, most importantly it reduces the cost of care, it reduces human interruption and also increases the quality of care .Hence IoT is used in this work. So, the final processed information is stored in the cloud and at the recipient side a mobile application (app) is developed in order to intimate the information to the owner of the plant regarding the health of the individual plant.

KeywordsPlant monitoring system; Sensor node; Capacitive type moisture level sensor; Wireless Sensor Network(WSN); Internet of Things(IoT); XBee S2C; Arm cortex M0+; Raspberry Pi;

  1. INTRODUCTION

    In todays environment, people are surrounded with networked sensors embedded in objects that will respond to their requirements. Now a day people are expecting an intelligent system which is embedded. Due to this a digital environment is created which is so responsive to the people [1].Plant monitoring system have a great demand now a days. As the technology has been evolved, people are expecting faster system with accurate reading so wireless technology is chosen by everyone. Wireless Sensor Network (WSN) are the most important networks, it consists of spatially distributed autonomous sensors. WSN can monitor physical mediums

    such as pressure, temperature and sound. Here sensors cooperatively pass their data through the network to a destination or main location [1].

    The Internet of things is playing a important and revolutionary role in plant monitoring system. It helps the owners of the plants to solve problems regarding soil monitoring, management of water, sunlight, temperature level and managing the costs. IoT will help us to gather real time data from sensors and sends the information to the main server. Here the information collected are stored and managed at the cloud and information is shared between person to person, machine to machine or person to machine [1]. Here sensors are the major key components. Sensors have been designed for detection of soil moisture content, temperature, CO2, ph. range in soil, ultra violet radiation, and sunlight intensity.These sensors are small, these small structures can be integrated into many applications related to plant monitoring system. In plant monitoring system, WSN is used for distributing data, collecting and monitoring the necessary environmental information [1].Using IoT we can enhance internet connectivity and establishes communication between digital devices and physical objects [2].

    The plant health monitoring systems are having great demand now days. By monitoring plants health we can enrich the productivity. Soil moisture is one of the main factor which is very essential for plant health .The water which is present in the soil in the thin film helps in supplying nutrients to the plant growth [3].

    A soil moisture sensor is a type of water sensor. By measuring the electrical conductivity of the ground in which it is buried it works. Better than dry earth wet earth transmits electrical current and by measuring its conductivity a sensor can detect the presence of water in the soil. The sensor sends a signal to the controller, when the amount of moisture brings the current capacity upto a preset level [4].

    The ZigBee (IEEE 802.15.4) is a new wireless technology which permits the implementation of wireless networks .Due to its very low power consumption it is suitable for wireless sensor networks. It has flexible network architecture, low power consumption, low cost, large number of nodes, so it is more advantageous than other technologies like Bluetooth, Wi-Fi. Here in this project we are using mesh networks. The advantages of mesh networks are self-organizing networks of ZigBee devices, low cost .The components of this networks can operate over extended periods of time ,without changing the original battery they can be over years[5].So here in this project we are using XBee module which is based on the ZigBee technology.Digi International is a company which has developed a module by name XBee module(Digi XBee) by

    using the ZigBee technology .The first XBee radios were introduced under the MaxStream brand in 2005 and were based on the IEEE 802.15.4-2003 standard designed for point-to-point and star communications at over-the-air baud rates of 250 kbit/s. The XBee radios can all be used with the minimum number of connections -power (3.3 V), ground, data in and data out (UART), with other recommended lines being Reset and Sleep. For the processing and sending the final processed information using inbuilt Wi-Fi to the main sever Raspberry Pi 3 is used at the receiver section.

  2. SYSTEM ARCHITECTURE

    In this project the proposed system can be divided into two sections:-

    1. Sensor node.

    2. Brain unit.

    1. Sensor node

      Each sensor node consists of MCU, light intensity sensor, temperature sensor, capacitive type moisture level sensor, router XBee .The block diagram of sensor node is as shown in figure 1.The designed XBee based plant monitoring system consists of multiple sensors namely temperature sensor, light intensity sensor, and capacitive type soil moisture sensor. The system is having a Free scale 32 bit kinetics series microcontroller (Arm cortex M0+) as CPU and also have a rechargeable battery unit that can supply power for the unit for a week (pushing data to the server in 5 minutes interval).The on board battery in transmitter unit can be charged via 5V mobile adapter or USB output of a laptop or P.C. The transmitter unit has a firmware and that will be programmed in embedded C.

      All sensors are interfaced to MCU through analog pins as shown in the Figure1. The MCU unit has inbuilt 16 bit ADC , the sensors are connected to 3 channels of ADC and firmware is developed to read the sensor status, process, calibrate and push the data frame through XBEE-S2C using low power mode. The XBee-S2C will be taken to sleep mode for 60Seconds and then woken for a second to push the data frame to XBee-S2C coordinator connected at brain unit. The time delay need to be set once and firmware need to be flashed in MCU present in senor node. The developed hardware is tested for functionality to sense temperature, soil moisture level & light intensity in degrees, percentage & lumens respectively. The battery backup is tested by setting a rate of data transfer to 60Sec & found to run for duration of 5+ days.

      Fig. 1. Sensor node of individual plant(transmitter unit).

    2. Microcontroller

      A special interest and attention is given in choosing the microcontroller .Here controller belongs to Kinetis KL25 Sub-Family (KL25Z128VFM4).It is a Cortex-M0+ based microcontroller which is of 48MHz. It has a USB. By keeping efficiency in mind it has been designed.Compatible with all other Kinetis L families as well as Kinetis K2x family .It has General purpose MCU with USB 2.0, featuring market leading ultra-low-power to provide developers an appropriate entry-level 32-bit solution. Here in this project the main purpose of using KL25Z128VFM4 is for 16 bit analog to digital conversion and for low power mode in order to design the lower power sensor node.

    3. Battery charging circuit part and switching regulator part.

      In order to have better performance, sensor node depends on the battery backup so battery charging circuit is designed intelligently and is as shown in figure 3.

      Fig. 2. Battery charging part and switching regulator part.

      In the above block diagram the input from the USB is given as input to the battery charging circuit, battery charging circuit as only protection to overcharge but it doesnt have protection against over discharge .So, in order to have protection against deep discharging of battery a deep discharge protection circuit is designed ,these two circuits are designed for the battery life protection purpose. The output of battery charging circuit is then fed as input to the

      switching regulator for the down conversion of output voltage of battery to the required voltage (3.3V).This 3.3V is required to all ICs in sensor node part.

    4. Capacitive type moisture level sensor

    The block diagram of capacitive type moisture level sensor consists of clock generator, integrator, blocking diode and smoothening filter. The block diagram is as shown below.

    Fig. 3. Block diagram of capacitive type moisture level sensor.

    Using TLC555 a pulse is generated, this pulse is fed as input to the integrator. Here integrator is a combination of resistor and variable capacitor .output of this integrator is triangular wave with both positive and negative signal, using blocking diode only positive side is extracted by neglecting the negative side. In order to smoothen the output of blocking diode smoothening filter is used. The analog output of smoothening filter is fed as input to the microcontroller.

    2) Brain unit

    Fig. 4. The brain unit (receiver unit).

    The brain unit will be consisting of a Raspberry Pi 3 which is connected with designed add-on card. Add-on card consists of CO2 sensor, 2:1 MUX and a receiver XBee-S2C module acting as a coordinator. The whole system will be powered by a 5 volt power supply from mains. The brain unit will be scanning for XBee signals from transmitter unit. The brain unit will be having a python script running over Raspbian O.S which will be receiving, processing and uploading the data received from the transmitter nodes and data coming from CO2 sensor.

    As Raspberry Pi 3 is expected to be used, An add on card is designed to multiplex the Rx pin UART protocol in order to interface both CO2 as well as XBee S2C with Raspberry Pi which has single UART port. The XBee S2C and CO2 sensor sequentially use Rx pin of Raspberry Pi by selecting the corresponding input of 2:1 MUX using selection line controlled by GPIO pin of Raspberry Pi. The firmware developed at the Raspberry Pi side does the function of receive data coming at coordinator XBee and push the data to the server using Wi-Fi as well as read CO2 sensor data by sending set of commands and receiving sensor data. The MUX does the function of selecting I0/I1 based on

    requirement. The overall system architecture of the proposed system looks as shown in figure 5.

    Fig. 5. Overall block diagram of the proposed system.

    The XBee S2C is used both at the transmitter side and as well as at the receiver side. In transmitter side XBee S2C acts as a router, which sends the sensed information in the frame format to the receiver XBee S2C which acts as a coordinator. This coordinator XBee S2C at the receiver side receives the frame from the transmitter, this received frame and CO2 sensor data will be send to the Raspberry Pi depending on the selection logic of 2:1 MUX .The Raspberry Pi after receiving both this data in frame formats will be processed and separated individually and then send to the main server with help of inbuilt Wi-Fi.

  3. HARDWARE IMPLEMENTATION

    A suitable hardware circuit for proposed system is designed and this circuit is implemented on the printed circuit board(PCB).PCB designing is done by creating individual libraries for each required hardware components. PCB designing is done separately for sensor node part and for the add-on card. The placement of each component is planned in a well manner so that it consumes less space on the PCB board .Designing and placement of components is fully dependent on the requirements and specifications .After implementation of the hardware module it is tested for its functionality. The designed 3D view of sensor node PCB looks as shown in figure 6.

    Fig. 6. 3D view of hardware PCB module of sensor node part.

  4. FIRMWARE FRAMEWORK

    At the sensor node side Keil 5 software is used in order to interface all three sensors and XBee S2C module to send the sensed data from transmitter to the receiver. With the help of embedded C language coding is developed for the transmitter

    side interfacing. The software programming flow at the sensor node side is as shown in figure 7.

    At the receiver side Python language is used to receive the sensed data from the transmitter XBee S2C (router XBee) to the receiver XBee S2C (coordinator XBee), process the received information and for the interfacing of add-on card with the Raspberry Pi. The software programming flow at the brain unit side is as shown in figure

    8. Both figures 7 and 8 will give the information about the software flow.

    Fig. 7. Overall program flow of the sensor node part.

    Fig. 8. Overall program flow of the receiver part.

  5. EXPERIMENTAL RESULTS AND ANALYSIS The designed hardware module of sensor node is as

    shown in figures 9.

    Fig. 9. Hardware module of sensor node.

    The working of capacitive type moisture level sensor can be tested by dipping the down tip portion of sensor node module into water for testing purpose. The change in voltage with respect to presence of water is as shown in figure 10.When dipped the down tip portion of the module inside water, it shows less voltage when compared to not dipped into water.

    Fig. 10. Testing of capacitive type moisture level sensor

    Other sensors are also tested for their good working and their respective results are analysed. After testing, the sensor node module is inserted inside the plant pot in order to monitor a plant .it is as shown in the figure 11.

    The sensor node module dipped in the pot of a plant. The down tip portion is the capacitive moisture level sensor part, depending on the water content present in the soil the capacitance varies as a result due to the change in the capacitance the voltage changes. Meanwhile with respect to change in temperature and sunlight intensity the respective sensors will give their sensed analog output which is fed as input to the MCU unit. This sensed output is processed and send to the receiver part.

    Using embedded c language firmware is developed at the sensor node. The firmware developed at the sensor node side will help to send the sensed information acquired from the temperature, sunlight intensity and capacitive type moisture level senors wirelessly with help of transmitter XBee S2C to the coordinator XBee. Here firmware is developed to read the sensor status, process, calibrate and push the data frame through XBee-S2C to receiver part using low power mode.

    Fig. 11. Sensor node module dipped inside a plant pot.

    The battery is tested with different data pushing rate with and without low power modes of XBee S2C node at the sensor side. The sensor node XBee S2C module was designed to take the XBee S2C to take into pin sleep mode. The firmware is updated to take the XBee S2C in pin sleep and tested for different cases of data transfer rate. And it is observed that the designed hardware module with the good battery backup can run can run upto 10 days. And receiver part arrangement is as shown in figure12.

    Fig. 12. Experimental arrangement of brain unit part.

    At the brain unit side as the Raspberry Pi is used, using Python firmware is developed which is running over Raspbian OS which will be receiving, processing and uploading the data received from the transmitter nodes and data coming from the CO2 sensor to the main server through inbuilt Wi-Fi. Figure 13 shows the final output of receiver part, which gives the information about the monitored parameters .this information is pushed to the server through inbuilt Wi-Fi of Raspberry Pi.

    Fig. 13. Output of receiver side (Temperature, sunlight Intensity, soil moisture and C02 sensors response).

  6. CONCLUSION

A low power sensor node designing and implementation for a IoT based plant monitoring system is studied in this project. With the help of temperature sensor, light intensity sensor and capacitive type moisture level sensor, individual plants are monitored and the sensed information is processed with the help of MCU and transmitted with the help of XBee S2C in low power mode .With the help of coordinator XBee S2C the transmitted information is received and the received information along with CO2 sensor data is processed with the help of Raspberry Pi 3.With the help of inbuilt Wi-Fi the data is pushed to the server ,from the sever the data can be retrieved anywhere and at any time as required by the owner of the plant. This information can also be stored in the cloud for IoT application. This project tends to an evolved smart way of plant health monitoring system using low power wireless communication. To achieve the smart way plant monitoring system wireless sensor network (WSN) is integrated with Internet of Things (IoT).

ACKNOWLEDGMENT

The first author would like to thank C. Prabhavathi, Associate Professor Department of Telecommunication, SIT, Tumkur. The Authors would like to thank Sai Tektronics, Bangalore, India for providing support for this work. The authors would like to thank Siddaganga Institute of Technology, Tumkur for their support.

REFERENCES

  1. Mr.o.pandithurai, s.aishwarya, b.aparna and k .kavitha,agro- Tech: a digital model for monitorin soil and crops Using internet of things (iot), IEEE third International Conference on Science Technology Engineering & Management (ICONSTEM), pp. 342- 346, 2017.

  2. Ravi Kishore Kodali and Archana Sahu, An IoT Based Soil Moisture Monitoring on Losant Platform, IEEE International Conference on Contemporary Computing and Informatics(1C31), 2016, pp. 764- 768.

  3. Nilesh R. Patel, Rahul B. Lanjewar, Swarup S. Mathurkar, Ashwin A. Bhandekar, microcontroller based drip irrigation System using smart sensor, Annual IEEE India Conference (INDICON), pp. 1- 5, 2013.

  4. Lily Puspa Dewi, Justinus Andjarwirawan and Robin Putra Wardojo, Android Application for Monitoring Soil Moisture Using Raspberry Pi, IEEE International Conference on Soft Computing, Intelligent System and Information Technology (ICSIIT), 2017, pp. 178- 184.

  5. Daniel Alexandru Vian, Ioan Li, Mariana Jurian and Ion Bogdan Cioc,Wireless Measurement System Based on ZigBee Transmission Technology, 33rd International Spinger Seminar on Electronics, Technology ISSE 2010, pp.464- 467.

  6. A.M.Ezhilazhahi and P.T.V.Bhuvaneswari,IoT Enabled Plant Soil Moisture Monitoring Using Wireless Sensor Networks, IEEE 3rd International Conference on Sensing, Signal Processing and Security (ICSSS), 2017, pp. 345-349.

  7. Andrei Rusu and Petru Dobra ,The implementation of an ARM- based low-power wireless process control system, 21st International Conference on System Theory, Control and Computing (ICSTCC), 2017, pp. 666-670.

  8. Ami Tanaka, Syuuichi Okamoto, Ryoma Furumori andTakakuni Douseki,Self-powered Wireless Plant Health Monitoring System Detects Circadian Rhythm Using Sap-activated Battery , IEEE Conference on sensors, 2017, pp. 1-3.

  9. Robert Neal Dean,Aditi Kiran Rane, Michael E. Baginski, Jonathan Richard, Zane Hartzog, and David J. Elton, A Capacitive Fringing Field Sensor Design for Moisture Measurement Based on Printed Circuit Board Technology , IEEE transaction on instrumentation and Measurement.vol.61 no.4 april 2012, pp. 256-262.

Leave a Reply