Azimuth and elevation angle using solar tracker

I want to make a program that gets elevation and azimuth angles from somewhere off of the internet and use that data to orient servo motors a specific way. What API/Software would I use for getting the elevation/azimuth angles based on real time location, and can someone give me some sample code of how to do it or an idea of the main goals of the program or something?

help asap pls

The SolarPosition library, your geographic location (GPS coordinates), time zone and the time of day should be all you need. Of course the entire installation has to be level and aligned with due North.

Heliostat/Solar Tracker example

Hi, @aryans07
Welcome to the forum.

Is there a reason why you don't just use a couple of light sensors to determine the direction of the brightest part of the sky?
You don't need to know any location information, or need internet connection.

Thanks.. Tom.. :grinning: :+1: :coffee: :australia:

That would be "orient the servos in a specific way", according to your post. Did you have something else in mind?

hey tom
i don’t think that there’s a lot of room for expansion on that idea
seems like a way easier solution tho
i’ll see
thanks

@aryans07,

Your topic was moved to its current location as it is more suitable.

Could you also take a few moments to Learn How To Use The Forum.

It will help you get the best out of the forum in the future.

Thank you

What is at the azimuth and elevation that you want to get off the internet?

As pointed out, you don't need data from the internet to track the sun.

On the other hand, if you are trying to point at the ISS or an Iridium satellite, you would need a source for the location data.

a7

never mind i figured it out
thanks for helping guys

Please share. Tell us what your problem really was, and how you solved it.

a7

Use a local clock and calendar, simply.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.