This popular sensor made by Sharp produces an analog output that varies from 3.1V at 10cm to 0.3V at 80cm.
Based on "typical values" from Sharp, the formula to translate SensorValue into Distance (the formula is only valid for a SensorValue between 80 to 500) is:
This sensor can find the distance to objects that present a very narrow edge such as a wall at a very sharp angle.
Note: The output of this sensor will vary from unit to unit, and based on the characteristics of the target (reflectance, size, direction of motion, object alignment, ...). If you find that you are not getting good results with the standard formulas, you may want to derive your own formula to better characterize your situation.
- Sensor Type: Distance (Infrared)
- Sensor Output Type: Ratiometric
- Measurement Distance Min/Max: 100 mm / 800 mm
- Response Time Max: 50 ms
- Supply Voltage Min/Max: 4.5 V DC / 5.5 V DC
- Current Consumption Max: 40 mA
- Weight: 3.5 g
- Operating Temperature Min: -10 °C / Max 60 °C
- Use the Phidget 1101 - IR Distanceadapter for easy connecting this Sensor to your Phidget or Micro Controller !
Sharp Distance Sensor (10-80cm) 2Y0A21
- Brand: Phidgets
- Product Code: 3521
- Availability: In Stock
- Ex Tax: 9.50€