In smart farming, precision agriculture irrigation is essential to reduce water consumption and produce higher crop yields. Closed-loop irrigation based on soil moisture measurements has demonstrated the capability to achieve a considerable amount of water savings while growing healthy crops. Automated irrigation systems are typically implemented over wireless sensor networks, where the sensing devices are battery-powered, and thus they have to manage energy constraints by implementing efficient communication schemas. Self-triggered control is an aperiodic sampling strategy capable of reducing the number of networked messages compared to traditional periodical sampling. In this paper, we propose an energy-efficient communication strategy for closed-loop control irrigation, implemented over a wireless sensor network, where event-driven soil moisture measurements are conducted by the sensing devices only when needed. Thereby, the self-triggered algorithm estimates the occurrence of the next sampling period based on the process dynamics. The proposed strategy was evaluated in a pecan crop field and compared with periodical sampling implementations. The experimental results show that the proposed adaptive sampling rate technique decreased the number of communication messages more than 85% and reduced power consumption up to 20%, while still accomplishing the system control objectives in terms of the irrigation efficiency and water consumption.
An embedded development framework that effectively configures microcontrollers ' peripherals is introduced. This software tool allows code development without performing any modifications to the application layer. The framework includes an auto-code generator in C language, independent of the microcontroller platform, the compiler, and the development environment. This framework allows having a common software baseline between different projects, which shortens the learning curve, development time, and module validation for embedded software professionals, practitioners and researchers. A proof-of-concept evaluation is also presented to demonstrate the efficiency and reliability of the obtained embedded software code.
Internet of things (IoT) devices are mostly ubiquitous in this day and age, and it is hard to imagine a life without them, especially in the productive sectors (industry, agriculture, and automotive) and in our daily life activities (consumer electronics, home automation, and intelligent buildings). The high demand for these devices has created significant competition to provide them at the best price, at the right time, and with the best features. The trend in which these devices have increased their product features has resulted in their embedded software being more complex, leading to extended development and testing times. Consequently, as the types of advanced IoT products keep diversifying, the field maintenance of all the different models deployed grows more complicated. This paper proposes an embedded software development framework for IoT devices independent of the microcontroller architecture, the compiler, and the development environment. This framework allows having a common software baseline between different projects, which shortens the learning curve, development time, and module validation while allowing code reuse for embedded software professionals. A proof-of-concept evaluation is also presented to demonstrate the efficiency and reliability of the obtained embedded software code for a simple but representative IoT application.