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 and sunset.
Estimates will be based on the NAOO spreadsheet available from;
the rest of the program is heavily influenced by the adafruit temp/light 'fridgelogger'
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.