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

Adafruit

$31.20 |
In stock at supplier
No reviews yet

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

Stock availability

Available with leadtime
100 available
Estimated Delivery
Arrives
Disclaimer
View Markdown
Secure checkout

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.
GND
GND is the ground or reference connection (0 V) for a circuit. When connecting two devices together, their grounds must be joined so both agree on what counts as a low or high signal.
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.
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.