Author Topic: 1-4cm focal usb camera  (Read 1320 times)

0 Members and 1 Guest are viewing this topic.

Offline VeryFastSnailTopic starter

  • Contributor
  • Posts: 38
  • Country: lt
1-4cm focal usb camera
« on: December 18, 2019, 05:36:26 pm »
Hello everyone, I’m currently am working on one project that requires close focusing camera, perfectly focus distance would be 1-4cm. This cam will take static pics, and quality is not that important. Pics will be converted to black and white. Picture size could be small, but cam has to be cheap, perfectly under 10$$$

What I already tried to do:

  • Looked at webcams that are comonly available with little to no success, focal lenght is common at <15cm
  • Use laptop webcams, same problem as above
  • Looked on aliexpress for camera modules, found some, ordered, will test soon. focus distance is unknown btw
  • Thought of adding some kind of lens to decrease it’s focal lenght, maybe someone is better at optics then I’m and could help me with type of lens to use
  • There are those endoscopic cameras, focal lenght is 3-8cm, but I dont want to dissasemble it...

What do you think is the best solution?
 

Offline Siwastaja

  • Super Contributor
  • ***
  • Posts: 9333
  • Country: fi
Re: 1-4cm focal usb camera
« Reply #1 on: December 18, 2019, 05:53:31 pm »
Just move the existing lens further away from the chip to focus closer.
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 7453
  • Country: pl
Re: 1-4cm focal usb camera
« Reply #2 on: December 18, 2019, 05:59:46 pm »
Focal length is not the same as focusing distance. Focal length is property of the lens and it cannot be changed (except for zoom lenses).

Focus distance depends on focal length and the distance between the lens and the image sensor, per well known formula: 1/f = 1/x + 1/y.

You can focus arbitrarily close by moving the lens further from the sensors. For a webcam, disassembly of the case may be required. This will not be a problem in those AliExpress modules, you can unscrew the lens as far as you want until it falls out. If the distance still isn't enough, extension rings for webcam/CCTV lenses are available. This lens system is known as "M21 mount" or "S-Mount".

The lens will be operated outside its intended conditions and image quality may suffer. For serious macro operation (object distance < sensor distance) you may get improved results by inverting the lens (front to the sensor, back to the object).

Another possibility is diopter adapters / lens stacking: attach an additional lens to the front of the fixed one. Either a simple high diopter magnifying glass or an inverted webcam lens.
 
The following users thanked this post: tooki, VeryFastSnail

Online DaJMasta

  • Super Contributor
  • ***
  • Posts: 2393
  • Country: us
    • medpants.com
Re: 1-4cm focal usb camera
« Reply #3 on: December 18, 2019, 06:32:20 pm »
Look for a USB microscope instead.  Generally they will specify their focus distance, but they'll be optimized for up close, and if you get something with a Barlow lens or with a long working distance specified, they'll be able to focus from farther back (not just within a couple of CM), and generally they have lower magnification.

Because of the way the optics work, a regular USB camera that can focus very close is already magnifying (unless your output screen is the size of your field of view), so relatively low magnifications will just look like an up-close camera put on a bigger screen, whereas higher resolutions will look more of what you're expecting from an actual microscope.


In any case, cheap decent quality (at least for stills) USB microscopes can be had fairly inexpensively.
 
The following users thanked this post: VeryFastSnail

Offline VeryFastSnailTopic starter

  • Contributor
  • Posts: 38
  • Country: lt
Re: 1-4cm focal usb camera
« Reply #4 on: December 18, 2019, 07:15:31 pm »
Thank you for all your answers they are very informative. I will look into it.
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 7453
  • Country: pl
Re: 1-4cm focal usb camera
« Reply #5 on: December 18, 2019, 08:59:59 pm »
I think you could start with extracting some webcam from its case and unscrewing the lens further than normally possible. That's certainly the quickest and cheapest thing to try.

USB microscope
What is actually the resolution of those things, in terms µm per pixel, DPI or similar units?

I have never seen it specified that way, only one single "magnification" number whose meaning completely eludes me.
 

Online DaJMasta

  • Super Contributor
  • ***
  • Posts: 2393
  • Country: us
    • medpants.com
Re: 1-4cm focal usb camera
« Reply #6 on: December 18, 2019, 11:47:20 pm »
Depends on the model, generally the better ones will be more verbose with how they function, but generally their stated magnification is for an assumed monitor size, say a 21" 1080p screen or something, and you can kind of work backwards from there.

Since the focus is widely enough variable (a nominal 200x magnification microscope can often go down to 50x or 20x just by backing it out) and the magnification number is also dependent on the displayed image out of it, they probably should just specify a nominal pixel size at the rated magnification, but that doesn't seem to be a priority on the cheap end.

For more expensive options, like Dino-Lite's microscopes, they specify X and Y dimension field of view for a given rated magnification and working distance, so you can resolve the width of a pixel just knowing the sensor resolution.  There are also a number of microscopes that have companion applications that have a measurement tool, so if they can read the focus adjustment, they know how large a pixel should be when in focus.
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 7453
  • Country: pl
Re: 1-4cm focal usb camera
« Reply #7 on: December 19, 2019, 08:44:44 am »
For more expensive options, like Dino-Lite's microscopes, they specify X and Y dimension field of view for a given rated magnification and working distance, so you can resolve the width of a pixel just knowing the sensor resolution.
That's finally something we can work with.

I checked a few of their models and it seems that in every case they take 40×30cm FOV as "1x magnification". So the spec is a ballpark estimate of magnification going from the object to a full size PC monitor. Probably some variation exists between vendors.

edit
Some of their products look quite suspicious. Take this for example, with ~500µ field of view. Since they can't have over unity numerical aperture in air, they would be lucky to get resolution of 0.3µ per pixel. For NA=0.5 we are talking 0.6µ. 5MP sensor is a complete overkill for such optics and it's a $1k product, not some $10 junk from AliBay :--
« Last Edit: December 19, 2019, 09:19:24 am by magic »
 

Offline pardo-bsso

  • Regular Contributor
  • *
  • Posts: 235
  • Country: ar
Re: 1-4cm focal usb camera
« Reply #8 on: December 19, 2019, 06:15:10 pm »
Not exactly in your budget but we used a couple of Logitech C910 and C920 for close up shots.

You can bypass the auto-focus and set it just right from software with no effort.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf