Loginbox
Please enter your username and password into the following fields to log in.
Sun Position Calculator
jboavida

Subject: Sun Position Calculator - Posted: 22.05.2010 - 12:44 -
Hi All,
Does anyone knows an algoritmh to calculate the sun position given the GPS coordinates and date?
The goal is build a solar tracker, the input is GPS (coordinates and date time). From this I can calculate the azimuth and inclination of solar panel. Using a electronic compass and a tilt sensor I can position the solar panel with precison. I have a C source with the algorithm, but since I dont have a lot o time to implement I ask if anyone have / know a pascal source.
Thanks in advance
Joaquim
Does anyone knows an algoritmh to calculate the sun position given the GPS coordinates and date?
The goal is build a solar tracker, the input is GPS (coordinates and date time). From this I can calculate the azimuth and inclination of solar panel. Using a electronic compass and a tilt sensor I can position the solar panel with precison. I have a C source with the algorithm, but since I dont have a lot o time to implement I ask if anyone have / know a pascal source.
Thanks in advance
Joaquim
Subject: Re: Sun Position Calculator - Posted: 24.05.2010 - 16:56 -
Have you tried googling around? This is the 2nd result when entered "sun position" pascal:
http://celestrak.com/columns/v03n01
http://celestrak.com/columns/v03n01
jboavida

Subject: Re: Sun Position Calculator - Posted: 25.05.2010 - 09:50 -
Hi Avra,
Thanks for your awnser. I did google around. And I did misss this one. This is not quite what I want, because it lacks the coordinates (latitude and logitude), but is a good starting point.
Joaquim
Thanks for your awnser. I did google around. And I did misss this one. This is not quite what I want, because it lacks the coordinates (latitude and logitude), but is a good starting point.
Joaquim
Subject: Re: Sun Position Calculator - Posted: 26.05.2010 - 08:53 -
This is where you can find visual explanation of Latitude to ECI Conversion and Longitude to ECI Conversion:
http://celestrak.com/columns/v02n01
Code can be found here:
http://celestrak.com/software/satellite/sgp4-plb26a.zip
I hope that this will be enough for your task.
http://celestrak.com/columns/v02n01
Code can be found here:
http://celestrak.com/software/satellite/sgp4-plb26a.zip
I hope that this will be enough for your task.

Subject: Re: Sun Position Calculator - Posted: 06.10.2010 - 08:04 -
I have just poped up on this code. It can't be simpler then this:
http://www.avrfreaks.net/index...showinfo=1
http://www.avrfreaks.net/index...showinfo=1
jboavida

Subject: Re: Sun Position Calculator - Posted: 21.07.2011 - 12:13 -
Long/Lat in Delphi instead of C:
http://delphiforfun.org/Programs/Solar_Position.htm
http://delphiforfun.org/Programs/astronomy.htm
http://delphiforfun.org/Programs/Solar_Position.htm
http://delphiforfun.org/Programs/astronomy.htm

jboavida

![]() |
Registered users in this topic Currently no registered users in this section |