Line Hunting Sensor Module
- Photosensitive diode
- Working power: + 5V
- Working current: < 10mA
- Working temperature range: 0'C 50'C
- Output electrical level signal: TTL
- Output interface: 3 wire
- Easy to install
- Photosensitive diode
- Working power: + 5V
- Working current: < 10mA
- Working temperature range: 0'C 50'C
- Output electrical level signal: TTL
- Output interface: 3 wire
- Easy to install
PINOUT | |
---|---|
PIN | DESCRIPTION |
1 | GND |
2 | OUT |
3 | VCC (+5V) |
Please note that some versions of this module may use a different pinout order, but are functionally the same: GND/VCC/OUT (G/V+/S)
EXAMPLE CODE
ARD_Line_Hunting_Sensor_HCARDU0005_Example.pde
/* FILE: ARD_Line_Hunting_Sensor_HCARDU0005_Example.pde DATE: 03/07/12 VERSION: 0.1 This is a simple example of how to use the HobbyComponents Arduino Line hunting sensor module (HCARDU0005). It is a very simple module that requires only one DIO pin (defined as an input) to operate. When the sensor detects a reflective object in close proximity it will pull a DIO pin that it has been connected to LOW. A non reflective or no object in close proximity will cause the DIO pin to go high. 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. */ /* Define the DIO pin that will be used to communicate with the sensor */ #define LINEHUNTSENS_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 the sensor will be connected to as an input */ pinMode(LINEHUNTSENS_DIO, INPUT); } /* Main program loop */ void loop() { /* If the DIO pin is pulled low then an object has been detected */ if (!digitalRead(LINEHUNTSENS_DIO)) Serial.println("Object detected !"); }
Specific References
16 other products in the category
Photoresistive light...
Photoresistive light dependent resistor module. Keyes brand KY-018. This module allows for...
25V Voltage Sensor Module
A simple but very useful module which uses a potential divider to reduce any input
KY-008 650nm 5V Laser Module
This 5mW laser module emits a small intense focused beam of visible red light. The example...
ADS1115 I2C 16Bit ADC Module
This module (HCMODU0098) is a breakout board for the Texas Instruments ADS1115 ADC. This...
BF350-3AA Strain Gauge Module
This strain gauge module uses a BF350 sensor to measure mechanical stresses in solid...
- Currently Out of Stock
MAX6675 K-type Thermocouple...
This temperature sensor and module makes use of the Maxim MAX6675 K-Thermocouple to digital...
Double speed encoder module
This bundle consists of two speed encoder photoelectric pulse output modules. The HC-020K...
BF350-3AA Strain Gauge Sensor
A resistive strain gauge sensor with a 350 ohm nominal resistance which varies when a force is...
TTP223 Capacitive Touch Sensor
A capacitive touch sensor module based on the dedicated TTP223 touch sensor IC. The module...
GP2Y1010AU0F / GP2Y1014AU...
The GP2Y1010AU0F / GP2Y1014AU (HCSENS0024) from Sharp is an optical air quality sensor,...