Detect Sun Angle Using LDR [HELP PLS] [Arduino]

Guys I really need your help, I hope u can help me. Our project objective is to detect the Sun angle 0-180degrees to be displayed in a 3 digit seven segment using LDR with [arduino]. Please help me

up

How do you think an LDR can be used to detect an angle?

the programming will do the work that’s my problem. the angle will be displayed in a 3 digit seven segment

Well, let me be a little more obvious: an LDR alone, even together with a program, cannot be used to detect an angle.

that’s what our instructor said. can u give me an idea pls of the additional tools to be used?

I use Google as a tool. Try searching for “solar tracker” to see what others have done.

If he is an instructor then he is failing at his job. Then he should give suggestions how this can work. Or at least provide hints to the physics and mechanics. Some creativity may be required on your part as to how this should be made, but I don’t see how this is possible either with the limited requirements.

The only way I can imagine a single LDR to be used to detect the direction to the sun is to use it in “camera obscura” mode. The LDR be centered in the backside of a dark encased chamber with only a narrow slit for the light to pass through. Then have a motor scan the sun-lit sky with the slit facing the sun. The sun would be at the direction where the LDR has the least resistance. But that does not give out an angle! Not until you start measuring rotations of the motor axle. At best you can home in on the sun by revering the motor direction to keep the sun light on the LDR.

The materials to be used he stated is:

6 LDR for analog inputs in the arduino

3 digit seven segment

arduino

transistor for the seven segment

  • I’m really confused how this will work . I think it’s impossible

Ahh. Now we have 6 LDRs!

Could you just possibly imagine pointing LDRs in different directions?

Or use shadow from a panel/wall between 2 LDRs. One of the 2 will be in shade until the panel/wall is pointing at the sun. Again, no angle readout unless you measure axle rotation (which could be done with 2 LDRs and leds looking at light passing through a quadrature encoder disk, and the arduino keeping track of the changing pulses)

Two half-round panels spaced slightly more than width of an LDR. Seven segments/partitions spaced 30 degrees apart along radius, like segments of an orange. 6 x LDR’s fixed near axis (bottom) in each segment. Sunlight will almost always drive one LDR harder than another except when it’s a boundary moment between 2 segments but lasts only seconds.

6 x analog inputs, some math programming and you’ve won the prize!

I wish that when I was a student, I could just googled to plagiarize and pester people on forums to do my assignments while I ate pizza, drank beer, and chased girls.