Surilli
Published © LGPL

Line Detection using IR sensor and Surilli Wifi

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

EasyFull instructions provided30 minutes178
Line Detection using IR sensor and Surilli Wifi

Things used in this project

Hardware components

IR sensor
×1
Surilli WiFi
Surilli WiFi
×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

Figure 1

Code

Code

C/C++
int tracking_sensor_pin =2;//sensor signal pin is connected to pin2.
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

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

Comments