Topeng Posted February 11, 2018 Report Share Posted February 11, 2018 Hi all. I'm looking at upgrading my Arduino controlled 2axis solar array. I have the Arduino controlling the panels with a few yearly adjustments manually changed. I'd like to upgrade the system to a Jazz if possible as we have played around with them a bit before and Unitronics hardware is more robust. We have a JZ10-11-R31 Question is I have an algorithm the tells me the position of the sun using a RTC which outputs Altitude and Azimuth and the array goes to that point, how do I go about using complex math like this in U90. ie sin, cos, tan? Can I import a C+ formula to use? Or do you know of someone who has done similar? Any help much appreciated Link to comment Share on other sites More sharing options...
MVP 2023 Ausman Posted February 11, 2018 MVP 2023 Report Share Posted February 11, 2018 I might be wrong, but I don't think you can do maths like sin etc on the Jazz. You'll need to go up to a V130 or Samba, and use the Formula function under Math. It will then be a case of simply translating the formula into the one function, or a few of them, depending on how it works out. Aus Link to comment Share on other sites More sharing options...
Topeng Posted February 11, 2018 Author Report Share Posted February 11, 2018 Hi Aus Thanks for clearing that up. It would explain why I couldn't find any info on the topic. Off to the supplier.... Tony Link to comment Share on other sites More sharing options...
MVP 2023 Ausman Posted February 12, 2018 MVP 2023 Report Share Posted February 12, 2018 Don't forget to allow for daylight saving in the RTC references! We all know how that extra hour of sunlight makes our curtains fade faster, railway lines buckle, cows stop making milk, grass & forest dries out quicker, solar arrays put out more power, wind turbines spin quicker, people with dopey brains show even more stupidity etc. ps I was joking, in case it isn't obvious! cheers, Aus Link to comment Share on other sites More sharing options...
Topeng Posted February 12, 2018 Author Report Share Posted February 12, 2018 Yes we have allowed for that in the Arduino code and it does make a difference. Up to 13 degrees of lag during solar noon which equates to about 22 percent losses. So we are all over that. Although after many test runs and much deliberation between liked minded individuals we have now calculated a solution for dopey brains during daylight savings times, which is duct tape. It doesn't fix stupid but it sure does muffle the sound Link to comment Share on other sites More sharing options...
MVP 2023 kratmel Posted July 26, 2018 MVP 2023 Report Share Posted July 26, 2018 If it is not to late... I use for two axis sun tracking Zelio Logic smart relay with embedded FBD suntrack function. It work fine due to RTC present onboard. Daylight saving is also present. Maybe it will be helpful to add "suntrack" option (function) into visilogic or other unitronics software. But this is question to unitronics team. Sunrise-Sunset-Suntrack.pdf Link to comment Share on other sites More sharing options...
Fabios Posted February 23 Report Share Posted February 23 Unitronics PLC does not have a similar FBD? BR Link to comment Share on other sites More sharing options...
pascal Posted July 25 Report Share Posted July 25 I'm just using an rest api to know the position of the sun at the actual moment of my actual place... i'm using ipgeolocation.io with a free license (only 1K requests/day ) that gives me always the correct position of the sun (or moon) Of course i'm using a unilogic plc.... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now