It searches for the brightest light source like the sun.
Remove these ads by
Signing UpStep 1: How it works
I'd made a sensor of 4 LDRs with sheets between them
The withe stips are the LDRs
the four LDRs get the same amount of light on them.
Example1 when the light is left on top:
right-top, right-down, left-down are in the shadow
and left-top get the most light
Example2 when the light is on top
left and right down are in the shadow and top is in the light










































Visit Our Store »
Go Pro Today »




It depends what kind of stepper motor driver and stepper motor you are using. This instructable was inspired that idea with me too.
This is really helpful: http://bildr.org/2011/06/easydriver/
I'll post my progress soon
I really liked your project! I want to replicate your sun tracker. I have an Arduino uno and would like to use 2 stepper motors instead. How would this change the code and wiring? Any help will be much appreciated.
thank you.
else if (avl = avr)
where the expression within the parentheses is an assignment statement. I think George wants a relational expression. It should be:
else if (avl == avr) // Note the double equal sign...
However, this is a no-harm-no-foul bug, since nothing is done with the values until after they've been reassigned.
I fixed it
I am using a 10 inch solar panel.so i guess,servo motor is not enough to rotate the panel in the desired direction.
Which Motor should we go for..DC,Servo,Stepper.
And what are the changes need to be done in the program?
Reply ASAP
Thanks
and change the code a little bit
I still don't know what do they refer to ?
What is the use of the Speed and Tolerance? Which speed do you control, and which tolerance? Why are potentiometers connected like that?
Thanks again
tolerance is how much difference is needed before he updates
and how accurate it need to be
see voltage devider on wikipedia
for why the potentiometers are connected like that
The captcha doesn't appear for my reply so I couldn't post a direct reply.
anyway, I added a paragraph of codes;
while(time<=5000)
{
servov = 60;
servoh = 60;
delay(1);
time++;
You can see it from the first screen shot from my previous comment and also changed the turning angle of the motors.
{
servov = 60;
servoh = 60;
delay(1);
time++;
why would you dot that?
Why is Speed/20 and Tolerance/4 ?
What is the use of these if conditions
if (-1*tol > dhoriz || dhoriz > tol)
if (-1*tol > dvert || dvert > tol)
Thanks alot
to make speed a value between 51.2 and 0
and tolerance a value between 256 and 0
if (-1*tol > dhoriz || dhoriz > tol) //= if the light difference between left and greater then the allowed tolerance
if (-1*tol > dvert || dvert > tol) //= same but for top and bottom instead of left and right
I've slightly modified your program and I've attached two screen shots of the program
My program seems to have a little problem as the servo does not move towards the brightest point
Could you please help me out by checking the program?
This is the link to the servos I am using : http://www.robot-r-us.com/motor-rc-servos/src-s4303b-standard-analog-servo.html
I make your project but I have problems with the tracker.... It dont follow the sun correctly. I am using Tower pro sg5010 servos and 10 k resistors... Do the code change in something???
and i cant understand the positions of the LDR's is it correctrly??::
pin 0; //LDR top left
pin 1; //LDR top rigt
pin 2; //LDR down left
pin 3; //ldr down rigt
and what is left and right??? top view of above view
Sorry for my english
yes i am using arduino duemilanova.
but when i uploading the code, its shows problem to uploading to board .
what is my problems actually ?
need some help here !!!!
pleasee..
Binary sketch size: 3794 bytes (of a 30720 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x30
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1230381702/all
I have a continuous rotation Servo Motor Springrc SM-S4303R, and a Servo - Medium Full Rotation (SM-S3317S) (I think springRC) that I'm trying to get working for this same project (a friend is using the S4303R for a different project). I've done a bit of research and it looks like I'll have to add a PWM Input change like you did with Poesis. Would you know exactly what sort of change I'd have to add to the PWM Input to make them move properly? The specs for the S4303R say that 1.5uS is the neutral value for the PWM, so I tried (I'm experimenting with the S4303R while my S3317S comes in the mail) using this same PWM values you suggested to Poesis, but to no avail, and I can't seem to find the PWM values for the S3317S. Help! It's urgent!
- AHiggins
- RobertC.
- Member #148301: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1278145608
might help
http://www.sparkfun.com/products/10189