Adafruit
IR distance sensor includes cable (10cm-80cm) [GP2Y0A21YK0F]
The Sharp GP2Y0A21YK0F is an infrared distance sensor that measures distances from 10 cm to 80 cm by bouncing IR light off objects. It outputs an analogue vo...
The Sharp GP2Y0A21YK0F is an infrared distance sensor that measures distances from 10 cm to 80 cm by bouncing IR light off objects. It outputs an analogue voltage proportional to distance — approximately 3 V at 10 cm and 0.4 V at 80 cm — which can be read directly by an Arduino or other microcontroller's ADC input.
Includes a 30 cm (12") JST interface cable with three wires: red (5 V), black (GND), and white (analogue output).
Key Features
- Sensing Range – 10 cm to 80 cm
- Output – Analogue voltage (0.4 V to 3 V)
- Supply Voltage – 4.5 V to 5.5 V
- Current Consumption – Approximately 30 mA
- Cable Included – 3-pin JST connector, 30 cm length
Ideal For
- Robot obstacle detection and avoidance
- Proximity sensing and object detection
- Arduino and microcontroller projects
Package Contents
- 1× Sharp GP2Y0A21YK0F IR distance sensor
- 1× 3-pin JST interface cable
Resources
Jargon buster
Plain-language definitions for the technical terms used above.
- ADC
- An analogue-to-digital converter reads a changing voltage and turns it into a number the microcontroller can use. It matters when connecting analogue sensors such as light, sound, or variable-resistor sensors.
- microcontroller
- A microcontroller is a small computer on a chip that runs your program and controls connected inputs and outputs. For this product, it is the part that reads buttons and sensors, drives the display and speaker, and communicates over Bluetooth.
Find this product in
Brands
Related Tutorials
Free guides on learn.littlebird.com.au