I have reach a difficult teorical point to resolve in my project.
I designed a pseudo-equatorial solar tracking system. The system runs in a Arduino Mega.
It moves south/north and west/east using DC actuators, which I control using 4 relays. To know where the solar panel is I use an Inclinometer (+-90║ in both axes) (Murata Scat100d2)
I have written the code using Hannes Hassler`s SolarTrack4Arduino which gives all the solar information I need (Solar elevation, azimuth and solar hour angle)
All these works good.
But I do not really know how to integrate that information so I can get the correct angles to position the solar panel. I know how to move the solar panel to a known angle, but I do not know how to calculate the angle so the panel faces the sun.
At my first trial I made:
To calculate correct North/South axis: 90║-Sun elevation.
To calculate correct West/east axis: Same as the hour angle, but in the other direction. For example at the morning when solar hour angle is -30║ tilt the sun panel 30║ east.
As I could prove, it does not work. I think my approach is not correct, and I would need to get vectors involved. Is that correct? Do you know where I could get more information? (I have search in google but I coundn┤t find any usefull information)
Thank you very much for your help! All ideas are welcome and sory for my broke english!