sonof
Posts: 21
Joined: Tue Apr 10, 2018 12:12 pm

Re: M12 lens adapter for camera module

Wed Aug 29, 2018 1:47 pm

Thank you again for your help in my topic,

I have a question for you.

I can see that in your picture, you had a problem similar to mine: The pink halo when you remove the original lens and put a new one.

How did you manage to get rid of it in the last pictures you posted? I suspect it was due to reflection of the IR filter in the shiny plastic thread for the original lens, so by cutting it, no more reflection? Or is it an automated correction from the raspberry that you manage to disable?

Regards,

Martin

User avatar
HermannSW
Posts: 1573
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: M12 lens adapter for camera module

Wed Aug 29, 2018 2:02 pm

> How did you manage to get rid of it in the last pictures you posted?
>
I did nothing but mounting a new lens as is without any change in hardware or software and take the images with lens in focus.
⇨https://stamm-wilbrandt.de/en/Raspberry_camera.html

https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://gitlab.freedesktop.org/HermannSW/gst-template
https://github.com/Hermann-SW/fork-raspiraw
https://twitter.com/HermannSW

sonof
Posts: 21
Joined: Tue Apr 10, 2018 12:12 pm

Re: M12 lens adapter for camera module

Wed Aug 29, 2018 2:08 pm

For example here:

Image

We can see this pink halo

Do you still see it in your pictures?

Someone talk about it here, but no solution found yet...

https://raspberrypi.stackexchange.com/q ... -falsified

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7411
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: M12 lens adapter for camera module

Wed Aug 29, 2018 2:25 pm

https://www.raspberrypi.org/forums/view ... 3&t=190586

If you believe your lens has absolutely no vignetting (unlikely), then you can just use the simple override to just disable the stage https://www.raspberrypi.org/forums/view ... 3&t=175711
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

User avatar
HermannSW
Posts: 1573
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: M12 lens adapter for camera module

Sat Jan 19, 2019 12:06 pm

HermannSW wrote:
Thu Mar 22, 2018 7:47 pm
I did it -- although I only have one v2 camera, I did remove its lens, did cut notch into M12 lens mount with Dremmel, screwed it on v2 camera module and put in f6.0mm 65° lens.
While you can buy cheap v1 NoIR cameras with M12 lens mount and lens and therefore don't need to connect the M12 mount to your v2 board yourself as described, I am not aware of v2 cameras sold with M12 mount.

If you have a Raspberry v2 camera, want to play with M12 mount lenses and don't want to do what I described, there is an alternative. You can buy a 15$ free shipping imx129 with M12 mount and M12 lens to start with:
https://www.raspberrypi.org/forums/view ... 5#p1418635
Image


This is how it gets mounted on your existing v2 board after you removed your existing imx219 sensor:
Image


After having done this, you can replace the 160° M12 lens with any M12 lens you want to use.

The most difficult part was definitely to unscrew the existing v2 camera lens -- not sure whether it would be possible to put back. But what I have seen sofar with M12 mount lenses there is no reason to go back.
There is another way to get back to imx219 sensor with small builtin lens as the original v2 camera. And the replacement lens can be used while M12 mount is still in place, allowing for quick switch between original lens and M12 lens sensor:
https://www.raspberrypi.org/forums/view ... 5#p1415353
Image
⇨https://stamm-wilbrandt.de/en/Raspberry_camera.html

https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://gitlab.freedesktop.org/HermannSW/gst-template
https://github.com/Hermann-SW/fork-raspiraw
https://twitter.com/HermannSW


Return to “Camera board”