This popular sensor made by Sharp produces an analog output that varies from 3.1V at 4cm to 0.3V at 30cm. Based on 'typical values' from Sharp, the formula to translate Sensor value into Distance (the formula is only valid for a Sensor value between 80 to 530) is:
Distance (cm) = 2076/(SensorValue - 11)
This sensor can find the distance to objects that present a very narrow edge such as a wall at a very sharp angle.
- Measures distances from 4 cm to 30 cm
- Infrared Proximity Sensor
- Analog output inversely proportional to distance
- Model Number: GP2Y0A21YK0F