Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use Infrared Proximity Contactless Button: Examples, Pinouts, and Specs

Image of Infrared Proximity Contactless Button
Cirkit Designer LogoDesign with Infrared Proximity Contactless Button in Cirkit Designer

Introduction

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.

Explore Projects Built with Infrared Proximity Contactless Button

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
MakerEdu Creator with Bluetooth, IR Sensors, LCD Display, and Push Button Interaction
Image of MKL Distance Measurement: A project utilizing Infrared Proximity Contactless Button in a practical application
This circuit features a MakerEdu Creator microcontroller board interfaced with two MKE-S11 IR Infrared Obstacle Avoidance Sensors, a MKE-M02 Push Button Tact Switch, a MKE-M15 Bluetooth module, and a MKE-M08 LCD2004 I2C display module. The push button is connected to a digital input for user interaction, while the IR sensors are likely used for detecting obstacles. The Bluetooth module enables wireless communication, and the LCD display provides a user interface for displaying information or statuses.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Mega 2560 Proximity Sensor System with IR High Range Detection
Image of rawan123456789: A project utilizing Infrared Proximity Contactless Button in a practical application
This circuit consists of an Arduino Mega 2560 microcontroller connected to an IR High Range NPN Optical Proximity Switch. The proximity switch is powered by the Arduino's 5V and GND pins, and its output is connected to the Arduino's digital pin D5, allowing the microcontroller to read proximity sensor data.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Infrared Proximity Sensing System
Image of ir sensor: A project utilizing Infrared Proximity Contactless Button in a practical application
This circuit features an ESP32 Wroom microcontroller connected to an Infrared Proximity Sensor. The ESP32's GPIO33 is interfaced with the sensor's output, allowing the microcontroller to read proximity data. The sensor is powered by the ESP32's 5V output, and both devices share a common ground.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino-Based Infrared Proximity Sensor with I2C LCD Display
Image of Measure Distance With Analog IR Sensor: A project utilizing Infrared Proximity Contactless Button in a practical application
This circuit utilizes an Arduino UNO to interface with an infrared proximity sensor and a 16x2 I2C LCD display. The sensor measures distances based on reflected infrared light, and the Arduino processes this data to display the distance on the LCD while allowing for calibration through serial commands.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Infrared Proximity Contactless Button

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of MKL Distance Measurement: A project utilizing Infrared Proximity Contactless Button in a practical application
MakerEdu Creator with Bluetooth, IR Sensors, LCD Display, and Push Button Interaction
This circuit features a MakerEdu Creator microcontroller board interfaced with two MKE-S11 IR Infrared Obstacle Avoidance Sensors, a MKE-M02 Push Button Tact Switch, a MKE-M15 Bluetooth module, and a MKE-M08 LCD2004 I2C display module. The push button is connected to a digital input for user interaction, while the IR sensors are likely used for detecting obstacles. The Bluetooth module enables wireless communication, and the LCD display provides a user interface for displaying information or statuses.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of rawan123456789: A project utilizing Infrared Proximity Contactless Button in a practical application
Arduino Mega 2560 Proximity Sensor System with IR High Range Detection
This circuit consists of an Arduino Mega 2560 microcontroller connected to an IR High Range NPN Optical Proximity Switch. The proximity switch is powered by the Arduino's 5V and GND pins, and its output is connected to the Arduino's digital pin D5, allowing the microcontroller to read proximity sensor data.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ir sensor: A project utilizing Infrared Proximity Contactless Button in a practical application
ESP32-Based Infrared Proximity Sensing System
This circuit features an ESP32 Wroom microcontroller connected to an Infrared Proximity Sensor. The ESP32's GPIO33 is interfaced with the sensor's output, allowing the microcontroller to read proximity data. The sensor is powered by the ESP32's 5V output, and both devices share a common ground.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Measure Distance With Analog IR Sensor: A project utilizing Infrared Proximity Contactless Button in a practical application
Arduino-Based Infrared Proximity Sensor with I2C LCD Display
This circuit utilizes an Arduino UNO to interface with an infrared proximity sensor and a 16x2 I2C LCD display. The sensor measures distances based on reflected infrared light, and the Arduino processes this data to display the distance on the LCD while allowing for calibration through serial commands.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Touchless buttons for elevators, doors, and kiosks
  • Automatic hand sanitizer dispensers
  • Non-contact switches in medical or industrial environments
  • Gesture-based control systems
  • Smart home automation

Technical Specifications

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

Pin Configuration and Descriptions

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)

Usage Instructions

How to Use the Component in a Circuit

  1. Power the Sensor: Connect the VCC pin to a 3.3V or 5V power source and the GND pin to the ground of your circuit.
  2. Connect the Output: Attach the OUT pin to a microcontroller's digital input pin or directly to an external circuit (e.g., an LED or relay).
  3. Adjust Detection Range: If the sensor includes a potentiometer, use it to fine-tune the detection range (0 to 10 cm).
  4. Test the Sensor: Place an object within the detection range and observe the output pin. The OUT pin will go HIGH when an object is detected.

Important Considerations and Best Practices

  • Avoid Direct Sunlight: Infrared sensors can be affected by strong ambient IR light, such as sunlight. Use the sensor in controlled lighting conditions for optimal performance.
  • Stable Power Supply: Ensure a stable power source to avoid false triggers or inconsistent behavior.
  • Mounting: Position the sensor so that it has a clear line of sight to the detection area. Avoid obstructions that could block the IR beam.
  • Debouncing: If using the sensor with a microcontroller, implement software debouncing to filter out noise or rapid fluctuations in the output signal.

Example Code for Arduino UNO

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
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Sensor Not Detecting Objects

    • Cause: Incorrect wiring or insufficient power supply.
    • Solution: Double-check the connections and ensure the power supply is within the specified range (3.3V to 5V).
  2. False Triggers

    • Cause: Ambient IR interference or unstable power supply.
    • Solution: Use the sensor in a controlled environment and ensure a stable power source. Shield the sensor from direct sunlight or strong IR sources.
  3. Output Signal Fluctuates

    • Cause: Electrical noise or rapid changes in the detection area.
    • Solution: Add a capacitor (e.g., 0.1 µF) across the power pins to filter noise. Implement software debouncing in your microcontroller code.
  4. Short Detection Range

    • Cause: Misadjusted potentiometer or obstructions in the detection path.
    • Solution: Adjust the potentiometer to increase the range and ensure the sensor has a clear line of sight.

FAQs

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.