{"product_id":"mag-2450-sharp-gp2y0a51sk0f-analog-distance-sensor-2-15cm","title":"Sharp GP2Y0A51SK0F Analog Distance Sensor 2-15cm","description":"\u003cp\u003eThe GP2Y0A51SK0F is the shortest-range Sharp analog distance sensor we carry, featuring a detection range of 0.8″ to 6″ (2 cm to 15 cm).  The shorter range gives you higher resolution measurements, and the low minimum detection distance makes this sensor great for detecting very close objects.  The distance is indicated by an analog voltage, making this sensor very easy to use.\u003c\/p\u003e\n\u003cbr\u003e\u003ch2\u003eOverview\u003c\/h2\u003e\n\u003cp\u003eThe Sharp distance sensors are a popular choice for many projects that require accurate distance measurements.  This IR sensor is more economical than sonar rangefinders, yet it provides much better performance than other IR alternatives.  Interfacing to most microcontrollers is straightforward: the single analog output can be connected to an analog-to-digital converter for taking distance measurements, or the output can be connected to a comparator for threshold detection, making this an adjustable-threshold alternative to digital Sharp sensors.  The detection range of this version is approximately 2 cm to 15 cm (0.8″ to 6″).\u003c\/p\u003e\n\u003ctable class=\"side_by_side_pics\"\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e\u003ctable class=\"picture_with_caption center\"\u003e\u003ctr\u003e\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J6049.1200.jpg?8d837ceca5f31f29b38fbdb77f2f62ae\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id gp2y0a51sk0f analog distance sensor data-picture-id=\"0J6049\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J6049.250.jpg?8d837ceca5f31f29b38fbdb77f2f62ae\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/td\u003e\n\t\t\u003ctd\u003e\u003ctable class=\"picture_with_caption center\"\u003e\u003ctr\u003e\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J6050.1200.jpg?52a232f9359079ae6100fa3680fc9eff\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id gp2y0a51sk0f analog distance sensor back view. data-picture-id=\"0J6050\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J6050.250.jpg?52a232f9359079ae6100fa3680fc9eff\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp\u003eThe GP2Y0A51 uses a 1.5mm-pitch 3-pin JST ZH connector that works with our \u003ca href=\"https:\/\/www.pololu.com\/product\/2411\"\u003e3-pin JST ZH-style cable\u003c\/a\u003e (not included), as shown below:\u003c\/p\u003e\n\u003ctable class=\"side_by_side_pics\"\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e\u003ctable class=\"picture_with_caption center\"\u003e\u003ctr\u003e\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J6718.1200.jpg?2eb34786bc2b9fca7e468980d3f04d43\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id jst zh-style cable connected to a sharp gp2y0a51sk0f analog distance sensor data-picture-id=\"0J6718\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J6718.250.jpg?2eb34786bc2b9fca7e468980d3f04d43\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/td\u003e\n\t\t\u003ctd\u003e\u003ctable class=\"picture_with_caption center\"\u003e\u003ctr\u003e\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J6719.1200.jpg?c51c75d6d53d4a145999cc621cd69343\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id jst zh-style cable connected to a sharp gp2y0a51sk0f analog distance sensor data-picture-id=\"0J6719\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J6719.250.jpg?c51c75d6d53d4a145999cc621cd69343\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp\u003eThe wire color scheme matches the Sharp distance sensor pinout: red for power, black for ground, and white for signal.\u003c\/p\u003e\n\u003ctable class=\"picture_with_caption right\"\u003e\n\u003ctr\u003e\n\u003ctd style=\"max-width: 250px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J6053.1200.jpg?ffc3edbda7af191ca0f7e69d3bea1ef5\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id gp2y0a51sk0f analog distance sensor with wires soldered directly to the pcb. data-picture-id=\"0J6053\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J6053.250.jpg?ffc3edbda7af191ca0f7e69d3bea1ef5\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 250px\"\u003e\u003cp\u003eSharp GP2Y0A51SK0F Analog Distance Sensor 2-15cm with wires soldered directly to the sensor PCB.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp\u003eIt is also possible to solder three wires to the sensor where the connector pins are mounted, as shown in the picture to the right (you should probably add some hot glue for strain relief as a final step; this is not show in the picture because it would obscure the soldering).  Because of the narrow pitch, it helps to have a fine-tipped soldering iron, and you should be very careful not to accidentally short two pins together with your wires or any added solder.  When looking at the front of the sensor, the three connections are, from left to right, power (Vcc), ground, and the output signal (Vo).\u003c\/p\u003e\n\u003ch2\u003eFeature summary\u003c\/h2\u003e\n\u003cul\u003e\n\t\u003cli\u003eOperating voltage: 4.5 V to 5.5 V\u003c\/li\u003e\n\t\u003cli\u003eAverage current consumption: 12 mA (\u003cstrong\u003enote:\u003c\/strong\u003e this sensor draws current in large, short bursts, and the manufacturer recommends putting a 10 µF capacitor or larger across power and ground close to the sensor to stabilize the power supply line)\u003c\/li\u003e\n\t\u003cli\u003eDistance measuring range: 2 cm to 15 cm (0.8″ to 6″)\u003c\/li\u003e\n\t\u003cli\u003eOutput type: analog voltage\u003c\/li\u003e\n\t\u003cli\u003eOutput voltage differential over distance range: 1.65 V (typical)\u003c\/li\u003e\n\t\u003cli\u003eUpdate period: 16.5 ± 4 ms\u003c\/li\u003e\n\t\u003cli\u003eSize: 27 mm × 13.2 mm × 14.2 mm (1.06″ × 0.52″ × 0.56″)\u003c\/li\u003e\n\t\u003cli\u003eWeight: 2.7 g (0.10 oz)\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ctable class=\"picture_with_caption right\"\u003e\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J6052.1200.png?48145829e3305a61cfdfa92775a2f323\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id of output voltage vs distance to reflective object for the sharp gp2y0a51sk0f analog sensor. data-picture-id=\"0J6052\" data-picture-longest_side=\"1010\" src=\"https:\/\/a.pololu-files.com\/picture\/0J6052.250.jpg?48145829e3305a61cfdfa92775a2f323\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\u003c\/table\u003e\n\u003ch2\u003eLinearizing the output\u003c\/h2\u003e\n\u003cp\u003eThe relationship between the sensor’s output voltage and the inverse of the measured distance is approximately linear over the sensor’s usable range.  The \u003ca href=\"\/file\/0J845\/GP2Y0A41SK0F.pdf.pdf\"\u003eGP2Y0A51SK0F datasheet\u003c\/a\u003e (312k pdf) contains a plot of analog output voltage as a function of the inverse of distance to a reflective object.  You can use this plot to convert the sensor output voltage to an approximate distance by constructing a best-fit line that relates the inverse of the output voltage (V) to distance (cm).\u003c\/p\u003e\n\u003ch2\u003eAlternative Sharp distance sensors\u003c\/h2\u003e\n\u003cp\u003eWe have a variety of Sharp distance sensors to choose from, including the \u003ca href=\"https:\/\/www.pololu.com\/product\/2464\"\u003eshort-range (4 – 30 cm) GP2Y0A41SK0F\u003c\/a\u003e, \u003ca href=\"https:\/\/www.pololu.com\/product\/136\"\u003emedium-range (10 – 80 cm) GP2Y0A21YK0F\u003c\/a\u003e, and \u003ca href=\"https:\/\/www.pololu.com\/product\/1137\"\u003elong-range (20 – 150 cm) GP2Y0A02YK0F\u003c\/a\u003e.  These other analog distance sensors all have similar packages and identical pin-outs, making it easy to swap one version for another should your application requirements change.  We also carry the newer \u003ca href=\"https:\/\/www.pololu.com\/product\/2474\"\u003eSharp GP2Y0A60SZ analog distance sensor\u003c\/a\u003e (10 – 150 cm), which outperforms the other analog Sharp distance sensors in almost all respects, offering a low minimum detection distance, high maximum detection distance, wide 3 V output voltage differential, high 60 Hz sampling rate, operation down to 2.7 V, and optional enable control, all in a smaller package.\u003c\/p\u003e\n\u003ctable class=\"picture_with_caption center\"\u003e\n\u003ctr\u003e\n\u003ctd style=\"max-width: 470px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J5788.1200.jpg?e76bc7fce22d2bbb4667acc943debf0e\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id gp2y0a02yk0f sensor next to pololu carrier with sharp gp2y0a60szlf data-picture-id=\"0J5788\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J5788.470.jpg?e76bc7fce22d2bbb4667acc943debf0e\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 470px\"\u003e\u003cp\u003eSharp GP2Y0A02YK0F Sensor 20-150cm (left) next to Pololu Carrier with Sharp GP2Y0A60SZLF Sensor 10-150cm (right).\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp\u003eFor short-range detection applications, we carry three digital Sharp distance sensors that have low minimum detection distances and a high 400 Hz update rate.  They are available with a \u003ca href=\"https:\/\/www.pololu.com\/product\/1132\"\u003e5 cm\u003c\/a\u003e, \u003ca href=\"https:\/\/www.pololu.com\/product\/1134\"\u003e10 cm\u003c\/a\u003e, or \u003ca href=\"https:\/\/www.pololu.com\/product\/2465\"\u003e15 cm\u003c\/a\u003e range and simply tell you if something is in their detection range, not how far away it is.  They are smaller than the analog Sharp distance sensors and draw less current.\u003c\/p\u003e\n\u003ctable class=\"picture_with_caption center wide\"\u003e\n\u003ctr\u003e\n\u003ctd style=\"max-width: 600px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J6051.1200.jpg?4567baeed058eeddf63955f8fdf44bde\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"wide zoomable\" data-gallery-pictures=\"[{\" id variety of sharp distance sensors. from left to right: gp2y0a02 gp2y0a21 or gp2y0a41 gp2y0a51 and gp2y0d8xx. data-picture-id=\"0J6051\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J6051.600.jpg?4567baeed058eeddf63955f8fdf44bde\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 600px\"\u003e\u003cp\u003eA variety of Sharp distance sensors.  From left to right: GP2Y0A02, GP2Y0A21 or GP2Y0A41, GP2Y0A51, and GP2Y0D8xx.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp class=\"note_warning clear\"\u003e\u003cstrong\u003eNote:\u003c\/strong\u003e  The GP2Y0A51SK is different from our other \u003ca href=\"https:\/\/www.pololu.com\/category\/162\/sharp-analog-distance-sensors-with-3-pin-jst-ph-connectors\"\u003eSharp analog distance sensors with JST PH connectors\u003c\/a\u003e in two important ways: it uses a different 3-pin connector (JST ZH) that is \u003cins\u003enot\u003c\/ins\u003e compatible with our JST PH cables or 0.1″ connectors, and the mounting holes are in different locations, so it is \u003cins\u003enot\u003c\/ins\u003e compatible with our \u003ca href=\"https:\/\/www.pololu.com\/category\/160\/brackets-for-sharp-distance-sensors\"\u003ebrackets for Sharp distance sensors\u003c\/a\u003e.  Like with most of the other Sharp distance sensors we carry, the manufacturer recommends you insert a bypass capacitor of 10 µF or more between Vcc and GND near this sensor to stabilize the power supply line.\u003c\/p\u003e\n\u003cp class=\"note\"\u003eThe GP2Y0A51SK0F model is a lead-free, RoHS-compliant version of the Sharp GP2Y0A51 Distance Sensor.\u003c\/p\u003e","brand":"Sharp\/Socle","offers":[{"title":"Default Title","offer_id":47169966801241,"sku":"342450","price":17.49,"currency_code":"EUR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/0j6048.1200.jpg?v=1695769044","url":"https:\/\/xernuqvalzi.pro\/products\/mag-2450-sharp-gp2y0a51sk0f-analog-distance-sensor-2-15cm","provider":"Robot Italy","version":"1.0","type":"link"}