Welcome to the repository of the Automatic Solar Tracker, a project aimed at maximizing the efficiency of photovoltaic (PV) systems by maintaining optimal alignment between solar panels and the sun throughout the day. This innovative system combines analog control techniques and sustainable design principles, making it a cost-effective and eco-friendly solution for solar energy optimization.
Solar power is one of the most sustainable energy sources, especially in sun-rich regions. However, fixed solar panels often fail to capture maximum sunlight throughout the day due to the changing position of the sun. The Automatic Solar Tracker addresses this limitation by dynamically adjusting the orientation of solar panels using a single-axis tracking mechanism.
The system incorporates:
- Light-dependent resistors (LDRs): For detecting sunlight intensity.
- PID controller: Implemented using operational amplifiers for precise alignment.
- Motor driver: Ensures smooth panel movement.
- Pulse-Width Modulation (PWM): Controls the motor speed.
- Sunlight Sensing: Measures light intensity using LDRs to detect the sun's position.
- PID Control: Maintains precise alignment through Proportional-Integral-Derivative adjustments.
- Motor Control: Adjusts panel orientation efficiently.
- Eco-Friendly Design: The enclosure combines wood and 3D-printed PLA for sustainability and durability.
- Compact Design: A two-layer PCB integrates all electronic components seamlessly.
The system architecture consists of sunlight sensors, a PID controller, motor control circuitry, and a robust enclosure.
- Error Signal Generation: Processes the voltage difference between LDRs to determine misalignment.
- PWM Generation: Controls motor speed to correct panel orientation.
- Motor Driver Circuit: Drives the motors responsible for panel adjustments.
Multisim simulations validated the functionality of the PID controller and PWM generation. Real-world testing confirmed enhanced solar energy capture.
- Enclosure
- Controller: Analog PID using operational amplifiers.
- Sensors: Light-Dependent Resistors (LDRs).
- Power Source: Solar panel output.
- Enclosure Materials: Wood and PLA.
The assembly involves integrating electronic components onto a compact PCB, crafting the enclosure, and configuring the system for dynamic solar tracking.

- Upgrade to a dual-axis tracking system for enhanced efficiency.
- Transition from analog to digital control for better accuracy and flexibility.
- Integration with IoT for remote monitoring and control.
Watch our detailed walkthrough of the Automatic Solar Tracker in action: https://youtu.be/nHiQHz7_xqY?si=oewumcQw3HjwGN45
We thank the Department of Electronic & Telecommunication Engineering at the University of Moratuwa for providing the resources and guidance necessary for this project.











