Single Axis Solar Tracking System With Arduino
This Simple ELV Project explains how to build a Solar Tracking System for better sun ray angle on to the solar panels at all times.
Since solar panels are very popular for renewable energy generation, solar charger units even have became mobile for use as a charger unit to charge mobile devices(eg:Phones, Laptops , Tablet PCs..etc).This system can be easily substitute in to those units with the right hardware.
This project can be developed into larger unit with a little change to the hardware.(This System is already used in industrial level.This is merely a model demonstration).
Tools & Components
1 X Arduino Uno
1 X Metal Gear Servo Motor
1 X Solar Battery Charger Unit
2 X Solar Panels
2 X LDRs
2 X 10K Ohm Resistor
1 X 5V Battery
Mounting Frame and Rotation Mechanism
Connecting Wires
Connecting Components
Servo Signal In to Arduino D09
LDR1 In to Arduino A0
LDR2 In to Arduino A5
Battery (+) to Arduino Vin
Battery (-) to Arduino GND
If the Supply Voltage to the Servo is not enough to Rotate the solar panels try using a 6VDC power supply separately for the Servos.(keep a common ground connection)
Arduino Code
//2020 CraftyBin.Blogspot.com
//Author : Chathura H.
#include <Servo.h>
Servo myservo;
void setup() {
myservo.attach(9);
pinMode(8,OUTPUT);
Serial.begin(9600);
}
int LDR1;
int LDR2;
void loop() {
LDR1 = analogRead(A0);
LDR2 = analogRead(A5);
Serial.print(LDR1);
Serial.println(LDR2);
delay(100);
if ((LDR1 >=200) && (LDR2 <= 50))
{
myservo.write(45);
}
if ((LDR1 <= 50) && (LDR2 >= 200))
{
myservo.write(105);
}
if ((LDR1 >=200) && (LDR2 >= 200))
{
myservo.write(90);
}
if ((LDR1 <=50) && (LDR2 <= 50))
{
myservo.write(45);
}
}
Safety First !
Even this is an ELV Project, always Connect the power supply if you are absolutely sure that the components are connected correctly without changing polarity and short circuited the wiring.
Even if it seems nothing is wrong : DOUBLE CHECK EVERYTHING !!Your Feedback is very important to us.
Please Leave a comment about how you feel about this project.
Post a Comment