Sharp IR Distance Sensor That Outputs an Analog Voltage From 10 to 80 cm

Sharp GP2Y0A21YK0F IR Distance Sensor (10-80 cm, Analog)

Rs. 1,350 - Out of stock - SKU ABH-SENS-0428 - Brand Sharp

The Sharp GP2Y0A21YK0F infrared distance sensor measures 10-80 cm using triangulation and outputs an analog voltage that rises as objects get closer. It is reliable on most surface colours.

Delivery anywhere in Pakistan for a flat Rs. 250 paid in advance, product price Cash on Delivery. 7-Day Checking Warranty.

Key features

Specifications

ModelSharp GP2Y0A21YK0F
Range10-80 cm
OutputAnalog voltage (non-linear)
Supply4.5-5.5V
Update periodapprox. 38 ms
Connector3-pin JST

What's in the box

Use cases

Description

How it works

The sensor shines an IR beam and a position-sensitive detector sees where the reflection lands. The angle changes with distance, so the reading depends far less on surface colour than simple IR reflectance sensors.

Specs

Reading it

Use a lookup table or a power formula to convert voltage to cm. Libraries such as SharpIR do this for you.

Tips

Uses

Robot obstacle and wall following, automatic doors and taps, and object detection in kiosks.

Frequently asked questions

Why are readings wrong below 10 cm?

The output folds back under 10 cm. Keep targets at least 10 cm away.

How do I convert voltage to distance?

Use a calibration table or the SharpIR library.

Does colour affect it?

Much less than simple IR sensors, thanks to triangulation.

In-stock alternatives and related products

All Sensors & Sensor Modules