Documente Academic
Documente Profesional
Documente Cultură
Table of Contents
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
http://www.instructables.com/id/Arduino-Solar-Tracker/
Author:geo bruce author's website
I study electronics
Image Notes
1. stand
2. servo's
3. sensor
4. magic tape
When the stick on top is righted to the sun or the brightest point
the four LDRs get the same amount of light on them.
http://www.instructables.com/id/Arduino-Solar-Tracker/
Image Notes
1. ldr
2. ldr
3. ldr
4. ldr
5. stick
6. sheets
7. the sensor
http://www.instructables.com/id/Arduino-Solar-Tracker/
Step 2: The set-up
Just hot glue it together!!!
http://www.instructables.com/id/Arduino-Solar-Tracker/
Step 3: The circuitry
Image Notes
1. Arduino Image Notes
2. Horizontal servo 1. Connections LDRs
3. Vertical servo 2. Connections potentiometers
4. Pin 9 = Horizontal Pin 10 = Vertical
5. Potentiometers for speed and tolerance
6. Analog Pins A0 = left top A1 = right top A2 = left down A3 = right down A4 =
speed A5 = tolerance
Image Notes
http://www.instructables.com/id/Arduino-Solar-Tracker/
1. Horizontal servo pin 9
2. Vertical servo pin 10
3. Sensor
void setup()
{
Serial.begin(9600);
// servo connections
// name.attacht(pin);
horizontal.attach(9);
vertical.attach(10);
}
void loop()
{
int lt = analogRead(ldrlt); // top left
int rt = analogRead(ldrrt); // top right
int ld = analogRead(ldrld); // down left
int rd = analogRead(ldrrd); // down rigt
if (-1*tol > dvert || dvert > tol) // check if the diffirence is in the tolerance else change vertical angle
{
if (avt > avd)
{
servov = ++servov;
if (servov > 180)
{
servov = 180;
}
}
else if (avt < avd)
{
servov= --servov;
if (servov < 0)
{
servov = 0;
}
}
vertical.write(servov);
}
if (-1*tol > dhoriz || dhoriz > tol) // check if the diffirence is in the tolerance else change horizontal angle
{
if (avl > avr)
{
servoh = --servoh;
if (servoh < 0)
{
servoh = 0;
}
}
else if (avl < avr)
{
servoh = ++servoh;
http://www.instructables.com/id/Arduino-Solar-Tracker/
if (servoh > 180)
{
servoh = 180;
}
}
else if (avl = avr)
{
// nothing
}
horizontal.write(servoh);
}
delay(dtime);
}
File Downloads
solar_tracker__english_.pde (1 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'solar_tracker__english_.pde']
Related Instructables
Comments
20 comments Add Comment
http://www.instructables.com/id/Arduino-Solar-Tracker/
shahzade says: Jul 6, 2011. 5:12 PM REPLY
Dude!!
I'm impressed by the design of the sensor. Did you come up with that by yourself or did u see that somewhere else before?
thnx
look here:
http://shop.ebay.com/i.html?_nkw=4+x+servo+9g&_sacat=0&_sop=15&_odkw=4+x+servo&_osacat=0&_trksid=p3286.c0.m270.l1313
no problem
http://www.instructables.com/id/Arduino-Solar-Tracker/
rimar2000 says: Jul 3, 2011. 11:31 AM REPLY
This is a VIP: Very Important Project.
I was working in an equatorially mounted solar cooker. All is right, except it lacks a solar tracker!
We really need more details on how you mounted the actual mechanical parts, though.
http://www.instructables.com/id/Arduino-Solar-Tracker/