Professional Documents
Culture Documents
Living
Outside
Play
Technology
Workshop
Table of Contents
DIY motorized moving timelapse camera dolly with Arduino . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Step 1: Slider . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Step 3: Electronics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/
Step 1: Slider
The basic slider consists of two 10mm aluminum tubes about a meter long and two wider tubes sliding over them.I have made teflon inserts for a smoother slide.
Attached on the two wider tubes is an aluminum base for the moving base of the camera.At the end of the tubes there is a square tube bolted at one side and couple of
plates with bolts on the other side holding the tubes aligned and acting as a base for the motor and wiring. In retrospect this was not the best way to go with the slider. I
had problems with the alignment and at some point the slider got stuck and had to reinforce it in order to "hold" the alignment.So ready slider would be better and more
robust.
Image Notes
1. tubes
Image Notes
1. square end
http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/
Image Notes
1. this reinforces the tubes and holds wires
Image Notes
1. the end bolted
2. pulley for the movement
Image Notes
1. another view of the slides
http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/
Image Notes
1. wider tube
2. teflon insert
Image Notes
1. rubber insert
2. top bracket
http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/
Image Notes
1. the bolt for the camera.a rod fitted through a hole in the head makes it a
thump screw
Image Notes
1. side view.the threaded rod
http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/
Image Notes
1. finished top view.the white shim fits snug on the bolt not to let it drop through
the hole.
Image Notes
1. all parts
2. nut for the allen bolt
3. shim to hold the spring
4. the spring
5. teflon insert
6. servo base
7. shims
8. allen screw
Image Notes
1. all together
http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/
Image Notes
1. the servo arm extension
Image Notes
1. the servo in its place.I could use a better servo but I had this so..
Step 3: Electronics
The basic electronics are an
arduino
an Adafruit Motor shield
a High Torque 15RPM 12V DC Geared Motor dc motor
a 3-step toggle switch for direction movement
a led toggle switch for main power
a pushbutton
2 reed switches for the stops
and some electronic components,relays etc.
At first I had a stepper motor I wanted to use but it draw way to much current for both the shield and the battery so I switched to the dc geared.It does the job great and
draws way less current. It's coupled with a smooth hub pulley taken from an old photocopier and uses a smooth belt/string also from a photocopier,the scanner part.Its
basically a metallic string covered in plastic.
For the motor shield I found the unused pins and soldered pins for ease of use and to be able to be removed and disconnected if needed.Plus the +5v and ground for
switches and staff.
http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/
Image Notes
1. smooth hub
2. metallic string covered in plastic
http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/
Image Notes
1. soldered pins
2. soldered pins
3. 5v and ground
4. external power for the shield
5. external power for the arduino
6. motor wires
Image Notes
1. lm7805 with heatsink for relay and servo.
2. lm317 with pot for 9v for the arduino and power led
http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/
Image Notes
1. second board
2. olympus plug
3. relay with diode for the shutter
4. leds for power and relay operation
5. switch with led for the focus
6. transistor for controlling the relay.the pot is for adjusting the voltage needed
7. servo plug
8. to the camera
9. ethernet plug
Image Notes
1. side view of the second board
Image Notes
1. donor remote
2. donor remote
http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/
Image Notes
1. the ethernet socket I had to solder wires to
Image Notes
1. reed switch for one stop
2. magnet
Image Notes
1. the other reed for the other stop
http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/
Image Notes
1. bottom view of the installed board and arduino
Image Notes
1. top view of electronics
Image Notes
1. bottom view with switches installed and holes drilled
Image Notes
1. aluminum cover
2. pillars
3. threaded rods and bolds
http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/
Image Notes
1. side view
Image Notes
1. installed
2. my company's logo
http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/
Image Notes
1. sliding part for exposing the usb port
Step 6: Software
To the software then!It is a work in progress but you get the idea.The code is not the best but I have many comments for ease of making changes.I also had a version
with bluetooth sending info to my android phone but it was an overkill..
So, when you flip the switch in one direction on the other and if the camera has not triggered the corresponding reed switch the camera starts moving and taking photos.
If you press the button while moving,the camera starts moving fast,for debugging purposes. Also If you press the button while the 3-state toggle switch is in middle(-off)
there is a panorama function. The possibilities of movements combining the servo and dc motor are endless.
#include <AFMotor.h>
#include <Servo.h>
#include <SoftwareSerial.h>
SoftwareSerial mySerial(A3, A2); // RX, TX
AF_DCMotor motor(4); // create motor #4, 64KHz pwm
Servo servo;
int swDirFor=2; //forward button
int swDirBack=3; //Backward button
int swStopBeg=10; //stop1 button
int swStopEnd=A1; //stop2 button
int swPhoto=11; //sw relay for photo
int servoPin=9; //servopin
int steps=100; //step duration 1200 fotos
int servoPos=96; //middle position of servo
//int servoStart=20; //start position of servo
//int servoStop=155; //end position of servo
int servoPot=A0; //pin of servo pot
int noOfSteps=0; //count number of steps
int swFast=A5; //sw for fast movement
int i=0;//for loop
void setup() {
mySerial.begin(9600);
Serial.begin(9600); // set up Serial library at 9600 bps
servo.attach(servoPin); //servopin
motor.setSpeed(200); // set the speed to 200/255
pinMode(swDirFor,INPUT);
http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/
pinMode(swDirBack,INPUT);
pinMode(swStopBeg,INPUT);
pinMode(swStopEnd,INPUT);
pinMode(servoPin,OUTPUT);
pinMode(swPhoto,OUTPUT);
pinMode(servoPot,INPUT);
pinMode(swFast,INPUT);
digitalWrite(swPhoto,LOW);
servoMove(servoPos);
}
///////////////////////////////////////////////////////////////
void loop() {
if (mySerial.available()){
mySerial.write('a');
//mySerial.print("button stop end: ");
//mySerial.println(digitalRead(swStopEnd));
}
Serial.print("button state for: ");
Serial.println(digitalRead(swDirFor));
Serial.print("button state back: ");
Serial.println(digitalRead(swDirBack));
Serial.print("button stop Beg: ");
Serial.println(digitalRead(swStopBeg));
Serial.print("button stop end: ");
Serial.println(digitalRead(swStopEnd));
Serial.print("servo pot: ");
Serial.println(analogRead(servoPot));
Serial.print("Fast switch: ");
Serial.println(digitalRead(swFast));
servoPos=map(analogRead(servoPot), 0,1024,1,180);
servoMove(servoPos);
//forward movement
while ((digitalRead(swDirFor)==1)){
if (digitalRead(swStopEnd)==0){
Serial.println("BREAK stopEnd");
break;
}//if close
while (digitalRead(swFast)==1){
Serial.println("FF");
runMotor(0,1000);
}//while swFast close
noOfSteps ++;
runMotor(0,steps);
delay(750);//final delay(2k-1hour)
takeFoto();
} //while swDirFor)==1 close
//backward movement
while ((digitalRead(swDirBack)==1)){
if (digitalRead(swStopBeg)==0){
Serial.println("BREAK stopBeg");
break;
}//if close
while (digitalRead(swFast)==1){
Serial.println("FB");
runMotor(1,1000);
}//while swFast close
runMotor(1,steps);
// noOfSteps ++;
// servoMove(160);
delay(1000);//final delay
takeFoto();
} //while swDirBack)==1 close
//servo movement
if ((digitalRead(swFast)==1)){
Serial.println("mesa sto if");
servoMove(20);
delay(2000);//time to move servo to starting pos
for (i = 20 ; i <= 155 ; (i=i+27)){
//Serial.println("mesa sto for");
servoMove(i);
delay(2000);
takeFoto();
http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/
delay(100);
noOfSteps++;
}//for close
}//if close
delay(500);
Serial.print("steps: ");
Serial.println(noOfSteps);
}//loop close
// Routine for movement/////////////////////////////////////////
void runMotor(int dir,int steps){
switch (dir){
case 0:
Serial.println("Forward ");
motor.run(FORWARD); // turn it on going forward
delay(steps);
motor.run(RELEASE); // stopped
Serial.println("Stop Forward");
break;
case 1:
Serial.println("Backward");
motor.run(BACKWARD);
delay(steps);
motor.run(RELEASE);
Serial.println("Stop Backward");
break;
}//switch close
//delay (100);
}//runMotor close
//Routine foto//////////////////////////////////////////////////
void takeFoto(){
//delay (500);
Serial.print("CLICK!!! ");
digitalWrite(swPhoto,HIGH);
delay(1500);
digitalWrite(swPhoto,LOW);
}//takeFoto close
//Routine servo//////////////////////////////////////////////////
void servoMove(int pos){
servo.write(pos); // tell servo to go to position in variable 'pos'
Serial.print("servo move to: ");
Serial.println(pos);
delay(150); // waits 15ms for the servo to reach the position
}//servo close
http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/
Related Instructables
Multi-day
moving timelapse (Photos)
by briangrabski
3D Printed Time
Lapse Dolly by
DerekMellott
DIY Motorized
Pan/Tilt/Dolly
HDSLR Video
Mount (Camera
Slider) (video) by
sensoryhouse
DIY Time-lapse
Dolly (video) by
briangrabski
Radio
Controlled
Cable Dolly for
Small Format
Cameras by
Nachimir
Skateboard
dolly for a DSLR
by madshobye
Advertisements
http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/