Shop OBEX P1 Docs P2 Docs Learn Events
Angle Conversion — Parallax Forums

Angle Conversion

ajit.nayak87ajit.nayak87 Posts: 76
edited 2014-03-25 10:57 in General Discussion
Dear all,
I am trying to achieve single axis tracker using Below algorithm.Here i have attached relevant document and Links.
Now problematic term:

My single axis tracker going to placed in North south direction . Axis of rotation is east to west. I have sensor which can measure angle from 90degree to -90 degree. From below link for my location Bangalore India. Azimuth angle will be 90 degree i.e @ east point. 180 degree at south point 12:15 PM,270 at 6:30 PM again start at 0 in morning.Now i wanted to determine sun position using these angle in +90degree to -90 degree format.

In morning it must be -90 degree
in noon it must around 0 degree
In evening almost 90degree.

Question here how to convert these angle to +90 to -90 degree format.

I want my angle like in Image 3 attached but from East to West.

  1. http://pveducation.org/pvcdrom/prope...levation-angle
  2. https://www.nrel.gov/midc/solpos/solpos.html
  3. http://www.sunearthtools.com/dp/tools/pos_sun.phpNREL data.zip
    azimuth-angle.jpg
    sunangle.gif
    angle1.gif
499 x 464 - 33K
632 x 424 - 15K
311 x 350 - 4K

Comments

  • Mike GMike G Posts: 2,702
    edited 2014-03-25 04:22
    You have been given the answer in one of your many previous posts on this subject.

    Convert range from +90 to -90 to +90 to +270...
    ABS(sensor-180)
    
    Where ABS is the absolute value.
  • kwinnkwinn Posts: 8,697
    edited 2014-03-25 10:57
    Subtract 180 from the sensor angle.

    Morning angle: 90-180= -90
    Noon angle: 180-90= 0
    Evening angle: 270-180= 90
Sign In or Register to comment.