Saturday, November 28, 2009

range of a range-finder

This is the range of the rangefinder we ordered, with 1 foot by 1 ft by 1 ft square of the grid.
The problem I am trying to tackle is that signal is too easy to trigger in the area that is close to the device. That means the beam above is not sharp enough for me, and the it is too sensitive than I want.

The way I am working on is to store the signal value to a secondary value and then compare it with the signal reading in the next loop. if the difference is large enough, the servo doesnot turn.

So the problem is to find a good threshold for this difference.


No comments:

Post a Comment