

The Infrared Proximity Contactless Button (Manufacturer Part ID: PRT-18582) by Sparkfun Electronics is a sensor designed to detect the presence of an object or person without requiring physical contact. It utilizes infrared (IR) light to sense proximity and triggers a response when an object enters its detection range. This makes it ideal for applications where hygiene, durability, or non-contact interaction is critical.








The following table outlines the key technical details of the Infrared Proximity Contactless Button:
| Parameter | Value |
|---|---|
| Operating Voltage | 3.3V to 5V |
| Operating Current | ~20mA |
| Detection Range | 0 to 10 cm (adjustable) |
| Output Type | Digital (High/Low) |
| Output Voltage (High) | ~3.3V to 5V (depends on Vcc) |
| Output Voltage (Low) | ~0V |
| Response Time | < 100 ms |
| Operating Temperature | -20°C to 70°C |
| Dimensions | 25mm x 25mm x 10mm |
The Infrared Proximity Contactless Button has a simple 3-pin interface. The pinout is as follows:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (3.3V to 5V) |
| 2 | GND | Ground connection |
| 3 | OUT | Digital output pin (High when object is detected) |
VCC pin to a 3.3V or 5V power source and the GND pin to the ground of your circuit.OUT pin to a microcontroller's digital input pin or directly to an external circuit (e.g., an LED or relay).OUT pin will go HIGH when an object is detected.Below is an example of how to use the Infrared Proximity Contactless Button with an Arduino UNO:
// Infrared Proximity Contactless Button Example
// Manufacturer: Sparkfun Electronics
// Part ID: PRT-18582
const int sensorPin = 2; // Digital pin connected to the sensor's OUT pin
const int ledPin = 13; // Onboard LED pin for visual feedback
void setup() {
pinMode(sensorPin, INPUT); // Set sensor pin as input
pinMode(ledPin, OUTPUT); // Set LED pin as output
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int sensorState = digitalRead(sensorPin); // Read the sensor's output
if (sensorState == HIGH) {
// Object detected
digitalWrite(ledPin, HIGH); // Turn on the LED
Serial.println("Object detected!");
} else {
// No object detected
digitalWrite(ledPin, LOW); // Turn off the LED
Serial.println("No object detected.");
}
delay(100); // Small delay to stabilize readings
}
Sensor Not Detecting Objects
False Triggers
Output Signal Fluctuates
Short Detection Range
Q: Can this sensor detect transparent objects?
A: The sensor may struggle to detect transparent or highly reflective objects due to the way infrared light interacts with such surfaces.
Q: Is the sensor waterproof?
A: No, the sensor is not waterproof. Use it in dry environments or enclose it in a waterproof housing for outdoor applications.
Q: Can I use this sensor with a 3.3V microcontroller?
A: Yes, the sensor is compatible with both 3.3V and 5V systems. Ensure the VCC pin matches the microcontroller's voltage level.
Q: What is the maximum detection range?
A: The maximum detection range is approximately 10 cm, but this can vary depending on environmental conditions and object reflectivity.