Final Year Project Report (Emergency Traffic Lights)
Final Year Project Report (Emergency Traffic Lights)
Final Year Project Report (Emergency Traffic Lights)
16DET20F1043
SESSION I: 2022/2023
PROJEK PELAJAR (Diploma Politeknik)
Project Title: SOLAR TRACKER WITH UPS SYSTEM FOR FACTORY AND
2. I am here declaring that the project mentioned above and its intellectual properties in it
was my original work/design without taking or imitating any intellectual property from
any other party.
3. I also agree to give up the intellectual property ownership of the project to the
Polytechnic to meet the requirements for the grant of Diploma in Electrical Engineering
- DET to me.
…………………………..
MUHAMMAD AMMAR BIN ADNAN
16DET20F1043
Witness by,
……………………………………………..
PUAN HARTINI BINTI ABDUL HAMID
As this project supervise on 10/3/2022
i
PROJEK PELAJAR (Diploma Politeknik)
ACKNOWLEDGE
Last but not least, I offer a thousand thanks to my beloved family and friends for providing
moral support during my studies and for always beings be there in supporting me in my
conquest to finish my project. May Allah rewards your kindness in abundance in this
world and next.
ii
PROJEK PELAJAR (Diploma Politeknik)
ABSTRACT
The real goal of this project is to provide other alternatives when the electricity supply is cut
off due to unavoidable things. 12v solar panels are used to absorb sunlight as an energy
source to generate electricity or heat. Solar chargers used to charge solar in dry systems
called SCC or Battery Control Unit (BCU) or Battery Control Regulator (BCR) are a fairly
important part of a solar system. The main role of the SCC is to protect and automate battery
charging. This aims to optimize the system and keep battery life to a minimum. In addition,
12v batteries are also used to supply electricity so that the existing electricity supply can be
used to replace the power outage even at night. Next, the inverter is to convert DC to AC
and also converts voltage. In other words,t is a power adapter. This allows a battery-based -
based independent power system to run conventional equipment as opposed to home cables.
Relays are also used in this circuit to run the UPS system. The relay system can convert the
current from the electrical energy connection to the stored energy which is the solar system
that supplies the electrical energy. It works automatically where if the electricity supply from
TNB is cut off, the relay will continue to detect and provide electricity from the solar system.
This system can provide electrical energy to continue to function for example lights and
appliances that use electricity. Arduino Nano is a small developer circuit board that already
has a microcontroller and supports the use of the headboard. Arduino Nano is specially
designed and manufactured by Gravitecthe h using Atmega328 (for Arduino Nano V3) or
Atmega168 (for Arduino Nano V2) microcontroller base.
Finally, this system has many uses and facilities that we can take advantage of if the
electricity supply is cut off.
iii
PROJEK PELAJAR (Diploma Politeknik)
ABSTRAK
Matlamat sebenar projek ini ada untuk memberi alternative lain semasa bekalan tenaga
elektrik terputus disebabkan oleh perkara yang tak dapat dielakkan. Panel solar 12v
digunakan untuk menyerap cahaya matahari sebagai sumber tenaga untuk menghasilkan
elektrik atau haba. Solar charger digunakan untuk mengecas suria dalam sistem kering yang
dipanggil SCC atau Unit Kawalan Bateri (BCU) atau Pengawal Selia Kawalan Bateri (BCR)
adalah bahagian yang agak penting dalam sistem solar. Peranan utama SCC adalah untuk
melindungi dan mengautomasikan pengecasan bateri. Ini bertujuan untuk mengoptimumkan
sistem dan memastikan hayat bateri pada tahap minimum. Selain itu,bateri 12v turut
digunakan untuk membekalkan tenaga elektrik supaya bekalan elektrik sedia ada boleh
digunakan menggantikan bekalan elektrik yang terputus walaupun pada waktu malam.
Seterusnya,inverter adalah untuk menukarkan DC kepada AC dan juga menukar voltan.
Dalam erti kata lain ialah penysuai kuasa. Ini membolehkan sistem kuasa bebas berasaskan
bateri untuk menjalankan peralatan konvensional berbanding kabel rumah. Relay turut
digunakan dalam litar ini untuk menjayakan sistem UPS. Sistem relay dapat menukar arus
dari sambungan tenaga elektrik kepada tenaga simpanan iaitu sistem solar yang
membekalkan tenaga elektrik. Ia berfungsi secara automatik yang dimana sekiranya supply
elektrik dari TNB terputus,relay akan terus mengesan dan memberi arus elektrik dari sistem
solar. Sistem ini dapat memberi tenaga elektrik untuk terus berfungsi contohnya lampu dan
alatan yang menggunakan elektrik. Arduino Nano adalah suatu papan sirkuit pengembang
berukuran kecil yang didalamnya sudah tersedia mikrokontroler serta mendukung
penggunaan breadboard.Arduino Nano khusus dirancang dan diproduksi oleh perusahaan
Gravitechdengan menggunakan basis mikrokontroler Atmega328 (untuk Arduino Nano V3)
atau Atmega168 (untuk Arduino Nano V2).
Akhir sekali, sistem ini banyak kegunaan dan kemudahan yang dapat kita manfaatkan
sekiranya bekalan elektrik terputus.
iv
PROJEK PELAJAR (Diploma Politeknik)
TABLE OF CONTENT
CHAPTER 1 – INTRODUCTION 1
1.1 INTRODUCTION 1
1.2 PROJECT BACKGROUND 2
1.3 PROJECT STATEMENT 3
1.4 PROJECT OBJECTIVE 3
1.5 SCOPE OF PROJECT 3
1.6 PROJECT SIGNIFICANCE 4
1.7 THESIS LAYOUT 4
v
PROJEK PELAJAR (Diploma Politeknik)
CHAPTER 3 – METHODOLOGY 14
3.1 INTRODUCTION 14
3.2 PROJECT IMPLEMENTATION PROCEDURES 15
3.2.1 BLOCK DIAGRAM OF THE PROJECT 16
3.2.2 FLOWCHART OF THE PROJECT 18
3.2.3 DESCRIPTION OF PROJECT FLOWCHART 19
3.3 SOFTWARE REQUIREMENT 20
3.3 SOFTWARE USED 20
3.3.1 PROTEUS PROFESIONAL 20
3.3.2 ARDUINO IDE 21
3.4 SCHEMATIC CIRCUIT DIAGRAM 22
3.5 HARDWARE REQUIREMENT 23
3.5.1 SOLAR PANEL 23
vi
PROJEK PELAJAR (Diploma Politeknik)
4.2 ANALYSIS 29
4.2.1 PROTOTYPE AND MODEL DESIGN 30
4.2.2 CONNECTION OF INPUT/OUTPUT AND GPIO PIN 30
4.3 PROBLEM FACED 31
4.4 RESEARCH AND ANALYSIS PROJECTS 31
4.5 REFORM PROJECT 31
4.6 DISCUSSION AND PROBLEM SOLVING SESSIONS 31
4.7 DIAGRAM 32
4.8 COST ESTIMATION PROJECT 32
4.8.1 RESULT OF WORK 33
4.8.2 DISCUSSION 34
4.8.3 SUMMARY 35
vii
PROJEK PELAJAR (Diploma Politeknik)
REFERENCES 39
APPENDICES 44
APPENDIX 1: GANTT CHART 40
APPENDIX 2: COST ANALYSIS 42
APPENDIX 3: DATASHEET 43
Datasheet ARDUINO NANO 43
Datasheet LDR MODULE SENSOR 45
DATASHEET SERVO MOTOR 46
DATASHEET SOLAR PANEL 47
APPENDIX 4: CODING PROGRAM 48
viii
PROJEK PELAJAR (Diploma Politeknik)
LIST OF TABLES
ix
PROJEK PELAJAR (Diploma Politeknik)
LIST OF FIGURES
x
PROJEK PELAJAR (Diploma Politeknik)
LIST OF ABBREVIATIONS
DC Direct Current
AC - Alternating Current
V - Volt
xi
PROJEK PELAJAR (Diploma Politeknik)
CHAPTER 1
INTRODUCTION
1.1 INTRODUCTION
Solar Tracker with UPS System For factory and Clinic emergency Supplies is a project
that intrigued. Although there were various problems encountered throughout the
implementation process, what as able to learn was worth it. This project will try my best to
make this project chosen success. This project is to design the UPS system for the needs of
the clinic or factory to supply electricity if the clinic or factory has a problem with electricity
supply. The project aims to supply electricity to clinics or factories in the event of a power
outage.
This will interfere with the task of nurses and doctors to treat patients if the equipment
used requires electrical energy for its use. In addition, factory workers find it difficult to do
work if the supply is suddenly cut off during extra working hours at night, and also the
machines used require electricity. Thus the work will be affected due to power outage. This
project also uses a solar system to charge the battery and can supply voltage energy for use
in clinics or factories that use this system to supply electricity. With solar tracker can supply
electricity if the battery runs out of energy. using arduino nano. The main control uses an
Arduino nano that gets the input value from the LDR sensor and then processed it into the
output system. With the automatic control system method can be seen the differenin of the
results of fixed solar panel with solar panel with tracker, from the comparison of solar panel
with tracker is more optimal in receiving sunlight compared to fixed solar panel.
1
PROJEK PELAJAR (Diploma Politeknik)
This discuss focuses on building a standalone UPS system using solar energy with a
solar tracking system. Solar energy and UPS systems are two rapidly growing technologies
due to the demand for electricity and to reduce the carbon footprint in the atmosphere. The
main reason for this system to be chosen is UPS system can invert and rectify the electricity
that’s the solar power can be delivered to DC part of the system instead of an AC grid which
may avoid the installation of excessive inverters in the system. The solar tracker is used to
improve the energy gained by the panel or payload so that the system produces more power
at high efficiency
This UPS system is designed to provide a supply to the clinic or factory to maintain
or supply electricity to the clinic or factory that uses this system if the clinic factory is cut
off from the available electricity supply. In addition, the UPS system can help factory
workers or factory workers to facilitate work and speed up the addition of electricity supply
suddenly cut off at midnight. With the system can save the existing electricity costs and a
company's finances increase. that this system can guarantee for the future of a company in
the future. This system will open the eyes of other companies if this system is successfully
used as well as possible to be able to compete with other systems. Arduino nano reads analog
values of LDRs. LDRs are named by directions north, south, east, west. East- West and Nort-
South are pairs. The seperator between LDRs, makes shadow one of the LDR pair, if panel
doesn't look towards to sun. If one LDR has shadow, measured analog level should be
different from the pair.
If analog levels are bigger then 5 points, Arduino nano gives command to Servo motor
to rotate 1 degree to E-W or N-S direction which LDR has lower level. It rotates until panel
looks towards to sun.
2
PROJEK PELAJAR (Diploma Politeknik)
System finds two value of degrees. One is north-south degree, other is east-west
degree. If pv panels are rotated by servo motor using these E-W and N-S degrees, pv panel
rotates syncronized with solar tracker.
The main purpose of this project is to design and fabricate a prototype of a Solar Tracker
with UPS system for factory and clinic emergency supplies. The main objective is:
iii. To generate electricity when cut off suddenly especially in the middle of the night
iv. To save costs because this system uses sunlight energy LDR sensor that charges
when there is bright light
ii) This project can avoid losses to the industry because it can supply electricity to operate
even if the existing electricity supply is cut off.
3
PROJEK PELAJAR (Diploma Politeknik)
iv)This project uses arduino nano functions to control and help the solar tracker to charge the
battery
v)With the solar tracker, this project can charge the battery as a result of the reflected light
Importance is known as what is important through research that has been done. The
importance is:
iii. Using solar panels to detect light and convert it into electricity.
Chapter 1: the project contains the background of the project, problem statement, objectives,
scope, importance of the project and finally the layout of the thesis.
Chapter 2: contains a brief introduction to the solar tracker and UPS system as well as a
literature review discussion of the overview article.
Chapter 3: define and design the project, system operation, and description of the
components used.
Chapter 5: briefly describe the overall conclusion of the project and future recommendations
4
PROJEK PELAJAR (Diploma Politeknik)
CHAPTER 2
LITERATURE REVIEW
2.1 INTRODUCTION
This UPS system is designed to provide a supply to the clinic to maintain or supply electricity
to the clinic that uses this system if the factory or clinic is cut off from the available electricity
supply
Problems of power outages will occur although this is not always the case. If the electricity
supply is cut off in an industrial area or clinic, this will greatly affect the workers and factory
owners due to the failure of the electricity supply connection. We need to take precautions
such as making more than one input to generate electricity. For example making a solar
supply in preparation in case the existing electricity supply is cut off. This is very useful and
beneficial because all machines or equipment that use electricity can function even if the
electricity supply is cut off. Overall the function of this solar is, sunlight is absorbed by the
solar panel then the solar charger will flow energy to the battery to store electrical energy.
The inverter will output the AC output for the use of electrical goods. If the battery runs out
of supply, the system will continue to function if there is light radiation that can be absorbed
by the solar panel.
5
PROJEK PELAJAR (Diploma Politeknik)
In our daily life, of course we are no stranger to electricity generators. Usually, this tool is
needed in buildings that require a constant source of electricity, such as sewage treatment
plants, hotels, airports, and hospitals. With the presence of a generator, it is able to prevent
discontinuity and disruption of business operations. An electrical generator is a device that
produces electrical energy from mechanical energy sources, usually by using
electromagnetic induction. Simply put, a generator is a machine with kinetic energy
(mechanical) which is then able to transform into electrical energy (electricity). There are
various sources of motion energy from generators. For example, in a wind power plant, the
generator can move because of the wind that moves the wheel to rotate.
6
PROJEK PELAJAR (Diploma Politeknik)
grid connection sequences are an increasingly large source of commercial electric power.
Windmills are also used to draw water to irrigate rice fields. A modern windmill is a machine
used to generate electricity, also called a wind turbine. Wind turbines are mostly found in
Europe and North America
7
PROJEK PELAJAR (Diploma Politeknik)
8
PROJEK PELAJAR (Diploma Politeknik)
9
PROJEK PELAJAR (Diploma Politeknik)
10
PROJEK PELAJAR (Diploma Politeknik)
There are several major component use in this project such shown figure 2.5.2.LDR module
serves as a light sensor in various electronic circuits such as automatic switches based on light
that if the sensor is exposed to light then electrical current will flow (ON) and vice versa if
the sensor is in minimal light (dark) then electrical flow will be inhibited (OFF). LDRs are
also often used as automatic streetlight sensors, bedroom lights, alarms, automatic laser-based
anti-theft circuits, automatic camera shutters, and much more.
There are several major component use in this project such shown figure 2.5.3Arduino
Nano is a small developer circuit board that already has a microcontroller and supports the
use of breadboard. Arduino Nano is specially designed and manufactured by
Gravitech company using Atmega328 microcontroller base (for Arduino Nano V3) or
11
PROJEK PELAJAR (Diploma Politeknik)
12
PROJEK PELAJAR (Diploma Politeknik)
Heavy 5g
2.6 SUMMARY
In this chapter proposed about the literature review related to the project and taken based on
other projects. Then, the concept or theory is basically brief on how it can be related to the
actual project. From the comparison of other projects, this possibility gives us the potential
to improve the system to be more efficient and effective than previous projects. The main
purpose of this project is to design and fabricate a prototype of a Solar Tracker with UPS
system for factory and clinic emergency supplies The main objective is to design UPS system
for factory and clinic and to development software for UPS system.
13
PROJEK PELAJAR (Diploma Politeknik)
CHAPTER 3
METHADOLOGY
3.1 INTRODUCTION
In this chapter we discussed the methodology that was used to complete this project. It has
been properly planned by collecting correct information from various references like article,
World Wide Web (WWW) and others. We also collect information, advice, and guidelines
for completing this proposal report from our supervisor. All useful data and information were
analyzed to get the best result. In general, there are several levels to reach the complete
analysis of the product which are:
14
PROJEK PELAJAR (Diploma Politeknik)
Component testing
Component assembly
15
PROJEK PELAJAR (Diploma Politeknik)
SOLAR PANEL
LED LAMP
SENSOR LDR
MODULE ARDUINO
NANO RELAY MK3P
BATTERY
SERVO
MOTOR
INVENTER
16
PROJEK PELAJAR (Diploma Politeknik)
Solar Panel
LED Lamp
Battery
Inventer
17
PROJEK PELAJAR (Diploma Politeknik)
Figure 3.2.2 a brief description of how the project system works. This project is divided into
two which are input and output which are controlled using Arduino Nano as the main
microcontroller. A sensor and battery as controlled input and LED light and relay as output
18
PROJEK PELAJAR (Diploma Politeknik)
19
PROJEK PELAJAR (Diploma Politeknik)
Before managing the Solar Tracker project with a UPS system for the emergency supply of
this factory and clinic, the first process is to attend a project-related briefing. Also, do research
and discussion about the project you want to do. Then, plan the project production process.
Next, the process produces a project report and continues by recording in the logbook. Next
process, make project review to supervisor. Also, make corrections if there are any errors
related to the project until it is completed without any errors. Finally, the project presentation
process will be carried out with the panel as an evaluation of the project carried out.
Software Function
Arduino IDE Used for writing, compiling and uploading the code
in almost all Arduino modules/boards.
Proteus is software used for electronic design automation; used primarily to prepare
schemas and design PCBs. It has many tools that are not only easy to use but help in
designing PCBs and learning about designing PCBs. IT uses an integrated automatic router,
and allows full schematic capture, configurable design rules, supports power planes, has
20
PROJEK PELAJAR (Diploma Politeknik)
interactive circuit stimulators, follows industry standard CADCAM and ODB ++ outputs,
and allows 3D viewing.
21
PROJEK PELAJAR (Diploma Politeknik)
The Figure 3.4 shows the schematic circuit for this project. This circuit was drawn using the
Proteus application. The main microcontroller used is the Arduino Nano. Then there is a
sensor in this circuit that is controlled by the microcontroller. This sensor can read and detect
the light of the lamp to produce energy. The power supply used is 5V. This Solar the output
power is 2W, Output voltage is 12V and output current is 167mA. At the connection of the
servo motor, the red wire is connected to VIN/5V while the brown wire is connected to GND
and the orange wire is connected to D9/D7. The LDR sensor is connected to the 5v leg
together with a 10ohm resistor connected to GND.The sensor LDR module connect the wire
to pin A1 and pin A3.
22
PROJEK PELAJAR (Diploma Politeknik)
23
PROJEK PELAJAR (Diploma Politeknik)
To produce this Solar Tracker project with UPS System for factory and clinic emergency
supplies, there are several methods that need to be done before starting this project. of high
quality.In addition if the project is successful in construction it is certain that this product
can compete in the world market.
24
PROJEK PELAJAR (Diploma Politeknik)
Hardware Function
There are several major component use in this project such shown figure 3.5.1
25
PROJEK PELAJAR (Diploma Politeknik)
26
PROJEK PELAJAR (Diploma Politeknik)
The inverter converts DC to AC and also converts voltage. In other words, this is a power
adapter. This can allow a battery -based independent power system to run conventional
equipment over conventional home cables.
27
PROJEK PELAJAR (Diploma Politeknik)
Figure 3.5.4:Inverter
3.5.5 Relay MK3P
There are several major component use in this project such shown in figure 3.5.5.A Wide
Variation of Octal Pin Power Relays
• Encased Relays unified to an AC4 rating (100/110 VAC at 50/60Hz and 200/220 VAC at
50/60 Hz).
• Highly durable with a life of over 5,000,000 mechanical operations. • Extensive product
lineup: Standard models, encased
models, special contact models, bifurcated contact models, double-winding latching models,
and more.
28
PROJEK PELAJAR (Diploma Politeknik)
size of the LED lamp is 18cm. The color of the LED lamp light is white. The LED lamp is
plugged from the output of the Inverter for lamp light.The LED lamp 2 W
29
PROJEK PELAJAR (Diploma Politeknik)
light that if the sensor is exposed to light then electrical current will flow (ON) and vice versa
if the sensor is in minimal light (dark) then electrical flow will be inhibited (OFF). LDRs are
also often used as automatic streetlight sensors, bedroom lights, alarms, automatic laser-
based anti-theft circuits, automatic camera shutters, and much more.
There are several major component used this project such shown figure 3.5.9.Arduino Nano
is a small developer circuit board that already has a microcontroller and supports the use of
breadboard. Arduino Nano is specially designed and manufactured by
Gravitech company using Atmega328 microcontroller base (for Arduino Nano V3) or
Atmega168 (for Arduino Nano V2)
30
PROJEK PELAJAR (Diploma Politeknik)
CHAPTER 4
4.1 INTRODUCTION
This project facilitates emergency work in the event of a power outage. Therefore, this Project
will increase the reliability many times. Furthermore, this project is important for the safety
system at the clinic according to my goals. This is because the equipment in the clinic needs
electricity to function. If there is no electricity supply it will have a bad effect on the patient
to check the patient's health level. If the existing electricity supply is cut off it will affect the
data and information recorded on the computer if the electricity supply is cut off suddenly. By
using arduino this project can charge the battery if the battery power runs out. The Solar
tracker function can convert AC to DC and will produce a supply electricity .To get a clear
perspective about this project, this Project has simulated some test results below
4.2 ANALYSIS
Analysis is a content simulation program that has been run to test the functional output of this
project. The program went through some line-by-line analysis to get the correct output. In
some cases, even if the circuit has been successfully built by, the output may not light as
recommended. Also, there is an error problem in the coding during the run. This causes the
arduino nano to not be able to send messages to the solar tracker. The solar tracker will move
when it receives bright light. The movement of the solar panel depends on the sensor that
detects the light above and below. When the sensor can detect the light, the servo motor starts
moving 180 degrees. The solar panel can be charged from 8.00 a.m to 8.00 p.m. When the
battery is fully charged, the UPS system can operate fully. When the battery is fully charged,
31
PROJEK PELAJAR (Diploma Politeknik)
then DC converts to AC. The negative and positive cable wires of the inverter must be
connected to the negative and positive of the battery. When the inverter is ON and the relay
starts operating, the LED lights up. If the inverter is OFF, the lights stay on.
On figure 4.2.1 shows the prototype and model design.The main microcontroller used is the
Arduino Nano. Then there is a sensor in this circuit that is controlled by the microcontroller.
This sensor can read and detect the light of the lamp to produce energy. The power supply
used is 5V. This Solar the output power is 2W, Output voltage is 12V and output current is
167mA. At the connection of the servo motor, the red wire is connected to VIN/5V while
the brown wire is connected to GND and the orange wire is connected to D9/D7. The LDR
sensor is connected to the 5v leg together with a 10ohm resistor connected to GND.The
sensor LDR module connect the wire to pin A1 and pin A3. The movement of the solar panel
32
PROJEK PELAJAR (Diploma Politeknik)
depends on the sensor that detects the light above and below. When the sensor can detect the
light, the servo motor starts moving 180 degrees. The solar panel can be charged from 8.00
a.m to 8.00 p.m. When the battery is fully charged, the UPS system can operate fully.
Research is important to ensure that an ongoing project can have a good start so that It will
not pose any problems during the project making process. So, important information such as
circuits, component usage, commercial requirements and many more are indeed important to
make a project. It is as a circuit, ensuring the understanding will be clarified further about
how important the project is. Its resources can be obtained from lectures, books and the
internet.
33
PROJEK PELAJAR (Diploma Politeknik)
To make this project it is necessary to read and understand all the available data. Data and
information need to be organized and all the information I get needs to be organized
systematically for progress. From time to time, all information and data must be updated to
obtain information and follow the progress of the project so that when the connection is
completed
Discussion sessions are held weekly to discuss project development. All problems are
discussed so that they can be resolved quickly. Unresolved issues were also quickly addressed
to the project supervisor. To make the project completed perfectly (proper planning). This can
ensure a smooth project flow without any interruptions.
4.7 DIAGRAM
OUTPUT
Solar Tracker
34
PROJEK PELAJAR (Diploma Politeknik)
4.8.1 RESULT
35
PROJEK PELAJAR (Diploma Politeknik)
36
PROJEK PELAJAR (Diploma Politeknik)
4.8.2 DISCUSSION
Discussion sessions are held every week to review project development. In addition, the
problem encountered is related to the sensor that cannot be integrated with the arduino nano
microcontroller. So, it is necessary to change and use other types of sensors such as LDR
module sensors which detect light that can solve the problem so that the flow of the project
runs smoothly. Next, all problems will be discussed if there are problems that cannot be
solved so that the problem can be solved quickly either with the supervisor or with friends.
This can ensure the smooth flow of the project without any interruption.
4.8.3 SUMMARY
In this chapter, through the results obtained how this project works and operates in addition
to the method used to produce electricity when the supply is ON and the inverter is OFF or
the inverter is ON and the supply is OFF. With the presence of the solar tracker it can function
to charge the battery. The solar tracker receives light and convert to electricity.
37
PROJEK PELAJAR (Diploma Politeknik)
CHAPTER 5
5.2 CONCLUSION
The purpose of this project must be to achieve each established objective. Overall, this
project uses the same two sensors that will be operated with a microcontroller, the Arduino
Nano. The objective of this project is achieved by generating electricity when there is a
sudden cut especially in the middle of the night. In addition, this system can save costs
because this system uses solar panels that can turn it into electric current. This system
does not use gasoline or diesel oil to produce electric current. This system uses batteries,
batteries are not able to last for a long time. By that with the solar tracker model can
charge the battery if the battery power runs out. This system does not require a network
connection to work. In addition, devices that use this system are suitable to be placed on
the roof of the house and places exposed to sunlight to supply energy to the battery to use.
In addition, this solar tracker is able to detect the area where the sun shines and is able to
supply solar energy to the user. This solar tracker is also easy for everyone to operate
because it is easy to install. This solar tracker helps a lot in supplying electricity for daily
use
38
PROJEK PELAJAR (Diploma Politeknik)
Proposed future work into it should be done like . Therefore, it is also recommended to
upgrade a better and suitable microcontroller such as ESP32 which can work using simple
networking methods on smartphones.Also, using arduino uno microcontroller, arduino has
the same functions but arduino uno has a smaller size compared to nano , the price is
cheaper than nano and more suitable. In addition, the appropriate suggestion to refer to
this project is the use in residential, industrial and medical areas. This is an area that
requires electricity to operate.
TABLE OF CHARGER
39
PROJEK PELAJAR (Diploma Politeknik)
TABLE OF USE
1 HOURS 100%
Lit up brightly
2 HOURS. 90%
Lit up brightly
3 HOURS 80%
Lit up brightly
4 HOURS 70%
Lit up brightly
5 HOURS 60%
Lit up
6 HOURS 50%
Lit up
7 HOURS. 40%
Lit up
8 HOURS 30%
Dimly lit
9 HOURS 20%
Dimly lit
10 HOURS 10%
Dimly lit
11 HOURS. 0%
Not lit
12 HOURS 0%
Not lit
40
PROJEK PELAJAR (Diploma Politeknik)
REFERENCE
[1] https://youtu.be/r-A0k4lj-gg
[2] https://www.edata.omron.com.au/eData/Relays/MK_DS.pdf
[3]https://www.buysolar.my/marketing-residential-mobile?gclid=Cj0KCQiA-
qGNBhD3ARIsAO_o7ylhlSEqsszdmQKVT0luS0Xle5A1uymS9M6xdI6pUxe_Z
i23Y0PdVu4aArbZEALw_wcB
[4]https://ers.my/?gclid=Cj0KCQiA-
qGNBhD3ARIsAO_o7ykxHhn4YwsdWVmiWdCZxyCsndDfmZKMIsKBZKFVv
R3Y78ZHGQ3tScAaAifzEALw_wcB
[5] https://www.researchgate.net/figure/Schematic-diagram-of-a-typical-Solar-
HomeSystem_fig1_338362382
[6] https://en.m.wikipedia.org/wiki/Fuse_(electrical)
[7]https://www.panasonic.com/my/consumer/battery-
torchlight/battery/rechargeablebattery/bk-3mcce-aa-
size.html?utm_source=SEM&utm_campaign=BATTERY&utm_id=1457
[8]https://www.googleadservices.com/pagead/aclk?sa=L&ai=DChcSEwjHtceR
y8X0AhWSfisKHavAAToYABACGgJ
[9]https://youtu.be/dP6gO19t2pk
[10]https://www.circuitstoday.com/arduino-solar-tracker
[11] https://youtu.be/-VYnC3NDRFs
[12] https://youtu.be/YD-4H4nyzeM
[13] https://youtu.be/dP6gO19t2pk
[14] https://youtu.be/8BSJV13u-l4
[15] https://youtu.be/CTmSh5_Zrc4
41
PROJEK PELAJAR (Diploma Politeknik)
PROJECT 1
YEAR 2022
NO MONTH 3 4 5 6
WEEK 1 2 3 4 5 6 7 8 9 10 11 12 13 14
1 LITERATURE REVIEW
Do a research related to the
project.
Search for information from the
internet, journals, books and etc.
Study about components want to
use; servo motor, LDR module.
42
PROJEK PELAJAR (Diploma Politeknik)
PROJECT 2
YEAR 2023
NO MONTH 9 10 11 12
WEEK 1 2 3 4 5 6 7 8 9 10 11 12 13 14
1 METODOLOGY
Buy components.
Do a schematic circuit and PCB
layout.
Do an etching and soldering
process.
Make a testing on the board.
2 DESIGN PROTOTYPE AND
ANALYSIS
Design interface and simulate the
project.
Design the project
3 TESTING AND ANALYSIS
Testing the project model.
Make an analysis on the model
of project.
4 WRITING
Report writing
43
PROJEK PELAJAR (Diploma Politeknik)
44
PROJEK PELAJAR (Diploma Politeknik)
45
PROJEK PELAJAR (Diploma Politeknik)
46
PROJEK PELAJAR (Diploma Politeknik)
47
PROJEK PELAJAR (Diploma Politeknik)
SERVO MOTOR
48
PROJEK PELAJAR (Diploma Politeknik)
SOLAR PANEL
Solar Panel』
Output Voltage: 12V
Output Current: 167mA
Output Power: 2W
Dimensions: 110mm x 136mm
『Motor』
Working Voltage: 1.5 ~ 12V
RPM (Round per Minute): 3000RPM (6V), 5400RPM (12V)
『Package』
1x 12V 167mA Solar Panel
OR
1x 12V Moto
49
PROJEK PELAJAR (Diploma Politeknik)
50
PROJEK PELAJAR (Diploma Politeknik)
BATTERY 12V
51
PROJEK PELAJAR (Diploma Politeknik)
INVERTER
Specifications:
Model: SP4000
Name: Car power inverter 4000W.
Input voltage: DC 10.5V~15V,
(When the battery voltage is lower than 10.5V, the
inverter is low voltage protection, when the battery
voltage is higher than 15V, the inverter high voltage
protection)
52
PROJEK PELAJAR (Diploma Politeknik)
#include <Servo.h>
//Servo Tanımları
Servo myServoEW;
Servo myServoNS;
//Değişken Tanımları
int farkNS;
int farkEW;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
//Servo motorları bağla
myServoNS.attach(9);
myServoEW.attach(7);
delay(500);
//Başlangıç pozisyonu al
degNS=90;
degEW=90;
myServoNS.write(degNS);
myServoEW.write(degEW);
53
PROJEK PELAJAR (Diploma Politeknik)
void loop() {
//LDR leri oku
ldrN=analogRead(A0);
ldrW=analogRead(A1);
ldrS=analogRead(A2);
ldrE=analogRead(A3);
//Bildirim yap
Serial.print("ldrN:");
Serial.print(ldrN);
Serial.print(" ldrW:");
Serial.print(ldrW);
Serial.print(" ldrS:");
Serial.print(ldrS);
Serial.print(" ldrE:");
Serial.print(ldrE);
//Bulunan açı değerlerini yazdır
Serial.print(" degEW");
Serial.print(degEW);
Serial.print(" degNS");
Serial.println(degNS);
delay(100);
}
}
if (ldrS>ldrN) //ldrN değeri ldrS değerinden büyükse
{
farkNS=ldrS-ldrN;
if (farkNS>5)
{
degNS--;
myServoNS.write(degNS);
54
PROJEK PELAJAR (Diploma Politeknik)
}
}
}
}
if (ldrE>ldrW) //ldrE değeri ldrW değerinden büyükse
{
farkEW=ldrE-ldrW;
if (farkEW>5)
{
degEW--;
myServoEW.write(degEW);
}
}
}
55