Professional Documents
Culture Documents
Acknowledgement
First of all we would like to thank Jimma University Institute of Technology for giving us such
kinds of chance to do this project and also we would like to thank our AdvisorMr.Mulugta Gonfa
for his informative and useful guidance and suggestion throughout the journey for project design.
and we would like to thank the Faculty of Electrical and Computer Engineering.
i
COMPUTER BASED ANIMAL FEEDING SYSTEM
Table of Contents
Acknowledgement......................................................................................................i
List of Tables........................................................................................................iv
List of figures........................................................................................................v
Acronyms.................................................................................................................vi
Abstract...................................................................................................................vii
CHAPTER ONE........................................................................................................1
Introduction...........................................................................................................1
1.1Background...................................................................................................1
1.2 Statement of Problem......................................................................................1
1.3 Objectives........................................................................................................2
1.3.1 General Objectives.......................................................................................2
1.3.2 Specific Objectives.......................................................................................2
1.4 Scope of The Project...................................................................................2
1.5 Outline of The Project.....................................................................................2
CHAPTER TWO.......................................................................................................3
Literature Review..................................................................................................3
CHAPTER THREE...................................................................................................4
Design Methodology and System Prototype Procedure........................................4
3.1 Methodology....................................................................................................4
3.2 System Block Diagram....................................................................................5
3.3 Working Principle...........................................................................................6
3.4 Material Used..................................................................................................7
3.4.1 Software Requirement:.............................................................................7
3.5 Specification of The Material..........................................................................8
3.5.1. Arduino UnoR3.......................................................................................8
ii
COMPUTER BASED ANIMAL FEEDING SYSTEM
3.5.2 LCD........................................................................................................8
3.5.3 Servo Motor..................................................................................................9
3.5.5 PIR Sensor..................................................................................................10
3.5.6 Buzzer.........................................................................................................11
CHAPTER FOUR...................................................................................................12
Simulation Result and Discussion.......................................................................12
4.1 Simulation Result..........................................................................................12
CHAPTER FIVE.................................................................................................15
Conclusion and Recommendation.......................................................................15
5.1 Conclusion.....................................................................................................15
5.2 Recommendation...........................................................................................15
References...........................................................................................................16
iii
COMPUTER BASED ANIMAL FEEDING SYSTEM
List of Table
Table 1.......................................................................................................................7
iv
COMPUTER BASED ANIMAL FEEDING SYSTEM
List of figures
v
COMPUTER BASED ANIMAL FEEDING SYSTEM
Acronyms
PWM: - Pulse Width Modulation
vi
COMPUTER BASED ANIMAL FEEDING SYSTEM
Abstract
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 farming. This system should
provide feed asrequired. This project provides a computer based smart animal feeding and
protecting system In Countries like Ethiopia, animalsuch as cows have a traditional way of
feeding and protecting ways, this cultural feeding make many bad effects in the farming and
dairy products.
Inthis project hardware and software systems used together to feed and protect the animals.
Hardware device Arduino microcontroller is used as output device andMatlab is used as a
programming tool in software part.Without going to animals a person can feed animals and
protect anything that near to the animals.
Overall the project focusses on making easy feeding of the animals for Countryside’s and
industries. Also the system is used for protection of animals
vii
COMPUTER BASED ANIMAL FEEDING SYSTEM
CHAPTER ONE
Introduction
1.1Background
There has been strong relationship between humans andanimals throughout the centuries. People
depend on animals inmany aspects of life such as food, clothes and other products that support
and facilitate our life.Therefore take care of animals is very important.The livestock industry
could greatly be benefitted from a sophisticated system capable ofcontinuouslymonitoring the
health of animals, aggregating the data and reporting the obtained results to owner. Less
developed countries like Ethiopia the economy mainly depend on agriculture and animals have
the major role in this system. So the feeding and protecting ways of these animals have to be
good and maintain regularly.This project also depend on pir sensor to detect some moving
things. The master sends command to the Arduinomicro controller to feed the animals without
coming near to the animals. [1]
1|Page
COMPUTER BASED ANIMAL FEEDING SYSTEM
1.3 Objectives
1.3.1 General Objectives
The general objective of this CBTP project is to design and simulate a computer based animal
feeding and controlling system.
Computerized based animal feeding and controlling system is used for diary producing
industries and also used for any farmers that use animals for agricultural activists.
2|Page
COMPUTER BASED ANIMAL FEEDING SYSTEM
CHAPTER TWO
Literature Review
Nobody knows when deliberate animal feeding systems developed, as it happened before the
advent of writing. Techniques of animal husbandry developed spontaneously some 12,000 years
ago in several areas of the so-called ‘Fertile Crescent’, an ancient area of early human
civilization stretching between Mesopotamia, Assyria and across to Egypt. The ability to create a
stable food supply from animals allowed the world’s population to grow, residential centers to
develop and cities to emerge. The domestication of wild crops and livestock, and the introduction
of irrigation and the plough meant that there was enough to feed a world population of over 200
million by the time of the birth of Christ. As the human population grew and societies became
increasingly urbanized, plant and animal agriculture became more organized, efficient, and
productive, with periodic game-changing advancements in technology and innovation. Once
animal production practices transitioned from free-range grazing to confined housing, and
animals. [2]
Lely vector in 2016 makes a machine that called LelyJuno. This machine takes over the
repetitive work of pushing the feed multiple times a day. By pushing feed regularly, it is always
within the cows reach. Every cow even those lower in rank can eat the roughage it needs for
optimal rumen health and growth. For extra flexibility the machine itself can be equipped with
several options. These include a smart skirt lifter that minimizes wear and tear and allows left
and right pushing for increased capacity .Barn door control can also be implemented in case
animals are housed in different barns. Furthermore electric bumper protection and a led light for
enhanced visibility during the night can also be included. The standalone machine moves along
the feeding alley automatically .based on the routes that predefined, it follows the feed fence
while its rotating lower mechanism pushes the feed towards it. Controlling the Juno is easy with
the Lely control plus app for mobile devices.The limitation of this machine is that it does not
provide water. [3]
3|Page
COMPUTER BASED ANIMAL FEEDING SYSTEM
CHAPTER THREE
3.1 Methodology
The idea of this project is conducted through a study of the literature with a focus on the single
units of the systems and their integration. This project is aimed at solving societal problem by
taking into consideration Technology appropriateness, cost, impact on environment, and etc.
The generalized methodology used in this project is shown by flow chart below.
4|Page
COMPUTER BASED ANIMAL FEEDING SYSTEM
Food
Serial communication Water
Auger
Bucket
Buzzer
Arduino Uno Servo
motor
Servo
motor
Sliding
PIR sensor
object Dit
ch
5|Page
COMPUTER BASED ANIMAL FEEDING SYSTEM
The Matlab software uses a command script to accept input from the user. It contains the
program to either open the motor or close. Continuously asks the user to input numbers when the
user inters100 the food providing servo motor will start. When the user enters 101 the motor will
start closing.When the input is 102 thebucket become ON otherwise if the input is 103 the bucket
become OFF. Then providing of food and water can takeplace.
The Arduino microcontroller is connected serially with a MATLAB using USB cable and
virtually serial port emulator, so it accept inputs from matlab through USB and command the
motor to rotate .The servo motor connected with auger inclined box type so as the motor rotate
the auger start rotate to transfer the food to animal through slider. After they finish eating the
food, they will be provided water by using a bucket.This bucket is connected with another servo
motor so it can rotate and take the water from the storage through this bucket. This water
provided to the animals through ditch.
Other feature in this system is the protecting of the animals, this is done using PIR sensor to
detect whether there are some moving things or not so the output goes to Arduino
microcontroller. If there is some movement this Arduinomicrocontroller makes a buzzer ON.
6|Page
COMPUTER BASED ANIMAL FEEDING SYSTEM
Proteus7
Arduino 1.0.6 IDLE
MATLAB 2015a
Virtual Serial Port Emulator (VSPE).
7|Page
COMPUTER BASED ANIMAL FEEDING SYSTEM
3.5.2LCD
LCD is an electronic display system. A 16x2 LCD display is a very basic system and commonly
used in varies device and circuits. It has 16 column and 2 rows. Lot combination occurred like
8*1, 8*2, 10*2 and 16*1.
8|Page
COMPUTER BASED ANIMAL FEEDING SYSTEM
In this project, we will connect the power and ground pins of servo motor directly to the bread
board 5V and GND pins respectively.
9|Page
COMPUTER BASED ANIMAL FEEDING SYSTEM
3.5.4Resistor
A resistor is an electrical component that limits or regulates the flow of electrical current in an
electronic circuit. Resistors can also be used to provide a specific voltage for an active device
such as a transistor. All other factors being equal, in a direct-current (DC) circuit, the current
through a resistor is inversely proportional to its resistance and directly proportional to the
voltage across it. This is the well-known Ohm’s law. In alternating-current (AC) circuits, this
rule also applies as long as the resistor does not contain inductance or capacitance.
Figure 6 resistance
10 | P a g e
COMPUTER BASED ANIMAL FEEDING SYSTEM
3.5.6Buzzer
A buzzer or beeper is an audio signaling device, which may be mechanical, electromechanical or
piezoelectric. Typical uses of buzzers and beepers include alarm devices, timers, and
confirmation of user input such as a mouse click or keystroke. While technology advancements
have caused buzzers to be impractical and undesirable, there are still instances in which buzzers
and similar circuits may be used. Present day application includes novelty uses, educational
purposes, electronics metronomes and others.
Figure 8 Buzzer
11 | P a g e
COMPUTER BASED ANIMAL FEEDING SYSTEM
CHAPTER FOUR
12 | P a g e
COMPUTER BASED ANIMAL FEEDING SYSTEM
13 | P a g e
COMPUTER BASED ANIMAL FEEDING SYSTEM
14 | P a g e
COMPUTER BASED ANIMAL FEEDING SYSTEM
CHAPTER FIVE
Conclusion and Recommendation
5.1 Conclusion
The whole chapter of this module describes how the system is designed starting from problem
identification up to the final proposed solution. The project consist of the component used to
develop the system, way how the system operate, the area around which the system is
used,etc.Animals have to get proper feeding and protecting system to get a best output from them
.As peoples are busy doing to many works computer based control system have to apply so
peoples can work different works at same time. This animal feeding system is easy way to feed
animals as peoples not come directly to animals to feed them. This system is applied using both
software and hardware interface mainly MATLAB script program with servo motor that connect
to the Arduino controller.
5.2 Recommendation
This system worked is using one PIR sensor to show the system works, but it advisable to
increase the numbers of PIR sensors so it can control many animals.This system does not select
food items that give to the animals so it makes the system better if food selecting method
applied.
15 | P a g e
COMPUTER BASED ANIMAL FEEDING SYSTEM
References
[1] E. F. Morag, “Animal feeding”, vol.2, Englewood Cliffs, NJ: Prentice-Hall, 1970.
[2] R. L. Myer, “History on animal feeding systems” vol. 4, P. G. Harper and B. S.Wherret, Eds.
San Francisco, CA: Academic, 1977, pp. 47-160.
[3] Lely.J “Juno animal feeding machine”Networks (2nd ed.scientific paper)[Online]. Available:
http://www.lejuno.com
[4] Arias, R., L. Tung Ching, L. Logendra and H. Janes, “Electrical components,”, J. S. Brake,
Ed. New York: Wiley, 1994, pp. 55-70.
16 | P a g e
COMPUTER BASED ANIMAL FEEDING SYSTEM
Appendix
#include<Servo.h>
#include <LiquidCrystal.h>
Servo myservo;
Servo servo;
int recValue;
int spk2=9;
void setup(){
Serial.begin(9600);
pinMode(13,INPUT);
pinMode(9,OUTPUT);
myservo.attach(6);
servo.attach(7);}
void loop(){
int pir_input=digitalRead(13);
lcd.begin(16,2);
if(pir_input==HIGH){
digitalWrite(9,HIGH);
17 | P a g e
COMPUTER BASED ANIMAL FEEDING SYSTEM
delay(100);
lcd.setCursor(0,0);
lcd.print("Hazard");
delay(100);
lcd.setCursor(0,1);
lcd.print("check please"
delay(100); }
if(pir_input==LOW){
digitalWrite(9,LOW);}
if(Serial.available()>0){
recValue=Serial.read();
if(recValue==100){
for(int i=0;i<180;i++){
myservo.write(i);
lcd.setCursor(0,0);
lcd.print("food coming"); }
}if(recValue==101){
for(int i=180;i>=0;i--){
myservo.write(i);
lcd.setCursor(0,0);
lcd.print("Time up")} }
if(recValue==102){
18 | P a g e
COMPUTER BASED ANIMAL FEEDING SYSTEM
for(int i=0;i<180;i++)
servo.write(i);
lcd.setCursor(0,0);
lcd.print("pump on");
}if (recValue==103)
for(int i=180;i>=0;i--)
servo.write(i)
lcd.setCursor(0,0);
lcd.print("pump off");
}}
}}
s=serial('COM3','BAUDRATE',9600);
fopen(s);
for m=1:1000000;
servalue=input('Enter the value 100 to turn on servo motor & 101 t0 turn
off servo motor & 102 to turn pump,103 to turn off pump:');
fwrite(s,servalue);
end
19 | P a g e