Public Lab Research note


This is an attempt to build an upgrade.

Add a high-quality webcam to your Community Microscope kit using LEGO

by warren | October 24, 2018 18:25 24 Oct 18:25 | #17386 | #17386

(or to another microscope, of course!)

We're seeing some amazing results from the Raspberry Pi cameras, and doing some really interesting work on making them easier to use (See #pi-camera and #pi-builder). But there are a couple steps we just aren't 100% sure everyone wants to do -- like removing the tiny tiny lens, and getting the camera WiFi working. So we're offering a great quality USB webcam (one we've been using ourselves) that's just easy plug-and-play, at much higher quality than the basic kit. I hope this makes sense!

To order a kit with a nicer webcam, click here.

Here are some photos of how this webcam board -- available for around $45 on Amazon -- can be mounted using some Legos and a 3d printed adapter (https://github.com/publiclab/community-microscope) to work with the modular Community Microscope system (or another microscope!)

There are definitely trade-offs, and the Raspberry Pi camera is better resolution -- but this is very easy to mount and start taking photos.

First, you can flip the lens like with the basic kit webcam and the results are really very good:

image description

This image is terribly lit, but shows the resimage description

Alternative build for some webcams

Some folks got webcams with a wider flange on the lens, so it wasn't nearly as easy to tape upside down. If you're building with the microscope lens, no worries. But if you want to do the flipped-lens version, we've included a little adapter to make your life easier. You'll be able to unscrew the lens like this, and insert it into the adapter upside down:

image description

Then you'll use double-sided tape to attach the adapter to the board. You can also use hot glue -- just be sure it's centered above the sensor!

image description

Lego frame

Here is the Lego frame build process! See how we've staggered the supports under the webcam board to ensure the cable fits. And note that if you're using a microscope lens instead of the flipped lens, you'll just have the bare sensor with no lens, though these photos show the taped-upside-down lens:

image description

Microscope lens adapter

Here it is with the adapter to the microscope lens, which you can use double-sided tape to affix to the top of the Lego frame:

image description

And with a 40x lens, again with terrible lighting and focus (i'm just trying to show magnification here, i'm sure you can easily do better!):image description

And here's another photo of how the base is built. We'll post more build photos soon as we continue to test this out, and I'm also sure it'd be improved by some black paper or aluminum foil being wrapped around to reduce stray light:

image description

Finally, for comparison, here's the photo of the adaptor mounted directly to the Raspberry Pi, which works great, but there are a few extra steps to remove the Pi lens, which is extremely small:

image description

Light blocking

We've included a few pieces of Lego as well as some black paper to help you shield your sensor from ambient light. There should be enough legos to cover all sides with Lego -- or you can make a "house" from the black paper:

image description

image descriptionimage description


I did this Help out by offering feedback! Browse other activities for "microscope"


People who did this (0)

None yet. Be the first to post one!


11 Comments

Here's the 3d model for the adapter for the alternative "wider flange" webcams -- @Bronwen :

https://github.com/publiclab/community-microscope/blob/master/LTAZ6_fisheye-adapter_v2.gcode

@bronwen @warren is there any chance these files exist as STL? Thanks!

Is this a question? Click here to post it to the Questions page.


Oh gosh, well it's not super nice, and i think we may literally just have crudely stretched them to make gcode, but, the original is here: https://github.com/publiclab/community-microscope



thank u @warren! Going to try it out, unfortunately are makerbot doesnt take gcode which is a lil surprising but I guess cause its a newer model


Hey @warren the .stl file doesn't look like the 3D printed adapter in ur picture (screenshot below), it looks like it might be the adapter for the microscope lens, I don't see a .stl file for the fisheye lens in the github...

Screenshot_(5).png

Is this a question? Click here to post it to the Questions page.


Oh sorry! I misunderstood! Here, i've added that too now, but note that I believe I just found a standard m12 on thingiverse and resized it. So the scale may not be perfect... https://github.com/publiclab/community-microscope/blob/master/m12_lens_housing_v2.stl

There was a bit of trial and error on that one!


Hey no problem! I actually made one myself which works pretty well - no tape needed, here's the file: Webcam_lens_adapter_v2.stl

webcam_lens_adapter.jpg

web_cam_lens_adapter_2.jpg

Is this a question? Click here to post it to the Questions page.


Oh awesome!


Sadie, just curious, how does your adhere to the board?

I love the little grippy bits that hold the lens itself!

Is this a question? Click here to post it to the Questions page.


Reply to this comment...


Obviously we love to see any improved 3d printed parts and would love to add to the design. Just so people know, we try to print these to be solid, but also:

  • quick to print
  • printable on different quality printers
  • one piece
  • possible to either glue, tape, or screw in (ideally)
  • small so many can be printed at once on the same bed

Thanks all!

Reply to this comment...


Login to comment.