Solar Tracking System
Solar Tracking System
tracking
system
Represented by:
• Ali Shindy 201900004
• Mario Maher 201900150
• Shady Morad 201900016
• Youssef S. Danial 201900182
Content 4.
5.
Working principle
code
6. Advantage
7. Applications
8. conclusion
• Solar energy is a clean and renewable source
of
Components •
•
Jumper Wires
5mm Acrylic Sheet 30cm x 20cm,
required •
•
VPC Cardboard 5mm,
SG90,
• USB DC 1~5V to DC 5V Voltage Step Up Boost
Module,
• LiPo Battery Charger Module Mini TP4056 IC,
• On/Off Switch,
• Battery Holder – 1 Cell ,18650 Battery Cell
3.7V
3)
Circuit
diagram
4) • The LDR senses the intensity of sunlight falling on it
and sends this data to the Arduino.
principle
the servo motor.
• The servo motor rotates the solar panel to face the
direction of the sun.
• Circuit Diagram:
• 1. Connect the VCC pin of the LDRs or photodiodes to
the 5V pin of the Arduino.
• 2. Connect the GND pin of the LDRs or photodiodes to
5) Circuit the GND pin of the Arduino.
• 3. Connect one end of a 100k-ohm resistor to the A0
Diagram pin of the Arduino.
• 4. Connect the other end of the 10k-ohm resistor to
the junction of the LDRs or photodiodes.
• 5. Connect the signal wires of the servo motors to
two
digital pins of the Arduino (e.g., pins 9 and 10).
• Circuit Explanation:
• 1. The LDRs or photodiodes act as light sensors and provide
input to the Arduino about the intensity of light falling on
them.
• 2. The 10k-ohm resistor connected to the A0 pin forms a
voltage divider circuit with the LDRs or photodiodes, which
5) Circuit allows the Arduino to measure the voltage across the LDRs
or photodiodes.
Diagram • 3. Based on the voltage readings from the LDRs or
photodiodes, the Arduino can determine the position of the
sun relative to the solar panels.
• 4. The servo motors are used to adjust the position of the
solar panels based on the input from the LDRs or
photodiodes.
• 5. The signal wires of the servo motors are connected to
two digital pins of the Arduino, which can generate pulse-
width modulation (PWM) signals to control the position of
the servos.
• 6. By using appropriate algorithms and control logic in the
Arduino code, the servo motors can be adjusted to move
the solar panels in the direction of the sun’s movement.
• The Arduino code for a solar tracking system involves reading the
voltage values from the LDRs or photodiodes, determining the
5) code •
•
int tolerance = 20; // allowable tolerance setting - so solar servo
motor isn't constantly in motion
void setup(){
{
light than ldr1