Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Camera which measures distance?

  1. May 9, 2016 #1
    Hi all,

    I'm having trouble finding something online which isn't a very complicated device, but I don't know if it has a specific name, which would help me in a google search.

    I have a motor in an MBE which moves the sample, and I need a camera which can read to a computer what the distance is from the lens to whatever it sees, which is the arm attached to this motor. So I guess it might need a laser since it only needs to see the spot directly in front of the camera. The needed distance is only about 5ft or under.

    Is there a name for these devices? I've tried several search terms and have found nothing. It only needs to be accurate to about 5mm or so.

    Thanks.
     
    Last edited: May 9, 2016
  2. jcsd
  3. May 9, 2016 #2

    berkeman

    User Avatar

    Staff: Mentor

    What's a mortar? And and MBE?

    Can you Upload a picture of your setup, or a drawing? The auto-focus information from your camera may be all that you need, if it can be read out...
     
  4. May 9, 2016 #3
    Sorry I meant "motor" not "mortar", and MBE stands for Molecular Beam Epitaxy, which is a process to grow lattices. The MBE machine has a vacuum chamber, where one end of the chamber builds the lattice, but the other end of the chamber examines the lattice.

    In this attached image is a rough sketch of the setup, where the sample is inside the MBE, attached to an arm which is moved left or right by the attached motor. I want a device (labelled in the sketch) to measures the distance X between the device (which is static and adjacent to the MBE) and the arm backboard (which moves left or right with the arm).
     

    Attached Files:

  5. May 9, 2016 #4

    berkeman

    User Avatar

    Staff: Mentor

    I'm not seeing an attachment yet... :smile:
     
  6. May 9, 2016 #5
    sorry, I just attached it after I'd replied
     
  7. May 9, 2016 #6

    berkeman

    User Avatar

    Staff: Mentor

    I'm not quite understanding the setup, but could you mount a 45-degree mirror on the arm and run a ruler parallel to the arm? The camera would be able to read the numbers on the ruler in the reflection on the mirror.
     
  8. May 9, 2016 #7

    berkeman

    User Avatar

    Staff: Mentor

    Guess you would have to write the numbers on the ruler in mirror image format... :smile:
     
  9. May 9, 2016 #8
    Well we're wanting to hook up the device directly to the computer. The motor is run through LabView, and we want LabView to be able to read a number from the device in order to give instructions to the motor. Like just a device which measures the distance from it to whatever it's looking at, and can feed that value to LabView.
     
  10. May 9, 2016 #9
    I'm just not sure what those are called, but once I get a name I can google it
     
  11. May 9, 2016 #10

    berkeman

    User Avatar

    Staff: Mentor

    Do you have a software package that can read numbers on the camera? Does the camera need to read anything else, or it is just used for sensing the position?

    If you can't read numbers with the camera, can you count the number of lines passed or something?
     
  12. May 9, 2016 #11

    berkeman

    User Avatar

    Staff: Mentor

    Also, your drawing shows part of the arm sticking out of the MBE vacuum chamber? Can you just put a linear encoder on that part of the arm to tell what the change in position inside the chamber is? What kind of vacuum feedthrough is used with the arm?
     
  13. May 9, 2016 #12

    rbelli1

    User Avatar
    Gold Member

    What accuracy and repeatability do you need?

    BoB
     
  14. May 9, 2016 #13
    It does depend on the accuracy you want but we have used the Kinect camera from the Xbox for many of these sort of jobs. From memory if you look at the raw data you can get 1mm sort of accuracy from them.
     
  15. May 9, 2016 #14
    I'll ask the postdoc I work under about the linear encoding (in your other comment), and I'm not sure how the software will work out, but ideally the camera will just return a real number of an integer or natural. The motor is old, and cannot take a single move command else it breaks, so we need to send it many commands to move a small distance many times. I want to wright a code that sends the move command, then reads the number from the camera, checks to see if it's within a certain difference of the desired position, then either stops commanding the motor to move, or continues to order the motor to move. I'll ask my postdoc about the specifications. Thanks for the help so far!
     
  16. May 9, 2016 #15
    As for accuracy and repeatability, it needs to be within about ~1cm or less
     
  17. May 9, 2016 #16
    I think the Kinect can probably do this with its standard software which gives a colour map for distance, but it will do down to millimetres if you analyse the raw data and there are software bits and pieces to do that.
     
  18. May 9, 2016 #17

    rbelli1

    User Avatar
    Gold Member

    A simple one pulse per rotation would do as long as one rotation is less than a few mm. Some options are reed switch, opto interrupter, or even a micro-switch if the rotation speed is small. You will need to have some way to reorient to absolute on powerup.

    BoB
     
  19. May 9, 2016 #18
  20. May 9, 2016 #19

    berkeman

    User Avatar

    Staff: Mentor

  21. May 9, 2016 #20

    russ_watters

    User Avatar

    Staff: Mentor

    Right.

    clm222, you are creating an unnecessary constraint by specifying that two devices be combined into one. There is no good reason the camera and rangefinder need to be the same device. That said...

    https://www.amazon.com/Ryobi-ZRES20...rds=ryobi+phone+works+laser+distance+measurer
     
    Last edited by a moderator: May 7, 2017
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Similar Discussions: Camera which measures distance?
  1. Digital camera (Replies: 21)

  2. Digitial Camera (Replies: 41)

  3. Linksys + camera (Replies: 2)

  4. Camera calibration (Replies: 6)

Loading...