Sunday, 30 December 2012


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;

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.

Monday, 24 December 2012

Arduino 1-wire Datalogger

Playing with bits of wire.

SD card and RTC tested.

probably will use Lady Ada's fridge logger and SD/RTC test sketches as a template;

combining the RTC and SD examples to test the board have got me pretty close to it already;

That all works. Need some data.

One wire example picks up the DS1820 easily enough, need to look at humidity.

This looks promising;

Some notes on it here, (may not be relevant),49368.0.html

This looks like Arduino 1 code,  replace #include "WConstants.h" with #include "Arduino.h". That's just something I read here;

This does something too...

yet another link... sht15 more accurate than HIH4013?

Friday, 14 December 2012

go pro notes

bus pinouts

pin 12 for time lapse

thanks to this site I got the name of the DD1P030MA1 connector;|Telephone_and_Telecom-_-DD1P030MA1

IR board lens

another arduino link

Wednesday, 5 December 2012

some Arduino links


SD cards

1 Wire


Time Lapse


Tuesday, 4 December 2012

bufo duplo


I've been using these in tests so far;

Infrared T-1 LED 880nm 130° SFH487P

RS 654-8334

Note Anode (+ve) is the SHORT LEG!
Vf = 1.5V
If= 100mA

six of them light the test tunnel area quite well, at 100mA they are taking almost as much power as my camera - but sensible options all seem to be coming in around this value.

Infra-Red 850nm LED Star 950mW "Golden Dragon"

RS 736-2358

The Golden Dragon LED may be too powerful for lighting a 50cm tunnel, and even present a possible hazard... As 'IR illumination for cameras' is second on the list of applications to 'surveillance systems' I assume the H&S warnings pertain to 5A burst mode - I'll need to check this before I deploy one, but I'm picking up one to test.

Vishay LED IrLED 940nm PLCC  

RS 710-4944

another wide beam IR LED with a reasonable output. Wavelength higher than the 880nm LED above, but SMT package less friendly

Vf = 1.35V
If = 100mA

Looking at current draw v performance, i'm going to stick with  RS 654-8334. (All my notes are still in the loft where I tested them.)

For a rainy day;
I'm thinking I could try and knock the voltage down for the dragon with a switch mode regulator and not have to burn so much power off, but if the LED's i have are good enough it might not be worth it. 

notes on time lapse method

Fig 1 - Bufocam 001 - The camera input is currently taking a video feed from my media player.

I'm drawing a line under ARM processors for now as the funding is here and moving forward with the working Vivotek device and independent temp/humidity loggers. The massive tuffbox full of lead acid batteries is unattractive, so now Plan A is in the bag with off the shelf parts and a correspondingly short lead time. I'm looking at another option that as been on the back burner.

Time lapse recording in the trail cameras I've looked at (bushnell / reconyx) is limited to 1 frame a minute. Looking at work in Canada and mean amphibian velocities (Hels 2001) it is know that this frequency is too slow, certainly for Rana temporaria! The Bushnell I have would also be a really shit choice of camera to put in a tunnel.

A system that can capture images every 10/20/30 seconds is going to need a bit more work;

I like the image of time lapse with PIC, (for battery consumption), but as it's already been done with Arduino it would seem sensible to go with what's out there. Either way it just seems like a matter of physically switching the shutter button;

Stripping the IR cut filter is another well trodden path;

 Getting the images out of the camera while leaving it in situ relies on it behaving like a USB storage device - and no settings would need to be adjusted - ie 'PC mode'. maybe the intervalometer needs to be disabled during this task.

Then tie all this in with an SD card and 1-wire libraries... see earlier post.

Camera requirements that I can think of...

silent(ish) and no focussing lights
wakes up ready to take photos with last settings.
takes a 32gb SD card
IR moddable
behaves as USB storage device
wide angle lens - or will take adaptor
decent sensor - low noise in low light

Reviewing the time-lapse images doesn't seem so bad once they are compiled as a movie. I've had some success running a time-lapse movie through motion detection too, (which is why the prototype bufocam is plugged into my media player). The smart solution will be something like a simplecv script I guess - for now watching it through seems ok.

All i need now is an Arduino and a compact camera to hack apart. Any donors out there please get in touch....
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License