Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Arduino Solar Tracker (simple code)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
800 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 18, 2011

A simple solar tracker I made using LDRs as sensors. A bulk of the codes are just if- statements.

Fritzing circuit: http://imageshack.us/photo/my-images/197/capture1982011112342am.jpg/

Sketch on pastebin: http://pastebin.com/zPDkng6e

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (djfoo000)

  • I want the horizontal motor to move first and then the vertical rather than having simulatneous movement, can you tell me how to achieve that ?

  • @ThisWorldABitch If you want to accentuate the robotic movement, just prolong the delay. In this case, use delay(500). I used delay(10) in my code. You can try any number bigger than 10.

  • @djfoo000 I was told that i should not use the same loop for vertical and horizontal axis, i dont get that part, any way of coding by having another loop ?

  • @ThisWorldABitch Errr... Not very proficient in programming. I only learn the parts that enable me to build this project.

  • @djfoo000 NO , it is not moving one motor one after the other, if you look carefully , it is moving both the motors simultaneoulsy, isnt there any way we can command one of the actions to perform first. (it has nothing to do with the delay)

  • @ThisWorldABitch Hrmm... I didn't really investigate it deeply. The assembly was disassembled long time ago. You probably need to consult someone more proficient in this area. My apologies.

see all

All Comments (18)

Sign In or Sign Up now to post a comment!
  • @djfoo000 Like I want it to be done in this way:

    1. Do this first

    2. Then do this one

  • Hi I have made for four sensors program, but the problem is I want it to track horizontal first and then vertical or vice versa, but my program is like the vertical and horizontal tracks by moving simultaneously, any way to implement decision

  • @ThisWorldABitch Err... AFAIK servos have a range of 180 degrees. Don't really know much about parts though.

  • Hiiii

    Can you please tell me how your mini servos are moving 0-180 degrees ? Because As far As I know all mini servos have range between 0-90 Degrees only

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more