Professional Documents
Culture Documents
Duration:: Internship Report From Wolkite University Ict Center Olkite
Duration:: Internship Report From Wolkite University Ict Center Olkite
WOLKITE UNIVERSITY
COLLEGE OF ENGINEERING AND TECHNOLOGY
DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING
COMPUTER STREAM
Duration:
Advisor Mr.Beka
SUBMITTED BY:
NAME ID.NO
ESHETU SHELEMEGN………………………………ENGR/1039/09
AMARE NIMANI………………………………………ENGR/1021/09
ZEKARIAS YOHANIS………………………….……..ENGR/979/09
ZERIHUN TADEGE…..…………………………….…ENGR/986/09
MAY,15,21
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
WOLKITE,ETHIOPIA
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
Declaration
We declare that all the works included in this document are our own work and no copying or
direct plagiarism with our work except where due acknowledgment has been made in the
document. We assure that we agree with all written above with our Signature as follow.
Name ID No Signature
Eshetu Shelemegn………… ENGR/1039/09
Amare Nimani……………. ENGR/1021/09
Zekarias Yohanis…………… ENGR/979/09
Zerihun Tadege……………… ENGR/986/09
Approval
As an advisor of this group, I declare that I have advised their work throughout the course of this
project and all works included in this document is their work. I assume all this with my signature
as follows
Signature Date
MR. ………………... _____________ _______________
WKU,ECE i
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
Acknowledgement
First of all we would like to thank our University for facilitating this internship program and for
assigning us to wolkite university ICT center. Secondly, we would like to thank
wolkite university ict center for allowing us to work in their company for this internship
program to gain the practical skills and to upgrade our theoretical knowledge. We are grateful for
our advisor Mr.Beka and our teachers Mr Turegn,Mr.Abebaw. we thank all our beloved
computer stream lecturers for their unlimited support and guidance throughout the internship
session.
WKU,ECE ii
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
Executive Summary
This report is based on the outline from the university on showing the internship experience as
well as tasks fulfilled during the internship period. The report is composed of the project we
have been working with, the challenges we faced both on work problem and work environment.
The skills we have acquired and implemented on our work. All the mentioned issues will be
discussed briefly showing the three month experience of real life working. The project included
in this report is IOT based water quality monitoring system. The background history and
implementation of our design, the materials used, and the code for the program are included on
this document.
WKU,ECE iii
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
Table of Contents
Executive Summary.......................................................................................................................iii
List of figures..................................................................................................................................vi
List of acronyms............................................................................................................................vii
CHAPTER ONE..............................................................................................................................1
Background of the Organization......................................................................................................1
1.1 Introduction............................................................................................................................1
1.2 Brief History of Wolkite University......................................................................................1
1.3 Missions of Wolkite University.............................................................................................1
1.4 Vision of the Wolkite University...........................................................................................2
1.5 Values and Principles of Wolkite University........................................................................2
1.6 Objective of the Wolkite University......................................................................................2
1.7 Services and/or product of the Wolkite University...............................................................2
1.8 Stake Holders of the Wolkite University..........................................................................3
1.9 Customers of the Company (WKU)......................................................................................3
1.10 Brief Explanation of Wolkite University Network Infrastructure.......................................4
1.11 Types of software we have..................................................................................................4
1.11 The structure of Wolkite University ICT Center.................................................................5
CHAPTER TWO.............................................................................................................................6
OVER ALL INTERNSHIP EXPERIENCE....................................................................................6
2.1 How we get into the company/ Organization........................................................................6
2.2. The section of the Organization we have been working.......................................................7
2.3 .Our Performance at the company/Organization...................................................................7
2.4 .Challenges we have faced while performing our work task.................................................7
2.5 Basic practical work..............................................................................................................8
2.5.1 In a software part............................................................................................................8
2.5.2 Brief Explanation about Traccar vehicle tracking System.............................................8
2.5.3 in a network part.............................................................................................................9
2.5.4 The Main aim of doing networking area........................................................................9
2.5.5 Technical Goals Of The practice..................................................................................10
WKU,ECE iv
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
CHAPTER THREE.......................................................................................................................11
THE OVERALL BENEFITS GAINED FROM INTERNSHIP...................................................11
3.1 In terms of Improving Practical Skill..................................................................................12
3.2 In terms of improving theoretical knowledge......................................................................12
3.3 In terms of improving interpersonal communication..........................................................12
3.4 In terms of improving team playing skill............................................................................12
3.5 In terms of leadership skill..................................................................................................13
3.6 In terms of understanding work ethics related issue............................................................13
3.7 In terms of Entrepreneur ship skill......................................................................................13
CHAPTER FOUR.........................................................................................................................14
PROJECT CARRIED OUT...........................................................................................................14
4.1 Introduction..........................................................................................................................14
4.1.1 Background information...............................................................................................14
4.1.2 Statement of the Problem..............................................................................................15
4.1.3 Objectives.....................................................................................................................15
4.1.4 Scope of the project......................................................................................................16
4.1.5 Significance of the Project............................................................................................16
4.1.6 Outline of the Report....................................................................................................16
4.2 LITERATURE REVIEW....................................................................................................17
4.2.1 Introduction...................................................................................................................17
4.2.2 Related works...............................................................................................................17
4.3 METHODOLOGY..............................................................................................................19
4.3.1 Hardware and software requirements...........................................................................19
4.............................................................................................................................................20
4.3.2 The Proposed System...................................................................................................29
4. 3.3Flow Chart of the System.............................................................................................30
4.3.4 Block Diagram Description..........................................................................................33
4.3.5 Algorithm of the System...............................................................................................35
4.3.6 Hardware Interface.......................................................................................................36
CHAPTER FIVE...........................................................................................................................39
SYSTEM DESIGN AND IMPLEMENTATION.........................................................................39
5.1. Results and Discussions......................................................................................................39
WKU,ECE v
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
List of figures
figure. 1.he structure of Wolkite University ICT Center[9]...........................................................5
figure2. 1Traccar Architecture.........................................................................................................9
figure 4. 1Power (USB) and pin configuration..............................................................................18
figure 4. 2Schematic diagram........................................................................................................20
figure 4. 3PH sensor......................................................................................................................21
figure 4. 4Ds18b20 sensor.............................................................................................................22
figure 4. 5Water level sensor.........................................................................................................22
figure 4. 6Turbidity sensor............................................................................................................23
figure 4. 7NODEMCU Wi-Fi Module...........................................................................................24
figure 4. 8Flow chart for the server...............................................................................................25
figure 4. 9Arduino flow chart........................................................................................................26
figure 4. 10flow chart of nodemcu................................................................................................27
figure 4 12block diagram of the system........................................................................................27
figure 4. 11usecase diagram of the system....................................................................................28
figure 4. 12between A interface rduino and sensors......................................................................30
Figure 16:figure 4. 13Interface Between Arduino and NODEMCU.............................................30
figure 4. 14Arduino and Motor Interface......................................................................................31
figure 5. 1snapshot of inserting the sensor data to MySQL database............................................32
figure 5. 2Login page.....................................................................................................................33
figure 5. 3set time interval inserting link page..............................................................................34
figure 5. 4Sensor data accessing in the web through IoT..............................................................35
WKU,ECE vi
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
List of acronyms
WHO ...……..………… world health organization
UNESCO………………united nation educational scientific and cultural organization
RFID……………….…. radio frequency identification
GPRS……………….... general packet radio service
IOT ………………......internet of things
WQMS……………. water quality monitoring system
GSM……………. …global communication for mobile
PH…………….…...potential of hydrogen
IDE.………………. integrated development environment
PCB………………. program control block
PHP……………. ...hypertext preprocessor
SQL………………structured query language
LED…………... ...light emitting diode
TSS ……………total suspended solids
MST …………...microbial source tracking
ICT ……………..information communication technolgy
WKU,ECE vii
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
CHAPTER ONE
WKU,ECE 1
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
WKU,ECE 2
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
School of law
WKU,ECE 3
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
We use 3 layer architecture (core, 4 distribution, access ) and all links are connected with
fiber optics cable
We have one modern data center and sack and 6 bladed server
WKU,ECE 4
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
E-learning Model
The Board
President
Vice President
ICT
WKU,ECE 5
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
CHAPTER TWO
The first method is supported to join the organization, the steps as follow:
The department given the internship request paper to search the organization where we
would like to work
we have searched and joined in Wolkite University with ICT directorate officer
He accepted our request and signed the paper, finally we specified in our project
WKU,ECE 6
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
• Software part
• Network part
Aims
The main aim that this system would provides instant web notifications along with support for
email and SMS. This allows for external alerting in cases of harsh driving behaviour like
speeding, fuel and maintenance events, geo-fencing and many other types of alerts.
Methods
Traccar software uses device unique identifier i.e for most devices (IMEI – International
Mobile Equipment Identity), Address and Port i.e to be able to receive data from GPS devices,
the machine must have a public IP address, the main user roles:
Admin - super user that has full unlimited access to the whole Traccar server,
Manager - user with extended capabilities allowing him to manage his subset of users and
register new ones, and
User - ordinary user that can manipulate any of his own objects and add new ones.
WKU,ECE 7
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
Alarm - This event generated when new position contain alarm attribute.
Geofence - Traccar can generate events when device enters or exits a geofence.
Command Result - Traccar supports answers on commands for some protocols. Such answers
are stored in result attribute. Server creates this type of event if position contains result attribute.
Ignition – Tarccar creats Ignition ON Event if previous position contain attribute ignition false
and current position contain attribute ignition true. Traccar generates Ignition OFF Event if
former position contain attribute ignition true and current position contain attribute ignition false.
Motion - Traccar can generate this event if device started or stopped moving.
Overspeed - Traccar can generate this event if device exceeds the configured speed limit. Speed
limit value can be set in device, group or server attribute speedLimit.
Status – Server can generate this event type when device status changes
(online/offline/unknown). Online means that device is connected to the server and sending
reports. Offline means that device is not connected to the server. Unknown means that
connection status is unknown and there were no reports from device for specified period of time
(10 minutes by default).
WKU,ECE 8
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
• Availability: A network designed for availability is one that delivers consistent, reliable
performance, 24 hours a day, 7 days a week. In addition, the failure of a single link or
piece of equipment should not significantly impact network performance. Provide 100%
uptime
• Security: Security is a feature that must be designed into the network, not added on after
the network is complete. Planning the location of security devices, filters, and firewall
features is critical to safeguarding network resources.
WKU,ECE 9
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
CHAPTER THREE
These are:
professional communications
taking constructive criticism well
work hard on what we are doing
independence
document preparation
Listening
Questioning
Observation
WKU,ECE 10
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
So, the internship enabled to improve our communication skill with the company employees,
technicians, operators and manager.
Management system
develop workplace skills
establish a networking strategy
prepare for interviews
join and participate in a professional society
In terms of Entrepreneur ship skill
Integrity
Sense of responsibility
Sense of accountability
Tolerance
WKU,ECE 11
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
CHAPTER FOUR
PROJECT CARRIED OUT
TITLE: IOT BASED WATER QUALITY MONITORING SYSTEM
4.1 Introduction
4.1.1 Background information
Freshwater is a world resource that is a gift of nature and important to farming, manufacturing,
and the life of human beings on earth. According to UNESCO national water development report
for Ethiopia 2004, about of 90% of industries which are found in Addis ababa waters simply
discharged their sewage into nearby water bodies without any form of treatment. The traditional
methods of water quality monitor involve the manual collection of water samples from different
locations. The traditional method is just not enough to measure water quality and identify any
drastic changes in it. This method not only impedes accurate water quality measurement but also
at times fails to predict sudden changes in the water system in real-time
Hence there is need of developing better methodologies to monitor the water quality parameters
in real time. Now a day’s for supporting person’s individual and regular responsibilities the
wireless communication technologies are increased. Many applications were developed for
building control, automation, data acquisition in recent years. There are many benefits like low
cost, easy installation, and maintenance. This framework permits the user to display the devices
which are connected from the bottom station through completely dissimilar communication
principles such as “Bluetooth, WIFI, RFID and GPRS” and other system on chip primarily based
wireless device node IoT was established.
.Water Quality Monitoring (WQM) is a cost-effective and efficient system designed to monitor
drinking water quality which makes use of Internet of Things (IoT) technology. The proposed
water quality monitoring system is consisting of a microcontroller and basic sensors, is compact
and is very useful for pH, turbidity, water level detection, temperature, continuous and real-time
data sending via wireless technology to the monitoring station. The water quality parameters pH
measures the concentration of hydrogen ions. It shows the water is acidic or alkaline. Pure water
has 7pH value, less than 7pH has acidic, more than 7pH has alkaline. The range of pH is 0-14
PH. For drinking purpose, it should be 6.5-8.5pH.[1] turbidity measures the large number of
WKU,ECE 12
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
suspended particles in water that is invisible. Turbidity is a measure of the cloudiness of water or
Turbidity can be considered as a good measure of water quality. Temperature sensor measures
how the water is, hot or cold.
4.1.3 Objectives
4.1.3.1 General Objective
The general objective of this project is to develop a Smart Water Quality Monitoring System
Using internet of things (IoT) Technology to make sure clean and safe distribution of water.
WKU,ECE 13
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
WKU,ECE 14
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
In one of the researches Dempster-Shafer (D-S).[1] method employed for detecting the
contamination events of drinking water. Autoregressive model (AR) is employed for detecting
the water Quality parameters. The AR model been employed for predicting the water Quality
parameters using automated water-quality sensors. The drawbacks of this system are that this
method requires lot of parameters for the data collected to determine the quality of water. It
involves an expert technician to detect the water quality.
Microbial Source Tracking [8] been used towards determining various hosts towards
contributing to faecalis pollution in water bodies. Faeces pollution can be traced using
“microbiological, genotypic, phenotypic, and chemical” methods and these has been termed
“microbial source tracking (MST)”. MST provides a tool towards identifying the source of
pollution and allowing proper remediation and preventive measures. Water contaminated with
human faeces is generally regarded as more hazardous to human health. However, this system
has serious disadvantages, including unstable phenotypes, low sensitivity at the intraspecies
level, and limited specificity.
In 2015N Vijayakumar and R Ramya [2] present” Design and development of a low-cost system
for real time monitoring of the water quality in IoT (internet of things)”. The system consists
different sensors like pH, turbidity, water level sensors etc. All the parameters are measured and
that measure d value which is stored from sensors can be processed by Raspberry PI B+. The
All the way our proposed project tries to solve problems in new angle, water quality monitoring
system is consisting of a microcontroller and basic sensors, is compact and is very useful for pH,
turbidity, water level detection, temperature, continuous and real-time data sending via wireless
technology to the monitoring station. The water quality parameters pH measures the
WKU,ECE 15
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
concentration of hydrogen ions. It shows the water is acidic or alkaline. Pure water has 7pH
value, less than 7pH has acidic, more than 7pH has alkaline. The range of pH is 0-14 PH. For
drinking purpose, it should be 6.5-8.5pH. also deals with turbidity measures the large number of
suspended particles in water that is invisible. Which is all in one IOT based project.
4.3 METHODOLOGY
4.3.1 Hardware and software requirements
In designing this system different hard ware and software components are used. These hard
ware and software components are connected together as designing point of view to gate the
required result.
Proteus Professional7
Visual studio editor
Arduino integrated development environment (IDE)
Php
JavaScript
MySQL
Apache Server
4.3.1.1.1 Proteus, ISIS Professional V7
It is used for hardware simulation design. It is a best simulation software development tool for
various designs with microcontroller. It is mainly popular because of availability of almost all
microcontrollers in it. So, it is a handy tool to test programs and to design embedded systems.
You can simulate your programming of microcontroller in it. After simulating your circuit in this
Software, you can directly make PCB design with it.
4.3.1.1.2 Visual studio editor :It is a free source-code editor made by Microsoft for Windows,
Linux and macOS. Features include support for debugging, syntax highlighting, intelligent code
completion, snippets, code refactoring.
WKU,ECE 16
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
4.3.1.1.4 Php
It is a recursive acronym for "PHP: Hypertext Preprocessor". It is a server-side scripting
language that is embedded in HTML. It is used to manage dynamic content, databases, session
tracking. It is integrated with a number of popular databases, including MySQL, PostgreSQL,
Oracle, Sybase, Informix, and Microsoft SQL Server. PHP is pleasingly zippy in its execution,
especially when compiled as an Apache module on the Unix side. The MySQL server, once
started, executes even very complex queries with huge result sets in record-setting time.[1]
4.3.1.1.5 JavaScript
It is a dynamic computer programming language. It is lightweight and most commonly used as a
part of web pages, whose implementations allow client-side script to interact with the user and
make dynamic pages. It is an interpreted programming language with object-oriented capabilities
4.3.1.1.6 MySQL
It is an Oracle-backed open-source relational database management system (RDBMS) based on
Structured Query Language (SQL). MySQL runs on virtually all platforms, including Linux,
UNIX and Windows. MySQL is an important component of an open-source enterprise stack
called LAMP
WKU,ECE 17
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
Microcontroller (Arduino-Uno)
PH sensor (RV2)
Temperature sensor(LM35)
Water level sensor(water sensor)
Turbidity sensor(torch ldr)
NODEMCU(Wi-Fi Module)
DC motor(simple dc motor)
Motor driver(l293D)
4.3.1.2.1 Arduino
Arduino is a microcontroller board which has 14 digital input/output pins (of which 6 can be
used as PWM outputs), 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power
jack, an ICSP header and a reset button.[4] The Arduino platform has become quite popular with
people just starting out with electronics, with Arduino Uno R3 data sheet-based board. Provides
a standard form factor that breaks out the functions of the micro-controller into a more accessible
package.[4]
Every Arduino board needs a way to be connected to a power source. The Arduino UNO can be
powered from a USB cable coming from your computer or a wall power supplies. It’s not
allowed to use power supply greater than 20 Volts as you will over power and thereby destroy
WKU,ECE 18
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
the Arduino. The recommended voltage for most Arduino models is between 5 and 12 Volts.
The pins on your Arduino are the places where it will connect wires to construct a circuit
probably in conjunction with a breadboard and some wire. They usually have black plastic
„headers‟ that allow you to just plug a wire right into the board. The Arduino has several
different kinds of pins, each of which is labeled on the board and used for different functions.
GND (3): Short for ‘Ground’. There are several GND pins on the Arduino, any of which can
be used to ground the circuit.
5V (4) & 3.3V (5): As we might guess, the 5V pin supplies 5 volts of power, and the 3.3V pin
supplies 3.3 volts of power. Most of the simple components used with the Arduino run happily
off of 5 or 3.3 volts.
Analog (6): The area of pins under the „Analog In‟ label (A0 through A5 on the UNO) is
Analog In pins. These pins can read the signal from an analog sensor (like a temperature sensor)
and convert it into a digital value that we can read.
Digital (7): Across from the analog pins are the digital pins (0 through 13 on the UNO). These
pins can be used for both digital input (like telling if a button is pushed) and digital output (like
powering a LED).
PWM (8): the digital pins (3, 5, 6, 9, 10, and 11 on the UNO). These pins act as normal digital
pins, but it can also be used for something called Pulse-Width Modulation (PWM).
AREF (Stands for Analog Reference) (9): Most of the time you can leave this pin alone. It is
sometimes used to set an external reference voltage (between 0 and 5 Volts) as the upper limit
for the analog input pins.
WKU,ECE 19
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
This pH sensor module consists of a glass pH probe and a signal conditioning board, which gives
an output signal proportional to the acidic intensity of liquid solutions and can be interfaced
directly to any 5 V micro-controllers. This sensor returns a voltage proportional to the tendency
of the solution to gain or lose electrons from other substances, which is linked directly to the pH
a substance. And it's normally used in applications such as aquariums, hydroponics,
laboratories, etc., where it is normally used for measuring acidity on a scale from 0 to 14, with 0
being the most acidic and 14 being the most basic
Working Current………………………..5-10mA
Output Analog
WKU,ECE 20
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
There are different types of temperature sensors available in the market for sensing temperature
of any object or surroundings. We have chosen ds18b20 for our project. It’s a cheap digital
temperature senor which has a one-wire interface. It means it only requires one pin to
communicate with the microcontroller. It is especially suitable for this project because its water
proof. Because of its digital output it accurately measures temperature. Figure show sample of
ds18b20 sensor.
Pin Configuration
1 Ground Connect to the ground of the circuit
3 Data this pin gives output temperature value which can be read using 1-wired method
WKU,ECE 21
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
resistor of 1MΩ is present. 1MΩ resistor pulls up the sensor value till a drop of water shorts the
sensor trace to the grounded trace. This can measure the water droplet/water size by using a
series of “exposed parallel wires”. The characteristics are it has high sensitivity and low power
consumption.
Features
a) Operating voltage: -3 to 5 V DC
b) Operating temperature: -10°c to 30°c
c) Measuring range: 0 to 15 feet’s
Figure 4.5 below shows a Water level sensor used in this project:
Specification
Operating Voltage: 5V DC
Operating Current: 40mA (MAX)
Response Time: <500ms
Insulation Resistance: 100M (Min)
WKU,ECE 22
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
4.3.1.2 DC Motor
Electrical motors are everywhere around us. Almost all the electro-mechanical movements we
see around us are caused either by an AC. or a DC motor. DC motor is a device that converts DC
electrical energy to a mechanical energy. This DC or direct current motor works on the principle,
when a current carrying conductor is placed in a magnetic field, it experiences a torque and has a
tendency to move. This is known as motoring action. If the direction of current in the wire is
reversed, the direction of rotation also reverses
4.3.1.3Motor Driver
The current supplied by the microcontroller to is not sufficient to drive the motor. Thus, motor
driver provides sufficient current to run motor. It can take maximum current of 600mA per
channel which is than enough to drive two motor. It works on the concept of H-bridge. H-bridge
is a circuit which allows the voltage to be flown in either direction. As you know voltage need to
change its direction for being able to rotate the motor in clockwise or anticlockwise direction,
hence H-bridge IC are ideal for driving a DC motor.
4.3.5 ESP8266
The WI-FI module used in this project is ESP8266. It follows TCP/IP stack and is a microchip
which is less in cost. This microchip allows the microcontroller to connect to a WI-FI network,
by using Hayes style command connections are done or made through TCP/IP connection.
ESP8266 has 1MB of built-in flash, single chip devices able to connect WI-FI. Espress if
WKU,ECE 23
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
systems are the manufacturers of this module, and it is a 32-bit microcontroller. There are 16
GPIO pins in this module. This module follows the RISC processor. It has 10-bit DAC. Later
Espress if systems released a software development kit (SDK) which is used to program on the
chip so that another microcontroller is not used. Some of the SDK's are Node MCU, Arduino,
Micro Python, Zerynth and Mongoose OS. SPI, I2C, I2S, UART are used for communicating
between two sensors or modules.
Figure 4.7 below shows a NODEMCU Wi-Fi Module used in this project:
4.3.6 Resistor
It is one of passive elements in an electrical system that is used to limit the flow of current
through a given circuit
This project is intended to develop water quality monitoring system using internet of thing (IOT)
which is used to control and monitor the quality of drinking water. The system checks the
physical (temperature and turbidity), the water level and chemical property (PH) of a drinking
water. The program which is given to the Arduino microcontroller makes the Arduino to read the
physical and chemical property of the water from the sensor within a specified time interval set
by the administrator of the system. The Arduino send the sensors data to NODEMCU using
serial communication. NODEMCU send Http request sensors data and its identity to the server.
The server checks the identity of a sender and stores the received data in MySQL database if the
identity matched to the predefined one. Web application is developed to present and display the
data interactively to the user (administrator). Then the data is accessed by an authorized person
(admin) throughout the world by using the WQMS website. The admin can have a controlling
mechanism on the website to control the valve of the water tanker by sending a close or open
command to the microcontroller. In this proposed system, there is no need to test the sample of
the water in a laboratory and go physically to check its quality.
WKU,ECE 24
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
WKU,ECE 25
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
WKU,ECE 26
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
The block diagram mainly consists of four components. The first component is the Arduino
Microcontroller where the Sensors deployed in Water are connected. The Arduino
Microcontroller read the PH, temperature, turbidity and water level of drinking water from their
respective sensors which are the second components of the block diagram. The Arduino
microcontroller read the sensors data if the time interval set by the user is elapsed. Then the data
WKU,ECE 27
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
received by Arduino is sent to the third component NODEMCU using Serial communication.
After that, NODEMCU sends these data to the server using HTTP request. The server checks the
sender identity of the requested data and store it in to database if it’s identity (ID) is similar to
the requested one. The fourth component of the system is DC motor which is used to control the
valve status (open or close) of the tanker when instruction is given by the Arduino. Finally, the
system presents the Water quality parameter data’s in the WQMS website for user to access it
from remote location using mobile or laptop. The User(admin) can change the time interval of
sensor reading by the Arduino and control the valve of the water tanker.
First Start the microcontrollers and establish a communication between the controllers by
initializing serial communication between them. Then NODEMCU establishes network
connection. If the time interval given by the admin is elapsed, Arduino reads and processes the
sensors data, then it sends to NODEMCU through the established serial communication.
NODEMCU receives the data and sends http request to the server. The server matches the
received sender ID with the predefined one. If the sender ID Matches, it will read and store in
WKU,ECE 28
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
MYSQL database. If the Admin submit a form, it will be stored as json form in the file system of
the server.
NODEMCU then checks a change for json data, if there is, NODEMCU will send these changes
to the Arduino. Arduino check its buffer for the incoming data from NODEMCU if there is a
change, it reads and decode the data’s as status of the valve and the time interval of sensor
reading. Then the Arduino updates the time interval of sensor reading or it will drive the DC
motor either to close or open the valve based on the received command (open or close) from
NODEMCU.
choose ds18b20 temperature sensor because it is One-wire temperature sensors that can measure
temperature with a minimal amount of hardware and wiring. Turbidity sensor analog output is
interfaced to analog pin A3 of the Arduino. It has both analog and digital signal output modes..
The interface between the Arduino and the sensors are shown in the figure below.
Turbudit ds18b20
Arduino
Vcc V
5V
Gnd DQ
A3 4
V Gnd
PH A0
V Water Level
+ S
Gnd A2
Gnd Vcc Gnd
WKU,ECE 29
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
Arduino NODEMCU
Rx RX
Tx Tx
Gnd Gnd
WKU,ECE 30
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
Vss Vs
Arduino
Motor Driver
5V
IN1 OUT1 DC
10 Motor
IN2 OUT2
9
8 16
Gnd
Gnd Gnd
WKU,ECE 31
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
CHAPTER FIVE
SYSTEM DESIGN AND IMPLEMENTATION
5.1. Results and Discussions
The simulation of the circuit has been designated using Proteus Software as shown in the figure
below. The circuit is also simulated using this software before practical implementation. The
result of simulation ensures that the circuit works in a proper way. In this circuit, the Arduino
microcontroller is the main component which is used for controlling the system (PH, sensor
temperature, sensor water level, sensor and turbidity). On the other part, NODEMCU device is
used as a medium for the communication between Arduino microcontroller and the Server.
WKU,ECE 32
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
standalone application, making itself a really attractive option especially to independent retailers.
A web application provides flexibility by allowing view from any computer with an internet
connection. A web application can be maintained properly and updated online by the system
provider, unlike the standalone application in which the system provider has to maintain and
update the system by physically going to the company’s sever site. So due to all the listed
reasons above, the system is developed using web app as its user interface.
WKU,ECE 33
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
WKU,ECE 34
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
Whenever an eligibly body want to monitor the quality of water the web page will display detail
about the quality of the water parameter. When there is a problem in the quality of water it shows
warning in the web page
5.3.1 Limitations
Since water is the main necessity of human being, Water Quality monitoring is very essential as
it is consumed by daily. Traditional water Quality monitoring and some of the technology-based
Water Quality got lot of challenges. The proposed system is included in a modern technology,
solving many challenges from the traditional one. However, it also has some limitations. This
system is prepared only for one tanker of water, which limits the number of resident homes using
the advanced system. In addition to this, the sensors used in the system are not networked with
each other. This makes the system to fail for larger water tank, since the sensors are limited to
sense and measure a limited area of the tanker. In this system the water quality is monitored
WKU,ECE 35
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
using only four parameters of water which doesn’t give the exact standard of the water to be
drunk or not. Even if the system has its own limitations, the system also has good qualities. For
instance, since the developed system is web based it doesn’t require any software installation or
manual updates easing the deployment process. A web application provides flexibility by
allowing view from any computer with an internet connection.
WKU,ECE 36
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
5.4.2 Recommendation
Water quality monitoring system is one of the emerging technologies in the technological world.
This project’s main concern is to access real time water quality parameter from remote area
According to our main concern of this project there are many future scopes.
IoT based Water Quality monitoring system can be extended not just for Storage tank but
also for deciding on Ponds, rivers and water pipes too
The same work can be extended by looking into other water parameters rather than just
these sensors and accordingly control the flow of water based on water quality
We can also work on making a mobile application for remote water monitoring which user can
download and install in his or her device and can get real time notification
WKU,ECE 37
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
Reference
[1] Dibo,H et al(2013). “Detection of water-quality contamination events based on multi-
sensor fusion using an extented Dempster–Shafer method”, Measurement Science and
Technology, Vol.24, pp.1-18.
[2] Jayti Bhatt, Jignesh Patoliya, Iot Based Water Quality Monitoring System, IRFIC,
21feb,2016.
[5] Das, Brinda and P. C. Jain. “Real‐time water quality monitoring system using Internet of
[6] Cloete N.A, Malekain R and Nair L “Design of Smart Sensors for Real-Time Water Quality
Monitoring” In Proceedings of IEEE Access. IEEE, 16 July 2016, page. 3 3975 - 3990.
[8] Hao Jei chan, “Water Quality Monitoring System,” March 9, 2017. [Online]. Available:
https://www.hackster.io/chanhj/water‐quality‐monitoring‐system‐ddcb43
WKU,ECE 38
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
<?php
include 'database.php';
$conn = connect();
$api_key_value = "tPmAT5Ab3j7F9";
$api_key= $gasSensor = $waterLevel = $phSensor = $tempSensor = "";
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$api_key = test_input($_POST["api_key"]);
if($api_key == $api_key_value) {
//gas_sensor water_level_sensor ph_sensor temp_sensor
$gasSensor = test_input($_POST["gas_sensor"]);
$waterLevel = test_input($_POST["water_level_sensor"]);
$phSensor = test_input($_POST["ph_sensor"]);
$tempSensor = test_input($_POST["temp_sensor"]);
$sql = "INSERT INTO sensordata (gasSensor,waterLevel,phSensor,tempSensor)
VALUES ('" . $gasSensor . "', '" . $waterLevel . "','" . $phSensor . "','" . $tempSensor . "')";
if ($conn->query($sql) === TRUE) {
echo "New record created successfully";
\\\\\ }
else {
echo "Error: " . $sql . "<br>" . $conn->error;
}
$conn->close();
}
else {
echo "Wrong API Key provided.";
}
}
else {
echo "No data posted with HTTP POST.";
}
function test_input($data) {
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}
WKU,ECE 39
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <WiFiClient.h>
#include <Arduino_JSON.h>
const char* ssid = "HUAWEI-E5336-E839";
const char* password = "ybjyn2nn";
const char* serverName = "http://192.168.8.106/NODEMCU/php/insert.php";
const char* serverName2 = "http://192.168.8.106/NODEMCU/php/mes.json";
String apiKeyValue = "tPmAT5Ab3j7F9";
String sensorReadings;
String prev_interva = "0.5";
String prev_status ="OPEN";
String sensorReadingsArr[3];
const byte numChars = 32;
char receivedChars[numChars];
char tempChars[numChars];
float tur_sensor =0.0; //gas_sensor water_level_sensor ph_sensor temp_sensor
float water_level_sensor =0.0;
float ph_sensor =0.0;
float temp_sensor =0.0;
boolean newData = false;
void setup()
{
//SUART.begin(9600);
WKU,ECE 40
INTERNSHIP REPORT FROM WOLKITE UNIVERSITY ICT CENTER
Serial.begin(9600);
WiFi.begin(ssid, password);
Serial.println("Connecting");
while(WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.print("Connected to WiFi network with IP Address: ");
Serial.println(WiFi.localIP());
}
WKU,ECE 41