Subbareddy
Subbareddy
ON
DUAL AXIS SOLAR TRACKING SYSTEM
Submitted in partial fulfillment for the award of the degree of
BACHELOR OF TECHNOLOGY
IN
ELECTRONICS AND COMMUNICATION
ENGINEERING
BY
CERTIFICATE
This is to certify that the project report entitled “DUAL AXIS SOLAR TRACKING SYSTEM” is a
bonafide work carried out by
P.V. SUBBA REDDY (209L1A0481)
S.MAHAMMED SHAFI (209L1A04A3)
P.SAMVITH NAIDU (219L5A0415)
RAVOORI VIJAYKUMAR (219L5A0412)
B. Tech student of Siddartha Educational Academy Group of Institutions, Affiliated to JNTU,
Ananthapuramu in partial fulfillment of the requirements for the award of the degree of
BACHELOR OF TECHNOLOGY with the specialization in ELECTRONICS AND
COMMUNICATION ENGINEERING during the Academic year 2023-2024.
Viva-voice conducted on
DECLARATION
I hereby declare that the project report work entitled “DUAL AXIS SOLAR TRACKING
SYSTEM” is entirely our original work carried out under the guidance of Mr. K. SIVA
PRASAD, Assistant Professor Department of Electronics and Communication Engineering,
Siddartha Educational Academy Group Of Institutions, C. Gollapalli, Tirupati, Affiliated to
JNTU, Anantapuramu, for the award of the Degree of BACHELOR OF TECHNOLOGY with
the specialization in ELECTRONICS AND COMMUNICATION ENGINEERING. The project
report has not been submitted in a part full for the award of any degree or diploma of this or
any other university or institution.
All endeavors over a long period can be successful only with the advice and support of many
well-wishers. I take this opportunity to express our gratitude and appreciation to all of them.
I wish to express a deep sense of gratitude to our beloved and respected guide Mr. K. SIVA
PRASAD, Assistant Professor Department of Electronics and Communication Engineering, Siddartha
Educational Academy Group of Institutions, Tirupati, for his valuable guidance, given to us for the
successful completion of work.
I extend sincere thanks to Dr. K. RAJASEKHAR, Principal, for his kind cooperation in completing
and making the project a success.
I would like to thank the Management for their kind cooperation and for providing infrastructure
facilities.
I extend our thanks to all the Teaching staff and Non-Teaching staff of the Department of Electronics
and Communication Engineering for their support and encouragement during the course of our project
work.
I also thank our parents for being helpful in many ways in successful completion of our work.
Finally, we thank all those who helped us directly or indirectly in successful completion of this project
work.
CHAPTER 4 SOFTWARE
(35-48)
4.1 Introduction to Arduino IDE
CHAPTER 5 RESULT (48 -51)
CONCLUSION
FUTURE SCOPE
Symbol Name
ACC Accumulator
B B register
SP Stack pointer
P0 Port 0
P1 Port 1
P2 Port 2
P3 Port 3
PC Personal computer
In recent years, the utilization of solar energy has gained significant momentum due to
its sustainability and renewable nature. Solar tracking systems have emerged as a pivotal
technology to enhance the efficiency of solar panels by maximizing their exposure to
sunlight throughout the day. Among various types of solar tracking mechanisms, the
dual-axis solar tracking system stands out as an innovative solution offering precise
alignment with the sun's position in both azimuth and elevation angles.
This project focuses on the design, development, and implementation of a Dual Axis
Solar Tracking System, aimed at optimizing the performance of photovoltaic (PV) panels.
By dynamically adjusting the orientation of solar panels along two axes, azimuth and
elevation, this system ensures that panels remain perpendicular to the incident sunlight,
thereby maximizing energy generation potential.
The primary objective of this project is to explore the feasibility and effectiveness of
dual-axis solar tracking in enhancing energy yield compared to fixed-mount systems. By
employing sophisticated sensors and actuators, coupled with robust control algorithms,
the system autonomously tracks the sun's trajectory throughout the day, adapting to
changing environmental conditions and seasonal variations.
Solar tracking systems represent a pivotal technology in this endeavor, offering a means
to optimize the performance of solar panels by dynamically adjusting their orientation to
1
capture the maximum amount of sunlight. Among these systems, dual-axis solar tracking
stands at the forefront, providing precise alignment with the sun's position in both
azimuth and elevation angles.
This project is dedicated to the design, development, and implementation of a Dual Axis
Solar Tracking System, poised to revolutionize the efficiency of photovoltaic (PV)
installations. By continuously adapting the orientation of solar panels, this system aims to
maximize energy generation potential, leading to increased productivity and viability of
solar power.
With the global imperative to transition towards sustainable energy solutions, the
development of efficient solar tracking systems assumes paramount significance.
Through this project, we endeavor to propel the advancement of solar energy
technologies, charting a course towards a cleaner, greener future while addressing the
imperative for environmentally conscious power generation solutions.
2
Figure 1.1: LDR Circuit
The LDR senses the analog input in voltages between 0 to 5 volts and provides
a digital number at the output which generally ranges from 0 to 1023. Now this will give
feedback to the microcontroller using the arduino software(IDE). The servo motor
position can be controlled by this mechanism which is discussed later in the hardware
model.
The tracker finally adjusts its position sensing the maximum intensity of light falling
perpendicular to it and stays there till it notices any further change. The sensitivity of the
LDR depends on the point source of light. It hardly shows any effect on diffuse lighting
conditions.
3
1.3 BASIC CIRCUIT DIAGRAM:
An overview of the required circuit for the Dual-axis solar tracker is shown here. The 5V
supply is fed from an USB 5V dc voltage source through Arduino Board.
4
1.4 LITERATURE REVIEW
In the development of Dual Axis Solar Tracking Systems, various existing methods have
been explored to optimize the orientation of solar panels for efficient energy capture.
These methods include:
Fixed mount solar panels represent a traditional and widely adopted method in solar
energy systems. These panels are mounted in a fixed position, typically at an angle
optimized for the specific location's latitude, to capture sunlight throughout the day.
While simple and cost-effective to install, fixed mount systems have inherent limitations.
5
Their stationary orientation means they cannot adapt to the sun's changing position,
leading to reduced energy capture efficiency, particularly during mornings, evenings, and
seasonal changes when the sun's angle varies significantly. Despite these limitations,
fixed mount systems remain a popular choice for smaller-scale installations and
applications where cost and simplicity are prioritized.
Single-axis solar tracking systems adjust the orientation of solar panels along one axis,
typically azimuth, to track the sun's daily east-west movement. These systems can
significantly improve energy capture compared to fixed mount panels by ensuring panels
remain perpendicular to the sun's rays throughout the day. By following the sun's
movement, single-axis trackers can capture more sunlight, leading to increased energy
generation. While offering improved performance compared to fixed mount systems,
single-axis trackers have limitations in accounting for changes in elevation angle, which
can result in suboptimal energy capture, particularly during certain times of the day and
year.
Light Intensity-Based Solar Tracking Systems utilize light intensity sensors to track the
sun's position and adjust solar panel orientation accordingly. These systems operate in
real-time, continuously monitoring sunlight intensity to make precise adjustments to
panel orientation. By responding to changes in sunlight intensity, these trackers can
optimize energy capture throughout the day. Light intensity-based tracking offers
potential cost-effectiveness, as it can be implemented using off-the-shelf components and
does not rely on complex tracking algorithms. However, these systems may be
susceptible to inaccuracies under cloudy or overcast conditions and may exhibit limited
effectiveness in areas with significant shading or obstructions.
GPS-Based Solar Tracking Systems use GPS coordinates and time data to calculate the
sun's position and adjust solar panel orientation accordingly. These systems offer accurate
tracking regardless of weather conditions or geographic location, making them suitable
for remote or off-grid installations. By leveraging GPS technology, these trackers can
provide precise positioning information, allowing for optimal alignment of solar panels
6
with the sun's position. However, GPS-based systems come with a relatively higher cost
associated with GPS modules and data acquisition. Additionally, they require continuous
access to GPS signals, which may not be available in certain environments, posing
challenges for implementation in remote or densely forested areas.
FLOW CHART:
7
BLOCK DIAGRAM OF THE SOLAR TRACKER:
8
CHAPTER 2
ARDUINO UNO
Physically embedded systems range from portable devices such as digital watches and
MP3 players, to large stationary installations like traffic lights, factory controllers, or the
systems controlling nuclear power plants. Complexity varies from low, with a single
microcontroller chip, to very high with multiple units, peripherals and networks mounted
inside a large chassis or enclosure.
In general, "embedded system" is not an exactly defined term, as many systems have
some element of programmability. For example, Handheld computers share some
elements with embedded systems — such as the operating systems and microprocessors
which power them — but are not truly embedded systems, because they allow different
applications to be load and peripherals to be connected.
An embedded system is some combination of computer hardware and software, either
fixed in capability or programmable, that is specifically designed for a particular kind of
application device. Industrial machines, automobiles, medical equipment, cameras,
household appliances, airplanes, vending machines, and toys (as well as the more obvious
cellular phone and PDA) are among the myriad possible hosts of an embedded system.
Embedded systems that are programmable are provided with a programming interface,
and embedded systems programming is a specialized occupation. Certain operating
systems or language platforms are tailored for the embedded market, such as Embedded
Java and Windows XP Embedded. However, some low-end consumer products use very
inexpensive microprocessors and limited storage, with the application and operating
system both part of a single program. The program is written permanently into the
system's memory in this case, rather than being loaded into RAM (random access
memory), as programs on a personal computer are.
9
2.2 CHARACTERISTIC OF EMBEDDED SYSTEM
10
A Microcontroller has a CPU (a microprocessor) in addition to a fixed amount of RAM,
ROM, I/O ports, and a timer all on a single chip. In other words, the processor, the RAM,
ROM, I/O ports and the timer are all embedded together on one chip; therefore, the
designer cannot add any external memory, I/O ports, or timer to it. The fixed amount of
on-chip ROM, RAM, and number of I/O ports in Microcontrollers makes them ideal for
many applications in which cost and space are critical.
In many applications, for example a TV remote control, there is no need for the
computing power of a 486 or even an 8086 microprocessor. These applications most
often require some I/O operations to read signals and turn on and off certain bits.
In the Literature discussing microprocessors, we often see the term Embedded System.
Microprocessors and Microcontrollers are widely used in embedded system products. An
embedded system product uses a microprocessor (or Microcontroller) to do one task only.
A printer is an example of embedded system since the processor inside it performs one
task only; namely getting the data and printing it. Contrast this with a Pentium based PC.
A PC can be used for any number of applications such as word processor, print-server,
bank teller terminal, Video game, network server, or Internet terminal. Software for a
variety of applications can be loaded and run. Of course the reason a pc can perform
myriad tasks is that it has RAM memory and an operating system that loads the
application software into RAM memory and lets the CPU run it.
The Arduino Uno is a versatile microcontroller board renowned for its simplicity and
accessibility in electronics prototyping. Powered by the Atmega328P microcontroller, it
boasts an array of digital and analog input/output pins, facilitating easy connection with
sensors, actuators, and other components. With USB connectivity for programming and
serial communication, alongside options for external power supply, it offers flexibility in
usage. Programming the Uno is streamlined through the Arduino IDE, based on a
simplified version of C/C++, enabling users to write and upload code effortlessly. As an
open-source platform, its hardware and software are freely available, encouraging
innovation and collaboration. Widely used in robotics, IoT, home automation, and
education, the Arduino Uno's expandability through shields further enhances its
capabilities, making it a cornerstone in the world of DIY electronics.
The Arduino Uno is a pivotal component in the maker community, offering an accessible
entry point into the realm of electronics and programming. At its core lies the
Atmega328P microcontroller, which powers its diverse array of functionalities. With 14
digital and 6 analog pins, the Uno provides ample room for connecting sensors, LEDs,
11
motors, and more, allowing enthusiasts to bring their creative ideas to life. Its USB
connectivity simplifies the programming process, while also enabling seamless
communication with computers. Moreover, the open-source nature of the Arduino
ecosystem fosters a collaborative environment where users can freely share and modify
designs and code. This versatility has led to the Uno's widespread adoption in a myriad of
projects, spanning from interactive art installations to smart home systems.
VIN:When the Arduino board is powered externally (as opposed to 5 volts from a USB
connection or other regulated power source), the input voltage is known as VIN. This pin
can be used to supply voltage or to access voltage if it is supplied via the power jack.
5V: The microcontroller and other parts of the board are powered by this regulated power
source. This can be supplied via USB or another regulated 5V supply, or it can originate
from VIN via an on-board regulator.
Memory: The Atmega328 includes two KB of SRAM and one KB of EEPROM, which
may be read and written with the use of an EEPROM library. It also has 32 KB of flash
memory for code storage, of which 0.5 KB is utilized for the bootloader.
Input and Output: Using the pinMode(), digitalWrite(), and digitalRead() methods, each
of the Uno's 14 digital pins can be utilized as an input or output. They run on five volts.
Each pin features an inbuilt 20–50 kOhm pull-up resistor, which is unconnected by
default, and may supply or receive a maximum of 40 mA. Furthermore, certain pins serve
specific purposes:
Sequential: 1 (TX) and 0 (RX). utilized for TTL serial data transmission (TX) and
reception (RX). These pins are linked to the ATmega8U2 USB-to-TTL Serial chip's
matching pins.
Three and Two External Interrupts: These pins can be set up to respond to changes in
value, arising or falling edges, or low values by triggering an interrupt. For more
information, see the attached Interrupt() function.
PWM: 10, 11, 10, 5, 6, 9, and 10. With the help of the analogWrite() function, provide
8-bit PWM output.
SPI: SS (10), MOSI (11), MISO (12), and SCK (13). These pins allow SPI
communication, which is not yet supported by the Arduino language, even though it is
12
given by the underlying hardware.
LED 13: Digital pin 13 is linked to an integrated LED. The LED is on when the pin has a
HIGH value and off when it has a LOW value.Each of the six analog inputs on the Uno
has 10 bits of resolution, or 1024 distinct values. They measure from ground to five volts
by default, but you can adjust the upper end of the by using the analogReference()
method and AREFpin.
Some pins have also become specialized.
There must be a *.inf file. Easy-to-read textual data can be transmitted to and received
from the Arduino board via the serial monitor built into the Arduino software. The RX
and TX LEDs on the board will illuminate when data is transferred over the
USB-to-serial chip and USB connection to the PC (but not for serial communication on
pins 0 and 1).
A microcontroller board based on the ATmega328 is called the Arduino Uno. It features a
16 MHz ceramic resonator, 6 analog inputs, 14 digital input/output pins (six of which can
be used as PWM outputs), a USB port, a power jack, an ICSP header, and a reset button.
It comes with everything required to support the microcontroller; all you need to do is
power it with a battery or an AC-to-DC adapter or connect it to a computer via a USB
cable to get going.
The FTDI USB-to-serial driver chip is not used by the Uno, setting it apart from all
previous boards.
On the other hand, it has the Atmega16U2 (or the Atmega8U2 up to version R2)
configured as a serial-to-USB converter.
13
Figure 2.1: Arduino UNO Board
USB Interface: A USB cable from your computer can be used to power an Arduino
board. All that has to be done is attach the USB cord to the USB port.
14
External power source:By attaching the Arduino board to the power supply (Barrel
Jack), it is possible to power it directly from the AC mains power source.
Voltage Regulator: This device regulates the voltage applied to the Arduino board and
maintains the stability of the DC voltages that the CPU and other components require.
Crystal Oscillator: Arduino can handle timing problems with the aid of the crystal
oscillator. 16.000H9H is the number that is printed on the top of the Arduino crystal. It
informs us that the frequency is 16 MHz, or 16,000,000 Hertz.
It has the ability to restart your software from scratch by wiping your Arduino board.
There are two ways to reset the UNO board.
(3.3, 5, GND, Vin) 9 Pins
Analog pins:
Pins A0 through A5 on the Arduino UNO board are analog input pins. These pins have
the ability to take an analog sensor's signal, such as a temperature or humidity sensor, and
transform it into a digital value that the CPU can read.
Primary microcontroller:
A microcontroller is unique to each Arduino board (11). It can be thought of as your
board's brain. Each board of the Arduino has a slightly different integrated circuit (IC).
Typically, ATMEL is the manufacturer of the microcontrollers.
15
GND: Indicates the ground connection.
Port B consists of an 8-bit bidirectional I/O port equipped with internal pull-up resistors,
which are individually selectable for each bit. The output buffers of Port B possess
symmetrical drive capabilities with both high sink and source capabilities. When
configured as inputs, Port B pins pulled low externally will source current if the pull-up
resistors are activated. In a reset condition, the Port B pins are in a tri-stated state,
regardless of clock status.
Port C (PC[5:0]):
Port C is a 7-bit bidirectional I/O port featuring internal pull-up resistors, which can be
individually selected for each bit. The output buffers exhibit symmetrical drive
characteristics with both high sink and source capabilities.
PC6/RESET:
If the RSTDISBL Fuse is enabled, PC6 functions as an I/O pin, although its electrical
characteristics differ from other Port C pins. When the RSTDISBL Fuse is disabled, PC6
serves as a Reset input. A low signal lasting longer than the specified pulse length on this
pin will trigger a Reset, even if the clock isn't active. Shorter pulses may not reliably
generate a Reset.
Port D (PD[7:0]):
Port D is an 8-bit bidirectional I/O port with internal pull-up resistors for each bit. The
output buffers of Port D exhibit symmetrical drive characteristics with both high sink and
source capabilities.
AVCC: AVCC is the supply voltage pin for the A/D Converter, PC[3:0], and PE[3:2]. It
should be connected externally to VCC, regardless of ADC usage. If the ADC is utilized,
it should be linked to VCC via a low-pass filter.
AREF: This is the analog reference pin for the A/D Converter.
16
ADC [7:6] (TQFP and VFQFN Package Only): In the TQFP and VFQFN package,
ADC[7:6] serves as analog inputs to the A/D converter. These pins are powered from the
analog supply and function as 10-bit ADC channels.
ICSP pin: ICSP (12) is primarily an AVR, serving as a small programming header for
Arduino, comprising MOSI, MISO, SCK, RESET, VCC, and GND. It's commonly
known as an SPI (Serial Peripheral Interface), extending the output capabilities,
effectively allowing the device to be slaved to the SPI bus master.
Power LED indicator: This LED illuminates when the Arduino is connected to a power
source, indicating proper board power-up. If this LED fails to light up, there may be a
connection issue.
TX and RX LEDs: The board includes labels for TX (transmit) and RX (receive). These
labels are present at digital pins 0 and 1, indicating the pins responsible for serial
communication. Additionally, TX and RX LEDs at pin 13 flash at varying speeds during
serial data transmission.
Digital I/O: The Arduino UNO board offers 14 digital I/O pins (15), with 6 providing
PWM (Pulse Width Modulation) output. These pins can be configured as digital input
pins to read logic values (0 or 1) or as digital output pins to control various modules like
LEDs or relays. Pins marked with a tilde (~) can generate PWM signals.
AVR Microcontroller Architecture: The text provided describes the pinout and
functionalities of various pins on a microcontroller, likely belonging to the AVR family.
AVR microcontrollers are popular in embedded systems due to their simplicity,
efficiency, and rich feature set. They are widely used in applications ranging from
consumer electronics to industrial automation.
Programming and Development with Arduino: The mention of ICSP (In-Circuit Serial
Programming) pin indicates the capability to program the microcontroller directly on the
board, commonly done using the Arduino Integrated Development Environment (IDE).
This environment simplifies coding for beginners and experts alike, offering a vast library
of pre-written functions and a supportive community.
17
Analog and Digital Input/Output: The microcontroller offers a mix of analog and
digital I/O pins. Analog pins are essential for interfacing with sensors, potentiometers,
and other analog devices, while digital pins facilitate communication with digital sensors,
actuators, and peripherals.
Pulse Width Modulation (PWM): PWM pins allow for precise control of analog
devices like LEDs, motors, and servos by modulating the duty cycle of the output
waveform. This technique is widely used in robotics, motor control, and lighting
applications.
Hardware Reset and Configuration: The explanation of the RESET pin's functionality
highlights the importance of hardware-level reset capability, ensuring reliable operation
and recovery from errors. Additionally, the configuration options provided by fuse
settings demonstrate the flexibility of the microcontroller for diverse applications.
Overall, the detailed pinout and features described in the text form the foundation for
building various electronic projects using the Arduino platform, ranging from simple
LED blinking to sophisticated IoT applications.
Community and Support: One of the key strengths of Arduino Uno is its vibrant
community and extensive support network. Users can find a plethora of tutorials, guides,
and forums online where they can seek help, share their projects, and collaborate with
others. This community-driven approach makes it easier for beginners to get started and
for advanced users to find solutions to more complex problems.
Education and Learning: Arduino Uno is widely used in educational settings to teach
programming, electronics, and engineering concepts. Its simplicity and hands-on
approach make it an ideal platform for introducing students to STEM (Science,
Technology, Engineering, and Mathematics) subjects. Many educational institutions
around the world have integrated Arduino into their curricula, offering courses and
workshops centered around the Uno board.
18
Prototyping and Rapid Development: The Arduino Uno's ease of use and quick
prototyping capabilities make it an invaluable tool for rapid product development and
iteration. Entrepreneurs and startups often use Arduino Uno to create prototypes of their
products, allowing them to test ideas, gather feedback, and refine their designs before
moving to more expensive and complex development stages.
Art and Creativity: Beyond its technical applications, Arduino Uno is also a popular
tool for artists, designers, and creative individuals. Its ability to interact with the physical
world through sensors, lights, motors, and other actuators opens up endless possibilities
for interactive art installations, kinetic sculptures, wearable technology, and multimedia
experiences.
Accessibility and Inclusivity: Arduino Uno's affordability, simplicity, and open nature
contribute to its accessibility and inclusivity. It empowers people from diverse
backgrounds, including hobbyists, students, artists, engineers, and individuals with
disabilities, to engage with technology and express their creativity in innovative ways.
IoT (Internet of Things) Applications: Arduino Uno plays a significant role in IoT
projects, where it serves as a central control unit for connecting and managing various
smart devices and sensors. With its connectivity options and compatibility with IoT
platforms such as Arduino IoT Cloud, users can create home automation systems,
environmental monitoring devices, and other IoT applications.
Customization and Modification: Advanced users can customize and modify the
Arduino Uno to suit their specific requirements. This may involve tweaking the firmware,
adding external components, or even redesigning the board itself. Such customization
allows users to tailor the Uno to their unique needs and explore new possibilities beyond
its standard capabilities.
19
of their preferred platform. This cross-platform compatibility ensures that users can
develop and program their projects using their operating system of choice, enhancing the
Uno's accessibility and usability.
Ecosystem Expansion: The Arduino Uno is just one part of the larger Arduino
ecosystem, which includes a wide range of compatible boards, modules, and accessories.
As users gain experience with the Uno, they can explore other Arduino boards with
enhanced features and capabilities, such as the Arduino Mega, Arduino Nano, or Arduino
Due, further expanding the possibilities for their projects.
20
CHAPTER - 3
HARDWARE COMPONENTS
3.1INTRODUCTION
The power supply unit (PSU) refers to a device or system responsible for providing
electrical or other forms of energy to one or more output loads. Although the term "power
supply" predominantly applies to electrical energy supplies, it may also encompass
mechanical or other energy sources, albeit less frequently. The power supply section's
primary function is to convert AC signals to DC signals and regulate the signal's
amplitude to ensure stable operation of the connected devices.
21
Filtering: After rectification, the resulting DC voltage may still contain ripples or
fluctuations. Filtering components, such as capacitors, are employed to smooth out
these variations, resulting in a more stable DC output.
Regulation: The final stage of a regulated power supply involves maintaining the
output voltage at a constant level, regardless of fluctuations in input voltage or
changes in load. This is achieved using voltage regulation circuits, such as voltage
regulators (e.g., LM7805 for a 5V supply), which adjust the output voltage to the
desired level.
Importance of Regulation:
Regulation is critical in ensuring that electronic devices receive consistent and reliable
power. Fluctuations in voltage can adversely affect the performance and longevity of
electronic components. By providing a stable output voltage, regulated power supplies
protect sensitive electronics from damage and ensure consistent operation.
Overall, regulated power supplies play a fundamental role in ensuring the reliable
operation of electronic systems by delivering consistent and well-regulated power to the
connected devices.
In this project, the objective is to convert the available AC voltage signal from the mains
(230V/50Hz) into the required DC voltages (+5V and +12V) for various applications. To
achieve this, a series of components are used, including a transformer, bridge rectifier,
and voltage regulators.
22
Fig 3.1: Block diagram of power supply.
23
The secondary induced voltage \( V_S \) of an ideal transformer is determined by scaling
the primary voltage \( V_P \) by a factor equal to the ratio of the number of turns of wire
in their respective windings.
A diode bridge, also known as a bridge rectifier, consists of four diodes arranged in a
bridge configuration. This arrangement ensures that the output voltage polarity remains
the same regardless of the input voltage polarity. Unlike a center-tapped transformer
design, which requires a center tap on the secondary winding, a bridge rectifier can
24
efficiently utilize both halves of the input AC waveform, resulting in lower cost and
weight.
However, it's important to note that a bridge rectifier has two diode drops in series, as
opposed to one in a center-tapped design. This can lead to reduced efficiency compared
to a center-tapped transformer in certain applications.
The primary function of a bridge rectifier is to convert alternating current (AC) input into
direct current (DC) output, a process known as rectification. It provides full-wave
rectification output voltage.
Basic Operation:
During each half cycle of the input sine wave, the diodes conduct current in such a way
that the output remains positive with respect to the reference point. When the input
connected at the left corner of the diamond is positive relative to the one connected at the
right corner, current flows to the right along the upper path to the output. Conversely,
during the negative half cycle, current flows through the lower path, allowing for
continuous output flow. This simple current flow mechanism enables the bridge rectifier
to effectively convert AC input into DC output.
Fig 3.4 Flow current for positive half cycle of sine wave
25
Fig 3.5 Flow current for negative half cycle of sine wave
In every instance, the upper right output maintains a positive polarity in relation to the
lower right output.
26
The role of this capacitor, often referred to as a reservoir capacitor or smoothing
capacitor, is to minimize the variation in the rectified AC output voltage waveform from
the bridge. Smoothing is achieved as the capacitor offers a low impedance path to the AC
component of the output, thereby decreasing the AC voltage across and AC current
through the resistive load. To put it simply, any decrease in the output voltage and current
of the bridge tends to be offset by the discharge of the capacitor, ensuring a more
consistent output voltage.
In the domain of light sensing technology, Light Dependent Resistors (LDRs) hold
significant importance, especially in applications where the detection of ambient light
levels is essential. LDRs offer an economical and adaptable solution for measuring light
intensity, finding utility in various fields such as photography and solar tracking systems.
What is an LDR?
Light Dependent Resistors, also known as LDRs or photoresistors, are passive electronic
components whose resistance alters in response to fluctuating levels of incident light.
This characteristic makes them valuable for detecting and quantifying light intensity
across a broad spectrum of applications.
Working Principle
The sensor module comprises four pins, each serving a specific function when interfaced
with a microcontroller unit. These pins include:
27
Figure 3.8: LDR Sensor
2. Voltage Divider Circuit: The LDR is commonly linked in series with a fixed resistor
to establish a voltage divider circuit. This configuration facilitates the conversion of
resistance changes into corresponding voltage variations.
3. Output Interface: The output voltage from the voltage divider circuit is subsequently
interfaced with a microcontroller or other electronic devices for further processing and
analysis.
28
The features of this sensor are as follows:
2. Wide Operating Range: LDRs function across a broad spectrum of light levels,
ranging from dimly lit environments to bright sunlight. This wide operating range
enhances their versatility across various applications.
Applications:
29
What is a Servo Motor?
A servo motor serves as a rotary actuator enabling precise control over angular position,
velocity, and acceleration. It translates electrical signals into mechanical motion, making
it invaluable for tasks necessitating meticulous and controlled movement.
Working Principle:
Servo motors function based on a closed-loop control system, typically integrating
feedback mechanisms like encoders or potentiometers to ensure precise positioning. They
receive input signals, compare them with desired position or velocity parameters, and
subsequently adjust their output to achieve the intended motion accurately.
30
Servo Motor Wire Configuration
31
4. High Torque: Despite their compact size, delivers high torque output, capable of
handling heavy loads or demanding tasks.
5. Wide Range of Applications: Finds application in various industries, including
robotics, automation, aerospace, and manufacturing, where precise motion control is
crucial.
In the realm of renewable energy, solar panels are pivotal components that harness
sunlight to generate electricity, providing sustainable power solutions.
A solar panel, also known as a photovoltaic (PV) panel, is a device designed to convert
sunlight into electrical energy through the photovoltaic effect. It is composed of
interconnected solar cells, which are the fundamental units responsible for generating
electricity from sunlight.
Working Principle:
Solar panels operate based on the photovoltaic effect, wherein photons from sunlight
strike the semiconductor material within the solar cells, causing the release of electrons.
This creates an electric current, which is then captured by the solar panel and directed
through an electrical circuit for practical use.
32
Typically, a solar panel consists of multiple solar cells arranged in a grid-like pattern on a
supportive substrate, such as glass or plastic. These cells are connected using conductive
materials to form either a series or parallel configuration, depending on the desired
voltage and current output required for specific applications.
Solar Tracking Systems: Implementing solar tracking mechanisms with Arduino can
optimize the solar panel's orientation towards the sun throughout the day, maximizing
energy generation.
Battery Charging: Arduino can be used to regulate the charging of batteries connected
to solar panels, ensuring efficient utilization of generated energy and extending battery
life.
Data Logging: Arduino can log various parameters such as solar panel voltage, current,
and environmental conditions using sensors, enabling data-driven analysis and
optimization of solar panel performance.
Remote Monitoring: Utilizing Arduino along with wireless communication modules like
GSM, Wi-Fi, or LoRa, enables remote monitoring and control of solar panel systems,
facilitating real-time status updates and adjustments.
Energy Harvesting: Arduino can control energy harvesting circuits to efficiently capture
and store energy from solar panels for powering low-power sensor nodes or IoT devices.
Automatic Load Control: Arduino can automatically control loads based on the
availability of solar energy, optimizing energy consumption and ensuring continuous
operation even during periods of low sunlight.
Smart Home Integration: Integrating Arduino with smart home platforms allows solar
panels to interact with other home automation systems, enabling energy-efficient
practices and enhancing overall home sustainability.
33
Fault Detection and Diagnostics: Arduino-based systems can monitor solar panel
performance and detect faults or anomalies, providing early warnings and facilitating
timely maintenance.
Education and Learning: Arduino platforms provide an excellent educational tool for
learning about solar energy systems, allowing students and enthusiasts to explore
renewable energy concepts through hands-on experimentation and project development.
34
CHAPTER - 4
SOFTWARE DESCRIPTION
4.1 IDE Setup for Arduino
This part will walk us through the simple process of installing the Arduino IDE on our
PC and getting the board ready to accept the program over a USB wire.
Step 1: To begin, you'll need a USB cable and an Arduino board (you can select your
preferred board). For Arduino UNO, Arduino Duemilanove, Nano, Arduino Mega 2560,
or Diecimila, a normal USB cable (A plug to 0B plug) is required; this is the same type of
cable you would use to connect a USB printer, as seen in the picture below.
35
Figure 4.2: Download Arduino IDE software
Step 3: Activate your skateboard.
The Arduino Mega, Duemilanove, Nano, and Uno automatically draw power from an
external power source or via the USB connection to the computer. Make sure the Arduino
Diecimila is set up to draw power via the USB connection if you're using one of these
boards. A jumper, which is a little plastic device that slides onto two of the three pins
between the power and USB connectors, is used to select the power source. Verify that
the two pins that are nearest to the USB port are occupied.
Use the USB cord to link the Arduino board to your computer. The PWR designated
green power LED needs to be illuminated.
36
Step 5: Launch the first project.
You have two choices after the software launches: − Start a new project.
Launch an example project that already exists.
37
You can choose File → Example → Basics → Blink to access an existing project
example.
We are going to focus on only one case under the name Blink here. It takes a little while
for the LED to turn on and off. Any other example in the list may be chosen.
Step-6
You must choose the Arduino board name that corresponds with the board that is
connected to your computer in order to prevent any errors while uploading your
application to the board.
Choose your board by going to Tools → Board.
38
Figure 4.7: Select the Arduino Uno
You may find out by unplugging your Arduino board and opening the menu again. The
Arduino board should be the one whose entry vanishes. Choose that serial port and
reattach the board.
39
Step-8:Write the Program
Begin by typing your Arduino code into the Arduino IDE.
40
PROGRAM
#include <LiquidCrystal.h>
LiquidCrystal lcd(13,12,11,10,9,8);
int sw1 =7 ;
int sw2 =6;
int sw3 =5;
int sw4 =4;
int out1=3;
int b1 = A0;
int b2 = A1;
int count=0;
int sped=0;
int ir=2;
int gas=3;
void setup()
{
pinMode(sw1,INPUT);
pinMode(sw2,INPUT);
pinMode(sw3,INPUT);
pinMode(sw4,INPUT);
pinMode(out1,OUTPUT);
pinMode(b1,INPUT);
pinMode(b2,INPUT);
pinMode(ir,OUTPUT);
pinMode(gas,INPUT);
// pinMode(out2,OUTPUT);
digitalWrite(b1,HIGH);digitalWrite(b2,HIGH);
Serial.begin(9600);
41
lcd.begin(16,2);
lcd.setCursor(0, 0);
lcd.print("RF BASED DC MOTOR");
lcd.setCursor(0, 1);
lcd.print("CONTROL SYSTEM");delay(2000);
}
void loop()
{
back:
while(1)
{
if((digitalRead(b1)==LOW)&& (digitalRead(b2)==HIGH))
{
count=count+1;
if(count>10)
{
count=10;
sped=250;
lcd.clear();
lcd.print("max limit reach");
lcd.setCursor(0, 1);
lcd.print(count*10);
analogWrite(out1,sped);
analogWrite(out1,sped);delay(2000);
delay(1000);goto back;
}
sped=sped+25;
analogWrite(out1,sped);
42
analogWrite(out1,sped);
lcd.clear();
lcd.print("SPEED:");lcd.print(count*10);lcd.print("km/h");delay(500);
43
else if((digitalRead(sw1)==LOW) && (digitalRead(sw2)==HIGH) &&
(digitalRead(sw3)==HIGH) && (digitalRead(sw4)==HIGH))
{
// count = 8;
// sped=200;
lcd.setCursor(0, 0);
lcd.print("overspeed detect");
lcd.setCursor(0, 1);
lcd.print("speed");delay(1000);
lcd.clear();
lcd.print("SPEED DOWN TO");
lcd.setCursor(0, 1);
lcd.print("80 KM/H");
analogWrite(out1,200);
analogWrite(out1,200);delay(2000);
}
else if((digitalRead(sw1)==HIGH) && (digitalRead(sw2)==LOW) &&
(digitalRead(sw3)==HIGH) && (digitalRead(sw4)==HIGH))
{
// count = 6;
// sped=150;
lcd.setCursor(0, 0);
lcd.print("overspeed detect");
lcd.setCursor(0, 1);
lcd.print("speed");delay(1000);
lcd.clear();
lcd.print("SPEED DOWN TO");
lcd.setCursor(0, 1);
lcd.print("60 KM/H");
44
analogWrite(out1,150);
analogWrite(out1,150);delay(2000);
}
else if((digitalRead(sw1)==HIGH) && (digitalRead(sw2)==HIGH) &&
(digitalRead(sw3)==LOW) && (digitalRead(sw4)==HIGH))
{
// count = 4;
// sped=100;
lcd.setCursor(0, 0);
lcd.print("overspeed detect");
lcd.setCursor(0, 1);
lcd.print("speed");delay(1000);
lcd.clear();
lcd.print("SPEED DOWN TO");
lcd.setCursor(0, 1);
lcd.print("40 KM/H");
analogWrite(out1,100);
analogWrite(out1,100);delay(2000);
}
else if((digitalRead(sw1)==HIGH) && (digitalRead(sw2)==HIGH) &&
(digitalRead(sw3)==HIGH) && (digitalRead(sw4)==LOW))
{
// count = 2;
// sped=50;
lcd.setCursor(0, 0);
lcd.print("overspeed detect");
lcd.setCursor(0, 1);
lcd.print("speed");delay(1000);
lcd.clear();
lcd.print("SPEED DOWN TO");
45
lcd.setCursor(0, 1);
lcd.print("20 KM/H");
analogWrite(out1,50);
analogWrite(out1,50);delay(2000);
}
else
{
analogWrite(out1,sped);
analogWrite(out1,sped);
lcd.clear();
lcd.print("SPEED:");lcd.print(count*10);lcd.print("km/h");delay(500);
}
46
Step 8 − Upload the program to your board.
Before explaining how we can upload our program to the board, we must demonstrate the
function of each symbol appearing in the Arduino IDE toolbar.
47
Just click the "Upload" button in the environment at this point. After a little while, the
RX and TX LEDs on the board will start to flash. The status bar will display the message
"Done uploading" if the upload is successful.
48
CHAPTER-5
RESULTS
In this Dual Axis Solar Tracker, when source light falls on the panel, the panel adjusts its
position according to maximum intensity of light falling perpendicular to it. The
objective of the project is completed.
This was achieved through using light sensors that are able to detect the amount of
sunlight that reaches the solar panel. The values obtained by the LDRs are compared and
if there is any significant difference, there is actuation of the panel using a servo motor to
the point where it is almost perpendicular to the rays of the sun. This was achieved using
a system with three stages or subsystems. Each stage has its own role.
The stages were; An input stage that was responsible for converting incident light to a
voltage. A control stage that was responsible for controlling actuation and decision
making. A driver stage with the servo motor. It was responsible for actual movement of
the panel.
The input stage is designed with a voltage divider circuit so that it gives desired range of
illumination for bright illumination conditions or when there is dim lighting. The
potentiometer was adjusted to cater for such changes. The LDRs were found to be most
suitable for this project because their resistance varies with light. They are readily
available and are cost effective.
Temperature sensors for instance would be costly. The control stage has a
microcontroller that receives voltages from the LDRs and determines the action to be
performed. The microcontroller is programmed to ensure it sends a signal to the servo
motor that moves in accordance with the generated error.
The final stage was the driving circuitry that consisted mainly of the servo motor. The
servo motor had enough torque to drive the panel. Servo motors are noise free and are
affordable, making them the best choice for the project.
49
This is the snapshot of my project kit when we switch on the power supply.
Fig’s 5.1 Snapshot of Arduino based Dual Axis Solar Tracking System
CONCLUSION:
50
improved return on investment, the project holds significant promise for various
applications, including residential, commercial, agricultural, and educational sectors. As
the world continues to transition towards sustainable energy solutions, the development
and deployment of innovative technologies like the Dual Axis Solar Tracking System
contribute to a greener and more sustainable future.
SCOPE:
The solar project was implemented using two servo motors. The choice was informed by
the fact that the motor is fast, can sustain high torque, has precise rotation within limited
angle and does not produce any noise. The Arduino IDE was used for the coding. Kolkata
has coordinates of 22.5726°N, 88.3639°E and therefore the position of the sun will vary
in a significant way during the year. In the tropics, the sun position varies considerably
during certain seasons.
There is the design of an input stage that facilitates conversion of light into a voltage by
the light dependent resistors, LDRs. There is comparison of the two voltages, then the
microcontroller uses the difference as the error. The servo motor uses this error to rotate
through a corresponding angle for the adjustment of the position of the solar panel until
such a time that the voltage outputs in the LDRs are equal. The difference between the
voltages of the LDRs is received as analog readings.
Function of the processor: The analog readings are converted to integer values by ADC
input ports which is compared in order to get the difference value for motor movement.
The difference is transmitted to the servo motor and it thus moves to ensure the two
LDRs are an equal inclination. This means they will be receiving the same amount of
light, and the Solar panel will receive the sunlight at 90°, (the plane of PV panel will
make an angle 90° with the Sun, and the perpendicular drawn on the plane makes an
angle 0° with the Sun, to ensure maximum illumination: Lambert’s cosine Law) The
procedure is repeated throughout the day. Tracker systems work on two simple principles
together.
One being, the normal principle of incidence and reflection on which our tracker works
and the other is the principle on which the solar (PV) panel works.
51
REFERENCES
[1] "Go Solar California," [Online]. Available:
http://www.gosolarcalifornia.ca.gov/about/gosolar/california.php. [Accessed 27
September 2018].
[2] J. Bartlett, "Arise Energy Solutions," Arise Energy Solutions, LLC, [Online].
Available: http://ariseenergy.com/training-education/history-of-pv-solar-energy.
[Accessed 28 September 2018].
[5] J Pradeep, "Development of Dual-Axis Solar Tracking using Arduino with Lab
VIEW," International Journal of Engineering Trends and Technology (IJETT), vol.
17, p. 321, 2014.
[6] Md. Tanvir Arafat Khan, "Design and Construction of an Automatic Solar
Tracking System," International Conference on Electrical and Computer Engineering,
ICECE, pp. 326-27, December 2010.
52
[12] "Economic Survey 2017/18," GoN, Ministry of Finance, June 2018. [Online].
Available: http://mof.gov.np/en/archive-documents/economic-survey-21.html?lang.
[Accessed 13 10 2018].
[14] Suresh Baral, "Existing and Recommended Renewable Energy," SAP, vol. 4, pp.
16-28, 2014.
[15] W. community, "Energy Sector Synopsis Report Nepal," Water and Energy
Commission Secretariat (WECS), Nepal, 2010.
53