Read ir sensor when a marking on the wheel visible

Hello, i am plannig to build a crank and slider system but the problem is for the crank wheel. I wanted to measure the slider's speed when it passes through a certain angle. I am planning to use an ir sensor for the speed. Is there any way i can set when the ir sensor records the the speed ? I need to do this project in my university.

An IR sensor will detect a reflective marker, but not speed.

If your program measures the elapsed time between detection of two markers moving along a track, then the speed is (distance apart)/(elapsed time).

Alternatively, if you have a long reflective strip, you could time the appearance and disappearance of the reflection. speed = (length of strip)/(elapsed time).

So i can put a reflective marker on the wheel like i shown in the picture and the ir sensor will detect everytime it rotates ?

Yes, very commonly used technique.

Of course, the instantaneous speed of the slider will change from 0 to some computable speed as the crank moves. Why not just measure the RPM of the wheel and compute the speed of the slider based on the angle?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.