Rotating Solar Panel
Rotating Solar Panel
Rotating Solar Panel
By:
G.ANIL KUMAR
IN ASSOSCIATION WITH
CST SERVICES
1
ROTATING OF SOLAR PANEL
Introduction:
Our project will include the design and construction of a microcontroller-based solar
panel tracking system. Solar tracking allows more energy to be produced because the solar array
is able to remain aligned to the sun.
The aim of this project is to keep the solar photovoltaic panel perpendicular to the sun
throughout the year in order to make it more efficient.
Requirements:
Solar panel
One DC motor
Jumper wires
Arduino board
Bread board
Arduino UNO:
Arduino is an open-source micro-controller device. It is an educational development
board which is mainly used for developing different kind of projects which is equipped with
digital and analog pins.
2
Arduino board
A photo resistor or light dependent resistor is a component that is sensitive to light. When light
falls upon it then the resistance changes. Values of the resistance of the LDR may change over
many orders of magnitude the value of the resistance falling as the level of light increases.
3
The L293d Motor Driver Module is responsible for providing the necessary drive current to the motors of the
robotic car.
Working:
The electrical system consists of two LDR sensors which provide feedback to a micro
controller. This micro controller processes the sensor input and provide signals for the movement
of Dc motor.
We are using two Light Dependent Resistor’s as a sensor. They sense the higher density
area of sun light. The solar panel moves to the high light density area through DC motor.
Connections:
Code:
#include <SoftwareSerial.h>
4
int sensorPin = A0; // select the input pin for the LDR
int sensorPin1 = A1; // select the input pin for the LDR
int sensorValue = 0; // variable to store the value coming from the sensorm
int sensorValue1 = 0;
int motor = 3;
int motor1 = 5;
void setup() { // declare the ledPin as an OUTPUT:
Serial.begin(9600);
pinMode(3,OUTPUT);
pinMode(5,OUTPUT);
pinMode(sensorPin,INPUT);
pinMode(sensorPin1,INPUT);
void loop()
{
Serial.println("1st LDR light on");
digitalWrite(motor,HIGH) ;
digitalWrite(motor1,LOW) ;
}
else if (sensorValue1 < 50)
{
Serial.println("2nd LDR light on");
digitalWrite(motor,LOW) ;
digitalWrite(motor1,HIGH) ;
5
}
else
{
digitalWrite(motor,LOW) ;
digitalWrite(motor1,LOW) ;
}
Procedure:
Open Arduino software, connect Arduino board and upload the program into it.
Output:
Solar panel changes its angle towards the sun and it depends on how much light is hitting
the LDR sensors.
We are using two ldrs one is attached left side and one is attached right side of Solar
panel which is connected horizontal to the DC motor. Solar panel will face towards the LDR
which is taking higher intensity of sun light.