Precision Ag Monitoring System
Precision Ag Monitoring System
REGISTRATION NO : 08DEU22F1036
NOVEMBER 2021
LORAWAN BASED SYSTEM FOR TEMPERATURE,
PH, HUMIDITY AND ELECTRICAL
CONDUCTIVITY
REGISTRATION NO :
08DEU22F1036
NOVEMBER 2021
CONFIRMATION OF THE PROJECT
The project report titled "Lorawan Based System For Temperature, PH, Humidity,
Electrical Conductivity" has been submitted, reviewed and verified as a fulfills the
Checked by:
Supervisor’s name :
Supervisor’s signature:
Date :
Verified by:
Project Coordinator name :
Signature of Coordinator :
Date :
i
“I acknowledge this work is my own work except the excerpts I have already
explained to our source”
1. Signature :
ii
DECLARATION OF ORIGINALITY AND OWNERSHIP
TITLE : LORAWAN BASED SYSTEM FOR TEMPERATURE, PH,
HUMIDITY, ELECTRICAL CONDUCTIVITY
2. I acknowledge that 'The Project above' and the intellectual property therein is the
result of our original creation /creations without taking or impersonating any
intellectual property from the other parties.
iii
ACKNOWLEDGEMENTS
I have taken efforts in this Project. However, it would not have been possible
without the kind support and help of many individuals and organizations. I would like
to extend my sincere thanks to all of them. I am highly indebted to Sir Roshidi Bin
Zakaria for their guidance and constant supervision as well as for providing necessary
information regarding the Project & also for their support in completing the Project.
group for their kind co-operation and encouragement which help me in completion of
this Project. I would like to express my special gratitude and thanks to industry persons
iv
ABSTRACT
v
ABSTRAK
Projek ini mencadangkan sistem berasaskan LoRaWAN untuk pemantauan jarak jauh
keadaan persekitaran dalam aplikasi pertanian ketepatan. Sistem ini akan mengukur
dan menghantar data mengenai suhu, pH, kelembapan, dan kekonduksian elektrik,
faktor penting untuk kesihatan tanaman. Nod penderia yang dilengkapi dengan
penderia ketepatan tinggi untuk setiap parameter akan memanfaatkan komunikasi
jarak jauh dan berkuasa rendah LoRaWAN untuk penghantaran data yang cekap dari
medan. Sistem ini direka bentuk untuk operasi penyelenggaraan rendah dengan hayat
bateri yang dilanjutkan pada nod sensor. Data akan dihantar secara berkala ke pintu
masuk LoRaWAN untuk pengumpulan dan visualisasi pada platform awan yang mesra
pengguna, membolehkan petani membuat keputusan termaklum mengenai pengairan,
pembajaan dan kawalan perosak.
TABLE OF CONTENTS
CONFIRMATION OF THE PROJECT i
DECLARATION OF ORIGINALITY AND OWNERSHIP iii
ACKNOWLEDGEMENTS iv
ABSTRACT v
ABSTRAK vi
TABLE OF CONTENTS vii
LIST OF TABLES ix
LIST OF FIGURES x
LIST OF SYMBOLS xi
LIST OF ABBREVIATIONS xii
CHAPTER 1 1
1 INTRODUCTION 1
1.1 Introduction 1
1.2 Background Research 2
1.3 Problem Statement 3
1.4 Research Objectives 3
1.5 Scope of Research 4
1.6 Project Significance 4
1.7 Chapter Summary 4
CHAPTER 2 5
2 LITERATURE REVIEW 5
2.1 Introduction 5
2.2 Motor Skill Challenges in Autistic Children (Literature Review Topic 1) 5
2.2.1 Previous Research (Subtopic Literature Review Topic 1)
Error!
Book
mark
not
define
d.
2.3 Control System (Literature Review Topic 2) Error! Bookmark not defined.
2.3.1 Microcontroller 9
2.3.2 Programmable Logic Control (PLC)
10
2.3.3 Arduino
10
2.4 Chapter Summary 10
CHAPTER 3 13
3 RESEARCH METHODOLOGY 13
3.1 Introduction 13
3.2 Project Design and Overview. 13
vii
3.2.1 Block Diagram of the Project
13
3.2.2 Flowchart of the Project 2
14
3.2.3 Project Description
15
3.3 Project Hardware 15
3.3.1 Schematic Circuit
15
3.3.2 Description of Main Component
16
3.3.2.1 Component 1
18
3.3.2.2 Component 2
Error! Bookmark not defined.
3.3.2.3 Component 3
21
3.3.3 Circuit Operation
22
3.4 Project Software 23
3.4.1 Flowchart of the System
24
3.4.2 Description of Flowchart
25
3.5 Prototype Development 26
3.5.1 Mechanical Design/Product Layout
27
3.6 Sustainability Element in The Design Concept 28
3.7 Chapter Summary 29
CHAPTER 4 31
4 PROJECT MANAGEMENT AND COSTING 31
4.1 Introduction 31
4.2 Gant Chart and Activities of the Project 32
4.3 Milestone 33
4.4 Cost and Budgeting 34
4.5 Chapter Summary Error! Bookmark not defined.
REFERENCES 37
5 APPENDICES 38
APPENDIX A- DATA SHEET 39
APPENDIX B- PROGRAMMING 40
APPENDIX C- PROJECT MANUAL/PRODUCT CATALOGUE 41
All this document is subjected to copyright under LY2019002279 Error! Bookmark not
defined.
viii
LIST OF TABLES
TABLE TITLE PAGE
Table 3.2: Means and Standard Deviations (In Brackets) Of Strength Scores
(In Pounds Force) For Each Hand Of Males. Right Hand. ...................... 27
ix
LIST OF FIGURES
FIGURE TITLE PAGE
Figure 2.1: Block diagram of open loop and closed loop system Error! Bookmark
not defined.
x
LIST OF SYMBOLS
xi
LIST OF ABBREVIATIONS
xii
CHAPTER 1
1 INTRODUCTION
1.1 Introduction
1
1.2 Background Research
LoRaWAN Technology:
Environmental Sensors:
Research specific sensor types suitable for measuring temperature, pH, humidity, and
electrical conductivity. Consider factors like accuracy, range, power consumption, and
environmental compatibility for each sensor.
Explore resources from sensor manufacturers or distributors to understand the
functionalities and limitations of different sensor options.
2
1.3 Problem Statement
The main objective of this Project is Design and develop a low-power, wide-area network
(LPWAN) system using LoRaWAN technology for remote monitoring of environmental
parameters like temperature, pH, humidity, and electrical conductivity.
More specifically the principle objective of this research are:
1. To design A low-power, multi-sensor node capable of accurately measuring
temperature, pH, humidity, and electrical conductivity.
2. To implement the designed sensor nodes with optimized power consumption
for long-range LoRaWAN communication.
3. To develop algorithms for data processing, filtering, and analysis to extract
meaningful insights from the collected sensor measurements.
3
1.5 Scope of Research
2. The emphasis is optimizing the system for long-range communication, low power
consumption, and reliable data acquisition.
4
CHAPTER 2
2 LITERATURE REVIEW
2.1 Introduction
This section will review existing environmental monitoring systems, including traditional
wired and short-range wireless solutions. We will highlight their advantages, such as
reliability and accuracy, while also acknowledging their limitations like limited reach, high
installation costs, and the need for manual data collection. We will then discuss the growing
trend towards integrating Internet of Things (IoT) technologies like LoRaWAN into
environmental monitoring systems. This shift allows for remote and efficient data
collection, overcoming many limitations of traditional methods.
5
Sensor Technologies
The specific sensors chosen for measuring temperature, pH, humidity, and EC will be
discussed in detail. We will explain their operating principles and provide justification for
their selection based on key factors like accuracy, sensitivity, power consumption, and
suitability for the target environment. Additionally, we will briefly mention calibration and
data validation techniques to ensure the quality and reliability of the collected sensor data.
Finally, we will explain how our proposed LoRaWAN-based system integrates existing
knowledge of LoRaWAN, environmental monitoring systems, and sensor technologies. We
will emphasize the project's unique features, highlighting potential improvements over
existing solutions or addressing specific application needs. This section will solidify the
project's novelty and contribution to the advancement of environmental monitoring
technologies.
6
monitoring system for nodes with effectiveness of
system using monitoring water sensors for LoRaWAN in
LoRaWAN quality parameters measuring pH, monitoring water
Anto Marline such as pH, turbidity, and quality over wide
Manoharan turbidity, and conductivity. The areas. The system
student of conductivity in nodes provided real-time
Anna rivers and lakes. communicated data on water
University, with a LoRaWAN quality parameters,
Chennai gateway, sending enabling informed
data to a server decision-making
for analysis and for water
visualization. management and
Additionally, the pollution control.
system
incorporated
alarms for
notifying
authorities in
case of water
quality
anomalies.
3 LoRaWAN- Develop a The project The project
based air LoRaWAN-based constructed demonstrated the
quality system for sensor nodes potential of
monitoring monitoring air equipped with air LoRaWAN for real-
system for quality parameters quality sensors time air quality
smart cities (PM2.5, PM10, for PM2.5, PM10, monitoring in
Mohammad CO2) in urban and CO2. These smart cities. The
Fadhli1,* environments to nodes system provided
Asriyadi support smart city transmitted data valuable data for
Asriyadi1 , initiatives. to a LoRaWAN assessing air
Lindawati network and quality and
Lindawati1 , ultimately to a implementing
Irma Salamah1 cloud platform measures to
, Gita Affrylia1 for data improve public
, Michelle visualization and health and
Valerie1 , Andi analysis. environmental
Ramadhan1 sustainability.
4 LoRaWAN Design and deploy The project The project
network for a LoRaWAN established a successfully
environmental network for LoRaWAN demonstrated the
monitoring in monitoring network with application of
protected environmental strategically LoRaWAN for
areas parameters placed sensor environmental
Salma Sobhi (temperature, nodes monitoring in
humidity, and throughout the remote and
animal activity) in protected area. sensitive areas. The
7
protected areas for These nodes collected data
wildlife collected data on provided valuable
conservation temperature, insights into animal
purposes. humidity, and behavior and
animal activity habitat conditions,
patterns, aiding in
transmitting it to conservation
a central gateway efforts.
for analysis.
5 LoRaWAN- Develop a low- Sensor Node The project
based cost, scalable Design: Design successfully
Environmental LoRaWAN-based and build sensor demonstrated the
Monitoring system for nodes equipped feasibility of using
System for monitoring key with: LoRaWAN for real-
Greenhouse environmental time and remote
Management parameters inside Temperature and monitoring of
Adil Hilmani , greenhouses, such humidity sensors multiple
Abderrahim as temperature, CO2 sensor environmental
Maizate and humidity, CO2 Soil moisture parameters in
Larbi Hassouni concentration, and sensor greenhouses.
(Hilmani, soil moisture, to LoRaWAN The system
Maizate, & optimize plant module for long- allowed growers
Hassouni, growth and range to:
2018) resource communication Optimize irrigation
management. Microcontroller practices based on
for data real-time soil
processing and moisture data.
transmission Maintain optimal
Battery power temperature and
supply humidity levels for
System specific plant
Deployment: varieties.
Monitor and
Deploy multiple control CO2
sensor nodes concentration for
strategically enhanced plant
within the growth.
greenhouse. Gain valuable data
Establish a insights to improve
LoRaWAN resource efficiency
gateway within or and overall
near the greenhouse
greenhouse to management.
receive data from
the nodes.
Data
Management:
8
Configure the
sensor nodes to
collect data at
specific intervals.
Transmit data
through the
LoRaWAN
network to the
gateway.
Forward data
from the gateway
to a cloud
platform for
storage and
visualization.
Data Analysis and
Visualization:
Develop a user
interface on the
cloud platform to
display real-time
and historical
data for each
parameter.
Implement data
analysis tools to
identify trends
and patterns in
environmental
conditions.
2.2.1 Microcontroller
9
2.2.2 Programmable Logic Control (PLC)
2.2.3 Arduino
Arduino is an open-source electronics platform widely used for building digital devices
and interactive projects. It consists of both a physical programmable circuit board (hardware)
and a piece of software (IDE) for writing and uploading code to the board.
This section focusing on two different section, the first is fine controller selection for
LoRaWAN Project.The second section is discovered about the technical part, including the
10
Controller Selection for LoRaWAN Project:
1. Project Requirements:
Complexity:
o Basic data collection and transmission: Microcontrollers like Arduino or
ESP32 might suffice.
o Advanced data processing or complex functionalities: Consider more
powerful controllers like STM32 LoRaWAN Discovery Kits or dedicated
LoRaWAN solutions.
Power Consumption:
o Battery-powered applications: Prioritize low-power microcontrollers with
deep sleep modes.
o Line-powered applications: Power consumption might be less critical.
Cost:
o Budget constraints: Arduino or ESP32 offer cost-effective options.
o Performance-critical applications: Higher-end controllers might be
necessary.
2. Technical Specifications:
Processing Power:
o The controller's CPU speed and architecture determine its ability to handle
complex calculations and data processing.
Memory:
o Program and data memory capacity are crucial for storing code, variables,
and temporary data.
Input/Output (I/O) Capabilities:
o The number and type of I/O pins determine how many sensors and actuators
you can connect.
Communication Interfaces:
o Consider the need for interfaces like SPI, I2C, or UART for connecting
additional modules or devices.
3. Development Environment:
Ease of Use:
o If you're a beginner, Arduino or ESP32 offer user-friendly IDEs and
extensive online resources.
Programming Skills:
o Familiarity with C/C++ is beneficial for most microcontrollers.
Community Support:
o A larger community often translates to more readily available libraries,
tutorials, and troubleshooting assistance.
11
4. Additional Considerations:
12
CHAPTER 3
3 RESEARCH METHODOLOGY
3.1 Introduction
To realize this Project as a product that ready to use with safety characteristic, a very
comprehensive plan is undertaking. A step by step procedure is done so that the Project can
be completed in time. This include collecting data of sample children finger, design the
mechanical part, circuit design testing and verification.
As mention in the previous chapter, the designed controller is using a closed-loop system
with Arduino as the main controller. The design of the controller circuit using Arduino
realizes using Proteus Software and then convert to PCB circuit……………
13
3.2.2 Flowchart of the Project 2
Figure 3.1 shows the circuit diagram of the whole system. It is show that the
14
Figure 3.1: Flow chart of operation of the system
*Images may be subject to copyright
Figure3.2 shows the overall circuit diagram of this Project Lorawan based system for
temperature, ph, humidity and electrical conductivity.
15
Figure3.2:CircuitDiagram
*Images may be subject to copyright
16
Function: ESP32 can perform as a complete standalone system or as a slave device to a host
MCU, reducing communication stack overhead on the main application processor. ESP32
can interface with other systems to provide Wi-Fi and Bluetooth functionality through its SPI
/ SDIO or I2C / UART interfaces.
Full size 38 pin header array.
3.3V logic (It is recommended to use 3.3 -5V logic converters)
CPU and Memory: Xtensa® 32-bit LX6 Dual-core processor (Up to 240MHz)
4 MByte SPI Flash.
448 KByte ROM.
520 KByte SRAM.
Supply Voltage: DC 3.3V to 5V.
17
3.3.2.1 Component 1
18
3.3.2.2 Component 2
3) RS485 7 in 1 Soil
19
Moisture
Range: 0-100 %
Accuracy: 0-50 % ≤ 2 %, 50-100 % ≤ 3 %
Resolution: 0.1 %
Temperature
Range: -40~80 ℃
Accuracy: ±0.5 ℃ (25 ℃)
Resolution: 0.1 ℃
Electrical Conductivity
Range: 0-20000 us/cm
Accuracy: 0-10000 us/cm ≤ ±3 %FS, 10000-20000 us/cm ≤ ±5 %FS
Resolution: 1 us/cm
PH
Range: 3~9
Accuracy: ±0.3
Resolution: 0.1
NPK
Range: 1-1999 mg/kg(mg/L)
Accuracy: ±2 %FS
Resolution: 1 mg/kg(mg/L)
20
3.3.2.3 Component 3
6 3.7 V 1200 Mah Original Rechargeable Power Lithium ion Battery Cell use for LED Light
Bluetooth Speaker Emergency Light Laptop, led, Torch etc. 18650 Model (3.7v 1200mAh
Li-ion Battery
21
6.1.1 Circuit Operation
22
6.2 Project Software
2. Arduino IDE or PlatformIO: These are popular options for programming the ESP32
microcontroller. You may already have one installed or may need to download and
install it.
3. 3.LoRaWAN libraries:
Libraries specific to your chosen LoRaWAN module, typically available from the
manufacturer's website or online communities.
ThingSpeak, Cayenne, or Google Cloud Platform (Free Tier): These are some options for
storing and visualizing the collected data. You may already have an account with one of
these platforms or may need to create one.
23
6.2.1 Flowchart of the System
24
6.2.2 Description of Flowchart
25
6.3 Prototype Development
26
6.3.1 Mechanical Design/Product Layout
Table 3.2: Means and Standard Deviations (In Brackets) Of Strength Scores (In
Pounds Force) For Each Hand Of Males. Right Hand.
27
6.4 Sustainability Element in The Design Concept
In this sub-topic student should elaborate on the design criteria of their Project either
environmental design criteria, social design criteria use of sustainable design tool or economic
design criteria. Also explain contribution to the society of the Project proposed.
28
6.5 Chapter Summary
The research methodology for this project delves into the development and evaluation of a
LoRaWAN-based environmental monitoring system. It involves meticulous system design,
selecting appropriate sensors for temperature, pH, humidity, and electrical conductivity, and
crafting the sensor node architecture with a microcontroller, LoRa module, and power
supply. The LoRaWAN network infrastructure is carefully planned, considering gateway
placement and coverage. Following design, the system is meticulously developed, with
sensor node prototypes tested for accurate data acquisition and communication before
integration with the LoRaWAN network and data platform. Deployment involves strategic
placement of sensor nodes in the target environment, followed by rigorous testing in real-
world conditions to assess data transmission reliability and range. Once deployed, data is
collected and stored for analysis, where trends, patterns, and potential environmental changes
are identified. Analyzed data is then visualized in dashboards or reports for enhanced
understanding and communication. Finally, the system's performance is meticulously
evaluated, focusing on metrics like data transmission success rate, power consumption, and
overall network coverage. This evaluation leads to system optimization for improved
efficiency and reliability.
29
30
CHAPTER 4
7.1 Introduction
Effective project management involves planning, executing, controlling, and closing out your
project within a defined scope, timeframe, and budget. It encompasses activities like scope
definition, schedule development, resource allocation, risk management, communication, and
quality control. Project costing, on the other hand, focuses on estimating, budgeting, and
controlling project expenses throughout its lifecycle. This includes cost estimation, budget
allocation, and cost control practices. By implementing both effectively, you can
significantly increase your project's success rate, optimize resource utilization, enhance
stakeholder satisfaction, and mitigate potential risks that could lead to project failure.
31
7.2 Gant Chart and Activities of the Project
32
7.3 Milestone
1. Project
briefing
2. Update the
logbook in
iSOLMS
3. Update the
Gantt chart in
iSOLMS
4. Final
report
writing
5.
Presentation
2 (Final
Project
Report)
6. JKE
Student Final
Project
Competition
(EEEiC)
7. Submission
of final
report
8. PSA
Student Final
Project
Competition
(PITEC)
33
7.4 Cost and Budgeting
This project involves the cost of purchasing components and materials throughout its
implementation. Components involving cost are hardware ESP32, RAK811, temperature
sensor, Ph sensor, humidity sensor, Electrical conductivity sensor and power supply. All of
these components are purchased through online purchase methods to make it easier as well as
save on costs.
The overall gross budget estimate in the implementation of this project is RM 725.20 and other
expenses is at RM 50 as shown in Table 1 According to this budget cost, this project is can be
considered as a less costly project compared to other projects that can cost over a thousand
ringgit. The cost of the project is also in line with one of the key features of a good project
developer that is low cost but have a high quality project.
6 Other materials 50 RM 50
Total : RM 725.20
34
7.5 Chapter Summary
This chapter ensures the smooth execution of the LoRaWAN environmental monitoring
project by outlining a comprehensive management plan and cost analysis. The plan involves
meticulously breaking down tasks, creating a realistic timeline, assigning skilled personnel,
and identifying potential risks with mitigation strategies. Clear communication channels are
established to keep everyone informed. Costing plays a vital role, requiring accurate
estimations for hardware, software, data storage, network infrastructure, and personnel. A
realistic budget is set based on these estimates, and mechanisms are implemented to
monitor expenses and make adjustments as needed. By effectively managing the project
and controlling costs, we guarantee the successful and budget-conscious development and
deployment of the LoRaWAN environmental monitoring system
35
36
REFERENCES
Hilmani, A., Maizate, A., & Hassouni, L. (2018). Designing and Managing a Smart Parking
System Using Wireless Sensor Networks. Journal of Sensor and Actuator Work, 1-
20.
Yee, H. C., & Yusnita Rahayu. (2014). Monitoring Parking Space Availability via Zigbee
Technology. International Journal of Future Computer and Communication, 377-
380.
37
8 APPENDICES
38
APPENDIX A- DATA SHEET
39
APPENDIX B- PROGRAMMING
40
APPENDIX C- PROJECT MANUAL/PRODUCT CATALOGUE
41
42