Shop OBEX P1 Docs P2 Docs Learn Events
Camera controlled laser pointer question — Parallax Forums

Camera controlled laser pointer question

devin0devin0 Posts: 6
edited 2008-09-15 16:04 in BASIC Stamp
Me and a group of friends are trying to make a laser pointer that tracks objects. I want to have the laser x,y controlled by servos. The basic stamp will be connected to my pc by serial, and i have a webcam connected by usb.One of my friends allready has a program running that lets me control the laser x,y by typing it into the pc. Can someone tell me how to do this or point me in the direction of information that will help?

Comments

  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2008-09-14 03:43
    devin0--

    There will be a lot more people far more qualified than I that might respond to your question. But, I have thought of the same thing and done an experiment, or two.

    A photocell (of some type) has no problem detecting one of my laser bore sights. It seems a matrix of photo-devices and a laser set off somewhere as a beacon, could easily detect the laser beacon and depending on which photo-device detected it, turn in that direction. When the beacon is lost, simply scan back and forth and up and down until it is re-found. (Beware the use of the word "simple" in the preceding sentence: nothing is simple.)

    Good luck!

    --Bill

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You are what you write.
  • SRLMSRLM Posts: 5,045
    edited 2008-09-15 16:04
    You'll want to figure out how far away the "plane" is that you'll designate with x,y coordinates. Then figure out how much each step is on a servo when pointing the laser, then make a formula to translate between x,y and pulsewidth.
Sign In or Register to comment.