Mark_R
Member
Hi,
I'm looking to implement a astronomic Clock in a PIC to calculate sunrise and sunset times for a given LAT/LON. I have a timing application that requires switching loads relative to sunrise / sunset. There are plenty of algorithms around the 'net for this ( http://users.electromagnetic.net/bu/astro/sunrise-set.php for example) yet, surprisingly, I can't find much detail in implementing the function in a micro-controller.
Hoping not to re-invent the wheel here. I really haven't tackled complex math in a micro so I was wondering if solving these types of algorithms is straightforward or i'm going to end up over my head.
Any pointers?
P.S. No, a photocell will not work.
Thanks.
I'm looking to implement a astronomic Clock in a PIC to calculate sunrise and sunset times for a given LAT/LON. I have a timing application that requires switching loads relative to sunrise / sunset. There are plenty of algorithms around the 'net for this ( http://users.electromagnetic.net/bu/astro/sunrise-set.php for example) yet, surprisingly, I can't find much detail in implementing the function in a micro-controller.
Hoping not to re-invent the wheel here. I really haven't tackled complex math in a micro so I was wondering if solving these types of algorithms is straightforward or i'm going to end up over my head.
Any pointers?
P.S. No, a photocell will not work.
Thanks.