diy motorized moving timelapse camera dolly with a

Upload: lorddarthvader

Post on 02-Jun-2018

223 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/10/2019 DIY Motorized Moving Timelapse Camera Dolly With A

    1/17

    http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/

    Food Living Outside Play Technology Workshop

    DIY motorized moving timelapse camera dolly with Arduinoby mastelioson December 3, 2012

    Table of Contents

    DIY motorized moving timelapse camera dolly with Arduino ..............................................................................

    Intro: DIY motorized moving timelapse camera dolly with Arduino ......................................................................

    Step 1: Slider .............................................................................................................

    Step 2: Camera attachement ..................................................................................................

    Step 3: Electronics .........................................................................................................

    Step 4: Connecting the electronics ..............................................................................................

    Step 5: Top cover .......................................................................................................... 1

    Step 6: Software ........................................................................................................... 1

    Step 7: First tries and todo .................................................................................................... 1

    Related Instructables ........................................................................................................ 1

    Advertisements ............................................................................................................... 1

    http://www.instructables.com/member/mastelios/?utm_source=pdf&utm_campaign=titlehttp://www.instructables.com/tag/type-id/category-workshop/http://www.instructables.com/tag/type-id/category-technology/http://www.instructables.com/tag/type-id/category-play/http://www.instructables.com/tag/type-id/category-outside/http://www.instructables.com/tag/type-id/category-living/http://www.instructables.com/tag/type-id/category-food/
  • 8/10/2019 DIY Motorized Moving Timelapse Camera Dolly With A

    2/17

    http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/

    Intro: DIY motorized moving timelapse camera dolly with ArduinoThis is my attempt in making a dolly for a camera.Honestly my knowledge on photography is limited but I have friends helping with this part.As far as the building partgoes I can handle it.I first saw a moving video time-lapse and fell in love with it so I thought I would give it a try. There were many changes during the construction so not have step by step photos but I will do my best.

    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 oplates 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.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 morrobust.

    Image Notes1. tubes

    Image Notes1. square end

  • 8/10/2019 DIY Motorized Moving Timelapse Camera Dolly With A

    3/17

    http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/

    Image Notes1. the end bolted2. pulley for the movement

    Image Notes1. this reinforces the tubes and holds wires

    Image Notes1. another view of the slides

  • 8/10/2019 DIY Motorized Moving Timelapse Camera Dolly With A

    4/17

  • 8/10/2019 DIY Motorized Moving Timelapse Camera Dolly With A

    5/17

  • 8/10/2019 DIY Motorized Moving Timelapse Camera Dolly With A

    6/17

    http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/

    Image Notes1. finished top view.the white shim fits snug on the bolt not to let it drop throughthe hole.

    Image Notes1. all parts2. nut for the allen bolt3. shim to hold the spring4. the spring5. teflon insert6. servo base7. shims8. allen screw

    Image Notes1. all together

  • 8/10/2019 DIY Motorized Moving Timelapse Camera Dolly With A

    7/17

  • 8/10/2019 DIY Motorized Moving Timelapse Camera Dolly With A

    8/17

    http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/

    Image Notes1. smooth hub2. metallic string covered in plastic

  • 8/10/2019 DIY Motorized Moving Timelapse Camera Dolly With A

    9/17

  • 8/10/2019 DIY Motorized Moving Timelapse Camera Dolly With A

    10/17

    http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/

    3. plug to power the arduino4. pot for setting up the servo5. these 2 plugs for the reed switches6. resistors for switches7. rj45 plug and socket with the keyboard spiral wire8. silica gel9. the first board

    Image Notes1. second board2. olympus plug3. relay with diode for the shutter4. leds for power and relay operation5. switch with led for the focus6. transistor for controlling the relay.the pot is for adjusting the voltage needed7. servo plug8. to the camera9. ethernet plug

    Image Notes1. side view of the second board

    Image Notes1. donor remote2. donor remote

  • 8/10/2019 DIY Motorized Moving Timelapse Camera Dolly With A

    11/17

    http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/

    Image Notes1. the ethernet socket I had to solder wires to

    Image Notes1. reed switch for one stop2. magnet

    Image Notes1. the other reed for the other stop

  • 8/10/2019 DIY Motorized Moving Timelapse Camera Dolly With A

    12/17

    http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/

    Image Notes1. bottom view of the installed board and arduino

    Image Notes1. top view of electronics

    Step 5:Top coverFor covering it up I used an old 3.5'' hdd enclosure from cooler master.Not the best choice but I had it laying around.Used threaded rod with nuts and 4 pillars made frsquare carbon tube I had.Drilled holes for the switches and almost ready.The nice thing is that the side parts slide exposing the usb port of the arduino.

    Image Notes1. aluminum cover2. pillars3. threaded rods and bolds

    Image Notes1. bottom view with switches installed and holes drilled

  • 8/10/2019 DIY Motorized Moving Timelapse Camera Dolly With A

    13/17

    http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/

    Image Notes1. installed2. my company's logo

    Image Notes1. side view

  • 8/10/2019 DIY Motorized Moving Timelapse Camera Dolly With A

    14/17

    http://www.instructables.com/id/DIY-motorized-moving-timelapse-camera-dolly-with-A/

    Image Notes1. sliding part for exposing the usb port

    Step 6:SoftwareTo 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 versionwith 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 photoIf 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(-ofthere is a panorama function. The possibilities of movements combining the servo and dc motor are endless.

    #include #include #include

    SoftwareSerial mySerial(A3, A2); // RX, TX

    AF_DCMotor motor(4); // create motor #4, 64KHz pwmServo servo;

    int swDirFor=2; //forward buttonint swDirBack=3; //Backward buttonint swStopBeg=10; //stop1 buttonint swStopEnd=A1; //stop2 buttonint swPhoto=11; //sw relay for photoint servoPin=9; //servopinint steps=100; //step duration 1200 fotosint servoPos=96; //middle position of servo

    //int servoStart=20; //start position of servo//int servoStop=155; //end position of servoint servoPot=A0; //pin of servo potint noOfSteps=0; //count number of stepsint swFast=A5; //sw for fast movementint i=0;//for loop

    void setup() {

    mySerial.begin(9600);Serial.begin(9600); // set up Serial library at 9600 bpsservo.attach(servoPin); //servopinmotor.setSpeed(200); // set the speed to 200/255pinMode(swDirFor,INPUT);

  • 8/10/2019 DIY Motorized Moving Timelapse Camera Dolly With A

    15/17

    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 movementwhile ((digitalRead(swDirFor)==1)){if (digitalRead(swStopEnd)==0){Serial.println("BREAK stopEnd");break;}//if closewhile (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 movementwhile ((digitalRead(swDirBack)==1)){if (digitalRead(swStopBeg)==0){Serial.println("BREAK stopBeg");break;}//if closewhile (digitalRead(swFast)==1){Serial.println("FB");runMotor(1,1000);}//while swFast close

    runMotor(1,steps);// noOfSteps ++;// servoMove(160);delay(1000);//final delaytakeFoto();} //while swDirBack)==1 close

    //servo movementif ((digitalRead(swFast)==1)){Serial.println("mesa sto if");servoMove(20);delay(2000);//time to move servo to starting posfor (i = 20 ; i

  • 8/10/2019 DIY Motorized Moving Timelapse Camera Dolly With A

    16/17

    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 forwarddelay(steps);motor.run(RELEASE); // stoppedSerial.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

  • 8/10/2019 DIY Motorized Moving Timelapse Camera Dolly With A

    17/17

    Step 7:First tries and todoThese are my fist tries about 1200 photos and 1.5 hour of shutting time.Moving sea.Not the best choiceBack yard nature

    I also have a to-do list. Attaching a Metal ball headand some kind of way to attach tripods on both sides.

    I hope you have enjoyed this instructable and thanks for reading..

    Related Instructables

    Multi-daymoving time-lapse(Photos)

    by briangrabski

    3D Printed Time

    Lapse Dollyby

    DerekMellott

    DIY MotorizedPan/Tilt/DollyHDSLR VideoMount (Camera

    Slider)(video)by

    sensoryhouse

    DIY Time-lapse

    Dolly(video)by

    briangrabski

    RadioControlledCable Dolly forSmall Format

    Camerasby

    Nachimir

    Skateboarddolly for a DSLR

    by madshobye

    Advertisements

    http://www.instructables.com/member/madshobye/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Skateboard-dolly-for-a-DSLR/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Skateboard-dolly-for-a-DSLR/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Skateboard-dolly-for-a-DSLR/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/member/Nachimir/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/RC-Cable-Dolly-for-Small-Format-Cameras-and-Phones/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/RC-Cable-Dolly-for-Small-Format-Cameras-and-Phones/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/RC-Cable-Dolly-for-Small-Format-Cameras-and-Phones/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/RC-Cable-Dolly-for-Small-Format-Cameras-and-Phones/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/RC-Cable-Dolly-for-Small-Format-Cameras-and-Phones/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/RC-Cable-Dolly-for-Small-Format-Cameras-and-Phones/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/member/briangrabski/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/DIY-Time-lapse-Dolly/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/DIY-Time-lapse-Dolly/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/DIY-Time-lapse-Dolly/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/DIY-Time-lapse-Dolly/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/member/sensoryhouse/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/DIY-Motorized-PanTiltDolly-HDSLR-Video-Mount/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/DIY-Motorized-PanTiltDolly-HDSLR-Video-Mount/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/DIY-Motorized-PanTiltDolly-HDSLR-Video-Mount/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/DIY-Motorized-PanTiltDolly-HDSLR-Video-Mount/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/DIY-Motorized-PanTiltDolly-HDSLR-Video-Mount/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/DIY-Motorized-PanTiltDolly-HDSLR-Video-Mount/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/DIY-Motorized-PanTiltDolly-HDSLR-Video-Mount/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/member/DerekMellott/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/3D-Printed-Time-Lapse-Dolly-1/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/3D-Printed-Time-Lapse-Dolly-1/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/3D-Printed-Time-Lapse-Dolly-1/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/member/briangrabski/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Multi-day-moving-time-lapse/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Multi-day-moving-time-lapse/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Multi-day-moving-time-lapse/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Multi-day-moving-time-lapse/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Multi-day-moving-time-lapse/?utm_source=pdf&utm_campaign=relatedhttp://www.ebay.com/itm/170925795637?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1423.l2649https://vimeo.com/53793936http://www.youtube.com/watch?v=7JT7DX_xH-0&list=UUCCG-wNj9O9nphjW3ldUvRQ&index=1