Documente Academic
Documente Profesional
Documente Cultură
By:
Members Name:
ID.No.
Assefa Mulatu
....................TCR/1770/02
Ngsty Tadesse
2015
Acknowledgement
We are greatly indebted to our Almighty GOD on His mercy and blessing for making this project
successful.
Secondly, we would like to express our sincere appreciation to our adviser Ato Kiros Tesfaye for
his encouragement, guidance and valuable advices. Without his continued support and valuable
ideas the project has not been accomplished successfully and could not able to report.
Our thank goes further to Ato Alemayehu Tareke who helped us when we found the different
components of our project in implementing of the hardware part.
Finally, we would like to express our thankful to our family and all friends for the opportunity,
support and encouragement to pursue our project.
Page 1 of 72
2015
Table of Content
Content
Page
Acknowledgement .........................................................................................................................1
List of Figures..................................................................................................................................4
List of Tables .................................................................................................................................5
Abstract............................................................................................................................................6
Chapter One...6
1.
Introduction ...........................................................................................................................7
1.1 Project Background ................................................................................................................7
1.2 Problem Statement .................................................................................................................7
1. 2.1 Unable to Meet the Growing Demand of Food by Our
Population and Also to the World Population.........7
1.2.2 High Labor Cost, Low Water Application Efficiency and High Fuel Cost.........8
1.2.3 Low efficiency of fixed Photovoltaic panel.8
1.3 Objectives of the project ........................................................................................................8
1.4 Motivation...8
1.5 Scope of the project ...............................................................................................................8
1.6 Project Methodology...........................................................................................................9
Chapter Two10
2.
Literature
Review............................................................................................................10
2.1 Solar System and Maximum Power Point Tracking System (MPPT)..10
2.2 PV-Water Pumping System Configuration ......................................................................10
2.3 PV-Irrigation System ...10
2.4 Ethiopias Irrigation Sector and Future Development Potential ..11
2.4.1 Existing irrigation System.13
Page 2 of 72
2015
and
Its
Five
5.
Conclusion
Recommendation61
and
5.1 Conclusion61
5.2 Recommendation..62
Coding
..63
Page 3 of 72
2015
References......................................................................................................
...............68
Appendix.........................................................................................................
...............69
Page 4 of 72
2015
List of Figures
Fig 1: Overall system block diagram.23
Fig 2: Light Dependent Resistor (LDR)....25
Fig 3: Resistance versus Illumination curve for LDR...25
Fig 4: Temperature sensor (LM35)26
Fig 5: Schematic Diagram of Soil moisture Sensor Unit...........27
Fig 6: Buzzer..28
Fig 7: Microcontroller (PIC16F877A) ..29
Fig 8: Liquid Crystal Oscillator (LCD).32
Fig 9: Basic Working Principle of Solenoid..33
Fig 10: Working Procedure of a typical Solenoid Valve ..34
Fig 11: Typical Relay.........................35
Fig 12: Water Pumping System.....37
Fig 13: Stepper Motor....38
Fig 14: Gear Ratio of Two Gears...41
Fig 15: I/O Connection of Operational Amplifier Chip.42
Fig 16: Electrical circuit representation of a crystal oscillator..........43
Fig 17: Microprocessor Oscillator.43
Fig 18: Connection and Arrangement of Solar cells .....44
Fig 19: Solar Cell, Module and Array...45
Fig 20: Structure of Automatic Solar Tracker...48
Fig 21: Tracking System Flow Chart........50
Fig 22: Automatic Tanker Filling System.51
Fig 23: Automatic Drip Irrigation System.........53
Fig 24: System Simulation.........55
Page 5 of 72
2015
List of Tables
Table 1: Irrigation Potential in Ethiopia (ha)...15
Table 2: Comparison of Solar-based Pump with Other Types of Pump..21
Table 3: Rating of Used Components and Devices...57
Table 4: Cost Breakdown of the Project....60
Page 6 of 72
2015
Abstract
Self-controlled tanker filling and water feeding irrigation system with a microcontroller-based
photovoltaic maximum power point tracking control system is a system used in modern
agriculture for further improvement in meeting a growing demand of food by our population as
well as the world population.
For Solar tracking and irrigation controller, we need to measure different parameters i.e.
surrounding temperature, Water Level and Soil moisture. The key objective of this project is to
develop an indigenous, low cost, time based microcontroller based irrigation scheduler. The
current research focuses on precision agriculture, soil conservation and crop irrigation
scheduling, shedding and water quantity control for increasing water use efficiency. The system
is powered by solar system as a renewable energy which uses solar panel module to convert
Sunlight into electricity. The solar panel targets the radiation from the Sun. Other than that, the
solar system has reduced energy cost as well as pollution. There is a need to develop new
indigenous irrigation controller to improve farm productivity and input use efficiency of water
and other nutrients. This system presents the design and development of Irrigation controller
System built around PIC16f877A type microcontroller. The system consists of microcontroller,
LDR, Temperature sensor, Water level sensor, LCD and circuit relay to switch on/off a motor and
different control valves.
In general, the system has three independent sub-systems: Solar energy to electrical converting
system, water pumping system and tanker filling and water feeding system. So, the working
principle of the complete system is an appropriate combination of these subsystems. Here, we
use maximum power point tracking control system in order to improve the efficiency of the
photovoltaic panel and then with the help of solar energy we support the function of the water
pumping system. Then, with the help of the pump, water is conveyed under pressure through a
pipe system to the tanker or to the field where it drips slowly onto the soil through emitters or
drippers which are located close to the plants. Tanker filling system is controlled automatically
from the feedback of the sensors installed in the tanker and water feeding to the field will be
controlled with a similar way using humidity level sensor located in the soil of the field.
Page 7 of 72
2015
Chapter One
1. Introduction
1.1 project background
Energy is a critical foundation for economic growth and social progress. As economy advances
and human society requires more energy, the lack of fossil energy and its effluence effect on the
environment has given rise to the ever-serious contradiction among energy providing,
environmental protection and economic development. Renewable energy, with the availability of
its renewability and minimum pollution will grow to be an effective and practical choice to
guarantee the future development of the world. The renewable energy sources (solar, wind,
geothermal, hydropower etc.) attract more attention as an alternative energy.
Among the renewable energy sources, the photovoltaic energy has been widely utilized in low
power applications in the world. It is also the most promising candidate for research and
development for large scale users as the fabrication of low cost PV devices becomes a reality.
There are many studies that have been carried out for using photovoltaic as source of energy for
water pumping worldwide, but this technology is still in its infant stage in Ethiopia. On the other
hand most of the studies carried out are not optimal designs. They are mostly concentrated on
efficiency improvement techniques and design based on peak hydraulic energy demand without
considering the variation of solar energy and water requirement with time dynamically.
Page 8 of 72
Water
2015
Application
Since, there is no modern agriculture system because we are using a man power for almost every
activity in a farm. This leads the farmer to pay high labor cost and there is wastage of man power
that we could use for other activities. As we knew, we Ethiopian have enough water resource and
fertile soil which are comfortable for farming. But, we are not efficiently using these resource
especially water resource. In this day, few modern irrigation systems are using a generator which
consumes fuel energy in order to pump water from water resource. This will have a high fuel
cost.
1.4 Motivation
Things that motivate us in order to do our project on irrigation that is based on modern
agricultural technologies are the following problems:
Page 9 of 72
2015
Page 10 of 72
2015
Chapter Two
2. Literature Review
2.1 Solar System and Maximum Power Point Tracking
System (MPPT)
Technologies enter a new solar age. For the last few hundred years humans have been using up
fossil fuels that took around 400 million years to form and store underground. We must now put
huge effort, technological and political, into energy systems that use the suns energy more
directly. It is one of the most inspiring challenges facing todays engineers and scientists.
Photovoltaic (PV), is one of the exciting new technologies that is already helping us towards a
solar future. The PV panels are usually mounted on the roof of the house or at a near open area to
face the sun. The custom is to fix these solar modules position angle to the country latitude angle.
If possible, seasonally some people try to adjust the modules direction manually towards the
sun. However, to make solar energy more viable, efficiency of solar panel systems must be
maximized. A feasible approach to maximize the efficiency of solar panel systems is sun
tracking. A solar panel receives the most sunlight when it is perpendicular to the suns rays. This
paper is about moving a solar panel along with the direction of sunlight; it uses a geared motor to
change the position of the solar panel, the motor is controlled by the PIC16F877A
microcontroller, which detects the sunlight using sensors. The objective is to design and
implement an automated, one-axis solar-tracking mechanism using embedded system design
with minimum cost and reliable structure.
2015
0.5 bar depending on the height of the water tank and with a rather constant water flow.
Irrigation is regulated by hand valves.
One major advantage of solar pumps is that they do not require batteries, which are expensive
and need a lot of maintenance. The maintenance of a PVP irrigation system is restricted to
regular cleaning of the solar modules. Depending on the water quality, the only moving part of
the system, the submersible motor pump, has to be checked every 3 to 5 years. Drip irrigation
saves a considerable amount of water compared to other irrigation techniques.
Furthermore, it has a rather low operating pressure. Both features reduce the energy demand and
make drip irrigation particularly suitable for photovoltaic pumping systems. Unlike other
irrigating processes, drip irrigation is amenable to a continuous supply of water, so the pump can
run incessantly through the entire growing season. Since both the crops water requirement and
the output of the pump are functions of the global radiation, the two systems go hand-in -hand up
to a certain point. However, the output capacity of the PVP must be designed for the maximum
water requirement. On a yearly average, though, each and every difference between the actual
demand and the supply of water detracts from the system's overall degree of utilization. In that
sense, conventional motor-driven pumps are more flexible. The daily output of a motor-driven
pump depends not only on its rated power, but also on the easily adaptable time of operation.
Therefore diesel pumps can cope with most fluctuations of demand.
2015
Rainfall in Ethiopia
Rainfall is the ultimate source of water in Ethiopia, with surface water, ground water, and other
water sources fed by rain. To understand the countrys irrigation potential, it is important to
understand these water sources. Ethiopia has significant rainfall. Based on grid based average
annual rainfall and the land area, the study estimates that Ethiopia receives about 980 billion (~1
trillion) cubic meters (m3) of rain a year. Ethiopia is divided into 32 major agro-ecological zones
(AEZ) based on temperature and moisture regimes classification data. These 32 AEZs can be
classified further into three primary zones within Ethiopia. This classification mirrors that found
in the Rural Development Policy and Strategy (2001) and the Plan for Accelerated and Sustained
Development to Eradicate Poverty (PASDEP). The three zones are: high rainfall areas, moisture
deficit zones, and pastoralist zones
These three zones have the following characteristics
High rainfall zone. Covers 24 percent of land, 43 percent of population, and 51 percent
of permanent crop output. In these areas, rainfall tends to exceed 800 mm/year. Typical
Page 13 of 72
2015
development is mixed crop-livestock systems, though crops dominate. The land is not
particularly vulnerable, nor is it very productive. Here, irrigation would be supplementary
to produce a second crop and increase productivity. Note that despite significant rainfall
in this zone, the rainfall is highly variable, and occurs in a limited period of the year.
Moisture deficit zone. Covers 32 percent of land, 47 percent of population, and 39
percent of permanent crop output. Rainfall is generally lower than 600 mm/year. Rainfall
is highly variable, and the land is moderately to highly degrade. Production is typically
mixed crop and livestock, with crops dominating. These areas are often vulnerable and
degraded, and constrained by low productivity and overpopulation. Here, irrigation could
secure food production, improve livelihoods, and increase food resilience.
Pastoralist zone. Covers 44 percent of land, 10 percent of population, and 10 percent of
permanent crop output. Except in the west part of the country, rainfall is lower than 600
mm/year. Pastoralist, livestock-based and non-sedentary lifestyles prevail, and these areas
are constrained by vulnerability and low livestock productivity. Irrigation would create
livelihood options and increase food resilience. In the past, development aid was largely
directed to moisture deficit and pastoralist zones, owing to the vulnerability of their
populations and the large-scale irrigation potential in lowland areas mostly pastoralist
zones. Now, agricultural development efforts are also taking place in high rainfall zones.
For instance, the Agricultural Growth Program (AGP) focuses on 83 districts (woredas)
to boost agricultural productivity and growth.
2015
Overpopulation. Irrigation can support crop intensification through which small plots of
land can produce more per capita. The available household labour can also be engaged
throughout the year, thereby improving labour productivity. Provision of irrigation can
also create employment opportunities through the forward and backward linkages
between irrigation and commodity value chains.
Climate variability. Climate variability, including droughts and flooding, is a major
agricultural constraint of Ethiopia. Climate variability is expected to increase the
occurrence and the severity of extreme events (flood and drought) and related shocks.
Improved water management and irrigation promote stability during prolonged droughts
and can reduce vulnerability during environmental shocks.
Land degradation. Ethiopias soil is estimated to be moderately to severely degraded,
which decreases the productivity of land. Irrigation and watershed management can
reverse this degradation by conserving soil and water, reducing flooding, and increasing
recharge and base flow.
Farmer productivity. Ethiopias crop productivity is frequently below potential. For
instance, in 2008/09, the average maize yield was 2.2 metric tons per hectare. , compared
to the potential yield demonstrated in on-farm field trials of 4.7 tons per hectare.
Increasing farmer productivity is a crucial lever to improving smallholder income and
livelihood. Irrigation helps improve crop productivity, especially when used in
conjunction with improved inputs (e.g., seed, fertilizer).
Gender equality. Irrigation can also provide significant benefits (and some costs) to
rural women by enabling women farmers to increase their cash incomes and diversify
family nutrition and food sources. To ensure equal access to land and water by women,
irrigation access must be carefully monitored. Participation of women in Water Users
Associations should also be promoted. At the same time, irrigation can have potentially
negative consequences for women, such as increasing the burden of labour on women, as
irrigation is a labour-intensive form of agriculture, and allowing men to capture an unfair
share of farm profits. Figure 2 maps the preliminary ground water potential of Ethiopia
based off of elevation, aquifer productivity, and moisture availability.
Page 15 of 72
2015
Groundwater potential
As noted above, groundwater in Ethiopia can be used for irrigation in multiple ways, such as
deep and shallow wells from underground aquifers. Compared with other sources of irrigation,
groundwater as a resource for agricultural development offers a number of advantages,
including:
Reliability of the water source, since it has a naturally renewable capacity if water is not
extracted above certain thresholds
On-demand water supply through natural water storage
Domestic water source, with no trans-boundary considerations
Availability in many places, e.g., in highlands, steep terrains, inland valleys, and plain
areas
Relative constancy of supply, which can help to buffer the high variability of surface
water resources.
Page 16 of 72
2015
2015
Page 18 of 72
2015
2015
SSI or RWH and the remaining with M&LSI). But by mid-2010, only 640,000
hectares were currently equipped, which was 180,000 ha short of the target. This 280
percent increase from current irrigation levels will require tremendous resources,
including funding, human capacity, infrastructure, and other human and capital
investments. However, Ethiopia faces four key technical, socio-economic,
institutional, and environmental challenges that must be overcome in order to meet
this ambitious target:
Low-performance of schemes. Many schemes currently operate significantly under
their design capacity. The research team estimates that scheme performance is on
average 30 present below design, implying a loss of about 230 thousand hectares of
irrigated land, leading to only 410,000ha performing to the expectations
Constraints on scale-up of irrigation projects. The GOEs aspiration to nearly
triple the number of irrigated hectares over the next five years will only be met by
overcoming a series of scale-up constraints such as inadequate funding, human
capacity and labour constraints, and limited private sector involvement.
Protecting irrigation development sustainability. Sustainability is threatened by
unregulated surface and groundwater development, lack of watershed and
environmental management, and the need for smallholder farmer buy-in and
investment. For example, land degradation caused by soil erosion (about 1.9 billion
tons of topsoil are lost annually in Ethiopia, The following sections provide an indepth exploration of these four challenges in terms of institutional, human and
technical capacity, capability, policy context, and funding. The constraints are
explored at each decision-maker level (federal, regional and woreda farmers).
Negatively affects agricultural productivity, and salinity is already an issue in some
large-scale irrigation settings.
The following sections provide an in-depth exploration of these four challenges in terms of
institutional, human and technical capacity, capability, policy context, and funding. The
constraints are explored at each decision-making level (federal, regional, woreda, farmers).
Page 20 of 72
2015
pipelines, which prevents efficient ranking and budgeting based on needs and
resources.
Technical capacity and tools. Many government agencies and private sector/
NGO stakeholders lack the technical capacity and tools necessary for efficient
irrigation planning and implementation. No national database is available on
existing irrigation projects or irrigation needs, which could make data accessible
from the federal to the local level. There is also no reliable baseline data at any
level, making it difficult to plan, coordinate, budget, or manage irrigation
schemes, e.g., rainwater harvesting baseline estimates vary significantly, from
40,000 to 800,000 hectares.
2015
Diesel or Gas
Windmill
Advantage
Low maintenance
No fuel costs or spills
Easy to install
Simple and reliable
Unattended operation
System can be made to be
mobile
Moderate capital costs
Can be portable
Extensive experience available
Easy to install
Potentially long-lasting
Works well in windy site
Disadvantage
Potentially high initial cost
Lower output in cloudy weather
There are more than 10,000 solar powered water pumps in use in the world today. They
are widely used on farms and outback stations in Australia to supply water to livestock. In
developing countries they are used extensively to pump water from wells and rivers to
villages for domestic consumption and irrigation of crops. A typical PV-powered pumping
system consists of a PV array that powers an electric motor, which drives a pump. The water is
often pumped from the ground or stream into a storage tank that provides a gravity feed. No
energy storage is needed for these systems. PV powered pumping systems are widely
available from agricultural equipment suppliers and they are a cost-effective alternative to
agricultural wind turbines for remote area water supply. Photovoltaic pumping systems are
used to pump water for livestock, plants or humans. Since the need for water is more on
hot sunny days the technology is an obvious choice for this application. Pumping water using
PV technology is simple, reliable, and requires almost no maintenance. Agricultural watering
needs are usually more during sunnier periods when more water can be pumped with a solar
system. PV powered pumping systems are excellent for small to medium scale pumping and
Page 22 of 72
2015
there are thousands of agricultural PV water pumping systems in the field today throughout the
world. PV powered water pumping systems are similar to any other pumping system, only the
power source is solar energy. PV pumping systems have, as a minimum, a PV array, a motor, and
a pump. PV water pumping arrays are fixed, mounted or sometimes placed on passive trackers
(which use no motors) to increase pumping time and volume.
Page 23 of 72
2015
Chapter Three
3. Overall System and Its Operation
The system components, configuration and their connection are put in the overall system block
diagram shown below.
Page 24 of 72
2015
The main target of the system is to have automated irrigation system. It is supported by solar
energy from the Photovoltaic panel, which is automated to track the PV panel towards the
direction of the sun light that maximizes the level energy generated from the solar system. The
operation of the system depends on the individual operation of the components mainly the
sensors (LDR, water level sensor, soil moisture sensor and temperature sensor). Depending on
the sensors, the microcontroller (PIC16F877A) generates control signal. These control signals
can control the operation and working principle of the different motors and valves involved in
the system. Accurate generating of control signals from the microcontroller can take accurate
action on the motors, LCD, Buzzer and solenoid valves.
Finally, the operating condition of the system is displayed on the LCD such as the individual
motors operating condition (ON/OFF), temperature level in degree centigrade and level of soil
moisture in percentage (%).
3.1Main System
Characteristics
Components
and
Their
Operational
2015
Fig2: LDR
The characteristic of LDR is shown in the following graph. This shows that, resistance of
LDR is inversely proportional to the light intensity.
Page 26 of 72
2015
2015
The resistance of the gypsum block, Rg, is determined by the depth at which it is
buried, amongst other factors, and the sensitivity of the sensor should be set on site.
Page 28 of 72
2015
Page 29 of 72
2015
CPU: is the brain of a microcontroller which is responsible for fetching the instruction, decodes
it, and then finally executed. And it connects every part of a microcontroller into a single system.
The primary function of CPU is fetching and decoding instructions. Instruction fetched from
program memory must be decoded by the CPU.
Memory: The function of memory in a microcontroller is the same as microprocessor. It is used
to store data and program. A microcontroller usually has a certain amount of RAM and ROM
(EEPROM, EPROM, etc) or flash memories for storing program source codes.
Parallel input/output ports: parallel input/output ports are mainly used to drive/interface
various devices such as LCDS, LEDS, printers, memories, etc to a microcontroller.
Serial ports: Serial ports provide various serial interfaces between microcontroller and other
peripherals like parallel ports.
Timers/counters: This is the one of the useful function of a microcontroller. A
microcontroller may have more than one timer and counters. The timers and counters provide all
timing and counting functions inside the microcontroller. The major operations of this section
are performing clock functions, modulations, pulse generations, frequency measuring, making
oscillations, etc. This also can be used for counting external pulses.
Page 30 of 72
2015
Analog to Digital Converter (ADC): ADC converters are used for converting the analog
signal to digital form. The input signal in this converter should be in analog form (e.g. sensor
output) and the output from this unit is in digital form. The digital output can be used for various
digital applications (e.g. measurement devices).
Digital to Analog Converter (DAC): DAC perform reversal operation of ADC conversion DAC
convert the digital signal into analog format. It usually used for controlling analog devices like
DC motors, various drives, etc.
Interrupt control: the interrupt control is used for providing interrupt (delay) of working
program .The interrupt may be external (activated by using interrupt pin) or internal (by using
interrupt instruction during programming).
Special functioning block: Some microcontrollers used only for some special applications (e.g.
space systems and robotics) these controllers containing additional ports to perform such special
operations. This considered as special functioning block. There are many types of
microcontroller used for different applications like ATMEGA and PIC types. In our case we have
selected the PIC type which is PIC16F877A.
Advantages of Microcontrollers
The main advantages of microcontrollers are given.
Disadvantages of Microcontrollers
LDC is a combination of two states of matter the solid and the liquid. They have both the
properties of solids and liquids and maintain their respective states with respect to another. Solids
usually maintain their state unlike liquids who change their orientation and move everywhere in
the particular liquid. Further studies have showed that liquid crystal materials show more of a
liquid state than that of a solid. It must also be noted that liquid crystals are more heat sensitive
than usual liquids. A little amount of heat can easily turn the liquid crystal into a liquid. This is
the reason why they are also used to make thermometers.
Page 31 of 72
2015
We always use devices made up of Liquid Crystal Displays (LCDs) like computers, digital
watches and also DVD and CD players. They have become very common and have taken a giant
leap in the screen industry by clearly replacing the use of Cathode Ray Tubes (CRT). CRT draws
more power than LCD and is also bigger and heavier. All of us have seen an LCD, but no one
knows the exact working of it. Let us take a look at the working of an LCD. The liquid-crystal
display has the distinct advantage of having a low power consumption than the LED. It is
typically of the order of microwatts for the display in comparison to the some order of mill watts
for LEDs. Low power consumption requirement has made it compatible with MOS integrated
logic circuit. Its other advantages are its low cost, and good contrast. The main drawbacks of
LCDs are additional requirement of light source, a limited temperature range of operation
(between 0 and 60 C), low reliability, short operating life, poor visibility in low ambient
lighting, slow speed and the need for an ac drive.
The main principle behind liquid crystal molecules is that when an electric current is applied to
them, they tend to untwist. This causes a change in the light angle passing through them. This
causes a change in the angle of the top polarizing filter with respect to it. So, little light is
allowed to pass through that particular area of LCD. Thus that area becomes darker comparing to
others. The LCDs have a parallel interface, meaning that the microcontroller has to manipulate
several interface pins at once to control the display. The interface consists of the following pins:
A register select (RS) pin that controls where in the LCD's memory you're writing data to. You
can select either the data register, which holds what goes on the screen, or an instruction register,
which is where the LCD's controller looks for instructions on what to do next.
Page 32 of 72
2015
A Read/ Write (R/W) pin that selects reading mode or writing mode. An enable pin that enables
writing to the registers. 8 data pins (D0 -D7). The states of these pins (high or low) are the bits
that you're writing to a register when you write, or the values you're reading when you read.
There's also a display constrast pin (Vo), power supply pins (+5V and Gnd) and LED
Backlight (Bklt+ and BKlt-) pins that you can use to power the LCD, control the display
contrast, and turn on and off the LED backlight, respectively. The process of controlling the
display involves putting the data that form the image of what you want to display into the data
registers, then putting instructions in the instruction register.
Fig8: LDC
7) Solenoid Valve
A solenoid is a simple electromagnetic device that converts electrical energy directly into linear
mechanical motion, but it has a very short stroke (length of movement), which limits its
applications. The solenoid consists of a coil of wire with an iron plunger that is allowed to move
through the center of the coil.
Page 33 of 72
2015
Page 34 of 72
2015
2015
many other types, such as pneumatic and hydraulic. Input may be electrical and output directly
mechanical, or vice versa.
How do relays work?
All relays contain a sensing unit, the electric coil, which is powered by AC or DC current. When
the applied current or voltage exceeds a threshold value, the coil activates the armature, which
operates either to close the open contacts or to open the closed contacts. When a power is
supplied to the coil, it generates a magnetic force that actuates the switch mechanism. The
magnetic force is, in effect, relaying the action from one circuit to another. The first circuit is
called the control circuit; the second is called the load circuit.
There are three basic functions of a relay: On/Off Control, Limit Control and Logic Operation.
On/Off Control: Example: Air conditioning control, used to limit and control a high power
load, such as a compressor
Limit Control: Example: Motor Speed Control, used to disconnect a motor if it runs slower or
faster than the desired speed
Logic Operation: Example: Test Equipment, used to connect the instrument to a number of
testing points on the device under test.
Types of Relays: There are two basic classifications of relays: Electromechanical and Solid
State. Electromechanical relays have moving parts, whereas solid state relays have no moving
parts. Advantages of Electromechanical relays include lower cost, no heat sink is required,
multiple poles are available, and they can switch AC or DC with equal ease.
Page 36 of 72
2015
9) Battery
Deep cycle batteries are usually used in solar power systems and are designed to be discharged
over a long period of time (e.g. 100 hours) and recharged hundreds or thousands of times, unlike
conventional car batteries which are designed to provide a large amount of current for a short
amount of time. To maximize battery life, deep cycle batteries should not be discharged beyond
50% of their capacity. I.e. 50 % capacity remaining. Discharging beyond this level will
significantly reduce the life of the batteries. Deep cycle batteries are rated in Ampere Hours
(Ah). This rating also includes a discharge rate, usually at 20 hours. This rating specifies the
amount of current in Amps that the battery can supply over the specified number of hours.
As an example, a battery rated at 120A.H at the 100 hour rate can supply a total of 120A.H over
a period of 100 hours. This would equate to 1.2A per hour for 100 hours. Due to internal heating
at higher discharge rates, the same battery could supply 110Ah at the 20 hour rate, or 5.5A per
hour for 20 hours. In practice, this battery could run a 60W 12VDC TV for over 20 hours before
being completely drained. There are many factors that can affect the performance and life of a
battery or bank of batteries. It is highly recommended that you speak with an experienced solar
power system installer or solar battery provider prior to making any significant battery purchase.
10) Tanker and water level sensors
The Tanker is a device used to store water to help the irrigation system as a backup. This
improves the system efficiency as the irrigation system is working without the help of pump
motor from the tanker.
The Tanker level sensors also the function of sensing the water level of the tanker in order to fill
the tanker and close the valves of the pipe automatically.
Water Level Sensor: water level sensor can be made using a proper connection and
coordination of electrical components: resistors, copper wire, transistors and LEDs.
Tanker and Tanker Level Sensors: The Tanker is a device used to store water to help the
irrigation system as a backup. This improves the system efficiency as the irrigation system is
working without the help of pump motor from the tanker. The Tanker level sensors also the
function of sensing the water level of the tanker in order to fill the tanker and close the valves of
the pipe automatically.
11)
Water Pump
Using photovoltaic as the power source for water pumping is considered as one of the most
promising areas of PV application. PV water pumping systems generally consist of PV array,
controller, and inverter, motor, pump and water storage tank. Photovoltaic water pumping
systems are particularly suitable for water supply in remote areas where the electricity is not
available. Water can be pumped during the day and stored in tanks, making water available also
Page 37 of 72
2015
at night or when it is cloudy. The pumped water can be used in many applications such
as domestic use, water for irrigation and village water supplies. The advantages of using
water pumps powered by photovoltaic systems include low maintenance, ease of installation,
reliability and the matching between the powers generated and the water usage needs. In
addition, water tanks can be used instead of batteries in photovoltaic pumping systems
Pumping Motor: This is a water pump motor help to pump water from water source to tanker
and field area of the irrigation system. The motor may be Ac-motor or DC-motor and its size is
depending on the wideness of the irrigation system (tanker size and field area of the irrigation).
In this case we have selected a DC-motor having 2kw rated power. The pumps role is to provide
sufficient pressure to move the fluid through the system at the desired flow rate.
2015
bother to specify this. This is not a fault of the metric system but the way people use it. The term
pressure loss or pressure drop is often used, this refers to the decrease in pressure in the system
due to friction. In a pipe or tube that is at the same level, your garden hose for example, the
pressure is high at the tap and zero at the hose outlet, this decrease in pressure is due to friction
and is the pressure loss.
This Pressure provides the driving force to overcome friction and elevation difference. It's
responsible for driving the fluid through the system, the pump provides the pressure. Pressure is
increased when fluid particles are forced closer together. For example, in a fire extinguisher work
or energy has been spent to pressurize the liquid chemical within, that energy can be stored and
used later. Is it possible to pressurize a liquid within a container that is open? Yes. A good
example is a syringe, as you push down on the plunger the pressure increases, and the harder you
have to push. There is enough friction as the fluid moves through the needle to produce a great
deal of pressure in the body of the syringe Friction is always present, even in fluids; it is the
force that resists the movement of objects. In fluids, friction occurs between fluid layers that are
traveling at different velocities within the pipe. There is a natural tendency for the fluid velocity
to be higher in the canter of the pipe than near the wall of the pipe. Friction will also be high for
viscous fluids and fluids with suspended particles.
12)
Stepper Motor
Stepper motors are commonly used in precision position control applications. This is because of
the different advantages they have such as they are brushless, load independent, and has open
loop position control capability, good holding torque and excellent response characteristics. For
these reasons two identical bipolar, permanent magnet 2 phase, 12V, 1.5 0 step stepper motors
shown in figure 13 are used in this application in order to control the azimuth and tilt angle.
Motor 1 is used to control the azimuth angle and motor 2 is used to control the tilt angle.
Page 39 of 72
2015
Gear
Gear Ratio Calculations: If two gears are in mesh, then the product of speed and teeth is
conserved. Let's put this in terms of usable math. Let's say that we have two gears in mesh.
Gear 1 (we'll call it the driver) is turning at speed S1 rpm and has T1 teeth. Gear 2 (the driven
gear) is turning at speed S2 and has T2 teeth. Then our relationship above says that:
S1 * T1 = S2 * T2
We can use this simple equation to solve for whatever (single) value is unknown. Consider a
simple example where:
S1=100rpm,T1=30teeth,S2=?
T2 = 40 teeth. Solving the equation above for S2, we have:
S2= (T1/T2)*S1= (30/40)*10= 75 rpm
Let's add a third gear to the train. Assume gear 2 drives gear 3 and gear 3 has T3 = 50 teeth.
What's the speed of gear 3? Well, since gears 2 and 3 are in mesh, our conservation law says
that:
S2 * T2 = S3 * T3
We could do the arithmetic (S3 = (T2/T3) * S2 = (40/50) * 75 = 60 rpm) to find S3. Or, we
could note that, since both S1*T1 and S3*T3 are equal to S2*T2, they must be equal to each
other.
S1 * T1 = S3 * T3
Therefore, S3 = (T1/T3) * S1 = (30/50) * 100 = 60 rpm.
Suppose now that we add a fourth gear with T4 = 60 teeth to our developing gear train. Its speed
must be S4 = (T3/T4) * S3 = (50/60) * 60 = 50 rpm. But again, by use of the conservation
principle, we have:
S4 = (T1/T4) * S1 = (30/60) * 100 = 50 rpm.
No matter how many gears are between the drivers and (final) drive gear, the overall ratio
depends only on the tooth count of the driver and final driven gear.
Compound (i.e., ganged) gears are used often in setting up change gear lathes because they offer
the opportunity to achieve a much larger selection of ratios than would be possible with only
simple gearing. In simple gearing, as we saw, the ratio depends only on the driver and driven
gear - any gears between these can't affect the overall ratio. To obtain a given ratio, you would
need to have two gears, each with precisely the right number of teeth to establish the ratio. By
compounding, a much smaller set of gears can be used to achieve a large number of ratios.
Page 40 of 72
2015
In mechanical engineering, a gear ratio is a direct measure of the ratio of the rotational speeds of
two or more interlocking gears. As a general rule, when dealing with two gears, if the driving
gear (the one directly receiving rotational force from the engine, motor, etc.) is bigger than the
driven gear, the latter will turn more quickly, and vice versa. We can express this basic concept
with the formula Gear ratio = T2/T1, where T1 is the number of teeth on the first gear and T2 is
the number of teeth on the second.
Finding the Gear Ratio of a Two Gears
1) Start with a two-gear train. To be able to determine a gear ratio, you must have at least
two gears attached to each other this is called a "gear train." Usually, the first gear is a
"drive gear" attached to the motor shaft and the second is a "driven gear" attached to the
load shaft. There may also be any number of gears between these two to transmit power
from the drive gear to the driven gear: these are called "idler gears." For now, let's look
at a gear train with only two gears in it. To be able to find a gear ratio, these gears have to
be interacting with each other in other words, their teeth need to be interconnected and
one needs to be turning the other. For example purposes, let's say that we have one small
drive gear (gear 1) turning a larger driven gear (gear 2). We're ready to proceed.
2) Count the number of teeth on the drive gear. One simple way to find the gear ratio
between two interlocking gears is to compare the number of teeth (the little peg-like
protrusions at the edge of the wheel) that they both have. Start by determining how many
teeth are on the drive gear. You can do this by counting manually or, sometimes, by
checking for this information labelled on the gear itself. For example purposes, let's say
that the smaller drive gear in our system has 20 teeth.
3) Count the number of teeth on the driven gear. Next, determine how many teeth are on
the driven gear exactly as you did before for the drive gear. Let's say that, in our example,
the driven gear has 30 teeth.
4) Divide one teeth count by the other. Now that you know how many teeth are on each
gear, you can find the gear ratio relatively simply. Divide the driven gear teeth by the
drive gear teeth. Depending on your assignment, you may write your answer as a
decimal, a fraction, or in ratio form (i.e., x : y).
In our example, dividing the 30 teeth of the driven gear by the 20 teeth of the drive gear
gets us 30/20 = 1.5. We can also write this as 3/2 or 1.5: 1, etc. What this gear ratio
means is that the smaller driver gear must turn one and half times to get the larger driven
gear to make one complete turn. This makes sense since the driven gear is bigger, it
will turn more slowly.
Page 41 of 72
2015
The Operational Amplifier is probably the most versatile Integrated Circuit available. It is very
cheap especially keeping in mind the fact that it contains several hundred components. The most
common Op-Amp is the 741 and it is used in many circuits.
The OP AMP is a Linear Amplifier with an amazing variety of uses. Its main purpose is to
amplify (increase) a weak signal - a little like a Darlington Pair. The OP-AMP has two inputs,
INVERTING (-) and NON-INVERTING (+), and one output at pin 6.
Page 42 of 72
2015
Page 43 of 72
2015
A crystal oscillator is an electronic oscillator circuit which uses inverse piezoelectric effect, .i.e. When
electric field is applied across certain materials it produces mechanical deformation. Thus it uses mechanical
resonance of a vibrating crystal of piezoelectric materiel to create an electric signal with very precise
frequency. They have high stability, quality factor, small size and low cost and this makes them superior over
other resonators like LC circuit, ceramic resonator, turning forks etc.
Virtually all microprocessors, micro-controllers, PICs and CPUs generally operate using
a Quartz Crystal Oscillator as its frequency determining device to generate their clock waveform
because as we already know, crystal oscillators provide the highest accuracy and frequency
stability compared to resistor-capacitor, (RC) or inductor-capacitor, (LC) oscillators.
The CPU clock dictates how fast the processor can run and process the data with a
microprocessor, PIC or micro-controller having a clock speed of 1MHz means that it can process
data internally one million times per second at every clock cycle. Generally all thats needed to
produce a microprocessor clock waveform is a crystal and two ceramic capacitors of values
ranging between 15 to 33pF as shown below.
Microprocessor Oscillator
Page 44 of 72
2015
Page 45 of 72
2015
Page 46 of 72
2015
2015
on for half of the time duration and off for the other half, the digital signal is said to have a duty
cycle of 50%. Similarly, if a signal stays high for a longer period of time than it stays low, the
signal will have a duty cycle greater than 50%. The frequency determines the amount of time
taken by PWM to complete one cycle. For example a frequency of 1000Hz would mean 1000
cycles completed per second.
Maximum Power Point Tracker (MPPT) Control System
As people are much concerned with the fossil fuel exhaustion and the environmental problems
caused by the conventional power generation, renewable energy sources and among them
photovoltaic panels and wind-generators are now widely used. Photovoltaic sources are used
today in many applications such as battery charging, water pumping, home power supply,
swimming-pool heating systems, satellite power systems etc. They have the advantage of being
maintenance and pollution-free but their installation cost is high and, in most applications; they
require a power conditioner (dc/dc or dc/ac converter) for load interface. Since PV modules still
have relatively low conversion efficiency, the overall system cost can be reduced using high
efficiency power conditioners which, in addition, are designed to extract the maximum possible
power from the PV module with position adjustment.
Solar trackers are devices used to orient photovoltaic panels, reflectors, lenses or other optical
devices toward the sun. Since the suns position in the sky changes with the seasons and the time
of day, trackers are used to align the collection system to maximize energy production.
Concentrated applications like concentrated photovoltaic panels (CPV) or concentrated solar
power (CSP) require a high degree of accuracy to ensure the sunlight is directed precisely at the
focal point of the reflector or lens. Non-concentrating applications dont require tracking but
using a tracker can improve the total power produced by the system. Photovoltaic systems using
high efficiency panels with trackers can be very effective.
There are many types of solar trackers, of varying costs, sophistication, and performance. The
two basic categories of trackers are single axis and dual axis.
Automatic Dual Axis Sun Tracking System
With the rapid increase in population and economic development, the problems of the energy
crisis and global warming effects are today a cause for increasing concern. The utilization of
renewable energy resources is the key solution to these problems. Solar energy is one of the
primary sources of clean, abundant and inexhaustible energy that not only provides alternative
energy resources, but also improves environmental pollution.
Solar tracking is the most appropriate technology to enhance the electricity production of a
PV system. To achieve a high degree of tracking accuracy, several approaches have been widely
investigated. Generally, they can be classified as either open-loop tracking types based on solar
movement mathematical models or closed-loop tracking types using sensor-based feedback
Page 48 of 72
2015
controllers. In the open-loop tracking approach, a tracking formula or control algorithm is used.
Referring to the literature, the azimuth and the elevation angles of the Sun were determined by
solar movement models or algorithms at the given date, time and geographical information.
As we know, solar panel should be directly perpendicular to the sunlight so that radiation of
sunlight is highest. But, position of the sun is not same place during the whole day. Therefore,
direction of the sun radiation is not same and its changes during the course of the day. So, if we
can use solar tracking system it would give maximum solar efficiency. Solar trackers have both a
horizontal and a vertical axis and thus they can track the sun's apparent motion virtually
anywhere in the world. CSP applications using dual axis tracking include solar power towers and
dish (Stirling engine) systems. Dual axis tracking is extremely important in solar tower
applications due to the angle errors resulting from longer distances between the mirror and the
central receiver located in the tower structure.
In general, the single-axis tracker with one degree of freedom follows the Suns movement from
the east to west during a day while a dual-axis tracker also follows the elevation angle
of the Sun. In recent years, there has been a growing Volume of research concerned with dualaxis solar tracking systems. However, in the existing research, most of them used two
stepper motors to perform dual-axis solar tracking. With two tracking motors designs, two
motors were mounted on perpendicular axes, and even aligned them in certain directions.
In some cases, both motors could not move at the same time.
The structural view of two ways of rotating freedom solar tracker is shown in figure below.
2015
LDR1, LDR2, LDR3, LDR4 and LDR5 represent in figure shown above as S1, S2,S3, S4 and S5
respectively mounted on the solar panel and placed in an enclosure. The sensors are setup in a
way that LDR1 and LDR2 are used to track the sun horizontally for drive the horizontal
positioning motor whileLDR3 and LDR4 are used to track the sun vertically for drive the vertical
positioning motor .The LDR5 is use to detect it is day or not because only day session system
will be the working mode. This sensors information is processes by using fuzzy logic because it
emulates human acceptable reasoning and could make decisions on inaccurate information. The
all operations are operated by control box where microcontroller and motor control ICs processes
whole detection and control system. So that, both motors vertical and horizontal movement to
ensure proper tracking of the solar panel in any position of the sun with respect to the East-West
or North-South.
This system is a geared PV system operating by direct current (DC) motor controlled by
PIC16f877A microcontroller to rotate the panel vertically or horizontally (dual axis rotation)
depending on the direction of sun light energy. Having installed light sensors in the PV-panel, the
microcontroller controls the speed and direction of the dc-motor by using the output of the light
sensors as an input to the microcontroller. As a result gear coupled with the shaft of the dc-motor
can rotate the PV-panel to the
2015
microcontroller controls the speed and direction of the dc-motor by using the output of the light
sensors as an input to the microcontroller. As a result gear coupled with the shaft of the dc-motor
can rotate the PV-panel to the appropriate sun light direction. The flow chart indicates the
working principle of the tacking system. This is shown below:
Page 51 of 72
2015
Page 52 of 72
2015
2015
Compared to other types of irrigation (sprinkler irrigation or surface irrigation), only the
immediate root zone of each plant is wetted. Therefore this can be a very efficient method of
irrigation. Drip irrigation is sometimes called trickle irrigation (FAO 1988).
Drip irrigation can be a very technical irrigation system for food or plant production fields. But
compared to other technical systems (e.g. sprinkler irrigation) it is a low-technique solution.
Furthermore it is possible to combine this system with a water treatment plant (e.g. non-planted
filter or constructed wetlands (horizontal flow or vertical flow) and use the treated water as
irrigation water. Drip irrigation requires little water compared to other irrigation methods. About
40-80 litter per day is needed per 100-200 plants. The small amount of water reduces weed
growth and limits the leaching of plant nutrients down in the soil. In organic fertilizer or urine tea
can be applied efficiently to the plants through the drip system (INFONET-BIOVISION 2010).
Design of a Simple Drip Irrigation System
A simple drip can consist of a 20 liter bucket with 30 meters (100 feet) of hose or drip tape
connected to the bottom of the tank. The bucket is placed at least 1 meter (3 feet) above the
ground so that gravity provides sufficient water pressure to ensure even watering for the entire
crop. Clean water is poured into the bucket daily through a filter/ strainer. The water in the
bucket fills the drip tape and is evenly distributed to 100 watering points. A multi-chambered
plastic drip tape is engineered to dispense water through openings spaced at 30cm (12 inches).
The bucket kit is the smallest type of drip irrigation technique (Adapted from RCSD 2008). A
filter after the control valve can be installed, to prevent blockages (e.g. a screen) or an even more
developed filter to improve the water quality.
Applicability
Generally, drip irrigation is the most appropriate irrigation method; it is especially good for arid
and drought prone areas. Drip and subsurface drip irrigation is used almost exclusively when
using recycled municipal wastewater. Regulations typically do not permit spraying water through
the air that has not been fully treated to potable water standards (WIKIPEDIA 2011).
Furthermore, this system can be very technical for industrial crop production but also a simple
small-scale irrigation method, which farmers can construct by themselves.
Page 54 of 72
2015
Page 55 of 72
2015
Usually operated at lower pressure than other types of pressurised irrigation, reducing
energy costs
Disadvantages
Expensive initial cost can be more than overhead systems (commercial system)
The sun can affect the tubes used for drip irrigation, shortening their usable life
If the water is not properly filtered and the equipment not properly maintained, it can
result in clogging
Drip irrigation might be unsatisfactory if herbicides or top dressed fertilisers need
sprinkler irrigation for activation
Waste of water, time & harvest, if not installed properly
Systems require careful study of all the relevant factors like land topography, soil, water,
crop and agro-climatic conditions, and suitability of drip irrigation system and its
components
Without sufficient leaching (most drip systems are designed for high efficiency, meaning
little or no leaching fraction), salts applied with the irrigation water may build up in the
root zone
Page 56 of 72
2015
D0
D1
D2
D3
D4
D5
D6
D7
RS
RW
E
VSS
VDD
VEE
LM016L
7
8
9
10
11
12
13
14
4
5
6
1
2
3
RL5(NO)
R18
330
RL5
5V
D13
D14
DIODE
RL6
12V
LED2
Q5
R19
NPN
Q6
1k
NPN
U3
6
2
22uF
X1
RL3(NO)
BUZZER
RL2(NO)
C1
RL4(NO)
BUZ1
CRYSTAL
RL1(NO)
LMC7211A
R14
C2
22uF
330R
U1
13
14
2
3
4
5
6
7
LM35
8
9
10
50%
SOIL_MOISTURE_SENSOR
1
1k
RB0/INT
RB1
RB2
RB3/PGM
RB4
RB5
RB6/PGC
RB7/PGD
RA0/AN0
RA1/AN1
RA2/AN2/VREF-/CVREF
RA3/AN3/VREF+
RA4/T0CKI/C1OUT
RA5/AN4/SS/C2OUT
RC0/T1OSO/T1CKI
RE0/AN5/RD
RC1/T1OSI/CCP2
RE1/AN6/WR
RC2/CCP1
RE2/AN7/CS
RC3/SCK/SCL
RC4/SDI/SDA
MCLR/Vpp/THV
RC5/SDO
RC6/TX/CK
RC7/RX/DT
RD0/PSP0
RD1/PSP1
RD2/PSP2
RD3/PSP3
RD4/PSP4
RD5/PSP5
RD6/PSP6
RD7/PSP7
33
34
35
36
37
38
39
40
D4
DIODE
R16
NPN
1k
R4
NPN
1k
NPN
1k
15
16
17
18
23
24
25
26
LED1
Q4
1k
Q1
R3
5V
R13
LED1
Q2
D9
DIODE
Q3
5V
LED-GREEN
330
D12
DIODE
LED2
D2
DIODE
LED2
330R
D1
330
5V
D3
D10
LED-RED
D16
R20
RL1
5V
D11
NPN
19
20
21
22
27
28
29
30
PIC16F877A
LDR1(1)
LDR4(1)
R7
TORCH_LDR
R12
D5
LED-YELLOW
330
U1:A
3
LDR1
TORCH_LDR
LDR2
330
1
+2.26
TORCH_LDR
D8
LED-YELLOW
U2:A
330
LP2901
D6
U1:B
+2.26
1
6
LED-YELLOW
12
R8
LDR4
TORCH_LDR
LDR3
Volts
2
R11
12
5
2
4
+0.05
LP2901
D7
U2:B
LED-YELLOW
R6
10k
+0.05
LP2901
Volts
+0.05
10k
+2.26
Volts
Volts
R9
12
R5
R10
10k
+0.05
Volts
LP2901
10k
+2.26
Volts
Volts
330
Volts
12
OSC1/CLKIN
OSC2/CLKOUT
VOUT
D15
R17
TEMP_SENSOR
19.0
330
RL3
R2
RL2
R15
RL4
330
R1
2015
III.
IV.
V.
Automated solar tracker system/ tracking the PV panel towards the direction where
maximum power can get.
Automated tanker filling system simulation/ filling water to the tanker if the water level
is below the predefined (LL) value and stop the motor if the tanker filled or reach the
(HL) value.
Automated irrigation system which simulates feeding the field automatically by opening
the solenoid valves if the moisture of the soil is above some predetermined value (50%
in our case) and the temperature of environment below some predetermined value (20
degree centigrade in our case) and closing the valve if one of the above conditions are
not satisfied.
Alarming system is indication of the system improper operation or failure of the system
end output.
The complete simulation and hardware implementation of the system is working based
on the control output signal of the microcontroller. The microcontroller is working using
an appropriate code in programing language. Because, PIC type of microcontroller, code
is written on C language which is mikroC software. Choosing the programing language
based on the simulation software, PROTEUS which is compatible with C language is a
key concept or concern. So, the final code of our project is found at the end of this
document.
Page 58 of 72
2015
Component/Device
Unit
DC motor
6-12V
Relay
12V
3
4
PIC16F877A
Buzzer
1
1
5V
6-12V
OpAmp
5V
Transistor
5-12V Vcc
Resistor
10k
Resistor
13
330
Resistor
1k
Capacitor
4.7PF
9
10
Solenoid valve
LDR
2
4
12V
10M dark resistance
11
LCD
5V
12
Crystal oscillator
2MHz
13
Temperature sensor
14
Diode
6V
15
LED
12
6V
16
DC power supply
17
Board
18
Electrical cables
Page 59 of 72
2015
4.3 Result
The result what we have got from the simulation and, design and implementation of the hardware
of this project can be summarize with the following main points.
One, able to rotate and control the direction of the rotation (clockwise and/or counter
clockwise) of the DC-motor which can further rotate or track the PV-panel towards the
direction of the sunlight where maximum sunlight energy can get. As a result the system
can generate enough electric energy from the solar energy to supply the load.
Second, can stop and/or start the DC-motor; which can fill the tanker when the water
level of the tanker reaches its lowest level and stop when the water level of tanker reaches
its maximum level using the PIC16F877A microcontroller as a controller by taking the
output of the water level sensors of the tanker as an input.
Third, able to control the operation of the control valves that control the water flow to the
field or farming area by taking the output of the soil moisture sensor of the field as an
input to the microcontroller. This means it can automatically feed the field if its soil
moisture level is below the predefined value and the temperature of the environment is
below 20 oc, and stops feeding or close the valves if the soil moisture is wet enough.
It also indicates the total operating condition of the system by using an alarm system
which indicates any failure in the system such as failure to open or close control valves
and failure to ON/OFF of the different motors involved in the systems.
Finally, displaying the operating conditions of the system such as state of the motors
(ON/OFF) and the values of the parameters: existing temperature (in oc), soil moisture
level (%), etc. using the device LCD.
Page 60 of 72
2015
4.4 Discussion
When we come to discuss about the result , how it comes, what does it mean and what are the
parameters affect it can be answer by discussing each result in detail as follow.
The DC-motor can rotate or operate when one of its terminals can get source and the rest
terminal is grounded. If we want to reverse the direction of the rotation of the motor, we
can simply reverse the terminals. This can be done automatically using the PIC16F877A
microcontroller by taking the magnitude of the two of the LDR sensors as an input to the
microcontroller using Operational amplifier (OpAmps) as ADC before it enters to the
PIC. Lets assume, initially the rotation is counter clockwise of horizontal axis rotation.
When the rotation is clock wise direction, LDR1 is greater than LDR2 which mean the
light energy around the place of LDR1 is higher than the other LDR. Similarly, to the
vertical axis rotation using LDR3 and LDR4 the tilt angle can be increase or decrease
depending upon the light intensities of the sensors which decreases its resistance value as
light intensity increase So, the PIC16F877A generated control signal to reverse the
rotation of the tracker motor which results high solar energy generation. The reverse of
this is simply similar except the direction of the rotation of the dc-motor.
In order to fill a given tanker automatically, there should be two homemade water level
sensors which are high level sensor and low level sensor. So, using the output of these
sensing circuits to the microcontroller inputs, it can automatically fill the tanker when the
water level is below or equals to the low level and stop filling or making off the pumping
motor when the water amount of the tanker is equal to the high level of the tanker.
With the same principle to the level sensor circuit, the automatic irrigation of field is
done based on the circuit that senses the level of moisture of the soil. Taking the output of
this sensor or sensing circuit, the microcontroller generate control signal to close or open
the control valve to the field. Depending on the level of the soil moisture, the
microcontroller decides the operation of the solenoid valve.
Displaying the operating result make the system simple and easy understand to the
external user. So this is done by giving the appropriate input to the LDC from the
microcontroller. Alarm system also helps to indicate any failure and miss operation on the
whole system. This is done using buzzer by taking input from the microcontroller.
The hardware design and implementation is done based on the complete simulation and
connections involved in the simulation.
CODING IS MUST: an appropriate coding is done for both the simulation and hardware
implementation. Because the microcontroller is working based on the code what we have
done for system operation. So, this is done mikroC programing language.
Page 61 of 72
2015
Component
Unit
Cost/Unit
(ETB)
DC- motor
150
300
LCD
300
300
Temperature sensor
75
75
Buzzer/Alar,
30
30
LDR
15
60
LED
10
40
Relay
13
52
OpAmps
15
90
60
60
10
20
20
11
225.75
225.75
Sum
1252.75
Page 62 of 72
2015
Chapter Five
5. Conclusion and Recommendation
5.1 Conclusion
Automatic solar tracker based water pumps and tanker filling can provide simple and low labor
watering options for farms that require water in remote areas. Several general points to keep in
mind about solar water pumping include:
Solar PV-based irrigation system is a system that can perform three main functions:
automatic tracking PV-panel position in order to get maximum electric energy from solar
using maximum Power Point Tracker (MPPT) motor, automatic tanker water filling and
automatic water feeding motor controlled by PIC16F877A microcontroller.
Solar trackers are used to improve electric power radically of photovoltaic panel by using
different sensor. The sensors retrieve the solar radiation. This paper presents a simple
method, low cost microcontroller based solar tracker of two ways of rotating freedom in
order to achieve the right positioning of photovoltaic solar cell to get the much sunlight
during the day light session and as a result produce more electricity. This tracking system
is developed with two direct current motor operated by a microcontroller which processes
the sensors (LDR) information by its internal ADC analogue to digital converter with
Fuzzy logic and send correct information to motor controller by which motor is operated.
The motor is so operated that the panel can rotates two ways such as horizontally and
vertically of its direction. A comparison has been made on a conventional solar follower
plant and trucking system.
Water storage in metal or plastic tanks is used instead of power storage in a battery. This
reduces costs and makes the system simpler. A float switch turns the pump off when the
tank is full.
An electronic pump controller is used to smooth out the current to the pump. It acts like
an automatic transmission in the sense that it helps the pump to start and to operate in
low light conditions.
As with the turtle and the hare, slow and steady wins the race. Many solar pumps are
made to pump slowly over the course of the day, which allows water to be pushed over
considerable distances and vertical rises. Slow pumps can use small diameter piping,
reducing the installed cost. Slow pumps require less power and allow the use of limited
water resources, such as a slowly recharged well.
To reduce the cost of a system, water conservation must be practiced. PV modules are
expensive, and reducing water use in any manner will save on the installed cost.
Solar pumps are generally most competitive in smaller systems where combustion
engines are least economical.
Solar pump systems are low maintenance. With automatic shutoff from a float valve,
they require only occasional inspection.
Page 63 of 72
2015
5.2 Recommendation
In our country there is more than enough solar source of energy. But nothing is done on
generation of energy from the solar source. And most of our populations (about 80%) are living
their life using the agricultural product. This shows that most of our populations are farmers
which produce products using regular farming and irrigation system. So, we can recommend the
government, public and private companies participating on agricultural activities and individual
farmers to do and to concern on the following main points.
Government should work on the irrigation system of our country by introducing new
agricultural technologies that can double and triple the product of the individuals and the
country. Automatic solar tracker microcontroller based irrigation system is among
the best technologies done for agriculture. So, government should introduce such system
in every level of its agricultural sectors.
Public and private companies that participating in the agricultural activities should be
familiar with the modern agricultural technologies which able them to maximize their
productivity and at the same time the national productivity.
Sometimes even though government and/or public or private companies introduced the
modern agriculture system that able to minimize cost, maximize efficiency and
productivity of the government, the companies and individuals, the individual farmers
and workers cannot be familiar to the new technology easily. This affects the
developmental plan and strategies of the country and individuals. So, considering these
negative effect individuals should ready to be familiar with the different technologies
introduced by the government, governmental and non-governmental companies.
Page 64 of 72
Page 65 of 72
2015
void data_converstion1(void)
{
inttostr(temp,temper);
}
void display1(void)
{
Lcd_Out(1, 1, "Temp=");
Lcd_Out(1, 6, Ltrim(temper));
Lcd_Chr_Cp(0xdf);
Lcd_Chr_Cp('C');
Lcd_Chr_Cp(' ');
}
void READ_humid(void)
{
humid=ADC_Read(1);
//humid=humid*5/1023;
humid=(humid/10)-1;
}
void data_converstion2(void)
{
inttostr(humid,humidity);
}
Page 66 of 72
2015
READ_temp();
Page 67 of 72
2015
2015
if ((PORTD.RD2==0&&PORTD.RD3==0)||
(PORTD.RD2==1&&PORTD.RD3==1)) //Checking the button pressed or not
{
PORTC.RC4=0;
PORTC.RC5=0;
Lcd_Out(2, 4, "OFF");
}
else if (PORTD.RD2==0&&PORTD.RD3==1) // Checking the button pressed or not
{
PORTC.RC4=0;
PORTC.RC5=1;
Lcd_Out(2, 4, "ON ");
}
else{
PORTC.RC4=1;
PORTC.RC5=0;
Lcd_Out(2, 4, "ON ");
}
if ((PORTD.F0==0&&PORTD.F1==0)||(PORTD.F0==1&&PORTD.F1==1)) //Checking the
button pressed or not
{
PORTC.RC6=0;
PORTC.RC7=0;
Lcd_Out(2, 12, "OFF");
}
else if (PORTD.F0==0&&PORTD.F1==1) // Checking the button pressed or not
Page 68 of 72
PORTC.RC1=0;
Page 69 of 72
2015
2015
References
[1]. M. A. Usta, . Akyaz and . H. Alta "Design and Performance of Solar Tracking System
with Fuzzy Logic Controller", 6th International Advanced Technologies Symposium (IATS11),
16-18 May 2011, Elaz, Turkey.
[2]. R. Mukaro, X.F. Carelse, A microcontroller-based data acquisition system for solar radiation
and environmental monitoring, IEEE Transaction on Instrumentation And Measurement, Vol.
48, No. 6, December 1999.
[3]. E. Koutroulis, K. Kalaitzakis, N. C. Voulgaris, Development of a microcontroller-based,
photovoltaic maximum power point tracking control system, IEEE Transactions On Power
Electronics, Vol. 16, No. 1, January 2001.
[4]. M.A. Abella, E. Lorenzo, F. Chenlo, Effective irradiance estimation for PV applications,
3rd World Conference on Photovoltaic Energy Conversion, May 11-18, 2003 Osaka, Japan.
[5]. Z. Xinhong, W. Zongxian and Y. Zhengda, Intelligent Solar Tracking Control System
Implemented on a FPGA, Institute of Electrical Engineering, Yuan Ze University.
[6]. A. Louchene, A. Benmakhlouf and A. Chaghi, Solar Tracking System with Fuzzy
Reasoning Applied to Crisp Sets, Revue des Energies Renouvelables, Vol. 10, No2, pp. 231
240, 2007.
[7]. Gustavo Ozuna, Carlos Anaya. Diana Figueroa. Nun Pitalua, Solar Tracker of Two Degrees
of Freedom or Photovoltaic Solar Cell Using Fuzzy Logic, Proceedings of the World Congress
on Engineering 2011 Vol II WCE 2011,July 6 - 8, 2011, London, U.K.
[8]. J. S. Choi, D. Y. Kim, K. T. Park, C. H. Choi and D. H. Chung, Design of Fuzzy Controller
Based on PC for Solar Tracking System, International Confrerence on Smart Manufacturing
Application, April, 9-11, 2008 in KINTEX, Gyeonggi-do, Korea.
[9]. Dr. J R Mahamood and H Muhammad "Design and implementation of Smart Relay Based
Two-axis Sun Tracking System" Iraq J.Electrical and Electronic Engineering Vol.7 No.1, 2011
pp. 64
[10]. Microchip,PIC16F877A Datasheet,http://www.microchip.com
[11]. International Water management Institute [2010].
Page 70 of 72
2015
Appendix
PV:
Photovoltaic
MPPT:
DC:
Direct Current
LDR:
PIC:
MikroC:
c)
ADC:
DAC:
CPU:
RAM:
ROM:
LCD:
LED:
I/O:
Input Out
IC:
Integrated Circuit
CSP:
CPV:
Concentrated Photovoltaic
RWH:
Rainwater Harvesting
Kwh:
Kpa:
Kilo Pascal
C:
Degree centigrade
%:
Percentage
OpAmps
Operational amplifiers
Page 71 of 72