Introduction
This is an edge detection sensor from DFRobot. It will help your robot detect the edge of a precipice, preventing it from falling off a table or down the stairs to it's certain demise! This IR distance sensor is connected to an arduino digital pin.
Applications
- Edge detection sensor
- Intelligent Mobile Robotics Platforms
- Home Cleaning Robots
Specification
- Supply Voltage: 2.7~6.2v
- Current: < 10mA
- Range distance: 2~10cm (Low), <2cm or >10cm (High)
- Interface:1 digital pin
- Signal Voltage: Vcc-0.6V(High), 0.6V(Low)
- Size: 36.0x10.0x15.0 mm
- Weight: < 5g
Connection Diagram
Sample Code
void setup(){
Serial.begin(9600);
}
void loop(){
Serial.print("Digital Signal:");
Serial.println(digitalRead(3),BIN);
delay(50);
}