Calculating Sunrise and Sunset 2


+ Reply to Thread
Results 1 to 18 of 18

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default Calculating Sunrise and Sunset 2

    Henrik,

    Right, no need for runtime data.

    Any idea where a kind of data table would be to be found?
    Roger

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default Re: Calculating Sunrise and Sunset 2

    I think it is best to be calculated in a Excel file and then the results stored in an External EEPROM?

    Ioannis

  3. #3
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: Calculating Sunrise and Sunset 2

    You can store lot of data in program memory. And get it with read code.

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: Calculating Sunrise and Sunset 2

    Henrik,

    Right, no need for runtime data.

    Any idea where a kind of data table would be to be found?
    Let me Google that for you....
    https://www.timeanddate.com/sun/swed...h=10&year=2024

    It defaulted to Gothenburg for me so obviously you'll need to change that.

  5. #5


    Did you find this post helpful? Yes | No

    Default Re: Calculating Sunrise and Sunset 2

    Isn't the changing sunrise and sunset times mostly a sine wave function, with the 2 times opposite of each other. Basic has a sin function. and the sin values would synchronize with the date and the sin multiplier for minutes change/day value would depend on the latitude of the location of the clock....

Similar Threads

  1. Calculating MKT
    By pedja089 in forum General
    Replies: 1
    Last Post: - 10th November 2013, 14:46
  2. Calculating a checksum
    By simongie in forum General
    Replies: 4
    Last Post: - 21st August 2009, 13:08
  3. Calculating Sunrise and Sunset
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st November 2007, 16:56
  4. calculating speed of a loop
    By EDWARD in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th June 2005, 20:34
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

Members who have read this thread : 20

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts