Ask Your Question

Revision history [back]

Camera as angle encoder

Hi,

In my project I need to use a webcam as an shaft angle encoder. The shaft rotates very slowly, 1rpm, and is always somewhat in the center view of the camera. I will attach a thin disk to the shaft and put some fiducials on the disk. The camera will detect either the position of the fiducials or their orientation and determine the shaft angular position.

I have tried using different colored circles arranged in a circular pattern as fiducials. The code detects the circles centers and determines the angle using simple trigonometry. I was able to get around 1 degree of accuracy with this system.

I have also tried using reactiVision fiducials since the library provides angle information of each marker. This approach turned out to be pretty noisy.

Is there any better fiducial for this application. I am looking for more precision and less noise. Maybe instead of circles I can try to detect lines or something like that.

Thanks in advance.

Fernando