Electronic – Detecting absolute position

image-sensorimageprocessinginfraredproximity-sensor

I am working on project that requires me to detect the position of a pen on a piece of normal paper.

My first thought was to use 4 IR LEDs on a receiving unit set at the top of the page, and to put a camera on the pen to triangulate the position.

However I have come across some problems with this. The first being that I do not know of any sensor that is an "infrared camera" that I could buy commercially. The second problem I have run into is that the pen can be oriented in any direction, and no camera would be able to detect the IR in every direction.

I was wondering if anyone had any solutions to the first 2 problems, or if anyone knew of another technique to detect the position of one object relative to another.

Best Answer

Implementation

You can try swapping your present idea: So, make the IR camera be the stationary detector, and the pen be the moving IR source (i.e., put one or more LEDs on it at geometrically opposite points, if you are worried about occlusion).

(Also, by doing this, you can allow the setup to expand to two IR cameras in the future and triangulate for 3D position tracking.)

References

For further reference and ideas, see Johnny Lee's popular projects using the infrared camera on the Wii Remote, for an inexpensive and accurate possible implementation: This video covers something similar to what I believe you are attempting. You can also see this page for more textual detail.

Sources for the IR camera itself

  • Wiimote camera: To my knowledge, everyone who has played with the Wiimote hack has either got the separately sold camera from Ebay, or broke open their Wii Remote to pull the camera out. The manufacturer of the camera is Pixart (Taiwan). It's unlikely Pixart/distributors will ever officially sell this camera by itself, but if you find such a source, do let the world know!

  • OptiTrack V120:SLIM: $279, 640X480, 120 FPS.

  • CMUCam 4 or earlier version: This is an open-source hardware and processing implementation from a Carnegie Mellon team but using a visible-light camera. You can easily adapt it for infrared tracking by adding an IR filter such as this one.