I have completely rewritten the sun tracking program with much better calculations over the last week. It is for this reason that I haven't updated the site in awhile as I have been working on the program rather obsessively. It is a straight forward enough process, but the book I used as a reference, Astronomical Algorithms by Jean Meeus, is meant for astronomers, and I don't know much about astronomy. I got stuck in several places and had to do a lot of research on the subject to figure it all out.
Another thing that caused some confusion was the fact that the internet sites I used to double check the output are WRONG. Arrrrrrrrrg!
Suffice it to say that it's a long story, but it all worked out.
The program isn't quite finished, but I figured that I would upload what I have so far just so I can say I've gotten something done today. I still want to add in compensation for light refraction in the atmosphere and I haven't yet added in adjustment for the time it takes the stepper motors to move from sunrise to sunset yet. Plus, I want to do some more double checking.
And I need to write the documentation for it
And I still haven't gotten the heliostat working yet. (Turns out I've been trying to do it wrong the entire time. There isn't a straight forward way to do it with the current program. Also, ignore all picture of my previous designs. They are wrong!)
And I want to make a GUI for the program
And (one day) I want to make it possible for the program to run the stepper motors directly instead of through a machine controller.
And I want it up so it can point at different windows automatically when one room gets too hot.
Anyway, if anybody wants to take a peek at the new sun tracking program you can. It will output the G-code, but there is no adjustment for the time it takes the stepper motors to move back and forth, so the machine itself will slowly fall behind. It will probably take a day(/week??) or two before that happens though depending on the design of your sun tracking machine, so you can still try it out.
I'll try and get it finished soon, but I've fallen behind in other areas of life and need to do some catching up. It might be awhile.