Description
4 Channel Obstacle Avoidance Infrared Sensor Module Line Follower
technical specifications:
1 Operating Voltage: DC 3.3V-5V
2 Operating Current: try to choose more than 1A of power supply
Operating Temperature: -10 C – +50 C
Install diaphragm: M3 screws
Detection Range: adjustable from 1 mm to 60 cm, the greater the distance, the more stable the performance and the more reflective white.
Dimensions: control frame 42mm 38mm 12mm (length width height)
Small plate front 25mm 12mm 12mm (length width height)
7 output interfaces: 6-pin interface (1234 for the 4-channel output terminal, + for positive power supply, – for negative power supply grounded)
Output signal: TTL level (can be directly connected to microcontroller I/O, detecting reflected infrared light on the sensor, the red LED, low output, infrared light, unlit light, high-level output.)
applications:
Smart car or robot line following (including black and white lines), walking along the black line, also known as line tracing.
Smart car to avoid cliffs, falls.
Smart machine to avoid obstacles
Products include:
4-channel multi-channel detection system (including four probes), a main control circuit, 18 Dupont lines
Description and notes:
technical specifications:
1) operating voltage: DC 3.3 V – 5 V
2) operating current: try to choose 1 above the power supply
3) operating temperature: -10 – +50 degrees
4) installation clearance: M3 screw
5) detection range: from 1 mm to 60 cm adjustable, close performance with white reflection, farthest distance with no reflection.
6) dimensions: main board 38 mm x 12 mm x 12 mm (LWH)
Small board forward 25 mm x 12 mm x 12 mm (LWH)
7) Output interface: 6-wire system interface (1234 for 4-channel signal output, + for positive power supply, – for negative power supply and ground)
8) Output signal: TTL level (can be directly connected to MCU I/O, infrared reflection induction from the sensor, red light, low-level output, no infrared light, non-luminous, high-level output.)
Application:
1. Intelligent car or robot line (including white and black line tracking), along the black line path, also called line following.
2. Intelligent car prevents falling, fall prevention.
3. The Smart Car Avoids Obstacles
We have datasheets available for all components, should they not be present in the product download sheet, please send us a message via the contact us form and we will publish it as soon as possible on our website.
Tutorial: How to Use the 4-Way Sensor Module
This infrared sensor helps you avoid obstacles and detect lines. Useful for robotics and home automation projects.
What you need
- Arduino or compatible
- Power cable
- 10kΩ resistor (to limit the pull-up)
- Connection cable
Steps
- 1. Connect the module to the Arduino with the following pins: VCC to 5V, GND to GND, OUT to an available digital pin.
- 2. Connect the 10kΩ resistor between the VCC pin and the OUT pin.
- 3. Load the following code onto your Arduino.
- 4. Add the module to your project and test the output.
- 5. Adjust the sensor for the desired distance.
- 6. Implement an obstacle avoidance algorithm.
- 7. Check the datasheet for further details.
Example code
```
#include <Arduino.h>
int sensorPin = 2;
int sensorValue = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
sensorValue = digitalRead(sensorPin);
Serial.println(sensorValue);
delay(100);
}
```
Mini project
Create a robot that avoids obstacles on a black line on the floor.
Common mistakes
- Forget to connect the 10kΩ resistor.
- Connect the VCC pin directly to GND.
- Use an analog pin instead of a digital one.
- Omit the delay in the code.
Recommended accessories
- Arduino Uno
- Black line
- Floor with contrasting color
Frequently asked questions
How to adjust the detection distance?
Check the datasheet for specific values. Adjust the sensor position.
Does the sensor work with Arduino Mini?
Yes, but make sure the pin used supports digital signals.
Does the sensor detect only black lines?
No, it detects light contrasts. Try with lines of different colors.








Reviews
There are no reviews yet.