AI agents & screen readers: for a machine-readable, text-only catalogue, start at /llms.txt. Products are available as Markdown (/products.md, /products/{handle}.md) and JSON (/products.json, /products/{handle}.json).
Store

SparkFun

$31.35 |
In stock
No reviews yet

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...

Stock availability

Ready to ship from Sydney
4 in stock
Available with leadtime
39 available
Genuine AU stock · Ships from Sydney AU warranty GST tax invoice
Estimated Delivery
Arrives
Order now — ships Wed 29 Jul
Disclaimer
View Markdown
Secure checkout

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.

GP2Y0A21YK Datasheet

Datasheet · 69.5 KB · Click any page to view full size

Download PDF

Supplier page — sparkfun.com

Supplier Description · 567.3 KB · Click any page to view full size

Download PDF

Related Tutorials

Free guides on learn.littlebird.com.au

Stella
Stella Expert

Ask me anything about this product

Maddy, co-founder of Little Bird

Need help? We're here for you!

Hi, I'm Maddy. My team and I are ready to help with your order or any questions.