Pages

Sunday 30 December 2012

sunset/sunrise

For the isNight() function of the Arduino intervalometer and datalogger an approximate sunset and sunrise is taken for each month  - stored as ints in two arrays sunrise[12] and sunset[12].

Estimates will be based on the NAOO spreadsheet available from;

http://www.esrl.noaa.gov/gmd/grad/solcalc/calcdetails.html


the rest of the program is heavily influenced by the adafruit temp/light 'fridgelogger'

http://www.ladyada.net/make/logshield/lighttemp.html

I've added a function for taking photos - but it isn't much more involved than blinking two LEDs. Ultimately one of these pins will turn on the  GoPro (pull pin 30 low) and the other will drive the IR LED. Obviously I've also added the onewire and ds2348 libraries instead of using the analog pins.


No comments:

Post a Comment

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License