🤝 Buying in Bulk? Get Exclusive B2B Pricing • 💬 WhatsApp Us: +91 93454 49314 • 🚚 Pan India Shipping
🛒 Shop with a minimum cart value of ₹200 • 🚚 Fast & Secure Shipping Across India
- Home
- Sensors
- GP2Y0A21YK0F Compatible IR Distance Sensor 10–80 cm with Cable GP2Y0A21YK0F Compatible IR Distance Sensor 10–80 cm with Cable
GP2Y0A21YK0F Compatible IR Distance Sensor 10–80 cm with Cable
- Description
- Reviews
This analog infrared distance sensor is compatible with the Sharp GP2Y0A21YK0F. It measures distances from 10 to 80 cm and outputs a voltage that changes with distance, so you can read it with any microcontroller's analog input. A 3-wire cable is included.
Specifications
Values below are from the Sharp GP2Y0A21YK0F reference datasheet; this is a compatible part.
| Compatible with | Sharp GP2Y0A21YK0F |
|---|---|
| Measuring range | 10–80 cm |
| Supply voltage | 4.5–5.5 V |
| Supply current | About 30 mA typical |
| Output | Analog voltage (higher voltage = closer object) |
| Update time | About 38 ms per measurement |
| Connector | 3-pin (VO, GND, VCC), cable included |
Typical projects
- Obstacle avoidance for robots
- Hand or object presence detection
- Distance display with an LCD or OLED
Practical notes
The output is not linear with distance, so use a lookup table or a curve fit in your code. Below 10 cm the readings become ambiguous, so mount the sensor at least 10 cm back from the closest object you need to measure. Add a 10 µF capacitor between VCC and GND near the sensor to smooth current spikes that can make readings noisy. For longer distances, see the 20–150 cm model.
Frequently asked questions
Is this a genuine Sharp sensor?
No. It is a GP2Y0A21YK0F-compatible sensor and works with the same code and wiring.
Does it work with ESP32 (3.3 V)?
Power the sensor from 5 V. Before connecting the output to a 3.3 V board, check its maximum output against your ADC input limit; a simple resistor divider keeps it within range.
What's included
- 1 × IR distance sensor (10–80 cm)
- 1 × 3-wire cable
Buying from Anu Electronics
Sold by Anu Electronics, Chennai, with shipping across India. For bulk orders, WhatsApp +91 93454 49314 or email info@anuelectronics.com.