Analog Distance Sensor SN-GP2Y0A21

Distance sensors are widely used in applications that require distance measurement. It is also used in robotics application to detect and measure distance with wall or obstacles. So we are going to look on Analog Distance Sensor SN-GP2Y0A21. As it’s name sounds, it gives out analog readings with changes in distance.

SN-GP2Y0A21

Some features of SN-GP2Y0A21:

– Analog output

– Detecting distance: 10cm to 80cm

– Operating supply voltage: +4.5V to +5.5V

Pin connections for SN-GP2Y0A21Schematic Diagram

To use the sensor, we need to look in details of the output. The output voltage is not linear to the distance. There is an analog output voltage vs distance plot in the datasheet.