Looking for a short range motion sensor
Senne
Posts: 2
Hi there,
is there a type of sensor that behaves like a computer mouse but only with a binary output? So zero when it's in range of an object but it's not moving, one when in range and moving and zero when out of range and moving. I would like to avoid the subassembly the sensor of a computer mouse has (LED and lens). The maximum range can be around 20-30 mm. Is there such a thing? Because so far I've only found sensor that basically only measure proximity but no actual movement. Thanks for your help guys!
Regards,
Senne
is there a type of sensor that behaves like a computer mouse but only with a binary output? So zero when it's in range of an object but it's not moving, one when in range and moving and zero when out of range and moving. I would like to avoid the subassembly the sensor of a computer mouse has (LED and lens). The maximum range can be around 20-30 mm. Is there such a thing? Because so far I've only found sensor that basically only measure proximity but no actual movement. Thanks for your help guys!
Regards,
Senne
Comments
How much movement? Is the object a solid color? What is behind the object?
Changing the lens of a mouse does seem like a good plan. There are devices sold which use the camera of a mouse but make it easier to adapt the camera to other uses. In order to get the output to be either one or zero (high or low?), you'd probably need a microcontroller to read the mouse output and set the pin state high or low.
If a PIR sensor would work, it would be even easier to use since a PIR does set a pin high or low based on movement. PIR sensors are designed to sense changes in heat so it may not work for your application if the object and background are at the same temperature.
If you could give more information about the object (its size, color, shape, etc.) and more information about the background, we could probably give you a better answer as to which sensor to use.
It might be possible to use a few line following sensors to detect movement if the color of the object and background contrast significantly.
http://www.parallax.com/product/28046
With a little programming, I would suspect you can compare values to see if moment is detected.
or a 5cm version http://www.pololu.com/product/1131
http://www.mikronauts.com/sirmorph/
It is normally used with an analog input, however if you hook it up to a potentiometer, you can adjust the trigger point for a 3.3v I/O