Surilli
Published © LGPL

Line Detection Using IR sensor and Surilli GSM

This IR proximity sensor can be used for obstacle sensing, color detection, fire detection, line sensing, etc and also as an encoder sensor.

BeginnerFull instructions provided30 minutes324
Line Detection Using IR sensor and Surilli GSM

Things used in this project

Hardware components

IR Sensor
×1
Surilli GSM
Surilli GSM
×1
Jumper wires (generic)
Jumper wires (generic)
×3
Breadboard (generic)
Breadboard (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Line Detection using IR sensor and Surilli GSM

Code

IR_Sensor

C/C++
int tracking_sensor_pin =5;//sensor signal pin is connected to pin5.
void setup() {
  pinMode(tracking_sensor_pin , INPUT);//sensor signal pin declared as INPUT
  Serial.begin(9600);
}
void loop() {
  
  int TrackingSensor = digitalRead(tracking_sensor_pin);//reading Sensor signal pin
  if(TrackingSensor == 1){
   Serial.println("BLACK");
   delay(200);  
  }
 else if(TrackingSensor == 0){
  Serial.println("WHITE"); 
   delay(200);
  }
}

Credits

Surilli

Surilli

196 projects • 47 followers
Surilli is a premiere Internet of Things centric Technology Company aimed at providing cutting edge innovative solutions.

Comments