Jump to content

Motorised lens cap


Recommended Posts

Not sure if this is a bit of a gimmick project but decided to do it after I found a couple of leaves in the telescope after a night's imaging session which had left marks on the lens. it was a fun build though.

Parts needed:

3D printer or the ability to have parts printed
Nema 11 stepper with 5:1 planetary gearbox
Arduino
8825 Strpper controller.
100uf Capacitor
Cable

Motor Housing

motorholder.JPG.16034419eef63a9dfdeca66f001523b4.JPG

Lens cover

lenscap.JPG.7d143efca54df51b559fddbed0e926e3.JPG

assembled

4856F564-A076-4086-B48B-714EE5C4E3E2.jpeg.b8a61d73935424b7b2ad59cd8cab8ff5.jpeg78BD5A7F-6696-4D18-AC37-50808D473A41.jpeg.6929be3b88cf34f806d2ca52f997356f.jpeg

The code for the arduino lives here https://github.com/wyvernp/Auto_lens_cover/tree/main

Wiring diagram

 

image.png.9afdaa022ddd2988b32260e20a3917eb.png

(credit https://www.instructables.com/Controll-a-Stepper-Motor-With-the-DRV8825/ )

To connect to the stepper from a windows PC launch powershell and use the following commands (substituting the correct com port)

$port= new-Object System.IO.Ports.SerialPort COM6,9600,None,8,one
$port.open()
$port.Write("c")
$port.Close()

I have created a basic VB.net app for opening and closing the lens cap

image.png.0ea8b72f3190d26440e46c99196fc15f.png

https://od.lk/d/NjJfMTk0NTg1MTdf/AstroUI.zip

Send o to open the cap and c to close.

And the finished result.

Wyvern

  • Like 6
Link to comment
Share on other sites

That is really very clever. In Cornwall with our maritime climate, our better seeing often does not start until after midnight, and imaging sessions go very late.. This looks like a useful project to pursue.

Would you be happy to share any of the 3d print related files?

 

Many Thanks

 

Ross

ps just built 3 Myfocuser2 units this weekend and now printing off boxes and brackets for these.

 

Link to comment
Share on other sites

  • 4 weeks later...

I would like to do something like that for my lenses but I want to swap dew shield for a light tight lens cap and that isn't easy.  3D filaments are not opaque.  The idea would be to be able to switch to doing darks without going out to the observatory.  OTOH it isn't that much problem to walk the 20 yards to the obsy!! And the exercise is good for me.

Link to comment
Share on other sites

Posted by: @Gina

I would like to do something like that for my lenses but I want to swap dew shield for a light tight lens cap and that isn't easy.  3D filaments are not opaque.  The idea would be to be able to switch to doing darks without going out to the observatory.  OTOH it isn't that much problem to walk the 20 yards to the obsy!! And the exercise is good for me.

It may be worth waiting for John to test the black3.0 paint, if that blocks the light then it may be the way to go. I also put a layer of self adhesive black felt on the underneath of the lens cap which helps. I tend to do my darks by taking the camera off and put it in the fridge with a cap on so haven't tried with the lens cap setup.

Link to comment
Share on other sites

Posted by: @Wyvern
Posted by: @Gina

I would like to do something like that for my lenses but I want to swap dew shield for a light tight lens cap and that isn't easy.  3D filaments are not opaque.  The idea would be to be able to switch to doing darks without going out to the observatory.  OTOH it isn't that much problem to walk the 20 yards to the obsy!! And the exercise is good for me.

It may be worth waiting for John to test the black3.0 paint, if that blocks the light then it may be the way to go. I also put a layer of self adhesive black felt on the underneath of the lens cap which helps. I tend to do my darks by taking the camera off and put it in the fridge with a cap on so haven't tried with the lens cap setup.

Good idea Wyvern.  With opaque plastic I could leave the dew shields on and cap the open end like you have done.

 

Link to comment
Share on other sites

  • 2 weeks later...

Wyvern I have printed your design off, rather nice. Awaiting the geared NEMA11 motor but that should be here soon. I have fitted a small EL panel (12volts) inside the lenscap and that seems to have the benefit of making a better cap for darks and also the capacity to take lights.

I am flashing up an uno R3 for the code but I am having trouble reading your photo/schematic. I can see from the code that pins 2 is direction, pin 3 step there is a 3rd wire... is that the ground? or what pin on the UNO should it go to..

 

Thanks

Ross

 

ps seems to go to the enable pin on the stepper controller?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...