I use a Canon 77D with a 24mm 2.8 STM lens. If I set the camera to back-button focusing, focus, then take a short series of shots, everything looks fine. But if I leave the camera in timelapse mode (the one built into the camera), focus slowly drifts away and after a few minutes the shot is no longer in focus.

Is this the expected behaviour or do I have a faulty lens/camera?

  • How is your camera oriented? Is the lens' optical axis parallel to the horizon? Pointed up? Down?
    – Michael C
    Jul 29 '18 at 4:02
  • @MichaelClark camera was set straight on a tripod, optical axis at about 45 degrees down towards the ground. Jul 29 '18 at 4:08
  • Have you tried it with the camera level? Does it still drift?
    – Michael C
    Jul 29 '18 at 5:42
  • @MichaelClark I haven't tried yet, but would it be normal for the focus to drift if the camera is not level? If so, do people just leave autofocus on for timelapse shots? Jul 29 '18 at 5:44
  • That depends on the people and the specific way the lens is designed. There are ways to prevent focus creep just as there are ways to combat zoom creep. But first you need to confirm that is the cause of your issue.
    – Michael C
    Jul 29 '18 at 5:46

The vibration from the mirror, shutter, and aperture diaphragm might be assisting gravity in pulling the lens' focusing elements out of focus. If so, the point of focus should drift closer to the camera when pointed down and further from the camera when pointed upward. As the focusing elements of the lens extend, the point of focus gets shorter. As the focusing elements retract, the point of focus moves towards infinity.

This is not uncommon with the zoom elements of zoom lenses or the focusing elements of lenses with heavier glass. It's a little less expected with a lightweight lens such as the EF-S 24mm f/2.8 STM. Further complicating things is the fact that this is an STM lens.

With conventional manual focus only, micro-motor, or USM lenses one popular solution is to immobilize the focusing ring using tape or a large elastic band in the same way one would immobilize a zoom ring to prevent zoom creep. The direct mechanical link between the focusing ring and the focusing elements prevents, or, at the very least, minimizes, movement of the lens elements.

But with STM lenses there is no direct connection between the focusing ring and the focus elements in the lens. It's all focus-by-wire. When the focusing ring is moved the movement is measured by an electric sensor, a signal is sent to the camera body which then sends a signal to the lens to move the focusing elements using the same stepper motor that the AF system uses to move the lens. The only time moving the focusing ring of STM lenses does anything is when metering is active. If the camera is turned off, on standby, or metering has timed out then turning the manual focus ring does nothing. Presumably this means the AF motor is only energized when metering is active.

If your timelapse is set up so that the interval between each shot is longer than your camera's metering timeout, then there are periods between each shot when the AF motor is not energized.

Based on the description of your experience, it also seems that when AF is not activated via the shutter button the AF motor may not be actively engaged to hold a position even when metering is active. This essentially leaves the lens elements that move to adjust focus free to drift.

Without having a copy of the EF-S 24mm f/2.8 STM to examine and experiment on, it's hard to say what the best approach would be to prevent movement of the lens elements during a timelapse. If the part of the lens that extends and retracts as the focus distance is changed is out far enough, you might try to fix it in place with gaffer's tape. If your focus distance is such that the center part of the front group is not extended, then finding a way to fix the focus position may be more difficult with that particular lens.

The optional lens hood for the EF-S 24mm STM (The ES-52 for the EF 40mm f/2.8 STM 'Pancake' discussed in this question works similarly) would give you an extension of the inner barrel that contains the front elements. Presumably so would anything else that could attach to the threads for the hood that don't interfere with the optical path.

  • If I leave AF on, everything is fine. Only switching to manual focus or enabling back button focusing causes this issue. Jul 29 '18 at 7:58
  • @JonathanReez Which is pretty much what the answer says. The STM focus motor is in "neutral" with no "parking brake" applied when AF/MF is left off for too long.
    – Michael C
    Jul 29 '18 at 17:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.