Master Any Lighting Setup With The Help Of set.a.light 3D

PiLapseRails: Making a motorized time-lapse slider using RaspberryPi

9/13/2016 ISO 1200 Magazine 1 Comments

Today we have the pleasure to feature " PiLapseRails // RaspberryPi Time-lapse Rails". An article written by Joosep Kõivistik  (website), we hope you enjoy with this fantastic DIY project

Spent some time building a motorized time lapse rails using RaspberryPi… and then used even more time writing the software for it :)

When looking into time lapse sliders, I ran across David Hunt’s post on building a DIY version using Raspberry PI. The article was quite nice with a lot of information on the hardware… i however did not want to buy an extra touch screen as was used in that build and running it through command line sounded pretty insane, so i went on to a quest to do something about it :) A couple of evenings later, there was a solution… I put together a little web app that runs on a nodeJS server on the PI which can then be accessed through the browser on your mobile device if it is sharing its wifi with the raspberry.

PiLapseRails: Making a motorized time-lapse slider using RaspberryPi

And since i also had hell of a time trying to piece the whole picture together when building the hardware, then i also figured i should create a dumb down guide which someone with very little knowledge on the subject should be able to follow (there was lots of information on david’s post but it was pretty scattered between 3 posts on several pages, with some info in the comments section and some completely missing… so i had to figure a lot of things out on your own and fill in the caps where i was missing missing something)

Controller software

The software I built can be found in here:

On that page you can find all the steps you need to go through to get it running on your raspberry along with some more information on how it works/can be used, etc.
in general, there's a few worthy features:

  • Remembers settings across sessions (after you restart)
  • Configure rail length (will limit the movement accordingly)
  • Shots/time/inteval estimation & feedback (according to the rail length)
  • configure a lapse by setting the direction, motor length & “wait” length
  • bulb mode which lets you define shutter speed
  • test shot (when youre testing bulb mode)
  • loop (will keep on lapsing back and fourth on the rail)
  • manual motor controls (move back / fourth)
  • flip motor pins
  • etc

Web interface to control the slider using your mobile.

And here's a sample of some time lapses I've done:

Active components | the important stuff

PiLapseRails // RaspberryPi Time-lapse Rails

The whole assembly will look something like this:

In my layout, there is one extra circuit for “focus” since David referenced Per Magnusson who claimed that Nikon’s remote trigger is trickier than canon and you need to trigger focus,wait for 300ms and then trigger shutter…maaaybe it depends on your model but in my case (Nikon D7000), it was enough to just connect both focus and shutter of the remote cable to the shutter circuit and as long as the camera was set on manual focusing mode (on the lens or body), it had no problems shooting…

Since I did have the circuit built already, i still left it in and added the logic to the software so you can even select how long you want to focus (maybe if you wanted to use auto settings in case lighting condition were changing a lot?) although the actual lens focus should really be off on time lapses since it is really visible if it shifts around… (been there, done that, had some ruined footage).

If you are planning to be shooting on manual (which you should) then just screw the focus part and ignore it on canon, while on nikon, just connect both focus and shutter to the shutter circuit. As for the rest of the cameras brands… who knows?

The trickiest thing for me in the whole electronics build was figuring out how to connect the mosfet transistor since on normal electrical diagrams (meant for people who actually understand the stuff) the transistor symbol looked very similar to the actual component along with its 3 legs but they really did not reflect the reality… theres a a specific way to read it instead, which i could not get my head around for a while :P

All you need to do is look at the technical document for your specific component to see which of the 3 legs are source, gate and drain. Drain is basically positive, source is negative and “gate” is what enables/disables the connection when power is applied to it

The whole circuit should look like this (the mosfet image is specific to the one i used… they should be more or less similar but check your technical doc first.. often on ebay or google the model number):

(using the “back plate” for drain instead of the middle leg since it was absent on this model)

and to give an idea of the size of the components:

Rails and slider | The tricky improvising part

This really depends on what tools and materials you have in hand… in general, you should have at least a drill, few drill bits and the basic stuff like pliers/monkey wrench, etc

In my mind, the cleanest and most stable way of doing the rail is to got to the local hardware store and get:

  • 2x 20mm*1m aluminium tubes
  • 1x 25mm*25mm*0.5m aluminium square tube
  • 20mm drill bit or step cone drill bit
  • 6mm (6m) bolts/nuts/drill

Now cut 2 pieces of the square tube, mine were 12 cm but up to you, mark the center line and make holes at exact same distance on each piece.. then you can slide the pipes through them and to make it more solid, drill vertical holes for each tube and add polts/nuts to fasten it all up

Looks kinda like this (used thinner square tube since i had it on hand but wider will be more stable)

As for the slider itself, you can invent what ever the hell you want (which i did) but in retrospective, i think the easiest and most professional looking solution would have been to just order linear ball bearings (didn't know about them until my friend saw what i had done and then pulled one out of his tool box and said “this could work as well”)

This just needs extra:

The whole setup would look kinda like this:

In case you want to cheap out instead and build something on your own, theres many ways, heres a few of my ideas for the layout:

This is how my solution looked like…

diy slider raspberry pi time lapse

And to attach the belt, just use some more bolts and the mounting is totally up to you.. .you can use some static legs, extra tripods, environment, etc

The pulley part itself is fairly simple.. i drilled the engine through the slider plate, attached it with a screw, then i had 2 ball bearings placed a bit lower to create create tension and guide the belt so it would have enough friction to pull heavy loads.

In case the system you build is in one piece, just attach the belt permanently. i do that on one side by “stitching” the belt with a solid copper wire but since my system comes apart in order to pack it into a smaller form (the rails can be screwed in half!) then the other side i just fasten with a paper clamp around a spare pulley which creates some extra tension… still trying to come up with a better solution but it works for now.

For housing all the electronics, i used a tin box that my wristwatch came with… fairly easy to work with and with all the plugs and switches in the bottom, it is fairly weather proof… just need to make sure that all the circuit boards are isolated since the metal body is able to conduct current!

The battery I strapped on with velcro and I used a ballhead from an old tripod

And the end result looks something like this:

This article and all the images were originally published on Joosep Kõivistik´s blog (here) and shared with his permission

About Author:

My name is Joosep. I am a frontend developer from Copenhagen, Denmark. I cover most of the bases from UI Design. I started my blog since I used to take a lot of photos which just ended up in some random folder on my hard drive…
Let's Get Connected: Website | Facebook | Linkedin

Get Latest Videos,Promotions & Exclusive Offers Via Email:

We don't send spam!


Unknown said...

You are awesome, thank you so much for posting this. I found the original article you referenced and had no idea how to start and this was exactly what I needed! I am ordering the parts as we speak!