Sharp GP2Y0A02 F 23 Distance Sensor 20-150cm Analog Output
Sharp GP2Y0A02 F 23 โ 20-150 cm Infrared Distance Sensor
The Sharp GP2Y0A02 F 23 is an infrared proximity sensor that uses triangulation to measure distances from 20 cm to 150 cm with high reliability. It outputs an analog voltage that corresponds to the detected distance, allowing direct connection to microcontrollers with ADC for digital distance computations. This sensor is widely used in robotics for obstacle avoidance, in automation for object detection, and in industrial systems for non-contact measurement.
Key Specifications
| Specification | Value |
|---|---|
| Measuring Range | 20 cm โ 150 cm |
| Output Type | Analog Voltage (0.4V โ 2.65V typical) |
| Supply Voltage | 4.5V โ 5.5V DC |
| Current Consumption | 33 mA (typical) |
| Response Time | Approx. 50 ms |
| Interface | Analog output, requires external ADC |
What You Can Build With This
- Obstacle-avoiding robot with precise distance thresholds
- Automatic hand sanitizer or soap dispenser
- Car parking sensor system with LED indicators
- Non-contact height measurement tool for automated sorting
Compatibility
This sensor works with any 5V microcontroller that has an analog input, such as Arduino Uno, Nano, or Mega. It can also interface with 3.3V boards like ESP32 or Raspberry Pi Pico by using a voltage divider for the output signal. The analog output makes it easy to integrate with existing code libraries for distance calculation.
Wiring Notes
Connect VCC to 5V, GND to ground, and the output pin directly to an analog input. Keep wires short and avoid routing near noisy components like motors. A 10 ยตF capacitor across VCC and GND near the sensor reduces measurement jitter.
Why Buy from Compoden
Every component is sourced from verified suppliers and tested for compatibility before listing. We've spent 10 years building projects for makers, schools, and institutions across India. Ships from Bengaluru in 3-5 days. If defective on arrival, replace within 7 days.
Is this compatible with Arduino?
Yes, connect the sensor's output to any analog pin on Arduino and use the analogRead() function to obtain a value proportional to distance.
How accurate are the distance readings?
Accuracy is typically within a few centimeters, depending on ambient light and object reflectivity. White, matte surfaces yield the best results.
Can it be used outdoors in sunlight?
The sensor may give unreliable readings in direct sunlight because of infrared interference. It is best used indoors or in shaded environments.
๐ฆ Free Setup Handoff Document Included
Every Compoden order includes a free setup handoff document โ step-by-step instructions to get your component working within minutes. Download it via QR code on your package. The handoff document is also trained to help you troubleshoot the majority of problems.
Ask Soldr above what you can build with this โ it knows every Compoden kit this part appears in.
Shipping Information
- Prepaid Orders: โน75 for orders up to โน999, FREE shipping above โน999
- COD Orders: โน125 shipping + โน50 COD fee = โน175 total
- Delivery Timeline: Dispatch in 1-2 days, delivery in 2-7 days depending on location
Returns & Warranty
- 7-Day Return: Manufacturing defects only (approval required)
- Warranty: 7 days from delivery
- Non-Returnable: Batteries, consumables, cut wires, clearance items