This is a retired product, but fear not as there is a newer, better version available: SEN-12728

Creative Commons images are CC BY-NC-SA 3.0


This product has been retired from our catalog and is no longer for sale.

This page is made available for those looking for datasheets and the simply curious. Please refer to the description to see if a replacement part is available.

Description: Infrared proximity sensor made by Sharp. Part # GP2D120XJ00F has an analog output that varies from 3.1V at 3cm to 0.3V at 30cm with a supply voltage between 4.5 and 5.5VDC. The sensor has a Japanese Solderless Terminal (JST) Connector. We recommend purchasing the related pigtail below or soldering wires directly to the back of the module.


Comments 24 comments

  • Careful using these on real projects there obsolete!

  • this sensor’s range is not 3 to 40 cm
    but 4 to 30 cm….
    at least, according to it’s datasheet.

  • D

  • Dear engineers

    Is this good for gasoline (benzine) level detection in tank? Or water?

  • What are the advantages/disadvantage to using an infrared sensor compared to a ultrasonic sensor for range finding

  • Pretty happy with this so far.

    For reference, I came up with the following function to convert its Vout to distance (cm): distancecm = (12.285/(voltage-0.097))-.42

  • What’s the story with future availability? I see notes from 2 years ago that the parts are obsolete. But they’re still available? I have a project that might need a couple of dozen of them. But I’m not ready to try to buy that many right now. Am I at risk of them not being available if/when I get around to ordering?

  • I am building wooden boxes and designing scenes on the inside of them. It will be a closed box with an LED to light the inside and a fisheye peephole to look through to the inside. I am thinking about purchasing this Sensor so that when people go to put their eye to the peep hole the light on the inside turns on, hands free. How could i go about connecting this sensor to a coincell battery source and the LED itself? Thanks

  • I was wondering if anyone has experience with what materials you can hide these sensors behind and still get a reading through? Any tips would be appreciated!

    • I have used these behind standard plexiglass. It tends to make the signal slightly more noisy, but detection works and helps protect the sensors which are quite sensitive to dirt and scratches.

  • Not such a great sensor for obstacle avoidance on an AV.
    When range get belows its valid range ( < ~4 cm), the sensor will read just about anything.
    Looks like if the signal is blocked, the sensor thinks the distance is so great that the signal dissipated before it could return and be read.
    Makes sense.
    But not so great if your AV turns into something. :^)
    Looks like the more expensive ultra sonic sensor is smart enough to interpret a blocked signal as its minimum distance. (conform anyone?)

  • Used this on a musical control surface as input to Max/MSP through Arduino, works really well!

  • I may use one of these as a controller for an ‘Auduino’-based “theremin.”

  • Does anyone have a simple (and fast) distance function to convert the voltage into a simple distance value? That would be super helpful. :)

  • the data sheet above is not so usefull.
    here’s a link to a good one at sharp

  • Has anybody hooked up a scope to the output of this sensor? I have 2 here and I have to say the output on these units is extremely noisy. There’s a 1KHz clock that shows up in the output, at a fairly high amplitude.

    • Thanks for the comment, we’ll take a look and see if some low-pass filtering helps.

      • Hi guys, just wondering whether you’ve implemented the 100Hz LP on these devices. I purchased a few of these and just want to know whether I have to do the filtering or if its done already.

      • A 100Hz or lower low pass RC filter works very well. I’ve also implemented digital filters with these and it works great too.

  • I was able to run this at 3.3V and it appears to be working fine. Maybe the response curve will not be as smooth or something but for simple detecting it definitely works.

Related Products