Shop OBEX P1 Docs P2 Docs Learn Events
Turn one time-lapse camera into many at low cost — Parallax Forums

Turn one time-lapse camera into many at low cost

xanaduxanadu Posts: 3,347
edited 2012-06-19 22:07 in Robotics
This is the first time-lapse video I have made. I took it up a notch and built a BASIC Stamp pan base. It has a photo diode coupled to the red status LED on the front of the GoPro. After the GoPro takes a pic in time lapse mode the LED flashes. After a half second wait the servo then moves to the next position.

You will need to be able to manipulate files on your computer very well to do this. At a minimum to sort out the photos you can script a keyboard macro to rename every other or third ect. file with a letter prefix by using arrow keys and keyboard shortcuts to rename the file.

Anyway here it is, with two angles.

[video=youtube_share;ozZPIc2vSiQ]
' {$STAMP BS2}
' {$PBASIC 2.5}

time VAR Word
pos VAR Word
ledstat VAR Word

pos = 0

DO

GOSUB gledstat

IF ledstat => 1000 AND pos = 0 THEN GOSUB position1

IF ledstat => 1000 AND pos = 1 THEN GOSUB position0

LOOP

gledstat:
 HIGH 2
 PAUSE 1
 RCTIME 2, 1, ledstat
 RETURN


position0:
 PAUSE 500
  FOR time = 0 TO 40
  PULSOUT 12, 500
  PAUSE 20
  NEXT
 pos = 0
 ledstat = 0
 RETURN


position1:
 PAUSE 500
  FOR time = 0 TO 40
  PULSOUT 12, 1000
  PAUSE 20
  NEXT
 pos = 1
 ledstat = 0
 RETURN

Sign In or Register to comment.