SparkFun
Infrared Proximity Sensor - Sharp GP2Y0A21YK
The Sharp GP2Y0A21YK is an infrared proximity sensor with an analogue voltage output that varies with distance — from 3.1 V at 10 cm to 0.4 V at 80 cm. It us...
Get notified when back in stock
The Sharp GP2Y0A21YK is an infrared proximity sensor with an analogue voltage output that varies with distance — from 3.1 V at 10 cm to 0.4 V at 80 cm. It uses an IR emitter and position-sensitive detector to measure distance, making it unaffected by the colour or reflectivity of most objects.
The sensor terminates in a 3-pin JST connector. Use a JST pigtail cable for easy connection, or solder wires directly to the back of the module.
Specifications
- Part Number: GP2Y0A21YK
- Detection Range: 10–80 cm
- Output: Analogue voltage (0.4–3.1 V)
- Supply Voltage: 4.5–5.5 V
- Connector: 3-pin JST
- Manufacturer: Sharp
Ideal For
- Obstacle avoidance on robots
- Distance measurement projects
- Object detection and proximity sensing
- Arduino and microcontroller projects
Jargon buster
Plain-language definitions for the technical terms used above.
- microcontroller
- A microcontroller is a small computer on a single chip that runs a stored program and controls connected inputs and outputs such as buttons, sensors, displays and communication interfaces. In a device built around one, it is the part that executes the code and coordinates the device's behaviour.
- Proximity sensor
- A sensor that detects the presence of a nearby object without physical contact, using methods such as infrared, ultrasonic, capacitive, inductive or time-of-flight. Useful ranges vary widely between types, from a few millimetres to several metres, so check a given sensor's specified range to see whether it suits close-up touch-free triggers or longer-distance detection.
Find this product in
Brands
Sensors & Input
GP2Y0A21YK Datasheet
Datasheet · 69.5 KB · Click any page to view full size
Supplier page — sparkfun.com
Supplier Description · 567.3 KB · Click any page to view full size
Source Code
Open-source libraries, firmware & example projects for this product
Simple Sketches
8289da1
over 11 years ago
· 20 commits
- apds9960 Added simple sketch for APDS-9960 on MicroView over 11 years ago
- cap_keypad changes for cap keypad and temp sensor over 11 years ago
- DS18B20 changes for cap keypad and temp sensor over 11 years ago
- HMC5883L add compass over 11 years ago
- HTU21D a bunch of updates for flex, photogate, pir. adds cap keypad over 11 years ago
- INMP401 add microphone over 11 years ago
- ir_photogate a bunch of updates for flex, photogate, pir. adds cap keypad over 11 years ago
- ir_proximity add simple ir proximity over 11 years ago
- itg3200 itg 3200 gyro over 11 years ago
- light add cds cell light sensor over 11 years ago
- maxbotix_ez1 initial commit with maxbotix sonar ex over 11 years ago
- MLX90614 add two tmp sensors over 11 years ago
- MMA8452 a bunch of updates for flex, photogate, pir. adds cap keypad over 11 years ago
- mpl3115a2 add mpl3115a2 pressure sensor over 11 years ago
- pir a bunch of updates for flex, photogate, pir. adds cap keypad over 11 years ago
Related Tutorials
Free guides on learn.littlebird.com.au