sku: SEN-00242
Description: Infrared proximity sensor made by Sharp. Part # GP2Y0A21YK has an analog output that varies from 3.1V at 10cm to 0.4V at 80cm. 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.
Documents:
BOB-10901
VCNL4000 Infrared Emitter BreakoutSEN-08733
Infrared Sensor Jumper Wire - 3-Pin JST
Comments 16 comments
Great little sensor. It does take large pulses of power so make sure you have a capacitor near it.
Justin
http://coilgunpower.com
These sensor are great, however, if you want precision I recommend getting one with at least 1.5x the max range you expect. The output isn’t linear and if you check the curve on the graph you’ll see how the resolution gets lower with distance.
Arduino library for the Sharp GP2Y0A21YK IR Distance sensor: http://code.google.com/p/gp2y0a21yk-library/
These a great little devices. I have used them extensively in a speed climbing timing system I’m building: http://twurl.nl/1gpjdj
carful using these on real projects at work…there obsolete!
Engineer04915:
As well as the use of the proper “careful”…
I bought one of these modules to add vision to a robot I am working on and the output can’t drive the ADC (ATMEGA uC) input. When I measure with a DMM (10MOhm) output is as expected, but trying multiple ADC inputs, the reading is about 60% and won’t move.
Good sensor, but recommend adding an analog buffer in series with the output just in case.
Make sure you don’t have the internal pullups (~40k) enabled. (digitalWrite() the pin to 0 to disable)
will any of these work with 3.3V ?
Sadly, they don’t. At 3.3V you can get some wild voltage swings even when the distance to target is fixed.
Please consider adding these proximity sensors (there are three in your catalog) to the proximity sensor category.
Should be fixed. Thanks for pointing that out
They are now cross-listed in both categories.