I am looking for adding a wide angle lens to the Raspberry Pi v2 camera. Googling helped me locate a 3D printed lens holder and lens that I can attach to the v2 camera. Now I have the M12 lens and the M12 lens holder. I am not sure how to proceed further. Should I remove the existing lens on the Raspberry Pi camera?

I tried adding the M12 lens and holder to the camera gives me blurry images.

M12 mount: M12 mount for Raspberry Pi V2 Camera

M12 lens set: M12 Lens Set with IR Cut Filter (8/6/3/2.65mm)

  • FYI an easy way to find lenses without looking at a dozen different catalogs is this free lens search tool
    – John Ellis
    Commented Dec 9, 2019 at 22:15

1 Answer 1


According to the comments section of the lensholder at Thingiverse one has to remove the PiCamera's lens. Note that removing the lens makes the camera susceptible to dust and damage. Be extra careful with the open sensor.

tracyaf_2 Aug 31, 2017

This works excellent. FYI you will have to take out the existing Pi Camera Lens


vaqueram - in reply to GaugeTheory Feb 14, 2018

Yes, there is, you'll have to remove it. Its not the easiest thing in the world, but its completely doable. I would recommend you print a Pi camera lens spanner, such as this one : https://www.thingiverse.com/thing:1574661 You print two of these, one to hold the body, the other to unscrew the lens.

Be careful though, once you remove the lense, the CMOS sensor is completely unprotected and vulnerable to even the smallest speck of dust.

Further reading on "de-caping" the PiCamera:


  • I am confused. Why not buy a wid angle lens? aliexpress.com/w/… google.com/…
    – tlfong01
    Commented May 4, 2019 at 13:06
  • @tlfong01 what can I say? Not more than that is just not what the OP asked for?
    – Ghanima
    Commented May 5, 2019 at 19:42
  • Thank for your reply. Your double negative statement confuses mea bit. Let me translate it to something like this - "I cannot say more than the OP asks". I remember one year ago when I first joined this Q&A site, many of my answers were told to be irrelevant, or out of topic. If this is Rpi SE's policy, I fully agree with you.
    – tlfong01
    Commented May 6, 2019 at 12:28
  • @tlfong01 I fail to get your point. The OP asks how to use a M12 lens (that he already purchased) with a M12 lensholder (that he already printed) and the PiCam, more specifically if he needs to remove the original lens. This is what my answer addresses. Obviously your alternative to use a wide angle lens that directly fits the PiCam would be another way to go. There is likely no harm in including that alternative as part of this answer or have another user post another answer. If you ask why did I not include that option, the answer is simple: I did not think of it in the first place.
    – Ghanima
    Commented May 6, 2019 at 14:00
  • @Ghanima If there is a wide-angle lens I can use with the pi cam v2, kindly let me know of it. It will save me of the headache of having to print and fit the m12 lens holder.
    – 55597
    Commented Nov 15, 2019 at 8:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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