Chapter 1-5
Chapter 1-5
Chapter 1-5
181204017
500 LEVEL
2022/2023 SESSION
EEE 595
PROJECT DESIGN AND METHODOLOGY
i
CHAPTER ONE
INTRODUCTION
Technology development has made life for us simpler and easier. Automation is the use of
information technologies and control systems to lessen the need for human labor in the creation
of goods and services. Automation goes beyond mechanization in the context of
industrialization. Automation considerably reduces the need for human sensory and mental
requirements as well, whereas mechanization human operator’s machinery to help them with the
muscle requirements of work. The importance of automation in the global economy and in day-
to-day life is rising. Systems that are automatic are preferred to those that are manual.
The incentive behind this project is to design and implement an automated poultry monitoring
system that bestow end users with the facility to monitor temperature and humidity level, door
security, drinker water level indicator, rainfall in that specific location remotely via the use of
1
various sensors in order to save energy and cost. Agriculture remains the most important sector
of the Nigerian economy. Over the year’s variety of modifications have been implemented on the
poultry farming with include poultry cage and lots more. Farms need to be converted to modern
farms, notably poultry farming, which is easily to be automated, due to advancements in
technology. Considering the advancement in technology, this project will be to provide a means
for our local farmers to convert their traditional chicken farming to contemporary poultry
farming. The system is made of temperature and humidity sensor, water level sensor, rain sensor,
flame sensor, light dependent resistor lock (LDR), LCD display, GSM module. The sub circuit is
designed using passive and active electronic components like capacitors, resistors, diode,
regulators, transistors and relays.
The problem that this system aims to solve is the lack of efficient and effective monitoring in
poultry farming. Farmers have to manually check on their birds regularly, which can be time-
consuming and can result in missed opportunities to identify potential problems. For example, in
case of a sudden change in temperature or humidity, it may be difficult to identify the problem
until it is too late, which can result in a loss of birds.
The proposed system aims to provide real time monitoring of various parameters that are critical
to the well-being of the birds, such as temperature, humidity, and water level. The rain sensor
can detect rainwater, which can prevent the water from overflowing. The flame sensor can detect
any fire incidents and immediately alert the farmer. The LDR sensor can detect the light intensity
inside the poultry house, which can be useful in determining the best time for the birds to sleep
2
or wake up. The door lock can be programmed to automatically open and close, based on a
predetermined schedule, to ensure the birds are safe inside their house.
In summary, the proposed automated poultry monitoring system can provide numerous benefits
to poultry farmers, including improved efficiency, reduced labor costs, and enhanced bird
welfare. With the ability to monitor critical parameters in real-time and receive immediate alerts
in case of any issues, farmers can take proactive measures to ensure the health and safety of their
birds, resulting in higher productivity and profitability.
3
Any favorable outcomes from this study may have the potential to be used for poultry farms
enhancements, modelling, and identifying future research priorities in poultry technology and
pullets’ quality of care. The results of this research may have potential social change
implications. If our local farmers adopt technology, there will be value for money in their
maintenance cost with consequence in reduction in their bills.
Operation of the controlling units is only possible through a cell phone and sim card with
the capability of receiving phone calls
The control unit must be able to receive and decode phone calls
The receiver must reside in a location where a signal with sufficient strength can be
received from a cellular phone networks.
Chapter One entails the background, statement of the problem, aim and objectives, purpose of
study, significance of study and the limitations of study.
In Chapter Two a brief history of automation will be given. Existing pieces of literature on the
subject would be reviewed. It also includes an explanation and a review of the components used
during the project.
Chapter Three outlines the detailed methodology used to design the system circuit including
block diagrams, flowcharts, formulas, etc. It also describes the test procedures utilized in
validating the performance of the system. The system is subdivided into three units (input,
processing, and output). Each unit will be discussed accordingly.
4
Chapter Four entails the steps taken to implement the methodology designed in chapter three.
The results derived from the implementation and testing were reviewed.
Chapter Five contains the summary of the project, setbacks encountered and recommendations
for future works
5
CHAPTER 2
LITERATURE REVIEW
2.1: INTRODUCTION
The poultry industry plays a vital role in meeting the growing global demand for poultry
products. However, managing and monitoring poultry farms efficiently is a complex task that
requires constant attention to various environmental and operational factors. In recent years,
automated poultry monitoring systems have emerged as a promising solution to enhance the
management and productivity of poultry farms. These systems utilize a combination of advanced
technologies, including the GSM module, LCD, LDR, flame sensor, water level indicator, lock,
rain detector, and temperature and humidity sensors, to collect real-time data and provide
valuable insights for poultry farmers.
The objective of this chapter is to review the existing literature on automated poultry monitoring
systems that incorporate the aforementioned components. By exploring the work conducted in
this field, I aim to gain a comprehensive understanding of the different approaches,
methodologies, and technological advancements employed in developing and implementing such
systems. This literature review will serve as a foundation for our research, allowing me to
identify gaps, challenges, and opportunities for further investigation in the context of utilizing
these specific components for poultry monitoring.
The chapter begins by providing an overview of the poultry industry, highlighting the key
challenges faced by farmers in maintaining optimal conditions for their flocks. These challenges
include monitoring environmental factors such as temperature, humidity, and lighting, as well as
detecting and preventing potential hazards like fire outbreaks and water shortages. By
automating the monitoring process using a combination of the GSM module, LCD, LDR, flame
sensor, water level indicator, lock, rain detector, and temperature and humidity sensors, poultry
farmers can benefit from real-time data collection, early warning systems, and remote control
capabilities.
The literature review will delve into the individual components of the automated poultry
monitoring system, discussing their functions, capabilities, and how they contribute to overall
6
farm management. The GSM module enables wireless communication and data transmission,
allowing farmers to receive alerts and updates remotely. The LCD provides a visual interface for
displaying important information, such as temperature, humidity levels, and system status. The
LDR (Light Dependent Resistor) helps monitor lighting conditions within the poultry house,
ensuring optimal levels for the flock's health and productivity. The flame sensor acts as a safety
measure, detecting any potential fire hazards. The water level indicator helps maintain adequate
water supply for the birds, while the lock ensures secure access to the poultry house. The rain
detector assists in managing environmental conditions during adverse weather, and the
temperature and humidity sensor provide crucial data for monitoring and adjusting the poultry
house's climate.
Furthermore, this chapter will explore the existing research and developments in integrating
these components into an integrated system. It will review studies that have employed data
analysis techniques, such as machine learning algorithms, to process the collected data and
provide actionable insights for farmers. The review will also investigate the practical
implementation of these systems, considering factors such as cost-effectiveness, scalability, and
ease of use.
In conclusion, this literature review aims to provide a comprehensive overview of the existing
knowledge and research in the field of automated poultry monitoring systems that incorporate
the GSM module, LCD, LDR, flame sensor, water level indicator, lock, rain detector, and
temperature and humidity sensor. By examining the current state of the art, identifying research
gaps, and exploring potential opportunities, I can contribute to the advancement of this
technology and offer valuable insights for poultry farmers, researchers, and industry
stakeholders.
7
The GSM module plays a crucial role in the automated poultry monitoring system as it enables
wireless communication and data transmission. By utilizing the Global System for Mobile
Communications (GSM) technology, this module establishes a network connection, allowing
poultry farmers to remotely access and control the monitoring system. Real-time alerts, updates,
and two-way communication can be facilitated through the GSM module.
The LCD serves as the visual interface in the automated poultry monitoring system. It provides a
display screen where important information such as temperature, humidity levels, system status,
and alerts can be presented. This component enhances accessibility and user-friendliness,
allowing farmers to quickly and easily access crucial information regarding the poultry farm's
conditions.
The LDR, or Light Dependent Resistor, is a sensor employed to measure light intensity within
the poultry house. It plays a significant role in controlling the lighting conditions necessary for
the health, growth, and productivity of the poultry. By detecting variations in light levels, the
LDR triggers adjustments to maintain optimal lighting conditions, ensuring the well-being of the
birds.
The flame sensor is a safety component integrated into the automated poultry monitoring system.
It utilizes infrared technology to detect the presence of flames or fire outbreaks within the
poultry house. Early detection and prompt response to potential fire hazards are made possible
by the flame sensor, safeguarding the welfare of the poultry and minimizing the risk of damage
to the facility.
8
2.2.5: WATER LEVEL INDICATOR:
The water level indicator is an essential component that monitors and manages the water supply
for the poultry. It utilizes sensors or probes to measure the water level in the poultry drinking
system or water reservoir. Continuous monitoring of the water level allows farmers to ensure a
constant and adequate water supply, promoting the well-being and productivity of the poultry.
2.2.6: LOCK:
The lock is a security feature integrated into the automated poultry monitoring system,
controlling access to the poultry house. Its purpose is to allow only authorized personnel to enter
the facility, protecting the birds from unauthorized entry and potential risks. The lock can be
operated manually or integrated with electronic access control systems for enhanced security
measures.
The rain detector is a component that detects the presence of rain or excessive moisture in the
vicinity of the poultry house, particularly in open or semi-open systems. By detecting rainfall,
the rain detector triggers necessary adjustments to maintain optimal environmental conditions for
the poultry. This includes regulating ventilation, controlling temperature, and managing humidity
levels.
Temperature and humidity sensors are critical components of automated poultry monitoring
systems. These sensors measure the ambient temperature and humidity levels within the poultry
house. The data collected by these sensors provide insights into the thermal comfort of the birds
9
and the overall environmental conditions. Monitoring and adjusting temperature and humidity
parameters ensure an optimal and stress-free environment for the poultry
In [3] the author did wearable wireless sensor that can detect the infected chickens. The overall
production, quality and economy can be improved by the system. Poultry sheds can be controlled
24 hours by automation. It is help to provide an optimum output by reducing man power in
poultry farming.
With the continuous advancements in technology a potential innovation, IoT is coming down the
road which is burgeoning as a ubiquitous global computing network where everyone and
everything will be connected to the Internet. IoT is continually evolving and is a hot research
topic where opportunities are infinite. Imaginations are boundless which have put it on the verge
of reshaping the current form of internet into a modified and integrated version. The number of
devices availing internet services is increasing every day and having all of them connected by
wire or wireless will put a powerful source of information at our finger tips. The concept of
enabling interaction between intelligent machines is a cutting-edge technology but the
technologies composing the IoT are not something new for us. IoT, as you can guess by its name,
is the approach of converging data obtained from different kinds of things to any virtual platform
on existing Internet infrastructure [4].
In [5] it stated that the chicken poultry is a crucial component of our nation's sustainable food
supply. The creation of an automated system for managing poultry can be highly beneficial for
the expansion of the poultry sector. In the current setup, the hens require a human presence to
manually provide them with food and water to keep the farm running. The proposed method can
take the position of the employee in charge of caring for the farm and feeding the chickens.
Consequently, the sector's labor issues were resolved, and the chicken industry introduced an
automatic procedure. The poultry farm and agricultural sectors can use the proposed system. The
goal of this project is to create a working prototype that can automatically water and feed
chickens while also keeping the farm clean. The customer can lead the poultry speedier and more
10
effectual. It is composed of automated devices like, Breadboards, timer Modules, Arduino, sun
gear mechanism and load cells to deliver food to the poultry. The automatic Poultry management
system is more effectual than physical process of poultry feeding. Thus, reduce the feeding time
and maintain the poultry and makes the poultry production better.
Furthermore in [6] it was stated that farming plays an important role in today's world and it
requires proper environmental and diet care. A smart system is needed to operate and monitor
animal farm remotely. Our project aims at providing basic needs such as feed and water
whenever required, maintaining the humidity and temperature of the farm, and also alerts the
user/owner when there is any intruder in the farm and detects the smoke in the farm. The overall
surveillance of the farm can be done by the IP camera installed in the farm. Therefore, our
project is an approach in which the farmers in the rural areas will be benefitted by automatic
monitoring and control of animal farmhouse environment. This kind of intelligent system can be
designed cost effectively by using microcontrollers and various kinds of sensors such as
ultrasonic sensors, DHT sensors, water level sensors and gas sensors with help of internet
connectivity. Hence it is the technical approach in which the farmers in the rural areas will be
benefitted by automatic monitoring and control of farm house environment which replaces the
human intervention at times.
In [7] the author stated that Nowadays, automation plays a very important role in everyday life.
IoT based poultry farming is useful in situations where remote monitoring and maintenance is
needed and this in turn modifies the conventional farm into a modern farm with various
automated features. Various factors that affect the health of chicken are monitored at regularly
interval to improve health and growth of chicken. This paper provides an insight on how to setup
an IoT based Smart Poultry Farming System using IoT components. The system uses Arduino
Nano for interfacing with different sensors to sense the values of specific parameters and
ESP8266 Wi-Fi Module to upload the data to the cloud. Various environmental factors are
sensed in the poultry management system, which includes temperature, ammonia content in the
air and light intensity. The system not just monitors these parameters, but also regulates them
effectively with the help of various automated techniques. The proposed work is useful to
farmers who follow conventional farming methods as they could easily access and control the
11
poultry farm remotely using their mobile phones thereby reducing the manual monitoring and
increasing the yield of the poultry farm.
Again in [3] IoT based Smart Poultry Farm will give a hassle free and better observation
experience to the user of the Poultry Farm. This system will make use of the sensors and
microcontroller unit to perform the said operations of feeding, water supply and temperature-
humidity observation which are the main causes for any kind of epidemic or diseases for poultry
birds. Introducing IoT in the system will benefit in providing ease of operation as well as real
time data observation through internet to the user.
In [8] Poultry Management is one major agriculture business. The big challenge in the poultry is
to identify the disease in the early stage and avoid to spread the disease to another. Most of the
cases it needs an intense labor and training. We propose an embedded system that can monitor
the poultry and distinguish the affected ones from the group. This will allow the users to detect
the sick units earlier and leads a cost effective solution for poultry industry. The initial target of
this paper is to develop an embedded IOT system connected with the server that can monitor the
poultry farms. The second target is to present the current work that has been done on sound
analysis for poultry industry. The third target is to describe the future work that can be done to
develop real-time IOT system.
More over the task of modern systems of heat supply in the poultry houses are the maintenance
of the necessary temperature parameters in the habitats of the poultry. On the basis of researches
of infrared heating systems in poultry house an engineering technique for calculating the
temperature regime in module for growing poultry has been developed. The module was
equipped with an infrared heater and an exhaust outlet and allows designing efficient infrared
heating systems in agricultural premises to ensure standard temperature regime. In this case, the
technique is only resolved when the conditions for providing the required temperature and air
speed parameters are met. If the temperature of the module tin changes from 16 °C to 35 °C, and
inflow air speed varies from 0.2 m/s to 0.3 m/s, the infrared heating system and the ventilation
system completely provide the normalized air temperature in the irradiation area. Based on an
algorithm using a developed technique a computer program was developed. This program
12
allows, through the use of a simple method of substituting input factors, to determine the
parameters of the temperature regime of the module for poultry breeding [9].
In [10] Poultry farming is one of the most important sectors in the agricultural industry that
participates in import substitution and has the highest innovation potential. To increase
competitiveness of enterprises it is necessary to implement process innovations in poultry
raising, maintenance and feeding. In order to increase the level of new technologies in business
entities, there is a need to develop a complex system for evaluation of economic efficiency of
innovative technologies with considerations for sector-specific requirements. Such system will
allow getting extended vision of influence from innovations onto competitiveness of business
entities involved in poultry farming.
In order to solve the problem of real-time monitoring of environmental data in broilers, the
author designs an intelligent handheld terminal based on Android, the environment temperature
and humidity that can pair of farm, illuminance and indoor harmful gas concentration undertake
real - time and remote wireless monitoring. The results show that: Operators can use handheld
terminals to timely access to the current temperature, humidity, lighting, carbon dioxide and
other concentrations of broiler farm data, Alarm of data exceeding the threshold value, at the
same time, real-time video monitoring is realized in the breeding environment. The system has
created a new model for managing mobile farms, Suitable for all kinds of farms, it has the
advantages of low research and development cost, strong expansion ability and easy
maintenance, Facilitate a wide range of promotion [11].
In [12] resent a framework for understanding the effects of automation and other types of
technological changes on labor demand, and use it to interpret changes in US employment over
the recent past. At the center of our framework is the allocation of tasks to capital and labor—the
task content of production. Automation, which enables capital to replace labor in tasks it was
previously engaged in, shifts the task content of production against labor because of a
displacement effect. As a result, automation always reduces the labor share in value added and
may reduce labor demand even as it raises productivity. The effects of automation are
counterbalanced by the creation of new tasks in which labor has a comparative advantage. The
introduction of new tasks changes the task content of production in favor of labor because of a
13
reinstatement effect, and always raises the labor share and labor demand. We show how the role
of changes in the task content of production—due to automation and new tasks—can be inferred
from industry-level data. Our empirical decomposition suggests that the slower growth of
employment over the last three decades is accounted for by an acceleration in the displacement
effect, especially in manufacturing, a weaker reinstatement effect, and slower growth of
productivity than in previous decades.
Beside in [13] the author summarizes a framework for the study of the implications of
automation and artificial intelligence on the demand for labor, wages, and employment. Our
task-based framework emphasizes the displacement effect that automation creates as machines
and AI replace labor in tasks that it used to perform. This displacement effect tends to reduce the
demand for labor and wages. But it is counteracted by a productivity effect, resulting from the
cost savings generated by automation, which increase the demand for labor in non-automated
tasks. The productivity effect is complemented by additional capital accumulation and the
deepening of automation (improvements of existing machinery), both of which further increase
the demand for labor. These countervailing effects are incomplete. Even when they are strong,
automation in- creases output per worker more than wages and reduce the share of labor in
national income. The more powerful countervailing force against automation is the creation of
new labor-intensive tasks, which reinstates labor in new activities and tends to increase the labor
share to counterbalance the impact of automation. Our framework also highlights the constraints
and imperfections that slow down the adjustment of the economy and the labor market to
automation and weaken the resulting productivity gains from this transformation: a mismatch
between the skill requirements of new technologies, and the possibility that automation is being
introduced at an excessive rate, possibly at the expense of other productivity-enhancing
technologies.
Additionally, Informatization can effectively improve the production and management efficiency
in the poultry farming process. In his study, a management system was designed to realize the
acquisition, transmission, storage, and management of information, and upload the data to the
cloud database to increase the flexibility and scalability of the system. On the basis of realizing
production management functions, the system also incorporates an office management module,
thus forming a complete data chain in production activities, so as to conduct farming data mining
14
and accurate traceability in the next stage of the work. In particular, the system also adds poultry
disease detection module supports to achieve the purpose of healthy farming. The research
provides an information management plan for the intensive poultry farming model, and the
designed management system may be the starting point of a future intelligent poultry farming
management system based on cloud services and big data technology [9].
In [14] the author stated the thermal comfort is a decisive factor in broiler chicken production, as
it defines the relationship between food consumption and meat production. Temperature and
humidity are major parameters for thermal balance. In spite of available automation technology,
poultry farming is still dependent on an expert to observe the process and set up control
parameters accordingly. Besides being inefficient, this is also uncomfortable and error-prone.
This article proposes a framework for control, supervision, and decision-making in poultry
farming. We initially set up a plant architecture that enables us to take advantage of emerging
modern technologies, such as sensor networks, control theory, and remote monitoring, to handle
temperature and humidity inside a poultry house. Then, we present the steps of modelling,
synthesis, and implementation of a controller that observes events in the plant and commands the
actuators in a minimally restrictive, controllable and non-blocking way, while complying with a
set of operational requirements. Our final result provides a dual-channel web-based supervision
system that shows the process status remotely for users and allows them to interfere with control,
whenever convenient.
This unit powers most of the system, that is every part of the system except the alternating
current (AC) loads. It converts AC voltage supplied from the main grid to a regulated DC
voltage sufficient to power the microcontrollers and components that make up the circuit. The
Block diagram of a power supply unit is depicted in figure 2.1 [15] and a breakdown of each
block follows.
15
Figure 2.1 Block Diagram of Power Supply Unit
A step-down transformer shown in figure 2.2 converts high alternating current (AC) from the
primary winding to low alternating current (DC) in the secondary winding. The transformer turns
high voltage, low current electricity into low voltage, high current power because the secondary
voltage is smaller than the main voltage [16]. They are classified into various types: single-phase
step-down transformer, center phase step-down transformers, and multi-tapped step- down
transformers. They are used in power transmission lines, welding equipment, voltage stabilizers
and inverters, etc.[17]. The transformer turn ratio is approximately proportional to the voltage
ratio as shown in equation 2.1 below
Vp Np
n= =
Vs Ns
……… (2.1)
where Vp is the primary low voltage (LV) voltage, Np number of turns on the primary
side, Vs is the secondary side high voltage (HV) voltage and Ns is the number of turns on the
secondary side. This means energy flows from the HV to the LV side [16]. The voltage is
reduced from the main (input voltage) to the secondary voltage (output voltage). This equation
may be rearranged to provide the output voltage formula (i.e., secondary voltage). This is also
known as the step-down transformer formula [18] as shown in equation 2.2.
Ns ×Vp
Vs=
Np
(2.2)
16
Figure 2.2 A step-down transformer showing its windings
2.4.3: DIODE
A diode is a two-terminal semiconducting device that permits current to flow in one direction
while restricting current flow in the opposite direction. It also has low resistivity in one direction
and high resistivity in the opposite direction. it acts as an insulator when it is reverse biased [19].
There are various types of diodes but each has a cathode (-) and anode (+). A diode is formed by
connecting two equally doped N-type and P-type semiconductor materials. When these two
materials are joined together, they form another small layer in-between them called the
depletion layer [20]. This is because the N-type layer contains excess electrons and the P-
type layer has surplus holes that both seek to disseminate into each other, resulting in a high
resistance barrier between the two materials. This layer of depletion needs to be broken if the
current has to pass through a diode [21]. The forward biased mode is activated when the anode
and cathode are supplied with positive and negative voltage respectively which means the
current is allowed to flow, and when it is in the opposite, its reverse bias. The voltage dropped
across a conducting forward-biased diode is called the forward voltage and reverse voltage for
reverse-biased [20]. The maximum reverse-bias voltage that a diode can withstand without
“breaking down” is called the Peak Inverse Voltage, or PIV rating [21]. Diodes can be used in
circuits like; rectifier circuits, signal limiters, switches, etc.
Table 2.1 shows the specifications of the 1N4007 diode and figure 2.3 shows a full-
wave bridge rectifier
1 Current 1A
17
5 Non-repetitive peak current 30A
Both D3 and D1 are forward biased during the positive half cycle of the input signal whereas D2
and D4 are reverse biased. D2 and D4 are forward bias during the negative half cycle, whereas
D1 and D3 are reverse biased. Although the secondary winding polarity has reversed, the current
through the load is still in the same direction.
2.4.4: CAPACITORS
A capacitor (figure 2.4) is an electrical component that stores electrical energy in an electrical
field. As a voltage is placed across it, it stores an electric charge and releases it to the circuit
when needed [22]. A capacitor consists of two parallel conductors separated by a dielectric
material, when a voltage source is applied across the capacitor, the capacitor plate attached to the
positive side of the source becomes positively charged and the one attached to the negative
becomes negatively charged which causes a difference in charging level between the two plates
[23]. The charges cannot migrate from one plate to another due to the presence of dielectric
between the conductors. An electric potential difference appears across the plates, and the
voltage that appears across the capacitor rises until it becomes equal to the voltage of the
connected voltage source [23]. Capacitance of a capacitor is measured in farad ‘F’ and the
factors that affect capacitance include; plate area, plate separation and the dielectric material.
Ultra-capacitors, special purpose capacitors, tantalum capacitors, and film capacitors are types of
capacitors [23].
18
Figure 2.4 A Capacitor
The output of the rectifier has an AC portion (ripple voltage) and an average DC
voltage. A filter capacitor is used to smoothen the pulsating DC output after
rectification by reducing the amount of ripple voltage to an acceptable level in order to
supply a nearly constant DC voltage to the load. Figure 2.5, [24] shows the pulsating
DC output before filtering (grey dotted line) and after (red continuous line).
Figure 2.5 A Graph Showing the Filtered Output of the Power Supply
19
Figure 2.6 A BJT Voltage Regulator
20
Figure 2.9 Pinout of DHT11 Sensor
5 Current 0.3mA
The mechanism behind the working of the LDR is photo-conductivity. When the surrounding of
21
the LDR is dark, its resistance increases to several Mega ohms (MW) which significantly limits
current flow [38]. However, when the area around the photo-resistor is bright, photons with
greater energy are absorbed, electron-hole pairs are formed. The subsequent carriers of free
charge conduct electricity, thus lowering the resistance [32]. Therefore, a non-linear relationship
exists between light intensity and resistance for photo-resistor.
Rain sensor shown in figure 2.13 is one kind of switching device which is used to detect the
rainfall. It works like a switch and the working principle of this sensor is, whenever there is rain,
the switch will be normally closed.
22
Figure 2.13: A Rain Sensor
23
Microcontroller ATmega328P – 8 bit AVR family
microcontroller
Operating Voltage 5V
Recommended Input Voltage 7 - 12V
EEPROM 1 KB
Frequency (Clock Speed) 16MHz
CHAPTER 3
METHODOLOGY
3.1: INTRODUCTION
This chapter present the methodology that will be use for the design and construction of an
automatic poultry monitoring system that can monitor the temperature and humidity level, door
security, drinker water level indicator, lighting and rainfall in that specific location remotely via
the use of various sensors in order to save energy and cost. It also provides recommendation for
future improvement and application in the poultry industry.
24
the GSM module. Then the system refreshes and displays the temperature, humidity, water
level, door security, rainfall sensor and light intensity readings.
START
SENSORS
DECISION ACTUATOR
END
Figure 3.1 Flowchart for Farm Automation System
The C and C++ programming languages are supported by the Arduino IDE. Userwritten code
necessitates the use of two (2) essential keywords (functions) for the initialization of an Arduino
sketch file and the loop of thereal program. Some of the keywords include setup(), and loop ().
The first function is setup(), which is usually used to initialize variables and settings. Loop() is a
25
function that comprises a block that the user would like to call/execute on the Arduino board
repeatedly. Figure 3.2 depicts the Arduino IDE with the basic setup() and loop() features.
26
3.2.3: USER INTERFACE
The user interface is the link between the poultry cage and the user; it allows the user to issue
commands, which the microcontroller processes and outputs. GSM module is basically a GSM
Modem (SIM 900) connected to a PCB with different types of output taken from the board.
27
5V
POWER
SUPPLY
LIGHT SENSOR
RAINFALL
SENSOR LCD DISPLAY
Arduino Mega
TEMPERATURE
SENSOR
WATER LEVEL
INDICATOR
SENSORS USER
INTERFACE
GSM
FLAME DOOR
SENSOR SENSOR
Module
I. Step-Down Transformer - The transformer is the first stage of the power supply. It will be
connected to the main power grid which is rated to be 220 Volts. The microcontroller,
28
LDR, DHT11 sensor, Water level indicator sensor, Rainfall Sensor and Flame sensor, all
require 5V DC. The calculations detailed below led to the decision to utilize a 1.5A 12V
transformer for the solenoid lock and a 2A 15V (stepped down to 5V using a voltage
regulator) transformer for the other components. The turns ratio between the primary and
secondary side of a transformer is as shown in Equation 3.1 below.
Vp
n= (3.1)
Vs
220
n=
15
= 220:15
The current values of the DH11, Flame sensor, LDR, Rainfall sensor, Water level indicator,
buzzer and were taken from Table 3.1, Table 3.2, Table 3.3, Table 3.4, Table 3.5, Table 3.6 and
Table 3.7 below respectively.
For 5V components;
29
𝑰𝑳𝒐𝒂𝒅(𝟓𝑽) = 20mA + 600mA + 50mA + 30mA + 15mA + 5mA+ 0.3
II. Rectifier - In this project, a full-wave bridge rectifier will be utilized to convert the
stepped-down voltage at the secondary winding of the transformer from VAC to VDC
(as shown in figure 3.9). It consists of four 1N4001 diodes. The choice of these diodes
was influenced based on their peak inverse voltage. Calculation of the maximum
secondary voltage is done by multiplying the root mean square voltage by √2. This is
shown in Equation 3.3.
For full-wave Peak Inverse Voltage (PIV) = 2Vmax (for 5V power supply)
This method of rectification makes use of both cycles (positive and negative cycles). When the
cycle is positive the diodes D1 and D4 are forward biased while D2 and D4 are reversed bias
and the opposite happens for the negative cycle.
30
III. Filter capacitor - The output of the rectification stage is passed through a filter to provide
a good smooth pulsing DC output. This filter ensures that the regulated DC voltage has
less than 9% ripples in order to be used as a power supply. A capacitor is utilized in this
circuit to filter the ripples. To find the ideal capacitor for the circuit we use equation 3.4
I
C= (3.4)
2 πFV
Load Current
C=
2 π (Frequency)(Voltage)
C=0.000458 F
31
VARIABLE REGULATOR(LM317)
1N4007
FIXED REGULATOR(7805)
3 2 1 3
TR1 RECTIFIER VI VO VI VO
GND
ADJ
2
R1
BATTERY TERMINAL
10k
R4
MAINS INDICATOR
R3 D5 240 12.0V
VSINE TRAN-2P2S 1k 1N4007 C1
D9
470uF
C3 RV2 C5
470uF 10uF C4
470uF
93%
100k
Figure 3.6: Power Supply Circuit Diagram of the Automated Poultry Monitoring System
The power supply circuit diagram showcases the arrangement and connections of the power
source, voltage regulators, capacitors, and other components involved in providing the necessary
electrical power to the automated poultry monitoring system. Each component is represented by
its respective symbol, and the flow of power is indicated through appropriate wiring connections.
This comprehensive circuit diagram offers an overview of the power distribution within the
system, ensuring stable and reliable operation.
32
D1(K)
VALUE=12v
R3
Door Lock
1k
D1
HUMIDITY AND TEMPERATURE Q2
BC547
+5V
4.7K
U1
1
VDD
2 > 60.0
Hum 4
DATA
38.0
GND
%RH °C
DHT11
+5V
AREF
13
13
12 + -
ARDUINO
RESET 12
11
~11
10
5V ~10
9
GND OUT Vcc ~9
8
SIMULINO
8
POWER
+5V GND
www.TheEngineeringProjects.com
Flame Sensor
ATMEGA328P
7
7
DIGITAL (PWM~)
6
~6
buzzer
ATMEL
A0 5
A0
ANALOG IN
~5
A1 4
Light Detector
A1
A2
A2 ~3
4
3 Hum
water A3
A3 2
2
A4 1
A4 TX > 1
A5 0
A5 RX < 0
www.arduino.cc
blogembarcado.blogspot.com
SIMULINO UNO
1
LDR1 TestPin
www.TheEngineeringProjects.com TestPin
TORCH_LDR
Rain Detector
+5V
2
R2
water
10k +5V
Flame Sensor
Sim900 Gsm Module
Power BTN
S + - www.TheEngineeringProjects.com NEXT
STATUS
buzzer
TestPin
SIM900D ON
(1) Water Sensor TXD
VALUE=12v
RXD
S2-1041Y-Z097C
R1
1k
CE0980
Q1
BC547
SIM Card
Buzzer Circuit
TheEngineeringProjects.com
The circuit diagram showcases the interconnection of the GSM module, LCD, LDR, flame
sensor, water level indicator, lock, rain detector, and temperature and humidity sensor within the
system. Each component is represented by its respective symbol and is linked to other
components through appropriate wiring connections. This comprehensive circuit diagram offers
an overview of how the system functions and highlights the communication pathways between
the components.
33
1 Operating Voltage 3.3V – 5.5V
2 Operating Current 0.3mA (measuring)
60mA (standy)
34
2 Current 20mA
35
2 Operating Current <20mA
3.5: CONCLUSION
A detailed description the various components that will be used, as well as their functions in the
control system was discussed. The approaches that will be used to design the system were also
highlighted. Calculations were carried out to determine the rating of the power supply employed
in this project. Furthermore, the approaches that will be included using software tools such as
the Arduino IDE, proteus, as well as the block diagram and flowchart.
36
CHAPTER 4
4.1: INTRODUCTION
This chapter presents the implementation details and results of the project, which aimed to
address the problem statement or research question identified in Chapter 1. Building upon the
theoretical framework discussed in Chapter 2 and the methodology described in Chapter 3, this
chapter provides a comprehensive overview of how the project was executed and the outcomes
achieved.
Overall, this chapter aims to provide a comprehensive account of the implementation process and
the results obtained, it serves as the culmination of the entire project, demonstrating the
successful execution of the research design and providing valuable insights to contribute to the
existing body of knowledge in the field.
4.2: IMPLEMENTATION
4.2.1: Breadboard
The implementation of the automated poultry monitoring system was achieved on the
breadboard. In addition, all working modes of the project functioned as designed, meaning the
system was able to provide feedback through the GSM module and display information when
requested, including emergency cases. Feedback on the state of the system was successfully
achieved. The system displayed temperature, humidity, LDR (Light Dependent Resistor), flame
sensor, lock, water level, and rainfall sensor readings on the LCD display and through SMS
messages. Figure 4.1 and 4.2 illustrate the operation of the system on breadboard.
37
Figure 4.1: Flame Sensor Detecting Flame On Breadboard
38
4.2.2: Vero board
The implementation of the automated poultry monitoring system was achieved on the Vero
board. In addition, all working modes of the project functioned as designed, meaning the system
was able to provide feedback through the GSM module and display information when requested,
including emergency cases. Feedback on the state of the system was successfully achieved. The
system displayed temperature, humidity, LDR (Light Dependent Resistor), flame sensor, lock,
water level, and rainfall sensor readings on the LCD display and through SMS messages. Figure
4.3 illustrate the operation of the system on Vero board.
The PCB (Printed Circuit Board) design for the automated poultry monitoring system is a crucial
component of the project, as it serves as the foundation for integrating and connecting various
electronic components. The PCB design ensures proper electrical connections, efficient signal
routing, and compactness of the system. Figure 4.4 and 4.5 below shows the pcb design of the
system.
39
Figure 4.4: PCB Design
40
4.2.4: SIMULATION
Figure 4.6 below shows a picture of how the system is been programmed and simulated
41
4.2.5: CONTROL BOX
4.3: RESULTS
The results of the numerous test carried out on the system were successful as illustrated in
section 4.2. the functionalities achieved include;
2. Humidity monitoring: The system effectively measures and monitors the humidity levels
within the poultry environment.
3. LDR (Light Dependent Resistor) functionality: The system incorporates an LDR sensor
to detect and respond to changes in light levels.
4. Flame sensor functionality: The system is equipped with a flame sensor to detect and
alert in the event of a fire or flame.
42
5. Lock control: The system has the capability to control and manage locks, ensuring
appropriate access to the poultry area.
6. Water level monitoring: The system monitors and alerts about the water level, ensuring
an adequate water supply for the poultry.
7. Rainfall sensor functionality: The system includes a rainfall sensor to detect and provide
information about the amount of rainfall in the poultry environment.
8. LCD display: The system displays relevant information, such as temperature, humidity,
sensor readings, and system status, on an LCD screen.
9. GSM module integration: The system effectively integrates with a sim900 GSM module
to send and receive information, including feedback, alerts, and system status updates
through SMS messages.
Table 4.1 shows the time it takes for each function to be executed.
The result of table 4.1 was obtained using an MTN network in communication lab, Nile
University of Nigeria. Although MTN provides the best system response in Block A of Nile
43
University of Nigeria, it was observed that the network yielded unsatisfactory results in other
areas within the block.
The voltage levels of the sensors when they are high and low are provided in Table 4.2 below.
Table 4.2: Voltage levels of the sensors when they are high and low
44
4.4: BILL OF ENGINEERING MEASUREMENT AND EVALUATION
(BEME)
45
22. Cables 3000 3000
Total: 110,180
CHAPTER FIVE
5.1: SUMMARY
The project aimed to design and implement an automated poultry monitoring system with utmost
efficiency. The project achieved its objectives, demonstrating a comprehensive understanding of
various aspects related to the system.
The project encompassed meticulous circuit design, including the careful selection of suitable
component values to ensure reliability and optimal performance. The microcontroller was
programmed to execute the desired tasks, showcasing proficiency in programming and control
systems.
Integration of specific sensors such as the LDR, rainfall sensor, temperature and humidity sensor,
water level indicator sensor, flame sensor, and door sensor contributed to the successful
implementation of the system. The selection and appropriate setup of these sensors reflected a
sound understanding of their functionalities and their significance in monitoring poultry farm
conditions.
A user-friendly interface was provided through an LCD display, enabling clear visualization of
essential information, including temperature, humidity, sensor readings, and system status.
Additionally, the incorporation of the sim900 GSM module allowed for remote monitoring and
control of the poultry farm, emphasizing efforts to enhance functionality and convenience.
Overall, the project demonstrated a formal and structured approach in designing and
implementing an automated poultry monitoring system. It showcased a deep understanding of
circuit design, sensor integration, programming, and system implementation, resulting in the
successful realization of the project's objectives.
46
5.2: PROBLEM ENCOUNTERED
During the course of the project, I encountered a major challenge that required careful attention
and problem-solving. The issue revolved around the integration and calibration of the various
sensors used in the automated poultry monitoring system. Some of the major problems are as
follows:
I. Ensuring the accuracy and reliability of the sensor readings. Each sensor had specific
calibration requirements and tolerances, which needed to be carefully accounted for in
the system design. Achieving consistent and precise measurements, especially for
temperature, humidity, and water level, proved to be particularly challenging.
II. I faced difficulties in synchronizing the data from multiple sensors and ensuring their
proper functioning within the system. This involved meticulous wiring, connections, and
programming to establish effective communication and coordination among the different
sensor components.
III. I encountered certain compatibility issues between the microcontroller and the GSM
module. These problems affected the system's ability to send and receive SMS messages
reliably, hindering the remote monitoring and control functionality that was intended.
5.4: RECOMMENDATION:
Based on the completion of the project and the challenges encountered, I have several
recommendations for further improvement and enhancement of the automated poultry
monitoring system:
47
achieved by optimizing wiring connections, refining communication protocols, and
conducting thorough compatibility testing.
II. Integrate additional features: Consider incorporating additional features that could further
enhance the functionality and usability of the system. For example, incorporating data
logging capabilities can provide redundancy and historical data for analysis.
III. Improve user interface: Focus on improving the user interface of the system, particularly
the LCD display. Make it more intuitive, visually appealing, and user-friendly. Display
relevant information clearly and consider incorporating graphical representations for
easier interpretation.
IV. Conduct extensive field testing: Perform comprehensive field testing of the system in a
real poultry farm environment to validate its performance, reliability, and durability. This
will provide valuable feedback and insights for further refinement and optimization.
V. Document and share the project findings: Compile a detailed documentation of the
project, including system design, implementation, challenges faced, and solutions
applied. Share this knowledge with the academic community or relevant industry
professionals to contribute to the field of automated poultry monitoring.
5.5: CONCLUSION
At the end of the project, I was able to achieve the aim of the project which can provide an easy
means for modern farming.
48
REFERENCES
[1] A. .Olufemi, P. Adegbie, and F. Festus, ‘Working Capital Management Impact on
Economic Value Addition of the Poultry Industry in Nigeria’, Int. J. Sci. Res. Publ. IJSRP, vol.
10, no. 10, pp. 322–340, Oct. 2020, doi: 10.29322/IJSRP.10.10.2020.p10645.
[2] H. Heise, A. Crisan, L. Theuvsen, H. Heise, A. Crisan, and L. Theuvsen, ‘The Poultry
Market in Nigeria: Market Structures and Potential for Investment in the Market’, 2015, doi:
10.22004/AG.ECON.207011.
[3] M. Oviya, V. Derry, B. Pavithira, and S. Nesavi, ‘Auto maintenance of poultry farm’, Int.
J. Adv. Res. Ideas Innov. Technol., Mar. 2020, Accessed: Feb. 03, 2023. [Online]. Available:
https://www.semanticscholar.org/paper/Auto-maintenance-of-poultry-farm-Oviya-Derry/
54f7b78bf729df7c5ed335a9f6d0d160da9cbecd
[6] Chaya, Mrunalini, Nischitha, and R. P. Pawar, ‘AN IOT ENABLED AUTOMATED
ANIMAL FARMING’, 2020. Accessed: Feb. 03, 2023. [Online]. Available:
https://www.semanticscholar.org/paper/AN-IOT-ENABLED-AUTOMATED-ANIMAL-
FARMING-Chaya-Mrunalini/76c57ed4120906266b42d723be9dd94e7366a4f5
[7] Ananya and S. Manohar, ‘IOT Based Smart Poultry Farming’, 2022. Accessed: Feb. 03,
2023. [Online]. Available: https://www.semanticscholar.org/paper/IOT-Based-Smart-Poultry-
Farming-Ananya-Manohar/022e8293c44ac5a2dd3728b2a3d7dc5179aac2c6
49
[8] A. A. G. Raj and J. G. Jayanthi, ‘IoT-based real-time poultry monitoring and health status
identification’, 2018 11th Int. Symp. Mechatron. Its Appl. ISMA, pp. 1–7, Mar. 2018, doi:
10.1109/ISMA.2018.8330139.
[9] N. Spodyniuk and A. Lis, ‘Research of Temperature Regime in the Module for Poultry
Growing’, Cham, 2021, vol. 100, pp. 451–458. doi: 10.1007/978-3-030-57340-9_55.
[12] D. Acemoglu and P. Restrepo, ‘Automation and New Tasks: How Technology Displaces
and Reinstates Labor’, J. Econ. Perspect., vol. 33, no. 2, pp. 3–30, May 2019, doi:
10.1257/jep.33.2.3.
[13] D. mname Acemoglu and P. mname Restrepo, ‘Artificial Intelligence, Automation and
Work’, SSRN Electron. J., 2018, doi: 10.2139/ssrn.3098384.
50
[18] ‘Step Down Transformer: Definition, Diagram & Working Principle | Electrical4U’.
https://www.electrical4u.com/step-down-transformers/ (accessed Feb. 03, 2023).
[19] ‘Electric Power Transformer Engineering | James H. Harlow | Taylor & Fr’.
https://www.taylorfrancis.com/books/edit/10.1201/b12110/electric-power-transformer-
engineering-james-harlow (accessed Feb. 03, 2023).
[21] A. Kitai, Principles of Solar Cells, LEDs and Diodes: The Role of the PN Junction. John
Wiley & Sons, 2011.
[22] R. Wang, F. Wang, R. Lai, P. Ning, R. Burgos, and D. Boroyevich, ‘Study of Energy
Storage Capacitor Reduction for Single Phase PWM Rectifier’, in 2009 Twenty-Fourth Annual
IEEE Applied Power Electronics Conference and Exposition, Feb. 2009, pp. 1177–1183. doi:
10.1109/APEC.2009.4802812.
[23] ‘Capacitor Basics, Working and Different Types of Capacitors with Their Applications in
Circuits’. https://components101.com/articles/transistor-basics-types-and-working-in-circuits
(accessed Feb. 03, 2023).
[24] ‘Introduction to Diodes And Rectifiers | Diodes and Rectifiers | Electronics Textbook’.
https://www.allaboutcircuits.com/textbook/semiconductors/chpt-3/introduction-to-diodes-and-
rectifiers/ (accessed Feb. 03, 2023).
[26] T. Agarwal, ‘Types of Voltage Regulators : Working and Their Limitations’, ElProCus -
Electronic Projects for Engineering Students, Apr. 20, 2016. https://www.elprocus.com/types-of-
voltage-regulators-and-working-principle/ (accessed Feb. 04, 2023).
51
[27] ‘Microcontrollers - Overview’.
https://www.tutorialspoint.com/microprocessor/microcontrollers_overview.htm (accessed Feb.
04, 2023).
[32] ‘(PDF) Mechatronic System: Automated Window Curtain using LDR | wan amir fuad
wajdi othman and W. Othman - Academia.edu’.
https://www.academia.edu/40791925/Mechatronic_System_Automated_Window_Curtain_using
_LDR (accessed Feb. 04, 2023).
[37] MACFOS, ‘Buy Water Level Depth Detection Sensor For Arduino | Robu.in’, Robu.in |
Indian Online Store | RC Hobby | Robotics. https://robu.in/product/water-level-sensor-depth-
detection-water-sensor-arduino/ (accessed Feb. 07, 2023).
52
[38] ‘Buzzer : Working, Types, Circuit, Advantages & Disadvantages’.
https://www.elprocus.com/buzzer-working-applications/ (accessed Feb. 07, 2023).
53