← All Components  /  Sensors
// Sensors

Sharp GP2Y0A21

The Sharp GP2Y0A21 is an infrared distance sensor measuring 10–80cm. It outputs an analog voltage inversely proportional to distance, requiring a lookup table or formula to convert to cm. Compact and easy to use with any ADC.

// Specifications
Supply Voltage
4.5V – 5.5V
Range
10cm – 80cm
Output
Analog voltage (nonlinear)
Update Rate
25ms
Current
30mA typical
Package
3-pin connector
// Pin Reference Table
Pin Name Function Type
1 VOUT Analog distance output ADC
2 GND Ground GND
3 VCC 4.5V–5.5V power PWR