void loop() int irSensorValue = digitalRead(irSensorPin); if (irSensorValue == HIGH) Serial.println("Obstacle detected!"); else Serial.println("No obstacle detected.");
Turning decreases the detection distance (lower sensitivity). Calibration Procedure Fc 51 Ir Sensor Datasheet
Digital Signal (TTL levels: LOW when obstacle detected, HIGH when clear) 2cm to 30cm (Adjustable via potentiometer) Detection Angle 35° Effective Angle Comparator IC LM393 Dual Differential Comparator PCB Dimensions Mounting Hole 3mm screw hole for easy physical installation 3. Pin Configuration void loop() int irSensorValue = digitalRead(irSensorPin)
Placed alongside conveyor belts to log passing items. else Serial.println("No obstacle detected.")
Always test your specific module’s range with your target object before finalizing your design.
void loop() int irSensorValue = digitalRead(irSensorPin); if (irSensorValue == HIGH) Serial.println("Obstacle detected!"); else Serial.println("No obstacle detected.");
Turning decreases the detection distance (lower sensitivity). Calibration Procedure
Digital Signal (TTL levels: LOW when obstacle detected, HIGH when clear) 2cm to 30cm (Adjustable via potentiometer) Detection Angle 35° Effective Angle Comparator IC LM393 Dual Differential Comparator PCB Dimensions Mounting Hole 3mm screw hole for easy physical installation 3. Pin Configuration
Placed alongside conveyor belts to log passing items.
Always test your specific module’s range with your target object before finalizing your design.