Mapping

Hi,

I am trying to track the Sun using horizontal Single axis. The solar panel is facing east at 40 degrees and will travel to west and stops at 40 degrees. I got a DC motor, accelerometer, solar panel and uno.

How can I map the Sun's elevation angle to my code and how can I integrate RTC into my code? I got the RTC done but I do not know how to check for time.

verticalValue = map(elevation, 0, 90, 0, 1023);

I want to know how can I make the motor go when the Sun 's elevation angle is lets say 20 degrees and its 10AM in the morning.

Thanks

Hey, it's not nice to restart the same topic in a new thread.

Its not the same topic. The old topic was initially about RTC.

I do not know how to check for time