• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » Solar Tracking Circuit using Arduino

Solar Tracking Circuit using Arduino

Last updated on 13 June 2026 by Admin-Lavi Leave a Comment

Today solar power is very important because world need clean and green energy, also solar tracking help make solar panels work better.

Move solar panel with sun all day so panel get more sunlight and gives more power.

Solar Tracking Circuit using Arduino is smart, DIY and fun project and Arduino is open-source board which is easy to use for making tracking system.

With this project students or hobby people can build solar tracker that follow sun and make more energy.

Furthermore, this article show how Arduino solar tracker makes panels more efficient, as it uses Arduino board, IC 7809, servo motor, solar panel, LDRs and resistors.

Here, project uses simple sensors and motors to teach electronics and coding in easy way and it is also good for learning and good for environment too!

Arduino Code:

#include <Servo.h>

Servo myservo;  // create a servo object to control the servo

const int LDR1 = A0;  // analog pin for LDR 1
const int LDR2 = A1;  // analog pin for LDR 2

int LDR1Value = 0;
int LDR2Value = 0;

void setup() {
  myservo.attach(9);  // attach the servo to pin 9
  Serial.begin(9600);  // initialize serial communication
}

void loop() {
  LDR1Value = analogRead(LDR1);
  LDR2Value = analogRead(LDR2);

  // calculate the difference in light levels
  int difference = LDR1Value - LDR2Value;

  // adjust the servo position based on the difference
  if (difference > 100) {
    myservo.write(90);  // turn right
  } else if (difference < -100) {
    myservo.write(0);  // turn left
  } else {
    myservo.write(45);  // maintain current position
  }

  Serial.println(difference);  // print the difference for debugging
  delay(1000);  // delay for 1 second
}

Circuit Working:

Solar Tracking Circuit Diagram using Arduino

Parts List:

ComponentsQuantity
Resistors
10k 1/4 watt2
LDR (Light Dependent Resistor)2
Semiconductors
Arduino Uno Board1
IC 78091
Servo Motor 5V1
Solar Panel 12V 1 Amp1

This Solar Tracking System using Arduino is a simple project and the circuit diagram above shows all the wiring connections.

Two LDRs placed on both sides of solar panel, because LDR changes resistance when sunlight changes during day.

Also, 10k resistors and LDRs make voltage divider circuit.

Moreover, this circuit gives two voltage signals based on light each LDR gets and then these voltages goes to Arduinos analog input pins.

Arduino reads values to compare light on both the sides.

The servo motor moves the solar panel and it works well for this application because it rotates the panel in small steps and follows the sun throughout the day.

Then servo motor operates at 5V and the Arduino sends control signals to it after comparing the light levels detected by the sensors.

Finally, the servo motor then rotates the panel toward the brighter light source to improve solar energy collection.

Hence, to power the Arduino and servo motor safely, the IC 7809 regulates the voltage supplied by the solar panel.

How to Build:

To build a Solar Tracking Circuit using Arduino follow the below mentioned steps for connections:

  • First, collect all parts shown in circuit diagram.
  • Next, connect IC 7809 to give stable 9V power to Arduino.
  • Then connect servo motor (GND) to Arduino GND pin, connect servo motor (5V) to Arduino 5V pin and then connect servo motor orange wire (PWM) to pin 9 on Arduino.
  • Now connect solar panel positive wire to Arduino 5V pin and connect solar panel negative wire to Arduino GND pin.
  • After that, connect one side of LDR1 to A0 pin and other side connect to 5V pin on Arduino and then connect one side of LDR2 to A1 pin and other side connect to 5V pin on Arduino.
  • Finally, connect 10k resistors one end between A0 and GND and other one connect between A1 and GND.

Conclusion:

To conclude, making Solar Tracking Circuit using Arduino is smart way to use more solar energy and to learn electronics.

With Arduino Uno, servo motor, LDRs, solar panel and voltage regulator we can build system that moves panel with sun; also it helps make more energy and shows how sensors and automation work.

Therefore, this project provides a simple yet powerful solution, offers a good learning experience and supports the development of larger projects in the future.

Filed Under: Arduino Projects, Automation Circuits, LDR Circuits, Renewable energy, Sensors and Detectors, Solar Circuits

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « DIY Temperature-Controlled Fan Circuit with Arduino
Next Post: Simple Alcohol Detector Circuit using IC LM393 »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar




Categories

  • 555 Timer Projects (97)
  • Alarm Circuits (72)
  • Amplifier Circuits (91)
  • Arduino Projects (103)
  • Audio Circuits (185)
  • Automation Circuits (70)
  • Automobile Circuits (35)
  • Battery Charger Circuits (87)
  • DIY Projects (311)
  • Free Energy (12)
  • Heater and Temperature Controllers (31)
  • High Voltage (24)
  • Hobby Circuits (159)
  • Indicator Circuits (60)
  • Inverter Circuits (19)
  • IoT projects (4)
  • LDR Circuits (45)
  • LED and Lamps (192)
  • Meters and Testers (42)
  • Mini Projects (226)
  • Motor Controllers (24)
  • Oscillator Circuits (60)
  • Power Supply Circuits (216)
  • Radio Frequency (1)
  • Remote Control Circuits (11)
  • Renewable energy (5)
  • Security and Protection (95)
  • Sensors and Detectors (210)
  • Solar Circuits (31)
  • Timer Circuits (60)
  • Transistor Circuits (163)
  • Transmitter Circuit (21)
  • Tutorials (21)
  • Voltage Regulator (25)
  • Water Level Controller (10)

Recent Posts

  • Low Current Controlled Battery Charger Circuit using LM723 IC
  • 741 Op-Amp Treble Booster Circuit
  • Simple Diode and Transistor Based Audio Limiter Circuit
  • Simple 500mW Speaker Driver Circuit
  • Easy DIY LM386 Audio Amplifier Circuit

Recent Comments

  1. Tony Gallegos on NTC Thermistor Based Temperature to Voltage Converter Circuit
  2. colin on Simple Single Transistor Audio Amplifier Circuit
  3. How to Make a Bird Chirping Noise Easily on Chirping Bird Sound Generator Circuit
  4. Transistor Based Medium Impedance Preamplifier Circuit - Circuit Ideas for You on Low Impedance Input Transistor Preamplifier Circuit
  5. Admin-Lavi on Alternate Red Green LED Flasher Circuit

Copyright © 2026 | New Circuit Ideas