Sharp GP2Y0A02 F 23 Digital Distance Measuring Sensor
📏 Sharp GP2Y0A02F23 Distance Sensor
🧩 Overview
Infrared distance measuring sensor module
Uses triangulation method (IR-based)
Measures distance without physical contact
Compatible with Arduino, ESP32, Raspberry Pi
⚙️ Working Principle
Emits infrared (IR) beam toward object
Reflected IR light returns to sensor
Internal position-sensitive detector (PSD) calculates angle
Converts angle → distance value (analog voltage output)
👉 Less affected by object color compared to simple IR sensors
📊 Key Specifications
🔹 Distance Range: 20 cm – 150 cm
🔹 Operating Voltage: 4.5V – 5.5V
🔹 Current Consumption: ~33 mA
🔹 Output Type: Analog voltage
🔹 Response Type: Continuous distance measurement
🔹 Size: ~29.5 × 13 × 21.6 mm
🧱 Module Components
IR LED (emitter)
Position Sensitive Detector (PSD)
Signal processing circuit
JST connector (3-pin)
🔄 Features
Analog output proportional to distance
Better stability than ultrasonic in some cases
Works well in indoor environments
Simple interface with microcontrollers
Compact and lightweight
🛠️ Applications
Obstacle avoiding robots 🤖
Distance measurement systems 📏
Maze-solving robots
Smart automation systems 🏠
Object detection & positioning
⚠️ Usage Tips
Place 10µF capacitor across VCC & GND for stable readings
Avoid direct sunlight (IR interference)
Works best with solid, reflective surfaces
Calibrate voltage → distance for accuracy
✅ Advantages
Good alternative to ultrasonic sensors
Stable and consistent readings
Easy analog interface
Reliable for mid-range distance
⚠️ Limitations
Non-linear output (requires calibration)
Not suitable for very short (<20 cm) distances
Performance affected by surface reflectivity
Limited outdoor performance
🔍 Summary
Mid-range IR distance sensor (20–150 cm)
Uses triangulation for accurate measurement
Outputs analog voltage proportional to distance
Ideal for robotics and obstacle detection projects
