{"product_id":"sharp-gp2y0a02-f-23-distance-sensor-20-150cm-analog-output","title":"Sharp GP2Y0A02 F 23 Distance Sensor 20-150cm Analog Output","description":"\u003ch1\u003eSharp GP2Y0A02 F 23 – 20-150 cm Infrared Distance Sensor\u003c\/h1\u003e\u003cp\u003eThe 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.\u003c\/p\u003e\u003ch2\u003eKey Specifications\u003c\/h2\u003e\u003ctable\u003e\n\u003cthead\u003e\u003ctr\u003e\n\u003cth\u003eSpecification\u003c\/th\u003e\n\u003cth\u003eValue\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eMeasuring Range\u003c\/td\u003e\n\u003ctd\u003e20 cm – 150 cm\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eOutput Type\u003c\/td\u003e\n\u003ctd\u003eAnalog Voltage (0.4V – 2.65V typical)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSupply Voltage\u003c\/td\u003e\n\u003ctd\u003e4.5V – 5.5V DC\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCurrent Consumption\u003c\/td\u003e\n\u003ctd\u003e33 mA (typical)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eResponse Time\u003c\/td\u003e\n\u003ctd\u003eApprox. 50 ms\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eInterface\u003c\/td\u003e\n\u003ctd\u003eAnalog output, requires external ADC\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\u003ch2\u003eWhat You Can Build With This\u003c\/h2\u003e\u003cul\u003e\n\u003cli\u003e\u003ca href=\"\/products\/kit-obstacle-avoiding-robot\"\u003eObstacle-avoiding robot with precise distance thresholds\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"\/products\/kit-automatic-soap-dispenser\"\u003eAutomatic hand sanitizer or soap dispenser\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"\/products\/esp32-parking-sensor-kit-build-a-4-slot-occupancy-dashboard\"\u003eCar parking sensor system with LED indicators\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003eNon-contact height measurement tool for automated sorting\u003c\/li\u003e\n\u003c\/ul\u003e\u003ch2\u003eCompatibility\u003c\/h2\u003e\u003cp\u003eThis 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.\u003c\/p\u003e\u003ch2\u003eWiring Notes\u003c\/h2\u003e\u003cp\u003eConnect 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.\u003c\/p\u003e\u003ch2\u003eWhy Buy from Compoden\u003c\/h2\u003e\u003cp\u003eEvery 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.\u003c\/p\u003e\u003cdetails\u003e\u003csummary\u003eIs this compatible with Arduino?\u003c\/summary\u003e\u003cp\u003eYes, connect the sensor's output to any analog pin on Arduino and use the analogRead() function to obtain a value proportional to distance.\u003c\/p\u003e\u003c\/details\u003e\u003cdetails\u003e\u003csummary\u003eHow accurate are the distance readings?\u003c\/summary\u003e\u003cp\u003eAccuracy is typically within a few centimeters, depending on ambient light and object reflectivity. White, matte surfaces yield the best results.\u003c\/p\u003e\u003c\/details\u003e\u003cdetails\u003e\u003csummary\u003eCan it be used outdoors in sunlight?\u003c\/summary\u003e\u003cp\u003eThe sensor may give unreliable readings in direct sunlight because of infrared interference. It is best used indoors or in shaded environments.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdiv class=\"compoden-handoff\" style=\"margin-top:24px;padding:16px;background:#f0f4ff;border-left:4px solid #2B4D8F;border-radius:4px;\"\u003e\n  \u003cp style=\"margin:0 0 6px 0;font-weight:600;color:#1A3560;\"\u003e📦 Free Setup Handoff Document Included\u003c\/p\u003e\n  \u003cp style=\"margin:0;font-size:0.95em;color:#333;\"\u003eEvery 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.\u003c\/p\u003e\n\u003c\/div\u003e\n","brand":"Compoden","offers":[{"title":"Default Title","offer_id":53444955406701,"sku":"CDN-0270","price":470.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0999\/3997\/5533\/files\/image_1_611e5d6b-2509-4088-8b53-36316d2c4a69.jpg?v=1781512371","url":"https:\/\/compoden.com\/products\/sharp-gp2y0a02-f-23-distance-sensor-20-150cm-analog-output","provider":"Compoden","version":"1.0","type":"link"}