Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 2.96 KB

README.md

File metadata and controls

47 lines (34 loc) · 2.96 KB

DSLR Automation

To automate DSLRs, I use gPhoto as a library and as a CLI (simple as, apt-get install gphoto).

Focusing on the Stars

Getting crisp focus on stars with a DSLR is a pain in the neck! We need autofocus for long exposures. I don't care if it takes 20 min, as long as I can be kissing Tracey under the stars while the machines autonomously take care of the tedious setup.

Why not Infinity?

Just like in robotics, the math never matches reality "Infinity" ≠ ∞. Heat/cold causes things to change. Cameras are made to go "to infinity, and beyond!" so that autofocus PID controller can overshoot, etc. It changes by a couple microsteps throughout the night even. Even once automated, it's not perfectly repeatable because of backlash in the motor - have to approach from same direction and completely reset if it overshoots. All the same stuff as in robotics.

Manual Solutions

Some manual suggestions include autofocusing on a distant street lamp or the moon if it's out, or to manually focus on a distant mountain during the day and then don't touch it until nighttime. Otherwise, you get is as close as possible by eye and then take many test shots.

Automated Solution

I'm looking into algorithms to determine focus quality, but at the very least for now we can use this bash script to take test shots from which to choose the best setting. Then, use this script to experiment with ISO, aperture, shutter speed, ... Finally, capturing the sky with this one.

Example

Notice that ∞ is indeed blurry and it's not until about ∞-14 that it becomes clear. These are in microsteps ("Near1", smallest allow by Canon):

  • Focus test ∞
  • ∞-1 Focus test ∞-1
  • ∞-2 Focus test ∞-2
  • ∞-3 Focus test ∞-3
  • ∞-4 Focus test ∞-4
  • ∞-5 Focus test ∞-5
  • ∞-6 Focus test ∞-6
  • ∞-7 Focus test ∞-7
  • ∞-8 Focus test ∞-8
  • ∞-9 Focus test ∞-9
  • ∞-10 Focus test ∞-10
  • ∞-11 Focus test ∞-11
  • ∞-12 Focus test ∞-12
  • ∞-13 Focus test ∞-13
  • ∞-14 Focus test ∞-14
  • ∞-15 Focus test ∞-15
  • ∞-16 Focus test ∞-16
  • ∞-17 Focus test ∞-17
  • ∞-18 Focus test ∞-18
  • ∞-19 Focus test ∞-19
  • ∞-20 Focus test ∞-20

Stary night