Sharp GP2Y0A21YK0F IR distance sensor (10-80 cm)
Measures distance with infrared light, good for robots avoiding walls.
Triangulating IR ranger with analog output: about 3 V at 10 cm falling to 0.4 V at 80 cm (non-linear). 4.5-5.5 V, about 30 mA. Two 3.2 mm mounting holes 37 mm apart. JST cable included.
Electrical
- Supply voltage
- 4.5 to 5.5 V
- Current
- 30 mA typical, 40 mA max
- Talks over
- analog
Pins
| Pin | Can do | Max V | Max mA |
|---|---|---|---|
| VCC | 5 VRed wire. | ||
| GND | groundBlack wire. | ||
| VO | analogWhite wire: 0.4-3.1 V. |
Size and material
- Size
- 44 × 19 × 14 mm
- Weight
- 3.5 g
- Material
- plastic
- Sold by the
- piece
Works with
- Arduino Uno R3
- Arduino Nano
- Arduino Mega 2560 Rev3
- Arduino UNO R4 WiFi
- Arduino UNO R4 Minima
- Arduino Nano ESP32
- ESP32 DevKitC (ESP32-WROOM-32, 38-pin)
- ESP32-S3-DevKitC-1 (N8R8)
- Adafruit ESP32-S3 Feather (4 MB flash, 2 MB PSRAM)
- Seeed XIAO ESP32S3 Sense (camera + mic)
- Seeed XIAO ESP32C3
- Seeed XIAO ESP32C6
- Raspberry Pi Pico (RP2040)
- Raspberry Pi Pico W (RP2040, Wi-Fi)
- Raspberry Pi Pico 2 (RP2350)
- Raspberry Pi Pico 2 W (RP2350, Wi-Fi)
- Seeed XIAO RP2040
- Seeed XIAO nRF52840 (Bluetooth LE)
Projects using it
No public project uses it yet. Design one that does.