sku: SEN-08959
Description: Infrared proximity sensor made by Sharp. Part # GP2D120XJ00F has an analog output that varies from 3.1V at 3cm to 0.3V at 40cm 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.
BOB-10901
VCNL4000 Infrared Emitter BreakoutSEN-08733
Infrared Sensor Jumper Wire - 3-Pin JST
Comments 15 comments
this sensor’s range is not 3 to 40 cm
but 4 to 30 cm….
at least, according to it’s datasheet.
Careful using these on real projects there obsolete!
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.
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.
A 100Hz or lower low pass RC filter works very well. I’ve also implemented digital filters with these and it works great too.
the data sheet above is not so usefull.
here’s a link to a good one at sharp
http://www.sharpsma.com/Page.aspx/americas/en/part/GP2D120/
Does anyone have a simple (and fast) distance function to convert the voltage into a simple distance value? That would be super helpful. :)
There’s no simple function for that. It’s a lot simpler to use a table for it. The Python code on the link below will generate it for the Arduino.
http://github.com/pjwerneck/Diaspar/blob/master/robots/sensors/sharp_table.py
The link below shows how to do an approximation.
http://www.acroname.com/robotics/info/articles/irlinear/irlinear.html
I may use one of these as a controller for an ‘Auduino’-based “theremin.”
Used this on a musical control surface as input to Max/MSP through Arduino, works really well!
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?)
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 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