IR infrared obstacle avoidance sensor - E18-D80NK
Transmitter and receiver in one photoelectric sensor. The sensor has an adjustable detection distance and visible light interference. It is easy to use and is ideal for panel mounting.
Transmitter and receiver in one photoelectric sensor. The sensor has an adjustable detection distance and visible light interference. It is easy to use and is ideal for panel mounting.
We also stock a bracket, which is perfect for easy mounting of the sensor (HCSENS0007) and also allows easy mounting to one of our robot smart cars.
Electrical Characteristics:
Supply Voltage: 5VDC
Supply Current: The 100mA
Range: 3-80CM
Size: 17mm x 45mm
Lead Length: 45cm
Wire colour codes:
BRN = 5V
BLU = GND
BLK = OUT
Output:
High = triggered
LED:
On when not triggered
Setup instructions:
With nothing obstructing the sensor adjust the multi-turn screw at rear of sensor until the LED switches from off to on. The sensor should then be calibrated for its current environment.
PLEASE NOTE: As this is an infra-red sensor it can be affected external sources of infra-red light such as sunlight.
Maximum range will be affected be environmental conditions and reflectiveness of sensed object
Example Arduino Sketch::
-
/* FILE: Obstacle_Avoidance_Sensor_Example
-
DATE: 12/07/20
-
VERSION: 1.0
-
-
This is a simple example of how to use the Hobby Components obstacle avoidance
-
sensor module (HCSENS0006).
-
-
The sensor accepts a GND and +5V supply, and has a single digital output
-
which goes high (5V) when an object is in range of the sensor.
-
-
This example sketch will simply output a message to the UART when it
-
senses this pin going high.
-
-
SENSOR PINOUT:
-
Blue: GND
-
Brown: +5V
-
Black: Digital pin 2
-
-
You may copy, alter and reuse this code in any way you like, but please leave
-
reference to HobbyComponents.com in your comments if you redistribute this code.
-
This software may not be used directly for the purpose of selling products that
-
directly compete with Hobby Components Ltd's own range of products.
-
-
THIS SOFTWARE IS PROVIDED "AS IS". HOBBY COMPONENTS MAKES NO WARRANTIES, WHETHER
-
EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
-
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ACCURACY OR LACK OF NEGLIGENCE.
-
HOBBY COMPONENTS SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR ANY DAMAGES,
-
INCLUDING, BUT NOT LIMITED TO, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY
-
REASON WHATSOEVER.
-
-
*/
-
-
/* Select the input pin for the hall effect sensors output. */
-
#define SENSOR_DIO 2
-
-
-
-
/* Initialise serial and DIO */
-
void setup()
-
{
-
/* Setup the serial port for displaying the status of the sensor */
-
Serial.begin(9600);
-
-
/* Configure the DIO pin which the sensors digital output will be connected to */
-
pinMode(SENSOR_DIO, INPUT);
-
}
-
-
-
/* Main program loop */
-
void loop()
-
{
-
/* Read the status of the sensors digital output and if it is high
-
then send an alert to the serial port */
-
if (digitalRead(SENSOR_DIO))
-
{
-
Serial.println("OBJECT DETECTED!");
-
}
-
}
Specific References
16 other products in the category
PIR Bracket
The perfect accompaniment to our Pyroelectric Infrared PIR Motion Sensor Detector Module...
GP2Y1010AU0F / GP2Y1014AU...
The GP2Y1010AU0F / GP2Y1014AU (HCSENS0024) from Sharp is an optical air quality sensor,...
WATERPROOF DS18B20...
Compatible with DS18B20. Please note that this sensor does not support parasitic mode.
...TCS230 Colour Sensor Module
A breakout board for the TCS320 colour sensor which also includes white LEDs for reflective...
- Currently Out of Stock
PIR and Bracket Bundle
The perfect accompaniment to our Pyroelectric Infrared PIR Motion Sensor Detector Module...
VL53L0X TOF laser ranging...
The VL53L0X (HCMODU0127) is a new generation Time-of-Flight (ToF) laser-ranging module housed...
TSL2561 Luminosity Sensor...
The TSL2561 (HCARDU0102) Luminosity sensor module is a light to digital interface module. The...
Optical endstop for 3D...
Optical endstop providing a contactless and reliable alternative to the mechanical...
Photoresistive light...
Photoresistive light dependent resistor module. Keyes brand KY-018. This module allows for...