| 3521_0 - Sharp Distance Sensor 2Y0A21 (10-80cm) |
Product Features
- Measures distances from 10 cm to 80 cm
- Infrared Proximity Sensor
- Analog output inversely proportional to distance
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.
The sensor plugs in the 1101 - IR Distance Adapter using the 30cm interface cable that comes with the 1101.


We also carry two other Sharp distance sensors for shorter and longer distance ranges.
- 3520 - Sharp Distance Sensor GP2D120XJ00F(4-30cm)
- 3522 - Sharp Distance Sensor GP2Y0A02YK0F (20-150cm)
If you are not getting good results with the standard formula, have a look at the product datasheet which has good notes on what can affect the sensor's performance
Sensor Properties
| Sensor Type | Distance (Infrared) |
| Sensor Output Type | Ratiometric |
| Measurement Distance Min | 100 mm |
| Measurement Distance Max | 800 mm |
| Response Time Max | 50 ms |
Electrical Properties
| Supply Voltage Min | 4.5 V DC |
| Supply Voltage Max | 5.5 V DC |
| Current Consumption Max | 40 mA |
Physical Properties
| Weight | 3.5 g |
| Operating Temperature Min | -10 °C |
| Operating Temperature Max | 60 °C |






