Arduino Solar Tracker
In modern solar tracking systems, the solar panels are fixed on a structure that moves according to the position of the sun.
Let us design a solar tracker using two servo motors, a light sensor consisting of four LDRs and Arduino UNO board.
Table of Contents
Circuit Diagram
The circuit design of solar tracker is simple but setting up the system must be done carefully.
Four LDRs and Four 100KΩ resistors are connected in a voltage divider fashion and the output is given to 4 Analog input pins of Arduino.
The PWM inputs of two servos are given from digital pins 9 and 10 of Arduino.
Components Required
Working
LDRs are used as the main light sensors. Two servo motors are fixed to the structure that holds the solar panel. The program for Arduino is uploaded to the microcontroller. The working of the project is as follows.
LDRs sense the amount of sunlight falling on them. Four LDRs are divided into top, bottom, left and right.
For east – west tracking, the analog values from two top LDRs and two bottom LDRs are compared and if the top set of LDRs receive more light, the vertical servo will move in that direction.
If the bottom LDRs receive more light, the servo moves in that direction.
For angular deflection of the solar panel, the analog values from two left LDRs and two right LDRs are compared. If the left set of LDRs receive more light than the right set, the horizontal servo will move in that direction.
If the right set of LDRs receive more light, the servo moves in that direction.
Setup
Step-1
- Take cardboard. Make a hole in the middle and four holes on four sides so that LDR fit into that.
- Stick the solar panel to the cardboard and bring two wires of the panel out as shown.
Step 2
- Now cut one of the two leads of the LDR so that one lead is shorter and other is longer.
- Insert these four LDRs into four holes as shown.
- Bend the straight Perforated metal strip as shown below.
- Place the bent metal strip on the back side of the cardboard
- Apply glue to the LDR to fix them firmly.
Step 3
- Solder the two leads of LDR as shown
- To the other ends of LDR Solder resistors of 10k ohm
- Join the four leads of the 4 LDRs by connecting with a wire.
Step4
- Now take a bus wire.This is used to connect the Outputs of four LDRs to Arduino board.
- Insert it into metal strip as shown in the image.
- Now Solder the four wires to four LDRs at any point between LDR and resistor.
Step 5
- Insert another two wire bus into the perforated metal strip as shown.This is used for supplying Vcc and GND to LDR circuit.
- Solder one wire to the leads of LDRs which are connected to resistors and other wire to the other leads.
- Short the leads of LDRs connected to resistors using a wire as shown.
Step 6
- Now connect a servo motor to the Perforated metal strip using Screw.
- Apply glue to the servo to fix it firmly.
Step 7
- Take another straight Perforated metal strip and bend it as shown in the figure.
Step 8
- Now place the set up of solar panel and first servo motor to the metal strip of second servo motor as shown.
Project Code
#include <Servo.h> |
//defining Servos |
Servo servohori; |
int servoh = 0; |
int servohLimitHigh = 160; |
int servohLimitLow = 20; |
Servo servoverti; |
int servov = 0; |
int servovLimitHigh = 160; |
int servovLimitLow = 20; |
//Assigning LDRs |
int ldrtopl = 2; //top left LDR green |
int ldrtopr = 1; //top right LDR yellow |
int ldrbotl = 3; // bottom left LDR blue |
int ldrbotr = 0; // bottom right LDR orange |
void setup () |
{ |
servohori.attach(10); |
servohori.write(0); |
servoverti.attach(9); |
servoverti.write(0); |
delay(500); |
} |
void loop() |
{ |
servoh = servohori.read(); |
servov = servoverti.read(); |
//capturing analog values of each LDR |
int topl = analogRead(ldrtopl); |
int topr = analogRead(ldrtopr); |
int botl = analogRead(ldrbotl); |
int botr = analogRead(ldrbotr); |
// calculating average |
int avgtop = (topl + topr) / 2; //average of top LDRs |
int avgbot = (botl + botr) / 2; //average of bottom LDRs |
int avgleft = (topl + botl) / 2; //average of left LDRs |
int avgright = (topr + botr) / 2; //average of right LDRs |
if (avgtop < avgbot) |
{ |
servoverti.write(servov +1); |
if (servov > servovLimitHigh) |
{ |
servov = servovLimitHigh; |
} |
delay(10); |
} |
else if (avgbot < avgtop) |
{ |
servoverti.write(servov -1); |
if (servov < servovLimitLow) |
{ |
servov = servovLimitLow; |
} |
delay(10); |
} |
else |
{ |
servoverti.write(servov); |
} |
if (avgleft > avgright) |
{ |
servohori.write(servoh +1); |
if (servoh > servohLimitHigh) |
{ |
servoh = servohLimitHigh; |
} |
delay(10); |
} |
else if (avgright > avgleft) |
{ |
servohori.write(servoh -1); |
if (servoh < servohLimitLow) |
{ |
servoh = servohLimitLow; |
} |
delay(10); |
} |
else |
{ |
servohori.write(servoh); |
} |
delay(50); |
} |
If you are the one who loves to craft inspiring projects then Arduino solar tracker is for you. But still, if you are unable to design projects on your own that may be due to the lack of components or some other issues. To them, we bought the Best Solar Panel Kits for Homes that completely satisfies their requirements.
In this article, detailed information on solar panels like prices, power usage and performance is given for the convenience of users. Make a try with these wonderful solar panel kits to install them in your homes.
arduino projects for beginners
arduino projects with code
arduino projects for kids
arduino projects book
arduino projects for engineering students
arduino projects ideas
arduino projects for dummies
arduino projects for beginners pdf
arduino projects advanced
arduino projects amazon
arduino projects art
arduino projects app
arduino projects agriculture
arduino projects and codes
arduino projects alarm system
arduino projects automotive
the arduino projects book
arduino projects beginner
arduino projects book code
arduino projects book free download
arduino projects beginner kit
arduino projects based on agriculture
arduino projects biomedical
arduino projects blinking led
raspberry pi 3 b arduino projects
arduino projects code
arduino projects cool
arduino projects c++
arduino projects car
arduino projects covid
arduino projects covid 19
arduino projects circuit digest
arduino projects course
arduino cc projects
arduino c programming projects
arduino projects download
arduino projects diy
arduino projects drone
arduino projects diagram
arduino projects distance sensor
arduino projects digital clock
arduino projects door lock
arduino projects dc motor control
d arduino
arduino projects easy
arduino projects examples
arduino projects electronics hub
arduino projects engineering
arduino projects easy to make
arduino projects ebook
arduino projects explained
arduino projects elevator
arduino e bike projects
arduino projects for high school students
arduino projects for beginners with code
arduino projects for adults
f() arduino
arduino projects github
arduino projects games
arduino projects garden
arduino projects greenhouse
arduino projects gps tracker
arduino projects gsm module
arduino projects guitar
arduino projects gyroscope
arduino project hub
arduino projects home automation
arduino projects ham radio
arduino project handbook
arduino project help
arduino project handbook volume 2 pdf download
arduino project handbook volume 2 pdf
arduino project handbook volume 1 pdf
arduino projects intermediate
arduino projects in tinkercad
arduino projects ideas for beginners
arduino projects instructables
arduino projects ideas for engineering students
arduino projects in proteus
arduino projects iot
i arduino
arduino projects jaycar
arduino projects joystick
arduino projects jobs
arduino javascript projects
arduino java projects
arduino projects kit
arduino projects keypad
arduino projects knight rider
arduino kitchen projects
arduino kinect projects
arduino keyboard projects
arduino kickstarter projects
arduino kinect projects pdf
arduino projects led
arduino projects list
arduino projects led strip
arduino projects light
arduino projects low cost
arduino projects light sensor
arduino projects led blink
arduino projects led matrix
arduino projects music
arduino projects mega 2560
arduino projects motor control
arduino projects meaning
arduino projects medical
arduino projects malaysia
arduino projects mechanical engineering
arduino projects music instruments
arduino projects nz
arduino projects nevon
arduino projects near me
arduino projects new ideas
arduino projects nano
arduino projects name
arduino projects new
arduino projects nature
arduino projects official site
arduino projects on tinkercad
arduino projects online
arduino projects on proteus
arduino projects online simulator
arduino projects on agriculture
arduino projects on fiverr
arduino projects on github
arduino projects pdf
arduino project planner
arduino project parts
arduino projects price
arduino projects programming language
arduino projects pdf download
arduino projects python
arduino project proposal
arduino projects quarantine
arduino quick projects
arduino uno projects quadcopter
arduino projects reddit
arduino projects remote control car
arduino projects robot
arduino projects research paper
arduino projects rfid
arduino projects robot arm
arduino projects robot car
arduino projects resume
arduino projects simple
arduino projects starter kit
arduino projects step by step
arduino projects servo
arduino projects stepper motor
arduino projects sensors
arduino projects solar
arduino projects simulator
arduino projects to do
arduino projects tinkercad
arduino projects that are useful
arduino projects that make money
arduino projects to help disabled
arduino projects to sell
arduino projects to boost resume
arduino projects that solve problems
arduino projects using starter kit
arduino projects using sensors
arduino projects using tinkercad
arduino projects using ultrasonic sensor and lcd
arduino projects using ultrasonic sensor
arduino projects useful
arduino projects using servo motor
arduino projects using proteus
electronics for u arduino projects
arduino projects videos
arduino projects vacuum cleaner
arduino projects vol-i with proteus simulation files
arduino projects vending machine
arduino projects video download
arduino projects voltage monitor
arduino projects ventilator
arduino projects video camera
arduino projects with code pdf
arduino projects with starter kit
arduino projects with lcd
arduino projects with servo motor
arduino projects with 3d printer
arduino projects with code for beginners
arduino projects with leds
arduino xbee projects
arduino xmas projects
arduino x10 projects
xod arduino projects
arduino projects youtube
arduino yun projects
arduino yacht projects
arduino projects for your car
arduino projects final year
arduino uno projects youtube
arduino projects for your room
basic arduino projects youtube
arduino zigbee projects
arduino zero projects
arduino zero projects book
arduino mkr zero projects
arduino projects 06
arduino projects hc-05
arduino hc-06 projects
arduino bluetooth hc-06 projects
arduino projects 07
arduino projects 03
0 arduino
arduino projects 101 tachometer
arduino 101 projects
arduino 15 projects
arduino 1sheeld projects
arduino 1602a projects
arduino 10 projects
arduino 100 projects
arduino projects book (170 pages) pdf
arduino 1 projects
1 000 arduino projects
arduino projects 2020
arduino projects 2021
arduino projects 2019
arduino projects 2018
arduino projects 2018 pdf
arduino projects 2020 pdf
arduino 2560 projects
arduino 200 projects
2 arduino projects and describe how it is being used
2 simple arduino projects
16*2 lcd arduino projects
types of arduino projects
arduino projects 3d printing
arduino projects with 3 sensors
arduino uno 3 projects
arduino nano 33 projects
arduino nano 3.0 projects
arduino esp 32 projects
30 arduino projects for the evil genius
arduino uno rev3 projects
raspberry pi 3 arduino projects
arduino 3 axis accelerometer projects
what are arduino projects
best arduino projects 2020
arduino projects 4u
arduino projects 4wd robot car
arduino vidor 4000 projects
arduino rf 433mhz projects
421 arduino projects
arduino 433mhz projects
raspberry pi 4 arduino projects
arduino 4 pin lcd projects
can raspberry pi work with arduino
is arduino compatible with raspberry pi
arduino 555 projects
arduino 5110 projects
arduino projects for 5 year old
5 arduino projects
50 arduino projects
arduino uno 5110 projects
top 5 arduino projects
5 cool arduino projects with code
5 amazing arduino projects diy
do it yourself arduino projects
how to make simple arduino projects
arduino projects for 6 year old
arduino workshop 65 projects pdf
arduino workshop book - 65 projects
arduino projects 7-segment display
arduino projects for 7 year olds
74hc595 arduino projects
7 segment arduino projects
7 pro arduino projects with diy instructions
arduino projects 8x8 led
arduino 8266 projects
arduino projects for 8 year old
arduino projects book project 8
arduino esp8266 projects
C