Wednesday 18 February 2009

Smooth Value from distance sensor

If you are using on of the Sharp distance sensors and are getting values that jump around there are 2 things you can do to smooth them out:

1: make sure you are running them from 5V

2: connect a 10uf capacitor between the positive and negative of the sensor.

You can get them at Maplin for £0.12.

LINK

Part num: VH06G or VH07H


If it is still not stable enough - it can also be smoothed in the software.

No comments:

Post a Comment