In this project, we will see a simple Sun Tracking Solar Panel circuit which will track the Sun and position the solar panels accordingly.
Outline
ToggleIntroduction
As the non renewable energy resources are decreasing, use of renewable resources for producing electricity is increasing. Solar panels are becoming more popular day by day. We have already read a post about how to install solar panel for home. Solar panel absorbs the energy from the Sun, converts it into electrical energy and stores the energy in a battery.
This energy can be utilized when required or can be used as a direct alternative to the grid supply. Utilization of the energy stored in batteries is mentioned in below given applications.
The position of the Sun with respect to the solar panel is not fixed due to the rotation of the Earth. For an efficient usage of the solar energy, the Solar panels should absorb energy to a maximum extent.
This can be done only if the panels are continuously placed towards the direction of the Sun. So, solar panel should continuously rotate in the direction of Sun. This article describes about circuit that rotates solar panel.
Principle of Sun Tracking Solar Panel
The Sun tracking solar panel consists of two LDRs, solar panel and a servo motor and ATmega328 Micro controller.
Two light dependent resistors are arranged on the edges of the solar panel. Light dependent resistors produce low resistance when light falls on them. The servo motor connected to the panel rotates the panel in the direction of Sun. Panel is arranged in such a way that light on two LDRs is compared and panel is rotated towards LDR which have high intensity i.e. low resistance compared to other. Servo motor rotates the panel at certain angle.
When the intensity of the light falling on right LDR is more, panel slowly moves towards right and if intensity on the left LDR is more, panel slowly moves towards left. In the noon time, Sun is ahead and intensity of light on both the panels is same. In such cases, panel is constant and there is no rotation.
Sun Tracking Solar Panel Circuit Diagram
Components in the Circuit
- Solar panel
- ATmega328 Micro Controller
- Light Dependent Resistor (LDR) x 2
- 10KΩ x 3
- Servo Motor
- 16MHz Crystal
- 22pF Ceramic Capacitors x 2
- Push Button
- Breadboard
- Cardboard
- Connecting Wires
Automated Sun Tracking Solar Panel Circuit Design
The proposed system consists of ATmega328 micro controller, Solar panel, Light Dependent resistors and Servo Motor.
ATmega328 Microcontroller
ATmega328 is an AVR family micro controller. It is based on advanced RISC architecture. It is an 8-bit controller. It has 32K Bytes of Programmable Flash memory, 1K Bytes of EEPROM and 2K Bytes of SRAM. It has 23 programmable I/O pins. It supports peripheral features like two 8-bit timers, one 16-bit timer, 6 channel ADC with 10-bit resolution, programmable USART, Serial Peripheral Interface, 2 wire serial interface (I2C), etc.
Solar Panel
Solar panel is placed on a piece of cardboard (just for demonstration) and the bottom of the cardboard is connected to Servo motor. Solar panel consists of photovoltaic cells arranged in an order. Photovoltaic cell is nothing but a solar cell. Solar cell is made up of semiconductor material silicon.
When a light ray from Sun is incident on the solar cell, some amount of energy is absorbed by this material. The absorbed energy is enough for the electrons to jump from one orbit to other inside the atom. Cells have one or more electric field that directs the electrons which creates current. By placing metal contact energy can be obtained from these cells.
LDR
Light Dependent Resistors or LDRs are the resistors whose resistance values depend on intensity of the light. As the intensity of light falling on the LDR increases, resistance value decreases. In dark, LDR will have maximum resistance. LDR will output an analog value which should be converted to digital. This can be done using analog to digital converter.
ATmega328 has analog to digital converter internally. It has six ADC channels from ADC0 to ADC5 (Pins 23 – 28). The two LDRs are connected to ADC pins i.e. 27 and 28 in a voltage divider fashion with the help of individual 10KΩ Resistors. ADC conversion is done using successive approximation method.
Servo Motor
Servo motor is used to rotate the panel. To drive the servo motor, a PWM Signal must be provided to its control pin and hence Pin 17 (which has PWM) is connected to the control pin of the servo motor.
By connecting a battery to the solar panel, you can store the energy generated by the solar cells and this energy can be used when required. There are separate charge controller circuits dedicated to efficiently control the charge acquired from solar panels and charge the batteries.
[Also Read: How To Make an Adjustable Timer ]
Code
In a previous tutorial, I have shown you “How to Burn Bootloader to ATmega328”. In this tutorial, you can understand how to upload code to the ATmega328 Microcontroller using Arduino IDE.
The code for the project is given below.
How Sun Tracking Solar Panel Works?
- Assemble the circuit as described and upload the code to ATmega328 Microcontroller.
- Power on the circuit and place the set up directly under the Sun (on the rooftop).
- Based on the light falling on the two LDRs, the ATmega328 Microcontroller changes the position of the Servo Motor which in turn moves in the panel.
Advantages of Sun Tracking Solar Panel
- The solar energy can be reused as it is non-renewable resource.
- This also saves money as there is no need to pay for energy used (excluding the initial setup cost)
- Helps in maximizing the solar energy absorption by continuously tracking the sun.
Sun Tracking Solar Panel Applications
- These panels can be used to power the traffic lights and streetlights
- These can be used in home to power the appliances using solar power.
- These can be used in industries as more energy can be saved by rotating the panel.
Limitations of Sun Tracking Solar Panel Circuit
- Though solar energy can be utilized to maximum extent this may create problems in rainy season.
- Although solar energy can be saved to batteries, they are heavy and occupy more space and required to change time to time.
- They are expensive.
So far you came to know about the working principle of a sun-tracking solar panel. If you want to set up or install them on your home or office rooftops then we would like to share with you about Best Solar Panel Kits for Homes In 2018
This article will help you in understanding the concept of solar panel kits and guides you how to choose solar panels (vital considerations) when purchasing online. Read the complete article and choose the one that best matches your requirements.
58 Responses
very super projects will be given .Thank u for this help everyone must use this sun tracking solar panel.
We are doing the same project but instead of using microcontroller we are going to used Labview sofware.Is there any specific rating for the solar panel in this project.
So,please do help.
No specific rating for the panel. In this project, the solar panel only moves in the direction of Sun in order to produce more power.
Hoe can i use lab view for this project ? pls guide me
No specific rating of panel and no draw the basic diagram
Is sun tracking solar panels are useing any where
Hello dear. Have you done the project if yes then can you help me please as i am doing it as my semester project. Here is my mail, your contact will be appreciated. Thank you.
If you got the project kindly mail
Hi can i get the project for my reference?
how i can get the coding of this project?
somebody can suggest me to how to make connection of LDR . i mean where to connect it.
Which solar panel is used ?
There are many brands available online which offer different varity os solar panel ranging from 200 to 2000.Kindly provide the shopping link for the solar panel if possible
What is price of this project?
Is there any code required for the microcontroller.
is there any programming associated with the project??
Yes it requires code but it is not practically implemented..We will update it soon
Can we expect code soon?
Code plz
were curently doing this project.. anyone here who can give us some advice and suggestion?
Please guide me… I’m under going to this project…. In very short time to submit this project
yes it is required .That you have to find.
HOW MUCH RATINGS OF COMPONENTS
Here Motor driver L293D can drive upto 30v maximum.So you can use motor upto 30v.While Solar Panel Rating is selected depending on your application
can you help me by sending the code programming for this project because it will help me for my final year project
Hello Sir, we are currently working on this concept, and stuck up in coding part, can you help us in that, Please…
i really need programming anybody can send me coding plese
saini_ravinder@hotmail.com
Coding for this project?
Can you please send me the code?
This is my email adress : projeto.geogebra@gmail.com
Thanks
can anybody suggest how to learn progamming code and how dump it into the kit
can you send me code for progrmming controller ?
am currently working on this project can any one send me a code pls my mail id is avinash051297@gmail.com
it is an very good idea, but what happen if we use lens to concentrate sun light on the panel.
Then you would overheat the cell, that might destroy the cell also the heat creates inefficient pannel.
we can use mirror… which is improve efficiency by 33% if its on good position with all solar panels in lines.
Pse members iam currently doing the same project pse any body with the code send it to me on bwireemma6@gmail.com
Thanx in advance
Could I get the code for this project?
what is the characteristic measurement of the sensor LDR like the range , span ,resolution and error band
i need the error bands and resolution
Send proper circuit and components required and there rating..
send a programing of this project microcontroller atmega8…..
iam unable to find the code for this project.expecting a code soon
could we fuse our program from arduino board and use the MC in this circuit ?
Hii..sir it is good project which gives much more efficiency then the normal solar panel .. I am also making the same project so .. I need a help that the exact ratings of the motor and solar panel and I want to know how the connections are give .. plz as much as quick rply me.. I need to do submit my project in very less time .. plz ..
Did anyone respond to your Question I want to do this project for my Engineering class, Do you buy the parts from them are buy online somewhere else
Pls guys I’m a final year student in electrical electronics engineering department
I think it is a very good idea ??
what is the name of the driver IC used for controlling the stepper motor
L293D
No its ULN2003
We can implement this project in practically ?
Thank u soo much electronics hub… This article helped us in our final year project….. The language used in your article is very easy to understand….also helped in external viva….tysm
If you put the 2 photocells in series across the power supply and take the centrepoint to a processor input, you only need the single input line. If voltage is around half supply keep motor still. If higher, drive one way; if lower, drive the other way.
Do you have a more detailed wiring diagram for this?
Can you please give me some more references for this project since I am a sy student and don”t know much about micro controller?
Can anybody share the ATMEl code pleaseeeeeeeeeeeeee?
sheryhundal11@gmail.com your help would be appreciated.
What if power went off?? How will it work??
Can any one help me the detailed circuit connection for this project, im confused.
can it be done for bigger panels