DFRobot_Infrared_sensor_breakout__SKU_SEN0042_-DFRobot

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

Specification

Connection Diagram

Infrared Sensor Connection Diagram

Sample Code

void setup(){
 Serial.begin(9600);
}

void loop(){
  Serial.print("Digital Signal:");
  Serial.println(digitalRead(3),BIN);
  delay(50);
}

More Documents