×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Canon DSLR auto focus issues

  • Posts: 71
  • Thank you received: 2
I just tried the new method.

My overall impression is that it works better than before. A strange thing is that I have to enable viewfinder mode manualle AND to force one focus move using the indi drop-down menu (far..-near..) to get the autofocus work.

I had several runs terminating successful. Some of them really lead to an excellent focus. Most of them either terminated not too far away from the actual focus (but it was still clearly visible that the actual focus had not yet been reached) or they the algorithm was stuck hunting an apparent minimum far away from the actual focus position.

I can see the algorithm is trying to find the minimum of a complete v-curve. The principal problem is that the absolute focuser position is only a fake value, and since the lense does not return to the same position with the exact counter-command, there happen to be more than one HFR at one focus position, which makes it hard (actually impossible) to calculate a slope. Sometimes the algorithm was iterating several steps very near an excellent focus position but did not stop to finally terminate in a far worse position.

The good news is that if I start near the actual focus, it is quite probable to terminate near the actual focus, in several cases nearer to it than initially.
5 years 2 weeks ago #36244

Please Log in or Create an account to join the conversation.

  • Posts: 71
  • Thank you received: 2
Let me report some encouraging results:

I built the v-curve manually. I started in the acual focus position. At iso 800 I got an HFR of 3.9 for the optimal focus. I moved away from the optimal focus position in far3 steps, until I could see a really substancial increase of HFR. One far3 step did not change anything. The second gave a small change. The third step shifted HFR to 11.28. Since I new I had moved in far-direction I started moving inwards in near2 steps. Over the first 8 steps HFR did hardly vary. Then HFR started to decrease almost linearly until it reached a value of 3.91. Then the HFR started to increase almost linearly. I got a beautiful v-curve with a clearly visible minimum.

At HFR 12.36 I turned the direction of movement again and moved outwards again in far2 steps. Again over 8 steps nothing happened and then HFR decreased to the minimum and increased again.

At the next turnaround I tried 1 near3 before moving inward in near2 steps. Now I only had 4 backlash steps before HFR began to decrease.

Continuing this type of systematic variation I found that the change of direction should be done by two big steps in the oposite direction. This has the same effect as a instantaneous turnaround (no backlash) and about 3 steps of medium size in the oposite direction.

One safe way to reach the optimal focus position might therefore be to build the v-curve moving in equidistant steps in one direction. After the minimal HFR has been passed, one should continue at least 3 more medium steps into the same direction. Then make a turnaround with two big steps in the oposite direction and return to the minimal HFR in medium (or small?) steps.

I attach some screenshots and an excel sheet with the data I took. ...no, it won‘t let me attach the excel sheet.

One issue is, that the backlash is probably specific for different lense types.
The following user(s) said Thank You: Jasem Mutlaq
5 years 2 weeks ago #36296
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 71
  • Thank you received: 2
Here comes the zipped excel.

File Attachment:

File Name: focuser_test.zip
File Size:28 KB
5 years 2 weeks ago #36298
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 71
  • Thank you received: 2
Maybe the existing algorithm could be made working correctly if we introduce a backlash on every turnaraound, which might be adjustable. For my tamron the backlash would be 8 medium steps.
5 years 2 weeks ago #36301

Please Log in or Create an account to join the conversation.

  • Posts: 985
  • Thank you received: 160

Replied by Alfred on topic Canon DSLR auto focus issues

Today my lense does not move at all no matter what I do. It won't focus neither with or without LiveView activated. I'm unsure whether or not this is a user error.
5 years 2 weeks ago #36305

Please Log in or Create an account to join the conversation.

  • Posts: 71
  • Thank you received: 2
Try to enable view finder mode in the action panel of the indi dirver and select an item from the far3...near3 drop down menu (no matter which item you choose). This worked for me.
5 years 2 weeks ago #36306

Please Log in or Create an account to join the conversation.

  • Posts: 985
  • Thank you received: 160

Replied by Alfred on topic Canon DSLR auto focus issues

Nope, sorry. Have there been any changes to the driver lately? It did work recently, albeit moving the mirror 80x up and down. No click-clack today at all.
Last edit: 5 years 2 weeks ago by Alfred.
5 years 2 weeks ago #36310

Please Log in or Create an account to join the conversation.

  • Posts: 71
  • Thank you received: 2
I didn‘t upgrade today ...
5 years 2 weeks ago #36311

Please Log in or Create an account to join the conversation.

  • Posts: 985
  • Thank you received: 160

Replied by Alfred on topic Canon DSLR auto focus issues

Then don't do it. ;-)
5 years 2 weeks ago #36312

Please Log in or Create an account to join the conversation.

  • Posts: 985
  • Thank you received: 160

Replied by Alfred on topic Canon DSLR auto focus issues

I tried gphoto2 --shell commands and these do work. So my cam is OK. Are there any other camera settings that might prevent focusing from doing its job? Who knows, maybe I have changed some inadvertently.
5 years 2 weeks ago #36314

Please Log in or Create an account to join the conversation.

  • Posts: 985
  • Thank you received: 160

Replied by Alfred on topic Canon DSLR auto focus issues

Now focusing via Indi panel works again but the autofocus routine in Ekos won't move the lense at all. I can hear the mirror does not go up (other than for taking pictures) so it appears to me LiveView mode isn't activated at any time. Lots of pictures are being taken but they are all the same.
5 years 2 weeks ago #36338

Please Log in or Create an account to join the conversation.

Awesome data Christian! Ok, so I might either have to adjust t he Ekos autofocus algorithm, or make one special for DSLRs. I need to examine the data and see how it can accommodate that.

Will investigate this more once I get the artificial star.
5 years 2 weeks ago #36343

Please Log in or Create an account to join the conversation.

Time to create page: 1.237 seconds