Phillip James Productions

  • HomePage
  • Works
  • Blog
  • About
  • Contact

Blog

30

April

2011

Follow Focus Sketch (WIP)

In this post, I am going to detail a few of the specs of my DIY wireless follow focus.

The basic setup of the whole DIY system is this:

>A camera is mounted on
> a platform (in my case plywood) which has attached to it
> a 2 axis arm with the servo which is attached to
> a project box housing which contains
> the Arduino receiver setup

>A project box contains
> an optical encoder connected to
> the Arduino sender setup

Each arduino setup is comprised of:
1 Arduino UNO board
1 Sparkfun Xbee shield
1 Xbee wireless chip
1 9v battery connected to the Arduino

My camera focus gear is a Jag35 focus gear which can be found here if you don’t already have a gear:
Jag35 DGear

The servo is a 12 dollar mini servo I picked up from a local hobby store and the gear on the servo is a 72 tooth 32 pitch gear I purchased online (can’t remember where but there are plenty of places that sell hobby gears).

And last but not least, the code:

Sender: Code
Receiver: Code

The sender code is not perfect, but I think I have worked out all the bugs. However, when I was first learning how to read optical encoders, I went on to also learn how to use interrupts if I would ever need to use them. I ended up forgetting to take the interrupts out because they never caused me any problems but they are not needed in there. They also cause the Arduino to skip a degree when you move the encoder at a fast rate. If you simply remove the interrupt and redo the code to just read the encoder and send the +1 or -1 step, it works fine. I just haven’t gotten around to doing that yet because this is my final semester in college and finals are next week.

Also, if you make any improvements to the design/code/setup/anything else, I’d love to hear about it! Just send me an e-mail so I can update my design and post progress here.

I am a big proponent of FREE DIY resources and information, so have fun and build away! However, any donation, no matter how small, will be much appreciated and every cent will go toward funding future films and DIY projects!





  • Share this
  • Facebook
  • RSS
  • Delicious
  • LinkedIn
  • Twitter

Comments

Reply

Ismael

May 4, 2011 at 5:59 pm

Hi, I m impressed with your gear and I want to try myself but the receiver code is missing! Can you uploaded or send it to me? Thank you so much for your efforts!
Reply

Phillip

May 4, 2011 at 6:38 pm

ah, thanks for the heads up! I fixed the link and the code is up now. good luck on your build!
Reply

avtobazar

May 7, 2011 at 10:05 am

Nice topic - respect !
Reply

jake

June 1, 2011 at 5:54 am

Hi Phillip - what optical encoder are you using?
Reply

Phillip

June 1, 2011 at 9:44 pm

Hey jake, the optical encoder I decided to use is from skycraftparts.com: http://www.skycraftsurplus.com/opticalencoderhighresolutionwmountinghardware.aspx
Reply

Maxi Claudio

June 19, 2011 at 5:53 am

Hi! If you get a chance, can you list the model of the servo? I've been reading there are a lot of these and some are very noisy. Thanks. Yours seems to work fine.
Reply

swatdojo

June 25, 2011 at 4:28 pm

hey maxi, the servo i used is a Hitec HS-55 it is still a little noisy, but if you use location shotgun or boom audio it's almost impossible to hear any noise from it
Reply

david

November 8, 2011 at 12:14 pm

Hi Phillip - thanks very much for sharing your ideas here. For someone like me, a DIY is th only option that is financially feasible. But I have no idea how to wire this up as I've never done an arduino project. ANy tips and/or a wiring diagram would be greatly appreciated. Thanks for everything so far - I'm looing forward to giving it a try. Cheers.
Reply

swatdojo

November 8, 2011 at 4:44 pm

Hey david, glad it was useful for you! DIY is fun stuff and I'm glad to share whatever I can. ill put together a wiring post tonight/tomorrow and I'll shoot you an email when it's up
Reply

david

November 8, 2011 at 12:41 pm

PS - very happy to donate if you share the wiring diagrams!
Reply

Nikki

February 6, 2013 at 5:58 am

I'm using the same class in PHP and Arduino, it's working perceft. The only problem I have is that when the serial port is not available (i'm using usb to serial and sometimes it changes the port number) I get a lot of errors, I don't know how to handle them.I've tried if (!$serial->deviceOpen();) die( Error') with no sucess.How would you handle these type of errors?Congratulations on your blog!Best regards,Gabriel.
Reply

Pierre

December 5, 2011 at 11:12 pm

Hi Phillip, Thank you for sharing you knowledge. Is the arduino UNO on the receiver side compulsory? Isn't it possible to link the servo directly to a xbee adapter? The arduino UNO and the xbee shield are bulky and I am looking for ways to reduce the wff size.
Reply

Pierre

December 23, 2011 at 4:13 am

I have been searching for a silent servo and I found the MKS D95i to be almost silent! As this seems to me the most important issue, I wanted to share this finding although the cost of this sego is expensive
Reply

Rusty

January 15, 2012 at 5:21 am

Hey Great Build! I'm interested in building this DIY but with a continuous servo. I noticed the one you use is limited to 180 degrees. As far as I can tell the optical encoder is compatible. I'm new to arduino encoding. I was just wondering if you know if your code will work with a continuous servo or if I should expect to have to rewrite your code. Thanks.
Reply

David

January 22, 2012 at 2:37 pm

Hi Rusty - I've just been up all night afterfinally cracking a code which seems to be working reliably. In answer to your question, yes you will have to make small adjustments to the code - a continuos servo will continually tuen till you reset the pulse width modulation output to its equivalent of zero - do your research. It may take a while but you'll get there. A big thankyou to Phillip for his inspirational posts. It's been a long process for me but I'm finally starting to get somehwere with this project. I had to totally learn about encoders and work out my own code as Phillips didn't work for my encoder. They seem to be pretty individual beasts with there own quirks (hint - turn on internal pull up resistors within the arduino code). I used an encoder library from http://www.pjrc.com/teensy/td_libs_Encoder.html and put limits on the postion using myEnc.write to get my code working. Now for the packaging and mechanics of the receiver! Best of luck to all.
Reply

Adi Soffer

April 12, 2012 at 1:54 pm

Hey guys, I would appreciate if you could share links for servo gears and optical encoders that ship international. Servocity charges 40 bucks for a 6$ gear... And philips encoder supplier is US only... I'm working on my own DIY version and hope to post a link, schematics, code and video soon. :-)
Reply

Adi Soffer

June 19, 2012 at 6:32 pm

Hey Philip, wanted to share my own arduino FF. Not wireless for now, but works great. You can visit http://adisoffer.tumblr.com/ and get an impression. Would love to hear your thoughts!

Add Your Comment Cancel reply

Your Name *

Email Address *

Message *

* Required fields

  • HomePage
  • Works
  • Blog
  • About
  • Contact

Copyright Phillip James 2013