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
Optical endstop for 3D...
Optical endstop providing a contactless and reliable alternative to the mechanical...
5A Range ACS712T ELC-05B...
On-board ACS712T ELC-05B current sensor; Working voltage: DC 5V; Power LED indicator; Measures...
- On sale!
VL53L0X TOF laser ranging...
The VL53L0X (HCMODU0127) is a new generation Time-of-Flight (ToF) laser-ranging module housed...
Photosensitive Resistance...
This is a simple photosensitive resistance sensor module. The sensor has a digital output that...
Gas Sensor (MQ2)
WATERPROOF DS18B20...
Compatible with DS18B20. Please note that this sensor does not support parasitic mode.
...IR infrared speed sensing...
An excellent little module for detecting the speed of a motor. Ideal for our 2- and 4-wheeled...
- Currently Out of Stock
Waterproof DS18B20...
DS18B20 temperature sensor chip, waterproof, stainless steel probe, cable length: 100cm; Power...
- Currently Out of Stock
ADS1115 I2C 16Bit ADC Module
This module (HCMODU0098) is a breakout board for the Texas Instruments ADS1115 ADC. This...
Capacitive Touch Sensor Module
- Main chip: LM393
- Working voltage: DC 5V
- Single channel signal output
-...
Side mounted water level /...
A side mounted waterproof float switch (HCSENS0015) which uses a magnet embedded in the float,...