SlideShare a Scribd company logo
Graduation Project
Automatic Dual Axis Solar Tracking System
Submitted to:
An-Najah National University
In partial fulfillment of the requirements for
Bachelor degree in Electrical Engineering
Submitted by:
Reem AL-khateeb (11109854)
Yasmeen Hanani (11108239)
Supervised by: Dr.Saed Tarapiah
May 4, 2016
FacultyofEngineering&InformationTechnology
Electrical Engineering Departments
An-Najah National University
I | P a g e
.............‫هدإء‬‫إ‬
‫لليايل‬‫إ‬ ‫سهر‬ ‫نطوي‬ ‫هلل‬ ‫إمحلد‬‫و‬ ‫إليوم‬ ‫وهاحنن‬ ‫إلصعوابت‬ ‫من‬ ‫إلكثري‬ ‫نينا‬‫ا‬‫وع‬ ‫مه‬ ‫من‬ ‫كرث‬‫أ‬ ‫وقاسينا‬ ‫يد‬ ‫من‬ ‫كرث‬‫بأ‬ ‫ان‬‫بدأ‬‫ولصاة‬ ‫مام‬‫إأ‬ ‫عع‬‫و‬
‫إضع‬‫و‬‫إملت‬ ‫إلعمل‬ ‫هذإ‬ ‫دفيت‬ ‫بني‬ ‫إران‬‫و‬‫مش‬
‫ش‬ ‫عفيض‬ ‫مشاعر‬ ‫من‬ ‫خياجله‬ ‫ملا‬ ‫يبوح‬ ‫ن‬‫أ‬ ‫ال‬‫أ‬ ‫إلقل‬ ‫ىب‬‫أ‬ ‫لكن‬‫و‬ ..‫يسري‬ ‫ن‬‫أ‬ ‫إلقمل‬ ‫ورق‬ ..‫إلتعبري‬ ‫عن‬ ‫إللكامت‬ ‫إمتنعت‬‫عىل‬ ‫ثناء..ثناء‬‫و‬ ‫إمتناان‬‫و‬ ً‫إ‬‫ر‬‫ك‬
‫إضع‬‫و‬‫إملت‬ ‫إلعمل‬ ‫هذإ‬ ‫إنهتاء‬ ‫حىت‬ ‫عىل‬ ‫بذلوه‬ ‫ملا‬ ‫إمتناان‬ ‫خلدمتنا‬ ‫نفسهم‬‫أ‬ ‫نذروإ‬ ‫من‬
.‫لها‬‫و‬‫ح‬ ‫مه‬ ‫ملن‬ ‫لتضئ‬ ‫نفسها‬ ‫قت‬‫ر‬‫ح‬‫أ‬ ‫مشع‬ ‫ما‬ ‫..كل‬ ً‫إ‬‫ر‬‫شك‬‫و‬ ‫ما‬ ‫..كل‬ً‫إ‬‫ر‬‫شك‬ .. ‫شذإها‬ ‫وطاب‬ ‫عبريها‬ ‫فاح‬ ‫وردة‬ ‫ما‬ ‫..كل‬ً‫إ‬‫ر‬‫شك‬ .‫يقها‬‫ر‬‫ب‬ ‫إد‬‫ز‬ ‫ردة‬
‫نقها‬‫و‬‫ور‬ ..
‫إلعب‬ ‫ي‬‫أ‬ ‫بل‬ .. ‫حقك‬ ‫يفيك‬ ‫إلالكم‬ ‫ي‬‫أ‬ ‫ندري‬ ‫ال‬ .. ‫إت‬‫ر‬‫إلعبا‬ ‫مشل‬ ‫تشتت‬‫و‬ ‫إللكامت‬ ‫منا‬ ‫بت‬‫ر‬‫ه‬ ‫لقد‬ ‫نقول‬ ‫ن‬‫أ‬ ‫بوسعنا‬ ‫ماذإ‬‫مبقامك‬ ‫عليق‬ ‫إت‬‫ر‬‫ا‬ ..
‫إدل‬ ‫ىل‬‫إ‬ ‫ابلشكر‬ ‫ندين‬‫كتور‬‫لنا‬ ‫انر‬‫أ‬ ‫إذلي‬ ‫بي‬‫ر‬‫ط‬ ‫سعد‬‫نصاحئه‬‫و‬ ‫بتوجهياع‬ ‫علينا‬ ‫يبخل‬ ‫ومل‬ ‫يق‬‫ر‬‫إلط‬
، ‫إلصازم‬ ‫إجع‬‫ر‬‫إمل‬‫و‬ ‫إملصادر‬ ‫عوفري‬ ‫من‬ ‫لنا‬ ‫إملساعدة‬ ‫عقدمي‬ ‫يف‬ ً‫إ‬‫هجد‬ ‫يدخروإ‬ ‫مل‬ ‫إذلين‬ ، ‫هذإ‬ ‫معلنا‬ ‫ابجناز‬ ‫سامه‬ ‫من‬ ‫للك‬‫و‬‫لذلين‬ ‫إلتقدير‬ ‫لك‬ ‫و‬
‫إلتشجيع‬ ‫لك‬ ‫منحوان‬
II | P a g e
Acknowledgment
We are heartily thankful to our supervisor Dr.Saed Tarapiah for his guidance and support
from the initial to the final level which enabled us to complete this project.
Also we give all our regards and wishes to all the academic supervisors and the employees at
An-Najah National University whom encouraged and supported us throughout our study.
III| P a g e
Table of Contents
List ofFigures….……...……………………………………………….……………………………………………….V
List oftables…..………………………………………………….....…………………………………………….……VI
Abstract……….……..……………………………………….....……………………………………………….……VII
Chapter one :Introduction..................................................................................................................................1
1.1 Overview.................................................................................................................................................... 1
1.2 Scope of the Project……...……………………………………………………………………………………….3
1.2 Report Organization…….........................................................................................................................................4
Chapter Two: Constrains, Standards /Codes and Earlier work…..…………………..…………………………….5
2.1 Constraints………………………………………………………...………………………………………………5
2.2 Standards /Code………………………...…………………………………………………………………………5
2.1 Earlier Coursework……………………………………..…………………………………………………………8
Chapter Three: Literature Review………………………………………...…………..…………….………………...9
3.1 Sun Main Characteristic………..………………………………………………...……………………………….9
3.1.1 Sun Light Reaching The Earth………………...……………………...……….……………………………..9
3.2 Solar Cell Theory………………………………..……………….……………………………………………...10
3.2.1 Photovoltaic…………………………………………………………...………………………………….....10
3.2.1.1 General Concept..………………..…………………………………………………...……………….10
3.2.1.2 Photovoltaic Technologies………...………………………………………………………..………...10
3.2.2 Different Cell Type…………………………………………………..……………...……………………..10
3.2.3 Solar Cell Physical Analysis…………………………….……………………..…………………………...10
3.2.4 Description of the Solar Cell Functionality……………………………………… …………...……….…..11
3.2.5 Characteristics of a Solar Cell………………………………………………………………………….…..11
3.2.5.1 Current-Voltage Line of a si-Solar Cell…………………………………..……………………...……11
3.2.5.2 Normal Limits of Efficiency………….………………………………...……………………………..12
3.3 Optimum Angle………………………………….………………………………...…………………………….12
3.3.1 Solar Angle Calculator……………………………………………………………………………………...14
3.4 Solar Tracking Theory……………………………………………………..…………………………………….14
3.4.1 Solar Tracking Techniques……………………………………….…………………………………………14
3.4.2 Definition of Solar Tracker……………………………..…………………………………………………...14
3.4.3 Methods of Drive……………………………………...…………...………………………………………..15
3.4.4 Existing Prototype………………………………………………………..………………………………….15
Chapter Four: Methodology……………………………………….……………………………….………………...16
4.1 Design…………………………………………………………………………………………………………..16
4.1.1 Mechanical Design…………………………………………..…..………………………………………...16
IV | P a g e
4.1.2 Model Design……..……………………...………………………..………………………………….……17
4.1.3 Electrical and Electronic Design………………………………………………………...…………………20
4.2 System Main Components………………..…………………………………………………………………….20
4.2.1 Servomotor…….…………………...…………..…………………………………………………………..20
4.2.2. Light Sensor Theory…….…………………………………………...…………………………………….21
4.2.3 Tracking Controller ………………………………….……………….……………………………… …...23
4.3 Light Sensor to Microcontroller Circuit..……………………………………………………………………….23
4.4 Complete Circuit……...………………………………………………………………………………………...24
4.5 Flowchart…………………………………………………………………………………………………..……25
Chapter five: Results and Analysis…………………………………………………………………………………...26
Chapter six: Conclusions and Recommendations ……...................…………………………….…………………..28
References………………………......………………………………………………………………………………….29
Appendix A…………………………………………………………………………………………………………….30
V | P a g e
List of Figures:
Figure 1 Global energy consumpti1830-2010.……………………………………………………………1
Figure 2 World population 1950-2050…………………………………………………………………...…2
Figure 3 Future energy serves for coal, gas and oil……………..…………………………………………2
Figure 4 Solar cell, panel and array…………….. ……………………………………………………………3
Figure 5 Perpendicular and non-perpendicular solar panels to the sun…………………………….………4
Figure 6 Conditions that blocks sun light from reaching the earth’s surface……..…………………………9
Figure 7 Sunlight distribution according to orientation and tilt angle………………………………………13
Figure 8 Methods of solar panels alignment……………………………………………………………16
Figure 9 Suggested design (two motors)……………….………………………………………………17
Figure 10 Base structure………………………………..…..………………………………………………17
Figure 11 Upper structure………………….. ……………………………………………………………18
Figure 12 Back View…………………………………….……………………………………………18
Figure 13 Servo motor………………………….……………………………………………………………21
Figure 14 Polycrystalline Mini PV Module ………….……………………………………………………22
Figure 15 Four-Sided mini polycrystalline solar modules ………………………………………………………22
Figure 16 Arduino Uno……………………………………………………………………………………23
Figure 17 Light sensor to microcontroller interface circuit ………………………………….……………24
Figure 18 EIA average energy production in a day…………………………………………………………26
Figure 19 EIA average energy production in the four seasons……………………..……………………..…27
VI| P a g e
List of Tables:
Table 1 Arduino Uno Summery. ....................................................................................................5
Table 2 Servo Motor Summary...................................................................................................... 6
Table 3 Solar Cell SM-E1638 Summery......................................................................................... 7
VII| P a g e
ABSTRACT:
Solar energy is getting high consideration all over the world as an important renewable
energy source. So, it’s vital for engineers to understand the technologies associated with this
area. Our project is a dual axis solar tracking system. It uses microcontroller, light dependent
resistors, and servo motor. The aim of the project is to increase the efficiency of solar cells
by 30-45%. This report will present the steps that we have gone through our design.
1 | P a g e
Chapter One: Introduction
1.1 Overview:
The world is facing an energy crisis. Abundant and economical energy is the source of life of modern
civilizations. There is consensus among people of all sorts about deficit in power since they are all a victim
of it. This crisis has many reasons and some of them are the following:
1. Over consumption: fig.1 shows the increase of energy consumption from the eighties to 2010 and world
energy consumption will increase 56% by 2040.
2. Overpopulation: fig.2 shows the increase in world population in the period between 1950 and 2050.
3. Poor infrastructure: most of the energy producing firms keep on using outdated equipment that restricts
the production of energy.
4. Delay in commissioning of power plant: in few countries there is a significant delay in commissioning of
new power plants that can fill the gap between demand and supply of energy.
5. Wastage of energy: in most parts of the world people do not realize the importance of conserving energy!
6. Wars and attacks: as Palestine falls under this category due to the occupation and the political situation,
this resulted in electrical deficit the consequences of which were apparent in the electrical crisis last
summer.[1]
Fig1. Global Energy Consumption 1830-2010
2 | P a g e
Fig2.The World Population 1950-2050
In terms of energy source we rely on coal, oil and gas (the fossil fuels) for over 80% of our current energy
needs. But this situation can’t last for a long time because; today, oil and gas reserves are in the hands of a
small group of nations, several of which are considered politically unstable or have testy relationships with
large consuming countries. Fuel price (petrol) is increasing even though for many of us, the cost of fuel is
one of our biggest regular expenses, and that’s mainly because of increasing demand as mentioned earlier
and government fuel taxes. And the most important reason is that we are running out of fuel just over 200
years – we’ve consumed an incredible amount of oil and coal. Fossil fuels are an incredibly dense form of
energy, and they took millions of years to become so. And when they’re gone, they’re gone pretty much
forever, fig3. Shows future energy serves for coal, gas and oil.[2]
Fig3. Future Energy Serves for Coal, Gas and Oil.
Because of the above situation, word is moving toward clean renewable energy especially solar one, and
why is that? At any moment, the sun emits about 3.86 x 10^20 MW per second. Most of that energy goes off
3 | P a g e
into space, but about 1.73 k watts strikes the earth. If there are no clouds in the way, then one square meter
of the earth will receive about one kilowatt of that energy. Also, the cost of solar panels has dropped
drastically in the last few years and the International Energy Agency said solar power could be the number
one source of electricity on earth by 2050. This is good news because we need to transition to renewable
energy to stabilize the global climate. [3]
Solar panels are devices that convert light into electricity. Some scientists call them photovoltaic which
mean, basically, "light-electricity." It’s a collection of solar cells. Lots of small solar cells spread over a
large area can work together to provide enough power to be useful, fig4. Shows a solar cell, panel and array.
Fig4. Solar Cell, Panel and Array
1.2 Scope of the Project:
The more light that hits the solar cell, the more electricity it produces. Most solar panels efficiency is
around 11-15% [4], note that the maximum efficiency is obtained when the panel is perpendicular to the sun
light. Increasing the efficiency means better, you will get more power, greater return on investment; reduce
the area because you will need fewer panels. And this is what we aimed by our project, we have designed a
dual axis solar tracking system that will increase the efficiency by 30-45% by tracking the sun and being
perpendicular to it most of the day, to capture the most direct radiation possible, see fig5[5]. Nature did it
first: numerous plants, like the sunflower for example, orient themselves towards the sun during the course
of a day. It is a simple, but brilliant principle. The tracking frame is made from weather-proof materials
including hot dipped galvanized steel. This guarantees years of trouble-free operation.
4 | P a g e
Fig5. Perpendicular and non Perpendicular Solar Panels to the Sun
1.2 Report Organization:
We organized our project as following:
 Chapter two is talking about standards/codes, the constraints of our work and earlier course work.
 Chapter three is a general literature review.
 Chapter four deals with methodology that we have gone through.
 Chapter five represents the results of our work.
 Chapter six ends the report with our conclusion and recommendations.
5 | P a g e
Chapter Two: Constrains, Standards/Codes and Earlier Course
Work
2.1 Constraints:
In our project we face some of the problems that we were able to solve them and were building prototype
solar cell base as well as the selection of appropriate motors that can move the solar cell.
2.2 Standards/ Codes:
1. Arduino Uno:
Microcontroller ATmega328P
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limit) 6-20V
Digital I/O Pins 14 (of which 6 provide PWM output)
PWM Digital I/O Pins 6
Analog Input Pins 6
DC Current per I/O Pin 20 Ma
DC Current for 3.3V Pin 50 mA
Flash Memory
32 KB (ATmega328P)
of which 0.5 KB used by bootloader
SRAM 2 KB (ATmega328P)
EEPROM 1 KB (ATmega328P)
Clock Speed 16 MHz
Length 68.6 mm
6 | P a g e
Table 1 Arduino Uno R3 summery.
2. Data Sheetfor Servo Motor:
Table 2 servo motor summery
Width 53.4 mm
Weight 25 g
7 | P a g e
3. Data Sheetfor Solar Cell:
PolyCrystalline Cells Solar Panel
6V 250mA 135*85mm Small Watt Wholesale Solar Cell
Product Type: Epoxy Solar Panel
Model No.: SM-E1638
Product Construction: Epoxy Resin + Cell + PCB
Maximum Output: 6V*250mA=1.5W
Tolerance: ±3%
Electrical Specification (under standard test condition)
Maximum Output Power (Wmp) 1.5W
Max Working Voltage (Vmp) 6V
Max Charging Current (Imp) 250Ma
Open Circuit Voltage (Voc) 7.2V
Short Circuit Current (Isc) 262Ma
Cell efficiency(η): 16.5%
Materials
Solar cell type: Polycrystalline
PCB FR-4
PCB thickness(mm) 1.0mm 1.2mm 1.5mm
PCB color Black
PCB size(mm) 135*85*2mm
Product thickness: 2.6-2.8mm
Barline: Black tape or none
Physical characteristics
Appearance: Transparent and good polish,
without distortion and loss
Lifetime: 1-3 years
8 | P a g e
Warning:
1.The mini solar panel can not be placed near to strong corrosive substance
2.Avoid scraping by something hard when using
3.Cannot bend during delivery and installation
Using and Storing Condition
Storing temperature 20°C ~ 60°C
Working temperature -20°C ~ 60°C
Table 3 Solar cell SM-E1638 summery
2.3 Earlier Course Work:
In this project we had some courses that had been talked about solar cell and motors, as well as using the
Arduino including electrical machinery and alternative energy systems and micro-processors.
Also we have visited the energy center in the old campus at An Najah national university and we have
gained a lot of knowledge that help us to accomplish our project.
9 | P a g e
Chapter Three: Literature Review
This chapter is dealing with important background information, which is about the sun, solar cells and
collection of DC energy. It was also important to display different tracking systems which are available.
3.1 Sun Main Characteristics:
The sun is an average star. It has been burning for more than 4-billion years, and it will burn at least that
long into the future before erupting into a giant red star, engulfing the earth in the process.
Most of the sun energy which is nearly 95% is in the form of light, it may be visible or invisible. The green
portion of the radiation is the visible one, which is used by plant and human eye to function.
Nearly all the energy on earth is produced by the sun, evaporation-transpiration which is the result of radiant
heat caused hydropower, fossil fuel is the product of remnant organic lives being nourished by the sun for
millions of years, when sun unevenly heats the atmosphere of the earth it results with winds, and converting
the sun light into photovoltaic electricity with certain types of materials.[6]
3.1.1 Sun Light Reaching the Earth:
The power output from the sun is 3.86 x 10^20 MW per second which is huge, it several billion times the
electric capacity of the U.S. utilities. The energy reaching the earth atmosphere is about 1.73KW per square
meter.
Not all the amount of energy that reached the atmosphere is going to reach the earth, a good portion of some
spectrums are going either to be absorbed or filtered or reflected by the atmosphere. Also, some of which is
reflected by the clouds or earth surface, absorbed by the winds to heat them and others, see fig6. Leaving the
earth surface with a maximum sunlight intensity of 1 kwatt per meter square.[6]
Fig 6. Conditions that Blocks Sun Light from Reaching the Earth’s Surface
10 | P a g e
3.2 Solar Cell Theory
3.2.1 Photovoltaic:
3.2.1.1General Concept:
The word Photovoltaic is a combination of the Greek word for Light and the name of the physicist
Allesandro Volta. It identifies the direct conversion of sunlight into energy by means of solar cells. The
conversion process is based on the photoelectric effect discovered by Alexander Bequerel in 1839. The
photoelectric effect describes the release of positive and negative charge carriers in a solid state when light
strikes its surface.[7]
3.2.1.2Photovoltaic Technologies:
The first practical use of solar cells was the generation of electricity on the orbiting satellite Vanguard 1 in
1958. These first solar cells were made from single crystal silicon wafers and had efficiency of 6 %. The
space application was for some time the only application of solar cells. The energy crisis in the seventies of
the 20th century accelerated a search of new energy sources for terrestrial applications. This search resulted
in a growing interest for PV solar energy. The major obstacle of using solar cells for terrestrial electricity
generation has been a much higher price of the solar electricity when compared to the price of electricity
generated from the traditional sources. Therefore, there has been much effort in the field of solar cells to
reduce the price of solar electricity to a level that is comparable to the conventional electricity. The single
crystal silicon wafer-based solar cells that had been used in space became also the first solar cells to be used
for terrestrial generation of electricity. In order to increase the efficiency of single crystal silicon solar cells
and to lower their price, the
Crystalline silicon solar cell technology has improved dramatically in the past twenty years and today it is
the dominant solar cell technology. Crystalline silicon solar cell technology represents today not only single
crystal silicon wafer-based solar cells, but also multicrystalline silicon solar cells. Both technologies that
deal with “bulk” crystalline silicon are considered the first generation solar cells for terrestrial applications.
As this technology has matured, costs have become increasingly dominated by material costs, namely those
of the silicon wafer, the glass cover sheet, and encapsulates.
In order to decrease the material costs of crystalline silicon solar cells, research has been directed to develop
low cost thin-film solar cells, which represent a second generation solar cells for terrestrial application.
There are several semiconductor materials that are potential candidates for thin-film solar cells, namely
copper indium gallium diselenide (CuInGaSe2=CIGS), cadmium telluride (CdTe), hydrogenated amorphous
silicon (a-Si:H).[7]
3.2.2 DifferentCell Types:
One can distinguish three cell types according to the type of crystal: monocrystalline, polycrystalline and
amorphous.
To produce a monocrystalline silicon cell, absolutely pure semiconducting material is necessary.
Monocrystalline rods are extracted from melted silicon and then sawed into thin plates. This production
process guarantees a relatively high level of efficiency.
The production of polycrystalline cells is more cost-efficient. In this process, liquid silicon is poured into
blocks that are subsequently sawed into plates. During solidification of the material, crystal structures of
11 | P a g e
varying sizes are formed, at whose borders defects emerge. As a result of this crystal defect, the solar cell is
less efficient.
If a silicon film is deposited on glass or another substrate material, this is a so-called amorphous or thin layer
cell. The layer thickness amounts to less than 1µm (thickness of a human hair: 50-100 µm), so the
production costs are lower due to the low material costs. However, the efficiency of amorphous cells is
much lower than that of the other two cell types. Because of this, they are primarily used in low power
equipment (watches, pocket calculators) or as facade elements.[7]
3.2.3 SolarCellPhysics Analysis:
Nuclear fusion reactions on the sun's surface supply earth with solar energy. This energy is primarily
released in the form of electromagnetic radiation in the ultraviolet, infrared and radio spectral regions
(wavelengths from 0.2 to3m).
Presently, the most efficient means of harnessing this power source is the solar cell, which converts solar
radiation directly into electricity.
Solar cells are fabricated from various semiconductor materials using numerous device configurations and
selecting single-crystal, polycrystalline, and amorphous thin-film structures.
To following theory considers the silicon p-n junction cell, because it acts as a reference device for all solar
cells. The solar cell has a single energy band gap Eg. When the cell is exposed to the solar spectrum, a
photon with energy less than Eg makes no contribution to the cell output. A photon with energy greater than
Eg contributes an energy Eg to the cell output, and the remaining energy is wasted as heat. [7]
3.2.4 Descriptionof SolarCell Functionality:
Solar cells are composed of various semiconducting materials. Semiconductors are materials, which become
electrically conductive when supplied with light or heat, but which operate as insulators at low temperatures.
Over 95% of all the solar cells produced worldwide are composed of the semiconductor material Silicon
(Si). As the second most abundant element in earth`s crust, silicon has the advantage, of being available in
sufficient quantities, and additionally processing the material does not burden the environment. To produce a
solar cell, the semiconductor is contaminated or "doped". "Doping" is the intentional introduction of
chemical elements, with which one can obtain a surplus of either positive charge carriers (p-conducting
semiconductor layer) or negative charge carriers (n-conducting semiconductor layer) from the
semiconductor material. If two differently contaminated semiconductor layers are combined, then a so-
called p-n-junction results on the boundary of the layers.[7]
3.2.5 Characteristics ofa SolarCell:
3.2.5.1Current- Voltage Line of a si-SolarCell:
The usable voltage from solar cells depends on the semiconductor material. In silicon it amounts to
approximately 0.5 V. Terminal voltage is only weakly dependent on light radiation, while the current
intensity increases with higher luminosity. A 100 cm² silicon cell, for example, reaches a maximum current
intensity of approximately 2 A when radiated by 1000 W/m².
12 | P a g e
The output (product of electricity and voltage) of a solar cell is temperature dependent. Higher cell
temperatures lead to lower output, and hence to lower efficiency. The level of efficiency indicates how much
of the radiated quantity of light is converted into useable electrical energy. [7]
3.2.5.2Natural Limits of Efficiency:
Theoretical maximum levels of efficiency of various solar cells at standard conditions. In addition to
optimizing the production processes, work is also being done to increase the level of efficiency, in order to
lower the costs of solar cells. However, different loss mechanisms are setting limits on these plans.
Basically, the different semiconductor materials or combinations are suited only for specific spectral ranges.
Therefore a specific portion of the radiant energy cannot be used, because the light quanta (photons) do not
have enough energy to "activate" the charge carriers. On the other hand, a certain amount of surplus photon
energy is transformed into heat rather than into electrical energy. In addition to that, there are optical losses,
such as the shadowing of the cell surface through contact with the glass surface or reflection of incoming
rays on the cell surface. Other loss mechanisms are electrical resistance losses in the semiconductor and the
connecting cable. The disrupting influence of material contamination, surface effects and crystal defects,
however, are also significant.
Single loss mechanisms (photons with too little energy are not absorbed, surplus photon energy is
transformed into heat) cannot be further improved because of inherent physical limits imposed by the
materials themselves. This leads to a theoretical maximum level of efficiency, i.e. approximately 28% for
crystal silicon.[7]
3.3 Optimum Angle:
The tilt of the panels is important because your panels will produce a maximum of energy when the sun is
directly perpendicular to them. During the winter in the northern hemisphere, for example, the sun is low in
relation to the horizon. In this case, for the solar panels to get their best performance, a steep angle of 60° is
best. During the spring the best angle is 45°, and during the summer when the sun is high in the sky, it’s best
to have a low tilt at 20°![8]
 What angle that should be chosen to maximize the production all year long
In solar thermal energy: The aim is to produce more heat in the winter and less heat in the
summer. Example: In Marseille, for conventional thermal energy, 4m² of panels are necessary for a typical
home’s hot water needs (200 L at 45 ° C) and the best inclination of the panels is between 50° and 55°. This
inclination does not correspond to maximum sunshine, but because there is a surplus of production in the
summer, it is better to optimize the angle for the winter.
 Photovoltaic (PV): For photovoltaic panels where the electricity is re-injected into the grid for re-
sale, the optimum orientation is south with an angle of a 37°,which maximizes total electricity
production.
 PV-T: With the DualSun PV-T panels, which produce both electricity and hot water, the optimal
angle is the same as for PV panels.
Example: For a DualSun installation in Marseille, we recommend a 4-panel design for a family of 4. The
best angle for that is maximum sunshine (37 °).
13 | P a g e
Solar panels installed vertically produce less energy, but a façade installation can still make sense depending
on the specific needs and constraints of the building. For example, the Arpont shelter has DualSun panels
installed vertically. This was a design choice, but also a technical decision to avoid an accumulation of snow
during the winter.
 The impact that does the angle have on production as we diverge from the “ideal angle”?
Fig7. Sunlight Distribution According to Orientation and Tilt Angle.
 Does it make sense to adapt the tilt of a roof to optimize production?
In the case of PV-T, when a roof has a fixed slope, it is not necessary to change the angle of the roof to get
an optimal production. In fact, the production of energy will always be interesting (which is not necessarily
true with thermal solar panels for heating).
The orientation of the panels is important to capture a maximum of sunlight and therefore produce a
maximum of energy.
On a fixed installation, the best direction to have the best production is South-facing roofs receive the most
sunlight, and therefore the most solar energy during the day.
 the impact on production if it derives from this ideal orientation?
If you refer to the diagram above, you will see that further you are from the south, the more your production
will be affected.
 Does it evermake sense to have panels east/west facing rather than south-facing?
In the case of “self-consumption” for the PV production, it can make sense to orient the panels east/west
rather than south-facing. East-facing panels will produce more energy in the morning, west-facing more
energy in the late-afternoon. With respect to energy autonomy, the goal is not to produce the maximum but
what is needed. This is, for example, the case for the off-grid Arpont chalet in the French Alps, where the
DualSun panels are oriented east/west to be able to produce more energy in the morning and the evening and
less during the day, when the shelter is pretty empty! [8]
14 | P a g e
3.3.1 SolarAngle Calculator:
This solar angle calculator tells us the optimum angle to get the best out of our system. To get the best out of
our photovoltaic panels, we need to angle them towards the sun. The optimum angle varies throughout the
year, depending on the seasons and our location and this calculator shows the difference in sun height on a
month-by-month basis.
Of course, the sun is continually moving throughout the day and to get the very best from our photovolta ic
system we would need to angle our panels to track the sun minute by minute. We can buy an automated
solar tracker to do this.
The sun is at its highest at solar noon each day (this occurs exactly half way between sunrise and sunset) and
this calculator shows the angle at that time of day. At solar noon, the irradiance from the sun is at its very
highest and we can generate the most power. In the northern hemisphere, the sun is due south at solar noon.
Therefore, to get the very best out of our photovoltaic panels, we would typically face them due south at the
optimum angle so that the panel is receiving as much sunlight as possible at this time.
The correct angle for our project will depend very much as to when we want to get the best out of our
photovoltaic we would angle our photovoltaic panels according to the height of the sun in the sky during
these months. If we want to improve our winter performance, we would angle our photovoltaic panels
towards the winter months in order to get the best performance at that time of year.
If we have the opportunity to adjust our photovoltaic panels throughout the year, we will benefit from
having the optimum performance from our solar system all of the time.
This solar angle calculator allows us to calculate the optimum angle on a month-by-month basis.[8]
3.4 SolarTrackerTheory:
3.4.1 Introduction of SolarTracking Techniques:
People used to use fixed array panels to generate electricity from the sun, but as the day passes the sun
position is changing and may not face the panels for several hours, thus decreasing the output. The tracking
system will increase the efficiency by following the sun.
There are several types of tracking systems depending on the way of determining the sun's path, however the
main once are fixed control algorithm and dynamic tracking. In fixed control algorithm: the position of the
sun is calculated at each time period by an algorithm, it works by previous saved data for a given day, month
and year. On the other hand dynamic tracking system uses some techniques to search for the sun position all
day.
Both of tracking systems have a control system, and position changing DC motors such as stepper motors or
servo motors, which will be directed by the control circuit. [9]
3.4.2 Definition of SolarTracker:
A solar tracker is a device used to change the position of a solar panel in a manner that will make the sun
ray's perpendicular to the panel, in order to increase the efficiency.
15 | P a g e
3.4.3 Methods ofDrive:
- Active Trackers: Active Trackers use motors and gear trains to direct the tracker as commanded
by a controller responding to the solar direction. The Light-sensing trackers typically have two
photo sensors, such as photodiodes, configured differentially so that they output a null when
receiving the same light flux. Mechanically, tracker should be Omni directional (i.e. flat) and are
aimed 90 degrees apart which will cause the steepest part of their cosine transfer functions to
balance at the steepest part and thus translates into maximum sensitivity.
- Passive Trackers: Passive s o l a r Trackers use a low boiling point compressed gas fluid that is
driven to one side or the other (by solar heat creating gas pressure) to cause the tracker to move
in response to an imbalance.
- Chronological Tracker: Chronological solar Tracker counteracts the earth's rotation by turning at
an equal rate as the earth, but in the opposite direction. Actually the rates aren't quite equal as the
earth goes around the sun. So the position of the sun changes with respect to the earth by 360°
every year or 365.24 days. [9]
3.4.4N Existing Prototype:
 A solar tracker project by bill lane :
In 2008, Bill Lane has built a solar Tracker for his final year project. Bill lane is a graduate
student, from department of electrical and computer engineering, Cleveland State University.
In his Solar Tracker project, Bill Lane used a single axis design for the tracker, meaning the
tracker only control one angle. Using the Cadmium Sulphide (Csd) as the light sensors, he
used 2 light sensor as comparator of the light radiation. When one of the sensor has higher
intensity of light, the position of the sun is on the side of that light sensor. Then, by using
unipolar stepper motor, the solar panel will be rotate or move until both sensor has the same
amount of light on it. Bill Lane solar tracker is using PIC16F877 as the microcontroller of the
tracker, the microcontroller has a 10 bits multichannel ADC (analog digital converter), 5
input/output ports and 256 x 8 bytes of data EEPROM memory. 15 Figure 2.10 a) One Axis
Tracker b) Light sensor The advantage of this tracker is it used a single axis design.
Therefore, the solar tracker must be mounted in fix position where it can be tracker the path
of the sun. Refer to Figure 2.11, the one axis tracker only can track path 1 but not Path 2,
where to enable the path 2 the tracker must be able to control the azimuth and latitude angle.
 Isaac Aunkst received his Bachelor's degree in Electrical Engineering Technology from Penn
State Erie, The Behrend College in 2006. Upon graduation he worked for GE Transportation
Systems on locomotive electrical and instrumentation systems. He has recently been hired to
work on power electronic system design for General Dynamics Electric Boat Division. In
2005 Isaac Aunkst has built a Solar Panel Tracking to increase the efficiency of a
photovoltaic (PV) system. 8051 microcontroller was used to control the movement of the
solar panel. The system was designed to be autonomous, such that energy generated by the
solar panel would be used to charge two lead acid batteries. Isaac Aunkst Solar panel tracking
is a single axis design, and by using Light sensor (ldr) to detected the position of the sun.
Figure 2.12 Solar Panel Tracking The advantage of Solar panel tracking by Isaac Aunkst is
the same with Solar Tracker by Bill Lane where it used a single axis design. To improve the
efficiency of the tracker, dial axis can be implementing to control bolt azimuth and latitude of
the sun position
16 | P a g e
Chapter Four: Methodology
During our project we have been through the following steps as shown in figure. We have started by
reviewing the sun tracking background in order to establish the Microcontroller Based Solar Tracking to
perform the specified task. Then we have chosen a mechanical standard design base on some specifications
such as minimum price simplicity and higher efficiency. After that, we moved to study Arduino
programming to develop the electrical control circuit. Finally we will end with hardware in the next
semester.
4.1 Design:
When designing our tracking system, we have separated tasks. But talking about the project generally, it
involves reading voltages from sensors, then comparing these voltages digitally to determine the direction
that the solar panel must move to, aligning itself with the sun. To perform this movement a motor circuit is
needed to receive output from the controller and step the motors as a respond. The following sections of this
chapter outline the methods and designs used to implement this system.
4.1.1 Mechanical Design:
- Method of alignment:
There are two main methods to align the dual axis solar tracker, see fig, which are:
1- Tilting both axes.
2- Tilting on axis and rotating the other.
Fig8. Methods of Solar Panel Alignment
17 | P a g e
And after analyzing both systems we have decided to build the second one, because it's less complicated.
The design contains two servo motors that will respond to the microcontroller.
Fig9. Suggested Design (Two Motors)
4.1.2 ModelDesign:
For the model we have chosen MOHAMAD FAZMAN BIN MOHAMAD YUNUS design.
It consists of the solar panel, main board, sensor and motor. Figures below 10,11,12 shows our final design.
Fig 10. Base Structure
18 | P a g e
Fig11.Upper Structure
Fig12. Back View
19 | P a g e
4.1.3 ElectricalandElectronic Design:
Block Diagram:
This block diagram below shows the overview of the working principle of the circuit.
4.2 System Main Components:
 Polycrystalline Mini PV module.
 Micro controller (Arduino Uno)
 Tracking software
 DC motor (servo)
4.2.1 Servo Motors:
20 | P a g e
A Servo is a small device that has an output shaft. This shaft can be positioned to specific angular positions
by sending the servo a coded signal. As long as the coded signal exists on the input line, the servo will
maintain the angular position of the shaft. As the coded signal changes, the angular position of the shaft
changes. Servos are extremely useful in robotics. The motors are small, have built in control circuitry, and
are extremely powerful for their size
Servo motors (see Figure 14) incorporate several components into one device package; a small DC motor; a
gear reduction drive for torque increase and an 22 electronic shaft position sensing and control circuit. The
output shaft of a servo motor does not rotate freely, but rather is commanded to move to a particular angular
position. The electronic sensing and control circuitry which is the servo feedback control loop will drive the
motor to move the shaft to the commanded position. If the position is outside the range of movement of the
shaft, or if the resisting torque on the shaft is too large, the motor will continue trying to attain the
commanded position.
The servo motor control is inherently consists of the three wires: power, ground, and control. The power and
ground wires are simply connected to a 5V supply. in this project, two servos are going to be used. The
control signal consists of a series of pulses that indicate the desired position of the shaft. Each pulse
represents one position command. The length of a pulse in time corresponds to the angular position. Typical
pulse times range from 0.7 to 2.0 milliseconds for the full range of travel of a servo shaft. Most servo shafts
24 have a 180 degree range of rotation. The control pulse must repeat every 20 milliseconds. For this
project, four servo motors activating at 5V will be used for tracking the angle of the light radiation (altitude
and elevation)..[10]
Fig13. Servo Motor
21 | P a g e
4.2.2 Light SensorTheory:
Light sensors are among the most common sensor type. The sensor circuit design consists of four small
polycrystalline silicon solar cells of the same type we used for the major panel. so it seemed like a no-
brainer to use them as sun sensors in the tracker. Figure 15 shows Polycrystalline Mini PV Module. In this
project, it was desired for the output voltage to increase as the light intensity increases, so the photocell was
placed in the top position. The four small solar cells are placed at 90 degrees with respect to each other. The
idea was that one cell or the other would get more sun, and the tracker would move until they were getting
equal sun.
Fig 14. Polycrystalline Mini PV Module
In this project, it was desired for the output voltage to increase as the light intensity increases, so the
photocell was placed in the top position.
 Sensor circuit design
After testing some circuit designs, we have decided simple four- sided with a shadow
blocking, see fig16. They are set in a manner such that they have the same voltage when they
are pointing to the sun; this is possible because the sensors are set at 90o to the base of the
sensor. When the one sensor is not pointing to the sun, the voltage across the other sensor that
is exposing more to the sun is going to be higher from the others. Thus a comparator will
decide the way of movement, which is toward the higher voltage sensor. Two opposite
sensors are used for tilt movement and the others are used for rotational movement.
22 | P a g e
Fig15 .Four-Sided mini polycrystalline solar modules
4.2.3 Tracking Controller:
Arduino Uno:
The Arduino Uno is an open source microcontroller board. It is a small electronic circuit controls the
programming of Atmega328 microcontroller, this circuit provides pins to connect electronic components
directly to the microcontroller using 14 digital input/output pins (of which 6 can be used as PWM outputs),
and also it consists of Crystal Oscillator 16 MHz and USB to connect with the computer. It contains
everything needed to support the microcontroller; simply connect it to a computer with a USB or use a
battery to get started.[11]
23 | P a g e
Fig16. Arduino Uno
4.2.4 Tracking Program:
The program for the tracking controller has been written in C++ language code for the arduino Uno
microprocessor. From the A/D the processor directly accesses the voltages and performs the necessary
comparisons. After the comparisons are complete the processor uses a step algorithm to move the servo
motors in the direction determined by the comparisons. See appendix A.
4.3 Light Sensorto Microcontroller Circuit:
Light Sensor to Microcontroller Interface Circuit This project implements the usage of 4 mini solar panels.
The main reason for these sensors is to program the robot to tracking the sun radiation or a light source. Four
of the mini p-v’s namely the south sensor, east sensor and north sensor, and west sensor are used to sense the
light source. The 4th pair called the identifier sensor is used to detect the presence of extra stripe on the right
hand side. The p-v sensor is connected to the ADC input pin on the microcontroller, see fig 18.
Fig 17. Light Sensor to Microcontroller Interface Circuit.
24 | P a g e
4.4 Complete Circuit:
Fig18. Fritzing Simulation
25 | P a g e
4.5 Flowchart:
Flowchart of tracking algorithm for tilting control is shown bellow; rotation control is done by the same
algorithm
26 | P a g e
Chapter five: Results and analysis
The following result was done in EIA, U.S energy information administration. It shows an output power
comparison between tracking dual axis, no tracking tilted south, no tracking tilted east, no tracking tilted
west, and no tracking flat, during one day in kilowatt see fig19. And during seasons in watt-hour see fig 20.
Fig19. EIA Average Energy Production in a Day[12]
27 | P a g e
Fig21.EIA Average Energy Production in the Four Seasons in Watthour[12]
Because PV panels are able to capture more solar energy when they are pointed directly at the sun, installers
may configure systems to optimize output by adjusting the orientation and tilt of a system, or by using
mechanisms that track the sun as it traverses the sky.
28 | P a g e
Chapter Six: Conclusions and Recommendations
From the design of experimental setup with microcontroller base solar tracking system using servo motor, if
we compare tracking by the use of LDR with fixed solar panel system we expect to find that the efficiency
of microcontroller based solar tracking system is improved by 30-45% and we expect that all parts of
experimental setup are giving good results.
This tracking system tracks the sun either in continuous manner or every 10 minutes or 15 minutes … etc,
and this system is expected to be more efficient and cost effective in long run. The solar tracker can be still
enhanced by adding special features in terms of protection from rain and wind in the future work.
29 | P a g e
References:
[1] Bloomberg New Energy Finance, UNEP SEFI, Frankfurt School, Global Trends in Renewable Energy Investment 2011
[2] All fossil fuel reserve and consumption data from CIA World Factbook.
[3] "Solar Energy Perspectives: Executive Summary". International Energy Agency. 2011.Archived from the original (PDF) on
2011-12-03.
[4] "Photovoltaic Cell Conversion Efficiency Basics". U.S. Department of Energy. Retrieved 6 Sep 2014.
[5] Percentages derived using the NREL Solar AdvisorModel tool by using identical input data, but varying the type of system
among fixed frame, single-axis tracking and dual-axis tracking. http://arizonaenergy.org/News_10/News_Nov10/Dual-
AxisTrackingGeneratesMorePower.html
[6] Solar Energy Industries Association
[7] National Technical Information Service U.S. Department of Commerce 5285 Port Royal Road Springfield, VA 22161 Stock
Number: SERIISP-290-1448
[8] HOME SOLAR PANELS -(10/11/2015) - access by this site http://www.mysolarpannels.com/optimum-angle-for-solar-
panels/#ixzz3soIjqrh0
[9] Ignacio Luque-Heredia et al., "The Sun Tracker in Concentrator Photovoltaics" in Cristobal, A.B.,Martí, A.,and Luque,
A. Next Generation Photovoltaics,Springer Verlag, 2012 [ISBN 978-3642233692]
[10] "Legend Elite laser series".Epilog Laser. Servo motors are incorporated in both the X and Y axes of every Legend Elite
Series laser. These motors are known for their fast acceleration and deceleration speeds.
[11] "Arduino FAQ – With David Cuartielles". Malmö University. , 3/11/2015. Retrieved 2014-03-24.
[12]U.S. EIA (3/11/2015) access by this site- https://www.eia.gov/todayinenergy/detail.cfm?id=18871
30 | P a g e
Appendix A:
#include <Servo.h>
Servo x;
Servo y;
int postx = 0;
int postey = 0;
int time1 =100;
int Cell_Sensor1 = 0;
int Cell_Sensor2 = 0;
int Cell_Sensor3 = 0;
int Cell_Sensor4 = 0;
int Cell_Sensor5 = 0;
int timer = 200;
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
y.attach(10);
x.attach(9);
}
// the loop routine runs over and over again forever:
void loop() {
// read the input on analog pin 0:
Cell_Read();
/*
// print out the value you read:
Serial.print("Cell_Sensor1 : ");
Serial.println(Cell_Sensor1);
delay(timer);
Serial.println("");
delay(timer);
Serial.print("Cell_Sensor2 : ");
Serial.println(Cell_Sensor2);
delay(timer);
Serial.println("");
delay(timer);
31 | P a g e
Serial.print("Cell_Sensor3 : ");
Serial.println(Cell_Sensor3);
delay(timer);
Serial.println("");
delay(timer);
Serial.print("Cell_Sensor4 : ");
Serial.println(Cell_Sensor4);
delay(timer);
Serial.println("");
delay(timer);
*/
Serial.print("Cell_Val : ");
Serial.println(Cell_Sensor5);
Serial.println("");
delay(timer);
angleX();
angleY();
}
void angleX(){
Cell_Read() ;
if (Cell_Sensor1 < Cell_Sensor2) {
Cell_Read() ;
postx++;
x.write(postx);
delay(15);
if (postx == 160 || postx > 160) {
postx = 160;
}
Cell_Read() ;
delay(time1);
}
else if (Cell_Sensor1 > Cell_Sensor2) {
Cell_Read() ;
postx--;
x.write(postx);
delay(15);
if (postx == 2 || postx < 2) {
postx = 0;
}
Cell_Read() ;
delay(time1);
}
32 | P a g e
}
void angleY() {
if (Cell_Sensor3 > Cell_Sensor4) {
Cell_Read() ;
postey++;
y.write(postey);
delay(15);
if (postey == 80 || postey > 80) {
postey = 80;
}
Cell_Read() ;
delay(time1);
}
else if (Cell_Sensor3 < Cell_Sensor4) {
postey--;
y.write(postey);
delay(15);
if (postey == 2 || postey < 2) {
postey = 1;
}
Cell_Read() ;
delay(time1);
}
}
void Cell_Read() {
Cell_Sensor1 = analogRead(A0);
//Cell_Sensor1 = map(Cell_Sensor1, 0, 1023, 0, 5);
Cell_Sensor2 = analogRead(A1);
// Cell_Sensor2 = map(Cell_Sensor2, 0, 1023, 0, 5);
Cell_Sensor3 = analogRead(A2);
// Cell_Sensor3 = map(Cell_Sensor3, 0, 1023, 0, 5);
Cell_Sensor4 = analogRead(A3);
// Cell_Sensor4 = map(Cell_Sensor4, 0, 1023, 0, 5);
Cell_Sensor5 = analogRead(A5);
Cell_Sensor5 = map(Cell_Sensor5, 0, 1023, 0, 5);
}

More Related Content

PPTX
1. Introduction to drones
PPTX
DUAL AXIS SOLAR TRACKER USING ARDUINO
DOCX
Solar tracking system - Report
PPTX
Qaudcopters
PDF
Solar tracking system
PPTX
Presentation of quadcopter drone
PPTX
DREAM QUADCOPTER
1. Introduction to drones
DUAL AXIS SOLAR TRACKER USING ARDUINO
Solar tracking system - Report
Qaudcopters
Solar tracking system
Presentation of quadcopter drone
DREAM QUADCOPTER

What's hot (20)

PPTX
PPT OF SOLAR NAVEEN' `11
PPTX
Drone.Mechanism
PPTX
Quadcopter ppt
PPTX
Solar Tracker
DOCX
Seminar report on solar tree (by Vikas)
PPSX
Solar photovoltaics
PDF
Drone project report
PPTX
Solar tracker using ldr
PPTX
MODULE - I : BATTERY TECHNOLOGY
PDF
Obstacle Avoidance Robot
PPTX
Plastic solar cells
PPTX
Quadcopter
PPTX
Quadcopter final report anand
PPSX
Single Axis Solar Tracking Systems
DOCX
Arduino solar tracker using ldr sensor &amp; servo motor
PPT
Lecture 1: Quadrotor
DOCX
Synopsis of solar tracker and charging monitor
DOCX
single axis solar tracker with out micro controller
PPTX
Drone ppt
PPTX
drone technology
PPT OF SOLAR NAVEEN' `11
Drone.Mechanism
Quadcopter ppt
Solar Tracker
Seminar report on solar tree (by Vikas)
Solar photovoltaics
Drone project report
Solar tracker using ldr
MODULE - I : BATTERY TECHNOLOGY
Obstacle Avoidance Robot
Plastic solar cells
Quadcopter
Quadcopter final report anand
Single Axis Solar Tracking Systems
Arduino solar tracker using ldr sensor &amp; servo motor
Lecture 1: Quadrotor
Synopsis of solar tracker and charging monitor
single axis solar tracker with out micro controller
Drone ppt
drone technology
Ad

Viewers also liked (20)

PDF
DUAL AXIS SOLAR TRACKER USING LDR AS A SENSOR
PPTX
Solar tracker ppt
PDF
Sun tracking solar panel
PPT
Automatic dual axis solar tracking system(eee499.blogspot.com)
PPTX
Solar tracking system
PDF
Design and Construction of Automatic Dual-Axis Solar Tracking System Using Li...
PPTX
Solar tracker
PDF
3 m bio acoustic simulator user manual (053-012 rev d)
PDF
Making model of dual axis solar tracking with Maximum Power Point Tracking
PPTX
Home networking with zig bee
DOCX
Dhaval Patel
DOCX
Maximum solar absorption using dual axis solar panel report
PDF
Project Report
PDF
Money pad report
DOCX
Money pad future wallet
PPTX
Automatic solar tracking system
PPT
Bioinformatics-General_Intro
PPTX
Solar tracking system
PPTX
Usage Of Dual Axis Solar Tracking System ,Advanced Sensor And Real Time Clo...
DUAL AXIS SOLAR TRACKER USING LDR AS A SENSOR
Solar tracker ppt
Sun tracking solar panel
Automatic dual axis solar tracking system(eee499.blogspot.com)
Solar tracking system
Design and Construction of Automatic Dual-Axis Solar Tracking System Using Li...
Solar tracker
3 m bio acoustic simulator user manual (053-012 rev d)
Making model of dual axis solar tracking with Maximum Power Point Tracking
Home networking with zig bee
Dhaval Patel
Maximum solar absorption using dual axis solar panel report
Project Report
Money pad report
Money pad future wallet
Automatic solar tracking system
Bioinformatics-General_Intro
Solar tracking system
Usage Of Dual Axis Solar Tracking System ,Advanced Sensor And Real Time Clo...
Ad

Similar to Automatic dual axis solar tracking system(eee499.blogspot.com) (20)

PDF
Automatic Solar Tracker using Arduino.pdf
PDF
report on automatic tracking solar power system
DOCX
Solar tracking system final report GTU
PDF
Universal solar tracker final report
PDF
Essential pages for Solar Cell Report
PDF
Dual axis tracker_final_report
DOCX
Iv sem report project final report[735] 1
PDF
Development of FPGA based Dual Axis Solar Tracking System
PPTX
AUTOMATIC SOLAR TRACKER.pptx
PPTX
ENHANCING SOLAR SYSTEM EFFICIENCY BASED ON PRECISE REAL-TIME ENERGY DATA ANAL...
PPTX
PDF
IRJET- Comparative Analysis of Dual Axis Automated Solar Tracking System
PDF
Dual axis
PPTX
Different types of Thermal solar power plants
PDF
Report on solar based street light system
DOCX
Synopsis of 6 months industrial
PDF
IRJET - Two Axis with Four Sensors Solar Tracking System
PDF
IRJET- Automatic Solar Tracker
PPTX
Smart energy harvesing by solar tracking system
PDF
IRJET-Design and Implementation of Automatic Dual Axis Solar Tracking System
Automatic Solar Tracker using Arduino.pdf
report on automatic tracking solar power system
Solar tracking system final report GTU
Universal solar tracker final report
Essential pages for Solar Cell Report
Dual axis tracker_final_report
Iv sem report project final report[735] 1
Development of FPGA based Dual Axis Solar Tracking System
AUTOMATIC SOLAR TRACKER.pptx
ENHANCING SOLAR SYSTEM EFFICIENCY BASED ON PRECISE REAL-TIME ENERGY DATA ANAL...
IRJET- Comparative Analysis of Dual Axis Automated Solar Tracking System
Dual axis
Different types of Thermal solar power plants
Report on solar based street light system
Synopsis of 6 months industrial
IRJET - Two Axis with Four Sensors Solar Tracking System
IRJET- Automatic Solar Tracker
Smart energy harvesing by solar tracking system
IRJET-Design and Implementation of Automatic Dual Axis Solar Tracking System

More from slmnsvn (20)

PPTX
Analysis optimization and monitoring system
PDF
Analysis optimization and monitoring system
DOCX
Smart home
DOCX
Smart fuel theft detector
PPTX
Smart fuel theft detector
PPTX
Rfid attendace system
PPTX
Quad pod transformable vehicle
DOCX
Quad pod transformable vehicle
PPTX
Power factor correction
DOCX
Power factor correction
PPTX
Optimum performances of ramallah
DOCX
Optimum performances of ramallah
PPTX
Optimum performance of tulkarim governorate network
DOCX
Optimum performance of tulkarim governorate network
PPTX
Optimum performance for aqraba electrical network 2
DOCX
Optimum performance for aqraba electrical network 2
PPTX
Optimum performance for aqraba electrical network
PPTX
Multi tone test
DOCX
Multi tone test
PPTX
Mini scada system for monitoring pv and wind installation in meteorology stat...
Analysis optimization and monitoring system
Analysis optimization and monitoring system
Smart home
Smart fuel theft detector
Smart fuel theft detector
Rfid attendace system
Quad pod transformable vehicle
Quad pod transformable vehicle
Power factor correction
Power factor correction
Optimum performances of ramallah
Optimum performances of ramallah
Optimum performance of tulkarim governorate network
Optimum performance of tulkarim governorate network
Optimum performance for aqraba electrical network 2
Optimum performance for aqraba electrical network 2
Optimum performance for aqraba electrical network
Multi tone test
Multi tone test
Mini scada system for monitoring pv and wind installation in meteorology stat...

Recently uploaded (20)

PPT
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
PDF
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PDF
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
PPTX
Current and future trends in Computer Vision.pptx
PDF
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf
PDF
Visual Aids for Exploratory Data Analysis.pdf
PDF
Categorization of Factors Affecting Classification Algorithms Selection
PPTX
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
PPTX
Fundamentals of Mechanical Engineering.pptx
PDF
Soil Improvement Techniques Note - Rabbi
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PPTX
Nature of X-rays, X- Ray Equipment, Fluoroscopy
PPTX
introduction to high performance computing
PPTX
Software Engineering and software moduleing
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PPT
Occupational Health and Safety Management System
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
Fundamentals of safety and accident prevention -final (1).pptx
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
Current and future trends in Computer Vision.pptx
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf
Visual Aids for Exploratory Data Analysis.pdf
Categorization of Factors Affecting Classification Algorithms Selection
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
Fundamentals of Mechanical Engineering.pptx
Soil Improvement Techniques Note - Rabbi
Automation-in-Manufacturing-Chapter-Introduction.pdf
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
Nature of X-rays, X- Ray Equipment, Fluoroscopy
introduction to high performance computing
Software Engineering and software moduleing
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
Occupational Health and Safety Management System

Automatic dual axis solar tracking system(eee499.blogspot.com)

  • 1. Graduation Project Automatic Dual Axis Solar Tracking System Submitted to: An-Najah National University In partial fulfillment of the requirements for Bachelor degree in Electrical Engineering Submitted by: Reem AL-khateeb (11109854) Yasmeen Hanani (11108239) Supervised by: Dr.Saed Tarapiah May 4, 2016 FacultyofEngineering&InformationTechnology Electrical Engineering Departments An-Najah National University
  • 2. I | P a g e .............‫هدإء‬‫إ‬ ‫لليايل‬‫إ‬ ‫سهر‬ ‫نطوي‬ ‫هلل‬ ‫إمحلد‬‫و‬ ‫إليوم‬ ‫وهاحنن‬ ‫إلصعوابت‬ ‫من‬ ‫إلكثري‬ ‫نينا‬‫ا‬‫وع‬ ‫مه‬ ‫من‬ ‫كرث‬‫أ‬ ‫وقاسينا‬ ‫يد‬ ‫من‬ ‫كرث‬‫بأ‬ ‫ان‬‫بدأ‬‫ولصاة‬ ‫مام‬‫إأ‬ ‫عع‬‫و‬ ‫إضع‬‫و‬‫إملت‬ ‫إلعمل‬ ‫هذإ‬ ‫دفيت‬ ‫بني‬ ‫إران‬‫و‬‫مش‬ ‫ش‬ ‫عفيض‬ ‫مشاعر‬ ‫من‬ ‫خياجله‬ ‫ملا‬ ‫يبوح‬ ‫ن‬‫أ‬ ‫ال‬‫أ‬ ‫إلقل‬ ‫ىب‬‫أ‬ ‫لكن‬‫و‬ ..‫يسري‬ ‫ن‬‫أ‬ ‫إلقمل‬ ‫ورق‬ ..‫إلتعبري‬ ‫عن‬ ‫إللكامت‬ ‫إمتنعت‬‫عىل‬ ‫ثناء..ثناء‬‫و‬ ‫إمتناان‬‫و‬ ً‫إ‬‫ر‬‫ك‬ ‫إضع‬‫و‬‫إملت‬ ‫إلعمل‬ ‫هذإ‬ ‫إنهتاء‬ ‫حىت‬ ‫عىل‬ ‫بذلوه‬ ‫ملا‬ ‫إمتناان‬ ‫خلدمتنا‬ ‫نفسهم‬‫أ‬ ‫نذروإ‬ ‫من‬ .‫لها‬‫و‬‫ح‬ ‫مه‬ ‫ملن‬ ‫لتضئ‬ ‫نفسها‬ ‫قت‬‫ر‬‫ح‬‫أ‬ ‫مشع‬ ‫ما‬ ‫..كل‬ ً‫إ‬‫ر‬‫شك‬‫و‬ ‫ما‬ ‫..كل‬ً‫إ‬‫ر‬‫شك‬ .. ‫شذإها‬ ‫وطاب‬ ‫عبريها‬ ‫فاح‬ ‫وردة‬ ‫ما‬ ‫..كل‬ً‫إ‬‫ر‬‫شك‬ .‫يقها‬‫ر‬‫ب‬ ‫إد‬‫ز‬ ‫ردة‬ ‫نقها‬‫و‬‫ور‬ .. ‫إلعب‬ ‫ي‬‫أ‬ ‫بل‬ .. ‫حقك‬ ‫يفيك‬ ‫إلالكم‬ ‫ي‬‫أ‬ ‫ندري‬ ‫ال‬ .. ‫إت‬‫ر‬‫إلعبا‬ ‫مشل‬ ‫تشتت‬‫و‬ ‫إللكامت‬ ‫منا‬ ‫بت‬‫ر‬‫ه‬ ‫لقد‬ ‫نقول‬ ‫ن‬‫أ‬ ‫بوسعنا‬ ‫ماذإ‬‫مبقامك‬ ‫عليق‬ ‫إت‬‫ر‬‫ا‬ .. ‫إدل‬ ‫ىل‬‫إ‬ ‫ابلشكر‬ ‫ندين‬‫كتور‬‫لنا‬ ‫انر‬‫أ‬ ‫إذلي‬ ‫بي‬‫ر‬‫ط‬ ‫سعد‬‫نصاحئه‬‫و‬ ‫بتوجهياع‬ ‫علينا‬ ‫يبخل‬ ‫ومل‬ ‫يق‬‫ر‬‫إلط‬ ، ‫إلصازم‬ ‫إجع‬‫ر‬‫إمل‬‫و‬ ‫إملصادر‬ ‫عوفري‬ ‫من‬ ‫لنا‬ ‫إملساعدة‬ ‫عقدمي‬ ‫يف‬ ً‫إ‬‫هجد‬ ‫يدخروإ‬ ‫مل‬ ‫إذلين‬ ، ‫هذإ‬ ‫معلنا‬ ‫ابجناز‬ ‫سامه‬ ‫من‬ ‫للك‬‫و‬‫لذلين‬ ‫إلتقدير‬ ‫لك‬ ‫و‬ ‫إلتشجيع‬ ‫لك‬ ‫منحوان‬
  • 3. II | P a g e Acknowledgment We are heartily thankful to our supervisor Dr.Saed Tarapiah for his guidance and support from the initial to the final level which enabled us to complete this project. Also we give all our regards and wishes to all the academic supervisors and the employees at An-Najah National University whom encouraged and supported us throughout our study.
  • 4. III| P a g e Table of Contents List ofFigures….……...……………………………………………….……………………………………………….V List oftables…..………………………………………………….....…………………………………………….……VI Abstract……….……..……………………………………….....……………………………………………….……VII Chapter one :Introduction..................................................................................................................................1 1.1 Overview.................................................................................................................................................... 1 1.2 Scope of the Project……...……………………………………………………………………………………….3 1.2 Report Organization…….........................................................................................................................................4 Chapter Two: Constrains, Standards /Codes and Earlier work…..…………………..…………………………….5 2.1 Constraints………………………………………………………...………………………………………………5 2.2 Standards /Code………………………...…………………………………………………………………………5 2.1 Earlier Coursework……………………………………..…………………………………………………………8 Chapter Three: Literature Review………………………………………...…………..…………….………………...9 3.1 Sun Main Characteristic………..………………………………………………...……………………………….9 3.1.1 Sun Light Reaching The Earth………………...……………………...……….……………………………..9 3.2 Solar Cell Theory………………………………..……………….……………………………………………...10 3.2.1 Photovoltaic…………………………………………………………...………………………………….....10 3.2.1.1 General Concept..………………..…………………………………………………...……………….10 3.2.1.2 Photovoltaic Technologies………...………………………………………………………..………...10 3.2.2 Different Cell Type…………………………………………………..……………...……………………..10 3.2.3 Solar Cell Physical Analysis…………………………….……………………..…………………………...10 3.2.4 Description of the Solar Cell Functionality……………………………………… …………...……….…..11 3.2.5 Characteristics of a Solar Cell………………………………………………………………………….…..11 3.2.5.1 Current-Voltage Line of a si-Solar Cell…………………………………..……………………...……11 3.2.5.2 Normal Limits of Efficiency………….………………………………...……………………………..12 3.3 Optimum Angle………………………………….………………………………...…………………………….12 3.3.1 Solar Angle Calculator……………………………………………………………………………………...14 3.4 Solar Tracking Theory……………………………………………………..…………………………………….14 3.4.1 Solar Tracking Techniques……………………………………….…………………………………………14 3.4.2 Definition of Solar Tracker……………………………..…………………………………………………...14 3.4.3 Methods of Drive……………………………………...…………...………………………………………..15 3.4.4 Existing Prototype………………………………………………………..………………………………….15 Chapter Four: Methodology……………………………………….……………………………….………………...16 4.1 Design…………………………………………………………………………………………………………..16 4.1.1 Mechanical Design…………………………………………..…..………………………………………...16
  • 5. IV | P a g e 4.1.2 Model Design……..……………………...………………………..………………………………….……17 4.1.3 Electrical and Electronic Design………………………………………………………...…………………20 4.2 System Main Components………………..…………………………………………………………………….20 4.2.1 Servomotor…….…………………...…………..…………………………………………………………..20 4.2.2. Light Sensor Theory…….…………………………………………...…………………………………….21 4.2.3 Tracking Controller ………………………………….……………….……………………………… …...23 4.3 Light Sensor to Microcontroller Circuit..……………………………………………………………………….23 4.4 Complete Circuit……...………………………………………………………………………………………...24 4.5 Flowchart…………………………………………………………………………………………………..……25 Chapter five: Results and Analysis…………………………………………………………………………………...26 Chapter six: Conclusions and Recommendations ……...................…………………………….…………………..28 References………………………......………………………………………………………………………………….29 Appendix A…………………………………………………………………………………………………………….30
  • 6. V | P a g e List of Figures: Figure 1 Global energy consumpti1830-2010.……………………………………………………………1 Figure 2 World population 1950-2050…………………………………………………………………...…2 Figure 3 Future energy serves for coal, gas and oil……………..…………………………………………2 Figure 4 Solar cell, panel and array…………….. ……………………………………………………………3 Figure 5 Perpendicular and non-perpendicular solar panels to the sun…………………………….………4 Figure 6 Conditions that blocks sun light from reaching the earth’s surface……..…………………………9 Figure 7 Sunlight distribution according to orientation and tilt angle………………………………………13 Figure 8 Methods of solar panels alignment……………………………………………………………16 Figure 9 Suggested design (two motors)……………….………………………………………………17 Figure 10 Base structure………………………………..…..………………………………………………17 Figure 11 Upper structure………………….. ……………………………………………………………18 Figure 12 Back View…………………………………….……………………………………………18 Figure 13 Servo motor………………………….……………………………………………………………21 Figure 14 Polycrystalline Mini PV Module ………….……………………………………………………22 Figure 15 Four-Sided mini polycrystalline solar modules ………………………………………………………22 Figure 16 Arduino Uno……………………………………………………………………………………23 Figure 17 Light sensor to microcontroller interface circuit ………………………………….……………24 Figure 18 EIA average energy production in a day…………………………………………………………26 Figure 19 EIA average energy production in the four seasons……………………..……………………..…27
  • 7. VI| P a g e List of Tables: Table 1 Arduino Uno Summery. ....................................................................................................5 Table 2 Servo Motor Summary...................................................................................................... 6 Table 3 Solar Cell SM-E1638 Summery......................................................................................... 7
  • 8. VII| P a g e ABSTRACT: Solar energy is getting high consideration all over the world as an important renewable energy source. So, it’s vital for engineers to understand the technologies associated with this area. Our project is a dual axis solar tracking system. It uses microcontroller, light dependent resistors, and servo motor. The aim of the project is to increase the efficiency of solar cells by 30-45%. This report will present the steps that we have gone through our design.
  • 9. 1 | P a g e Chapter One: Introduction 1.1 Overview: The world is facing an energy crisis. Abundant and economical energy is the source of life of modern civilizations. There is consensus among people of all sorts about deficit in power since they are all a victim of it. This crisis has many reasons and some of them are the following: 1. Over consumption: fig.1 shows the increase of energy consumption from the eighties to 2010 and world energy consumption will increase 56% by 2040. 2. Overpopulation: fig.2 shows the increase in world population in the period between 1950 and 2050. 3. Poor infrastructure: most of the energy producing firms keep on using outdated equipment that restricts the production of energy. 4. Delay in commissioning of power plant: in few countries there is a significant delay in commissioning of new power plants that can fill the gap between demand and supply of energy. 5. Wastage of energy: in most parts of the world people do not realize the importance of conserving energy! 6. Wars and attacks: as Palestine falls under this category due to the occupation and the political situation, this resulted in electrical deficit the consequences of which were apparent in the electrical crisis last summer.[1] Fig1. Global Energy Consumption 1830-2010
  • 10. 2 | P a g e Fig2.The World Population 1950-2050 In terms of energy source we rely on coal, oil and gas (the fossil fuels) for over 80% of our current energy needs. But this situation can’t last for a long time because; today, oil and gas reserves are in the hands of a small group of nations, several of which are considered politically unstable or have testy relationships with large consuming countries. Fuel price (petrol) is increasing even though for many of us, the cost of fuel is one of our biggest regular expenses, and that’s mainly because of increasing demand as mentioned earlier and government fuel taxes. And the most important reason is that we are running out of fuel just over 200 years – we’ve consumed an incredible amount of oil and coal. Fossil fuels are an incredibly dense form of energy, and they took millions of years to become so. And when they’re gone, they’re gone pretty much forever, fig3. Shows future energy serves for coal, gas and oil.[2] Fig3. Future Energy Serves for Coal, Gas and Oil. Because of the above situation, word is moving toward clean renewable energy especially solar one, and why is that? At any moment, the sun emits about 3.86 x 10^20 MW per second. Most of that energy goes off
  • 11. 3 | P a g e into space, but about 1.73 k watts strikes the earth. If there are no clouds in the way, then one square meter of the earth will receive about one kilowatt of that energy. Also, the cost of solar panels has dropped drastically in the last few years and the International Energy Agency said solar power could be the number one source of electricity on earth by 2050. This is good news because we need to transition to renewable energy to stabilize the global climate. [3] Solar panels are devices that convert light into electricity. Some scientists call them photovoltaic which mean, basically, "light-electricity." It’s a collection of solar cells. Lots of small solar cells spread over a large area can work together to provide enough power to be useful, fig4. Shows a solar cell, panel and array. Fig4. Solar Cell, Panel and Array 1.2 Scope of the Project: The more light that hits the solar cell, the more electricity it produces. Most solar panels efficiency is around 11-15% [4], note that the maximum efficiency is obtained when the panel is perpendicular to the sun light. Increasing the efficiency means better, you will get more power, greater return on investment; reduce the area because you will need fewer panels. And this is what we aimed by our project, we have designed a dual axis solar tracking system that will increase the efficiency by 30-45% by tracking the sun and being perpendicular to it most of the day, to capture the most direct radiation possible, see fig5[5]. Nature did it first: numerous plants, like the sunflower for example, orient themselves towards the sun during the course of a day. It is a simple, but brilliant principle. The tracking frame is made from weather-proof materials including hot dipped galvanized steel. This guarantees years of trouble-free operation.
  • 12. 4 | P a g e Fig5. Perpendicular and non Perpendicular Solar Panels to the Sun 1.2 Report Organization: We organized our project as following:  Chapter two is talking about standards/codes, the constraints of our work and earlier course work.  Chapter three is a general literature review.  Chapter four deals with methodology that we have gone through.  Chapter five represents the results of our work.  Chapter six ends the report with our conclusion and recommendations.
  • 13. 5 | P a g e Chapter Two: Constrains, Standards/Codes and Earlier Course Work 2.1 Constraints: In our project we face some of the problems that we were able to solve them and were building prototype solar cell base as well as the selection of appropriate motors that can move the solar cell. 2.2 Standards/ Codes: 1. Arduino Uno: Microcontroller ATmega328P Operating Voltage 5V Input Voltage (recommended) 7-12V Input Voltage (limit) 6-20V Digital I/O Pins 14 (of which 6 provide PWM output) PWM Digital I/O Pins 6 Analog Input Pins 6 DC Current per I/O Pin 20 Ma DC Current for 3.3V Pin 50 mA Flash Memory 32 KB (ATmega328P) of which 0.5 KB used by bootloader SRAM 2 KB (ATmega328P) EEPROM 1 KB (ATmega328P) Clock Speed 16 MHz Length 68.6 mm
  • 14. 6 | P a g e Table 1 Arduino Uno R3 summery. 2. Data Sheetfor Servo Motor: Table 2 servo motor summery Width 53.4 mm Weight 25 g
  • 15. 7 | P a g e 3. Data Sheetfor Solar Cell: PolyCrystalline Cells Solar Panel 6V 250mA 135*85mm Small Watt Wholesale Solar Cell Product Type: Epoxy Solar Panel Model No.: SM-E1638 Product Construction: Epoxy Resin + Cell + PCB Maximum Output: 6V*250mA=1.5W Tolerance: ±3% Electrical Specification (under standard test condition) Maximum Output Power (Wmp) 1.5W Max Working Voltage (Vmp) 6V Max Charging Current (Imp) 250Ma Open Circuit Voltage (Voc) 7.2V Short Circuit Current (Isc) 262Ma Cell efficiency(η): 16.5% Materials Solar cell type: Polycrystalline PCB FR-4 PCB thickness(mm) 1.0mm 1.2mm 1.5mm PCB color Black PCB size(mm) 135*85*2mm Product thickness: 2.6-2.8mm Barline: Black tape or none Physical characteristics Appearance: Transparent and good polish, without distortion and loss Lifetime: 1-3 years
  • 16. 8 | P a g e Warning: 1.The mini solar panel can not be placed near to strong corrosive substance 2.Avoid scraping by something hard when using 3.Cannot bend during delivery and installation Using and Storing Condition Storing temperature 20°C ~ 60°C Working temperature -20°C ~ 60°C Table 3 Solar cell SM-E1638 summery 2.3 Earlier Course Work: In this project we had some courses that had been talked about solar cell and motors, as well as using the Arduino including electrical machinery and alternative energy systems and micro-processors. Also we have visited the energy center in the old campus at An Najah national university and we have gained a lot of knowledge that help us to accomplish our project.
  • 17. 9 | P a g e Chapter Three: Literature Review This chapter is dealing with important background information, which is about the sun, solar cells and collection of DC energy. It was also important to display different tracking systems which are available. 3.1 Sun Main Characteristics: The sun is an average star. It has been burning for more than 4-billion years, and it will burn at least that long into the future before erupting into a giant red star, engulfing the earth in the process. Most of the sun energy which is nearly 95% is in the form of light, it may be visible or invisible. The green portion of the radiation is the visible one, which is used by plant and human eye to function. Nearly all the energy on earth is produced by the sun, evaporation-transpiration which is the result of radiant heat caused hydropower, fossil fuel is the product of remnant organic lives being nourished by the sun for millions of years, when sun unevenly heats the atmosphere of the earth it results with winds, and converting the sun light into photovoltaic electricity with certain types of materials.[6] 3.1.1 Sun Light Reaching the Earth: The power output from the sun is 3.86 x 10^20 MW per second which is huge, it several billion times the electric capacity of the U.S. utilities. The energy reaching the earth atmosphere is about 1.73KW per square meter. Not all the amount of energy that reached the atmosphere is going to reach the earth, a good portion of some spectrums are going either to be absorbed or filtered or reflected by the atmosphere. Also, some of which is reflected by the clouds or earth surface, absorbed by the winds to heat them and others, see fig6. Leaving the earth surface with a maximum sunlight intensity of 1 kwatt per meter square.[6] Fig 6. Conditions that Blocks Sun Light from Reaching the Earth’s Surface
  • 18. 10 | P a g e 3.2 Solar Cell Theory 3.2.1 Photovoltaic: 3.2.1.1General Concept: The word Photovoltaic is a combination of the Greek word for Light and the name of the physicist Allesandro Volta. It identifies the direct conversion of sunlight into energy by means of solar cells. The conversion process is based on the photoelectric effect discovered by Alexander Bequerel in 1839. The photoelectric effect describes the release of positive and negative charge carriers in a solid state when light strikes its surface.[7] 3.2.1.2Photovoltaic Technologies: The first practical use of solar cells was the generation of electricity on the orbiting satellite Vanguard 1 in 1958. These first solar cells were made from single crystal silicon wafers and had efficiency of 6 %. The space application was for some time the only application of solar cells. The energy crisis in the seventies of the 20th century accelerated a search of new energy sources for terrestrial applications. This search resulted in a growing interest for PV solar energy. The major obstacle of using solar cells for terrestrial electricity generation has been a much higher price of the solar electricity when compared to the price of electricity generated from the traditional sources. Therefore, there has been much effort in the field of solar cells to reduce the price of solar electricity to a level that is comparable to the conventional electricity. The single crystal silicon wafer-based solar cells that had been used in space became also the first solar cells to be used for terrestrial generation of electricity. In order to increase the efficiency of single crystal silicon solar cells and to lower their price, the Crystalline silicon solar cell technology has improved dramatically in the past twenty years and today it is the dominant solar cell technology. Crystalline silicon solar cell technology represents today not only single crystal silicon wafer-based solar cells, but also multicrystalline silicon solar cells. Both technologies that deal with “bulk” crystalline silicon are considered the first generation solar cells for terrestrial applications. As this technology has matured, costs have become increasingly dominated by material costs, namely those of the silicon wafer, the glass cover sheet, and encapsulates. In order to decrease the material costs of crystalline silicon solar cells, research has been directed to develop low cost thin-film solar cells, which represent a second generation solar cells for terrestrial application. There are several semiconductor materials that are potential candidates for thin-film solar cells, namely copper indium gallium diselenide (CuInGaSe2=CIGS), cadmium telluride (CdTe), hydrogenated amorphous silicon (a-Si:H).[7] 3.2.2 DifferentCell Types: One can distinguish three cell types according to the type of crystal: monocrystalline, polycrystalline and amorphous. To produce a monocrystalline silicon cell, absolutely pure semiconducting material is necessary. Monocrystalline rods are extracted from melted silicon and then sawed into thin plates. This production process guarantees a relatively high level of efficiency. The production of polycrystalline cells is more cost-efficient. In this process, liquid silicon is poured into blocks that are subsequently sawed into plates. During solidification of the material, crystal structures of
  • 19. 11 | P a g e varying sizes are formed, at whose borders defects emerge. As a result of this crystal defect, the solar cell is less efficient. If a silicon film is deposited on glass or another substrate material, this is a so-called amorphous or thin layer cell. The layer thickness amounts to less than 1µm (thickness of a human hair: 50-100 µm), so the production costs are lower due to the low material costs. However, the efficiency of amorphous cells is much lower than that of the other two cell types. Because of this, they are primarily used in low power equipment (watches, pocket calculators) or as facade elements.[7] 3.2.3 SolarCellPhysics Analysis: Nuclear fusion reactions on the sun's surface supply earth with solar energy. This energy is primarily released in the form of electromagnetic radiation in the ultraviolet, infrared and radio spectral regions (wavelengths from 0.2 to3m). Presently, the most efficient means of harnessing this power source is the solar cell, which converts solar radiation directly into electricity. Solar cells are fabricated from various semiconductor materials using numerous device configurations and selecting single-crystal, polycrystalline, and amorphous thin-film structures. To following theory considers the silicon p-n junction cell, because it acts as a reference device for all solar cells. The solar cell has a single energy band gap Eg. When the cell is exposed to the solar spectrum, a photon with energy less than Eg makes no contribution to the cell output. A photon with energy greater than Eg contributes an energy Eg to the cell output, and the remaining energy is wasted as heat. [7] 3.2.4 Descriptionof SolarCell Functionality: Solar cells are composed of various semiconducting materials. Semiconductors are materials, which become electrically conductive when supplied with light or heat, but which operate as insulators at low temperatures. Over 95% of all the solar cells produced worldwide are composed of the semiconductor material Silicon (Si). As the second most abundant element in earth`s crust, silicon has the advantage, of being available in sufficient quantities, and additionally processing the material does not burden the environment. To produce a solar cell, the semiconductor is contaminated or "doped". "Doping" is the intentional introduction of chemical elements, with which one can obtain a surplus of either positive charge carriers (p-conducting semiconductor layer) or negative charge carriers (n-conducting semiconductor layer) from the semiconductor material. If two differently contaminated semiconductor layers are combined, then a so- called p-n-junction results on the boundary of the layers.[7] 3.2.5 Characteristics ofa SolarCell: 3.2.5.1Current- Voltage Line of a si-SolarCell: The usable voltage from solar cells depends on the semiconductor material. In silicon it amounts to approximately 0.5 V. Terminal voltage is only weakly dependent on light radiation, while the current intensity increases with higher luminosity. A 100 cm² silicon cell, for example, reaches a maximum current intensity of approximately 2 A when radiated by 1000 W/m².
  • 20. 12 | P a g e The output (product of electricity and voltage) of a solar cell is temperature dependent. Higher cell temperatures lead to lower output, and hence to lower efficiency. The level of efficiency indicates how much of the radiated quantity of light is converted into useable electrical energy. [7] 3.2.5.2Natural Limits of Efficiency: Theoretical maximum levels of efficiency of various solar cells at standard conditions. In addition to optimizing the production processes, work is also being done to increase the level of efficiency, in order to lower the costs of solar cells. However, different loss mechanisms are setting limits on these plans. Basically, the different semiconductor materials or combinations are suited only for specific spectral ranges. Therefore a specific portion of the radiant energy cannot be used, because the light quanta (photons) do not have enough energy to "activate" the charge carriers. On the other hand, a certain amount of surplus photon energy is transformed into heat rather than into electrical energy. In addition to that, there are optical losses, such as the shadowing of the cell surface through contact with the glass surface or reflection of incoming rays on the cell surface. Other loss mechanisms are electrical resistance losses in the semiconductor and the connecting cable. The disrupting influence of material contamination, surface effects and crystal defects, however, are also significant. Single loss mechanisms (photons with too little energy are not absorbed, surplus photon energy is transformed into heat) cannot be further improved because of inherent physical limits imposed by the materials themselves. This leads to a theoretical maximum level of efficiency, i.e. approximately 28% for crystal silicon.[7] 3.3 Optimum Angle: The tilt of the panels is important because your panels will produce a maximum of energy when the sun is directly perpendicular to them. During the winter in the northern hemisphere, for example, the sun is low in relation to the horizon. In this case, for the solar panels to get their best performance, a steep angle of 60° is best. During the spring the best angle is 45°, and during the summer when the sun is high in the sky, it’s best to have a low tilt at 20°![8]  What angle that should be chosen to maximize the production all year long In solar thermal energy: The aim is to produce more heat in the winter and less heat in the summer. Example: In Marseille, for conventional thermal energy, 4m² of panels are necessary for a typical home’s hot water needs (200 L at 45 ° C) and the best inclination of the panels is between 50° and 55°. This inclination does not correspond to maximum sunshine, but because there is a surplus of production in the summer, it is better to optimize the angle for the winter.  Photovoltaic (PV): For photovoltaic panels where the electricity is re-injected into the grid for re- sale, the optimum orientation is south with an angle of a 37°,which maximizes total electricity production.  PV-T: With the DualSun PV-T panels, which produce both electricity and hot water, the optimal angle is the same as for PV panels. Example: For a DualSun installation in Marseille, we recommend a 4-panel design for a family of 4. The best angle for that is maximum sunshine (37 °).
  • 21. 13 | P a g e Solar panels installed vertically produce less energy, but a façade installation can still make sense depending on the specific needs and constraints of the building. For example, the Arpont shelter has DualSun panels installed vertically. This was a design choice, but also a technical decision to avoid an accumulation of snow during the winter.  The impact that does the angle have on production as we diverge from the “ideal angle”? Fig7. Sunlight Distribution According to Orientation and Tilt Angle.  Does it make sense to adapt the tilt of a roof to optimize production? In the case of PV-T, when a roof has a fixed slope, it is not necessary to change the angle of the roof to get an optimal production. In fact, the production of energy will always be interesting (which is not necessarily true with thermal solar panels for heating). The orientation of the panels is important to capture a maximum of sunlight and therefore produce a maximum of energy. On a fixed installation, the best direction to have the best production is South-facing roofs receive the most sunlight, and therefore the most solar energy during the day.  the impact on production if it derives from this ideal orientation? If you refer to the diagram above, you will see that further you are from the south, the more your production will be affected.  Does it evermake sense to have panels east/west facing rather than south-facing? In the case of “self-consumption” for the PV production, it can make sense to orient the panels east/west rather than south-facing. East-facing panels will produce more energy in the morning, west-facing more energy in the late-afternoon. With respect to energy autonomy, the goal is not to produce the maximum but what is needed. This is, for example, the case for the off-grid Arpont chalet in the French Alps, where the DualSun panels are oriented east/west to be able to produce more energy in the morning and the evening and less during the day, when the shelter is pretty empty! [8]
  • 22. 14 | P a g e 3.3.1 SolarAngle Calculator: This solar angle calculator tells us the optimum angle to get the best out of our system. To get the best out of our photovoltaic panels, we need to angle them towards the sun. The optimum angle varies throughout the year, depending on the seasons and our location and this calculator shows the difference in sun height on a month-by-month basis. Of course, the sun is continually moving throughout the day and to get the very best from our photovolta ic system we would need to angle our panels to track the sun minute by minute. We can buy an automated solar tracker to do this. The sun is at its highest at solar noon each day (this occurs exactly half way between sunrise and sunset) and this calculator shows the angle at that time of day. At solar noon, the irradiance from the sun is at its very highest and we can generate the most power. In the northern hemisphere, the sun is due south at solar noon. Therefore, to get the very best out of our photovoltaic panels, we would typically face them due south at the optimum angle so that the panel is receiving as much sunlight as possible at this time. The correct angle for our project will depend very much as to when we want to get the best out of our photovoltaic we would angle our photovoltaic panels according to the height of the sun in the sky during these months. If we want to improve our winter performance, we would angle our photovoltaic panels towards the winter months in order to get the best performance at that time of year. If we have the opportunity to adjust our photovoltaic panels throughout the year, we will benefit from having the optimum performance from our solar system all of the time. This solar angle calculator allows us to calculate the optimum angle on a month-by-month basis.[8] 3.4 SolarTrackerTheory: 3.4.1 Introduction of SolarTracking Techniques: People used to use fixed array panels to generate electricity from the sun, but as the day passes the sun position is changing and may not face the panels for several hours, thus decreasing the output. The tracking system will increase the efficiency by following the sun. There are several types of tracking systems depending on the way of determining the sun's path, however the main once are fixed control algorithm and dynamic tracking. In fixed control algorithm: the position of the sun is calculated at each time period by an algorithm, it works by previous saved data for a given day, month and year. On the other hand dynamic tracking system uses some techniques to search for the sun position all day. Both of tracking systems have a control system, and position changing DC motors such as stepper motors or servo motors, which will be directed by the control circuit. [9] 3.4.2 Definition of SolarTracker: A solar tracker is a device used to change the position of a solar panel in a manner that will make the sun ray's perpendicular to the panel, in order to increase the efficiency.
  • 23. 15 | P a g e 3.4.3 Methods ofDrive: - Active Trackers: Active Trackers use motors and gear trains to direct the tracker as commanded by a controller responding to the solar direction. The Light-sensing trackers typically have two photo sensors, such as photodiodes, configured differentially so that they output a null when receiving the same light flux. Mechanically, tracker should be Omni directional (i.e. flat) and are aimed 90 degrees apart which will cause the steepest part of their cosine transfer functions to balance at the steepest part and thus translates into maximum sensitivity. - Passive Trackers: Passive s o l a r Trackers use a low boiling point compressed gas fluid that is driven to one side or the other (by solar heat creating gas pressure) to cause the tracker to move in response to an imbalance. - Chronological Tracker: Chronological solar Tracker counteracts the earth's rotation by turning at an equal rate as the earth, but in the opposite direction. Actually the rates aren't quite equal as the earth goes around the sun. So the position of the sun changes with respect to the earth by 360° every year or 365.24 days. [9] 3.4.4N Existing Prototype:  A solar tracker project by bill lane : In 2008, Bill Lane has built a solar Tracker for his final year project. Bill lane is a graduate student, from department of electrical and computer engineering, Cleveland State University. In his Solar Tracker project, Bill Lane used a single axis design for the tracker, meaning the tracker only control one angle. Using the Cadmium Sulphide (Csd) as the light sensors, he used 2 light sensor as comparator of the light radiation. When one of the sensor has higher intensity of light, the position of the sun is on the side of that light sensor. Then, by using unipolar stepper motor, the solar panel will be rotate or move until both sensor has the same amount of light on it. Bill Lane solar tracker is using PIC16F877 as the microcontroller of the tracker, the microcontroller has a 10 bits multichannel ADC (analog digital converter), 5 input/output ports and 256 x 8 bytes of data EEPROM memory. 15 Figure 2.10 a) One Axis Tracker b) Light sensor The advantage of this tracker is it used a single axis design. Therefore, the solar tracker must be mounted in fix position where it can be tracker the path of the sun. Refer to Figure 2.11, the one axis tracker only can track path 1 but not Path 2, where to enable the path 2 the tracker must be able to control the azimuth and latitude angle.  Isaac Aunkst received his Bachelor's degree in Electrical Engineering Technology from Penn State Erie, The Behrend College in 2006. Upon graduation he worked for GE Transportation Systems on locomotive electrical and instrumentation systems. He has recently been hired to work on power electronic system design for General Dynamics Electric Boat Division. In 2005 Isaac Aunkst has built a Solar Panel Tracking to increase the efficiency of a photovoltaic (PV) system. 8051 microcontroller was used to control the movement of the solar panel. The system was designed to be autonomous, such that energy generated by the solar panel would be used to charge two lead acid batteries. Isaac Aunkst Solar panel tracking is a single axis design, and by using Light sensor (ldr) to detected the position of the sun. Figure 2.12 Solar Panel Tracking The advantage of Solar panel tracking by Isaac Aunkst is the same with Solar Tracker by Bill Lane where it used a single axis design. To improve the efficiency of the tracker, dial axis can be implementing to control bolt azimuth and latitude of the sun position
  • 24. 16 | P a g e Chapter Four: Methodology During our project we have been through the following steps as shown in figure. We have started by reviewing the sun tracking background in order to establish the Microcontroller Based Solar Tracking to perform the specified task. Then we have chosen a mechanical standard design base on some specifications such as minimum price simplicity and higher efficiency. After that, we moved to study Arduino programming to develop the electrical control circuit. Finally we will end with hardware in the next semester. 4.1 Design: When designing our tracking system, we have separated tasks. But talking about the project generally, it involves reading voltages from sensors, then comparing these voltages digitally to determine the direction that the solar panel must move to, aligning itself with the sun. To perform this movement a motor circuit is needed to receive output from the controller and step the motors as a respond. The following sections of this chapter outline the methods and designs used to implement this system. 4.1.1 Mechanical Design: - Method of alignment: There are two main methods to align the dual axis solar tracker, see fig, which are: 1- Tilting both axes. 2- Tilting on axis and rotating the other. Fig8. Methods of Solar Panel Alignment
  • 25. 17 | P a g e And after analyzing both systems we have decided to build the second one, because it's less complicated. The design contains two servo motors that will respond to the microcontroller. Fig9. Suggested Design (Two Motors) 4.1.2 ModelDesign: For the model we have chosen MOHAMAD FAZMAN BIN MOHAMAD YUNUS design. It consists of the solar panel, main board, sensor and motor. Figures below 10,11,12 shows our final design. Fig 10. Base Structure
  • 26. 18 | P a g e Fig11.Upper Structure Fig12. Back View
  • 27. 19 | P a g e 4.1.3 ElectricalandElectronic Design: Block Diagram: This block diagram below shows the overview of the working principle of the circuit. 4.2 System Main Components:  Polycrystalline Mini PV module.  Micro controller (Arduino Uno)  Tracking software  DC motor (servo) 4.2.1 Servo Motors:
  • 28. 20 | P a g e A Servo is a small device that has an output shaft. This shaft can be positioned to specific angular positions by sending the servo a coded signal. As long as the coded signal exists on the input line, the servo will maintain the angular position of the shaft. As the coded signal changes, the angular position of the shaft changes. Servos are extremely useful in robotics. The motors are small, have built in control circuitry, and are extremely powerful for their size Servo motors (see Figure 14) incorporate several components into one device package; a small DC motor; a gear reduction drive for torque increase and an 22 electronic shaft position sensing and control circuit. The output shaft of a servo motor does not rotate freely, but rather is commanded to move to a particular angular position. The electronic sensing and control circuitry which is the servo feedback control loop will drive the motor to move the shaft to the commanded position. If the position is outside the range of movement of the shaft, or if the resisting torque on the shaft is too large, the motor will continue trying to attain the commanded position. The servo motor control is inherently consists of the three wires: power, ground, and control. The power and ground wires are simply connected to a 5V supply. in this project, two servos are going to be used. The control signal consists of a series of pulses that indicate the desired position of the shaft. Each pulse represents one position command. The length of a pulse in time corresponds to the angular position. Typical pulse times range from 0.7 to 2.0 milliseconds for the full range of travel of a servo shaft. Most servo shafts 24 have a 180 degree range of rotation. The control pulse must repeat every 20 milliseconds. For this project, four servo motors activating at 5V will be used for tracking the angle of the light radiation (altitude and elevation)..[10] Fig13. Servo Motor
  • 29. 21 | P a g e 4.2.2 Light SensorTheory: Light sensors are among the most common sensor type. The sensor circuit design consists of four small polycrystalline silicon solar cells of the same type we used for the major panel. so it seemed like a no- brainer to use them as sun sensors in the tracker. Figure 15 shows Polycrystalline Mini PV Module. In this project, it was desired for the output voltage to increase as the light intensity increases, so the photocell was placed in the top position. The four small solar cells are placed at 90 degrees with respect to each other. The idea was that one cell or the other would get more sun, and the tracker would move until they were getting equal sun. Fig 14. Polycrystalline Mini PV Module In this project, it was desired for the output voltage to increase as the light intensity increases, so the photocell was placed in the top position.  Sensor circuit design After testing some circuit designs, we have decided simple four- sided with a shadow blocking, see fig16. They are set in a manner such that they have the same voltage when they are pointing to the sun; this is possible because the sensors are set at 90o to the base of the sensor. When the one sensor is not pointing to the sun, the voltage across the other sensor that is exposing more to the sun is going to be higher from the others. Thus a comparator will decide the way of movement, which is toward the higher voltage sensor. Two opposite sensors are used for tilt movement and the others are used for rotational movement.
  • 30. 22 | P a g e Fig15 .Four-Sided mini polycrystalline solar modules 4.2.3 Tracking Controller: Arduino Uno: The Arduino Uno is an open source microcontroller board. It is a small electronic circuit controls the programming of Atmega328 microcontroller, this circuit provides pins to connect electronic components directly to the microcontroller using 14 digital input/output pins (of which 6 can be used as PWM outputs), and also it consists of Crystal Oscillator 16 MHz and USB to connect with the computer. It contains everything needed to support the microcontroller; simply connect it to a computer with a USB or use a battery to get started.[11]
  • 31. 23 | P a g e Fig16. Arduino Uno 4.2.4 Tracking Program: The program for the tracking controller has been written in C++ language code for the arduino Uno microprocessor. From the A/D the processor directly accesses the voltages and performs the necessary comparisons. After the comparisons are complete the processor uses a step algorithm to move the servo motors in the direction determined by the comparisons. See appendix A. 4.3 Light Sensorto Microcontroller Circuit: Light Sensor to Microcontroller Interface Circuit This project implements the usage of 4 mini solar panels. The main reason for these sensors is to program the robot to tracking the sun radiation or a light source. Four of the mini p-v’s namely the south sensor, east sensor and north sensor, and west sensor are used to sense the light source. The 4th pair called the identifier sensor is used to detect the presence of extra stripe on the right hand side. The p-v sensor is connected to the ADC input pin on the microcontroller, see fig 18. Fig 17. Light Sensor to Microcontroller Interface Circuit.
  • 32. 24 | P a g e 4.4 Complete Circuit: Fig18. Fritzing Simulation
  • 33. 25 | P a g e 4.5 Flowchart: Flowchart of tracking algorithm for tilting control is shown bellow; rotation control is done by the same algorithm
  • 34. 26 | P a g e Chapter five: Results and analysis The following result was done in EIA, U.S energy information administration. It shows an output power comparison between tracking dual axis, no tracking tilted south, no tracking tilted east, no tracking tilted west, and no tracking flat, during one day in kilowatt see fig19. And during seasons in watt-hour see fig 20. Fig19. EIA Average Energy Production in a Day[12]
  • 35. 27 | P a g e Fig21.EIA Average Energy Production in the Four Seasons in Watthour[12] Because PV panels are able to capture more solar energy when they are pointed directly at the sun, installers may configure systems to optimize output by adjusting the orientation and tilt of a system, or by using mechanisms that track the sun as it traverses the sky.
  • 36. 28 | P a g e Chapter Six: Conclusions and Recommendations From the design of experimental setup with microcontroller base solar tracking system using servo motor, if we compare tracking by the use of LDR with fixed solar panel system we expect to find that the efficiency of microcontroller based solar tracking system is improved by 30-45% and we expect that all parts of experimental setup are giving good results. This tracking system tracks the sun either in continuous manner or every 10 minutes or 15 minutes … etc, and this system is expected to be more efficient and cost effective in long run. The solar tracker can be still enhanced by adding special features in terms of protection from rain and wind in the future work.
  • 37. 29 | P a g e References: [1] Bloomberg New Energy Finance, UNEP SEFI, Frankfurt School, Global Trends in Renewable Energy Investment 2011 [2] All fossil fuel reserve and consumption data from CIA World Factbook. [3] "Solar Energy Perspectives: Executive Summary". International Energy Agency. 2011.Archived from the original (PDF) on 2011-12-03. [4] "Photovoltaic Cell Conversion Efficiency Basics". U.S. Department of Energy. Retrieved 6 Sep 2014. [5] Percentages derived using the NREL Solar AdvisorModel tool by using identical input data, but varying the type of system among fixed frame, single-axis tracking and dual-axis tracking. http://arizonaenergy.org/News_10/News_Nov10/Dual- AxisTrackingGeneratesMorePower.html [6] Solar Energy Industries Association [7] National Technical Information Service U.S. Department of Commerce 5285 Port Royal Road Springfield, VA 22161 Stock Number: SERIISP-290-1448 [8] HOME SOLAR PANELS -(10/11/2015) - access by this site http://www.mysolarpannels.com/optimum-angle-for-solar- panels/#ixzz3soIjqrh0 [9] Ignacio Luque-Heredia et al., "The Sun Tracker in Concentrator Photovoltaics" in Cristobal, A.B.,Martí, A.,and Luque, A. Next Generation Photovoltaics,Springer Verlag, 2012 [ISBN 978-3642233692] [10] "Legend Elite laser series".Epilog Laser. Servo motors are incorporated in both the X and Y axes of every Legend Elite Series laser. These motors are known for their fast acceleration and deceleration speeds. [11] "Arduino FAQ – With David Cuartielles". Malmö University. , 3/11/2015. Retrieved 2014-03-24. [12]U.S. EIA (3/11/2015) access by this site- https://www.eia.gov/todayinenergy/detail.cfm?id=18871
  • 38. 30 | P a g e Appendix A: #include <Servo.h> Servo x; Servo y; int postx = 0; int postey = 0; int time1 =100; int Cell_Sensor1 = 0; int Cell_Sensor2 = 0; int Cell_Sensor3 = 0; int Cell_Sensor4 = 0; int Cell_Sensor5 = 0; int timer = 200; void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); y.attach(10); x.attach(9); } // the loop routine runs over and over again forever: void loop() { // read the input on analog pin 0: Cell_Read(); /* // print out the value you read: Serial.print("Cell_Sensor1 : "); Serial.println(Cell_Sensor1); delay(timer); Serial.println(""); delay(timer); Serial.print("Cell_Sensor2 : "); Serial.println(Cell_Sensor2); delay(timer); Serial.println(""); delay(timer);
  • 39. 31 | P a g e Serial.print("Cell_Sensor3 : "); Serial.println(Cell_Sensor3); delay(timer); Serial.println(""); delay(timer); Serial.print("Cell_Sensor4 : "); Serial.println(Cell_Sensor4); delay(timer); Serial.println(""); delay(timer); */ Serial.print("Cell_Val : "); Serial.println(Cell_Sensor5); Serial.println(""); delay(timer); angleX(); angleY(); } void angleX(){ Cell_Read() ; if (Cell_Sensor1 < Cell_Sensor2) { Cell_Read() ; postx++; x.write(postx); delay(15); if (postx == 160 || postx > 160) { postx = 160; } Cell_Read() ; delay(time1); } else if (Cell_Sensor1 > Cell_Sensor2) { Cell_Read() ; postx--; x.write(postx); delay(15); if (postx == 2 || postx < 2) { postx = 0; } Cell_Read() ; delay(time1); }
  • 40. 32 | P a g e } void angleY() { if (Cell_Sensor3 > Cell_Sensor4) { Cell_Read() ; postey++; y.write(postey); delay(15); if (postey == 80 || postey > 80) { postey = 80; } Cell_Read() ; delay(time1); } else if (Cell_Sensor3 < Cell_Sensor4) { postey--; y.write(postey); delay(15); if (postey == 2 || postey < 2) { postey = 1; } Cell_Read() ; delay(time1); } } void Cell_Read() { Cell_Sensor1 = analogRead(A0); //Cell_Sensor1 = map(Cell_Sensor1, 0, 1023, 0, 5); Cell_Sensor2 = analogRead(A1); // Cell_Sensor2 = map(Cell_Sensor2, 0, 1023, 0, 5); Cell_Sensor3 = analogRead(A2); // Cell_Sensor3 = map(Cell_Sensor3, 0, 1023, 0, 5); Cell_Sensor4 = analogRead(A3); // Cell_Sensor4 = map(Cell_Sensor4, 0, 1023, 0, 5); Cell_Sensor5 = analogRead(A5); Cell_Sensor5 = map(Cell_Sensor5, 0, 1023, 0, 5); }