Monday, January 28, 2013

Chasing the Sun

Chasing the Sun

an exercise in solar tracking for mobile systems.



With versatile platforms like mbed and Arduino around these days, the power of google, and the resources of places like Github, taking a project from idea to creation can be trivial to say the least. One of the major problems I've faced with my projects hasn't been programming or accuracy... It's been power. 

'Un-tethering' your project from the convenient USB power can introduce all sorts of complications in regards to power, batteries are great for the short burst or even up to a day, but if you have something that needs power 24/7 whilst on the road, sea or wind - Chances are you will end up with solar.  
This had me wondering about increasing the efficiency of such applications by using a GPS module to track the sun in real time at any given location. TTL serial GPS modules can easily be had for under $40 from places like Adafruit, couple that with recent projects like Paul Stoffregen's ARM based Teensy3.0 Arduino board and you have core components for a very compact, yet powerful Arduino compatible tracking system. 

So with that said, the next problem is the physics and maths involved with predicting planetary orbits, let alone from a given point on the surface of the earth. After some research I found PSA, otherwise known as "La Plataforma Solar de Almería" who have been kind enough to publish their solar tracking algorithms, which are accurate to 3.5 Arc-minutes (0.06 deg).

for anyone interested, I've composed an Arduino library that makes using these algorithms simple! 



The library can be downloaded from here.     Enjoy!

4 comments:

  1. Did you ever try this?
    double precision does not exist in arduino, only if using the ARM based board

    ReplyDelete
  2. Did you read the post? It is for teensy & Mbed, both ARM based boards. One of which is on the Arduino platform.

    In any case, the rounding from double to float (applied automatically for 8-bit platforms) would be practically insignificant for most applications.
    http://arduino.cc/en/Reference/Double

    Thanks for your comment, best of luck with your project. :)

    ReplyDelete
  3. 옴스 포커 포커 홀덤 홀덤 홀덤 홀덤 홀덤 홀덤 홀덤 홀덤 홀덤 홀덤 홀덤 홀덤 ラッキーニッキー ラッキーニッキー 카지노사이트 카지노사이트 234The Starburst Habanero | AOGGIN123

    ReplyDelete