Änderungen

Zur Navigation springen Zur Suche springen
727 Bytes hinzugefügt ,  15:04, 9. Mär. 2015
Zeile 12: Zeile 12:     
==Get the Time==
 
==Get the Time==
[[Image:Arduino_DS1307.jpg|thumb|timer chip DS1307 with Arduino]]
+
[[Image:Arduino_DS1307_FritzingExport.jpg|thumb|timer chip DS1307 with Arduino]]
 
To get Greenwich Time (aka UT) I use a DS1307 chip.
 
To get Greenwich Time (aka UT) I use a DS1307 chip.
 
Following the description of http://www.glacialwanderer.com/hobbyrobotics/?p=12
 
Following the description of http://www.glacialwanderer.com/hobbyrobotics/?p=12
Zeile 34: Zeile 34:  
Therefore, I have adapted them, expecting only Julians dates starting from 1.Jan. 2000.
 
Therefore, I have adapted them, expecting only Julians dates starting from 1.Jan. 2000.
 
These calculations I have put into another library (Helios.h)
 
These calculations I have put into another library (Helios.h)
 +
 +
Use following program plus libraries for older Arduino IDE (0023 and older):
 +
{{zip|SolarTracker4Arduino.zip|14KB|Version from 09.03.2011}}
 +
 +
For newer Arduino IDE (1.0.1 and later) use instead the following package,
 +
{{zip|SolarTracker4Arduino1.0.1.zip|17KB|Version from 16.01.2015}}
 +
 +
Once you got it running, verify the calculated positions, for instance with
 +
[http://www.sunearthtools.com/dp/tools/pos_sun.php solar position calculator] from
 +
sunearthtools. (Attention: SolarTracker4Arduino does NOT account for daylight saving time (DST),
 +
you have to determine UT (when you set your timer chip) as if there was no DST at all. On the other hand, sunearthtools allow using DST,
 +
and this option is selected by default.
    
==SPA Algorithm==
 
==SPA Algorithm==
Zeile 42: Zeile 54:  
In this paper methods have been worked out according to the book from
 
In this paper methods have been worked out according to the book from
 
''Jean Meeus: Astronomical Algorithms, Willmann-Bell, Richmond 2000 (2nd ed., 2nd printing)''
 
''Jean Meeus: Astronomical Algorithms, Willmann-Bell, Richmond 2000 (2nd ed., 2nd printing)''
a widely accepted text book for astronomic calculations.  
+
a well known text book for astronomic calculations.  
 
The calculations are, however, very extensive; for Arduino I chose the simpler PSA.
 
The calculations are, however, very extensive; for Arduino I chose the simpler PSA.
 
Implementations and references for both algorithms I found thanks to the code from
 
Implementations and references for both algorithms I found thanks to the code from
33

Bearbeitungen

Navigationsmenü