1. Introduction
The Yahboom 8-channel line tracking sensor module (Model: YB-MUX04-1.0) is specifically engineered for line patrol functionalities in robot cars. It integrates eight high-sensitivity infrared sensors, enabling rapid and precise detection of contrast information between black and white lines, thereby facilitating smooth route recognition. This module supports both IIC and serial communication protocols and features standard IO and PH2.0 interfaces, allowing easy connection to popular development boards such as Arduino, Raspberry Pi, and Micro:bit for quick integration and expansion. A key feature is its one-button automatic calibration, eliminating the need for manual potentiometer adjustments and adapting to line patrol maps made of various materials. Onboard LED indicators provide intuitive feedback on each sensor's operational status. This module is an excellent choice for educational robotics projects and intelligent transportation applications.
Video: Overview of the 8-channel line tracking module's features and automatic calibration.
2. Features
- One-Key Calibration: Equipped with a key calibration function, eliminating the need for manual potentiometer adjustments for more convenient use.
- High-Sensitivity Infrared Sensors: Integrates 8 high-sensitivity infrared sensors for rapid detection of black and white line contrast.
- Multiple Communication Interfaces: Supports IIC, serial communication, and GPIO communication, compatible with various control schemes.
- Standardized Connectivity: Features standard IO interface and PH2.0 interface for easy connection to mainstream development boards.
- Digital and Analog Output: Onboard MCU reads and processes 8-channel probe data, outputting both digital and analog values.
- Flexible Line Width Adaptation: Can flexibly adapt to line widths ranging from 0.5cm to 6cm, offering enhanced adaptability.
- Thickened PCB Board: Features a 1.6mm thick impact-resistant PCB board for durability.
- Complex Track Map Compatibility: Designed to adapt to complex track maps and high-difficulty line tracking scenarios.
- Accurate Identification: Provides accurate identification of path characteristics such as right-angle, obtuse-angle, acute-angle, crossroad, and T-type routes.
- Wiring and DuPont Line Support: Supports both direct wiring and DuPont line connections.

Image: Key features of the 8-channel line tracking module.
3. Specifications

Image: Product dimensions and basic parameters.
| Parameter | Value |
|---|---|
| Operating voltage | 5V |
| Operating temperature | -10 ~ +60 °C |
| Mounting hole diameter | M2.5 or M3 copper column, screw |
| Operating current | 85mA |
| Detection line width | 0.5cm-6cm |
| Detection height | 5mm-60mm |
| Fixed hole distance | 16mm-42mm |
| Product size | 91.11*36.48*13.6mm (Length*width*height) |
| Output interface | 8PCS IO interfaces, I2C interface, USART interface |
| Output signal | Digital and analog signals |
4. Setup
4.1. Installation Method
The module board features slots designed for flexible mounting, accommodating spacing between 16mm and 42mm. For typical smart car applications, a fixing hole spacing of 19mm is common. When installing, it is recommended to maintain a distance range of 0.5cm to 6cm between the module's probes and the tracking surface for optimal performance.

Image: Installation method and recommended distance.
4.2. Wiring Method
The module offers versatile connectivity options, including PH2.0 interfaces and a pin header interface, supporting GPIO, Serial Port, and I2C communication.
- PH2.0 Interface: The PH2.0 interface is designed with anti-reverse connection to prevent damage from incorrect polarity. It is suitable for direct cable connections for I2C and Serial Port communication.
- Pin Header Interface: The pin header interface allows direct connection using DuPont lines, offering flexibility and convenience for GPIO, Serial Port, and I2C communication with various master controls.

Image: Pin interface and communication methods.
| Mode Introduction | Pin | Read Type | Get Content |
|---|---|---|---|
| GPIO communication | 10pin | High and low level | IIC protocol |
| Serial port communication | 4pin | Serial port protocol | Analog value, digital value |
| I2C communication | 4pin | IIC protocol | Digital value |

Image: Examples of wiring methods with different interfaces and development boards.
5. Operating Instructions
5.1. Automatic Calibration
The module features a one-button automatic calibration process, eliminating the need for manual adjustments. Follow these steps for calibration:
- Power on the 8-channel line tracking module and wait for approximately 20 seconds for it to initialize.
- Press and hold the 'Key' button on the module. Continue holding until the red indicator light illuminates, signaling entry into calibration mode.
- Position the module over the black line of your track. Adjust the probe height to ensure all probes are aligned with the black line. Wait for 3 seconds to allow the sensor data to stabilize.
- Press the 'Key' button once to record the detected black line values. After recording, the red indicator light will change from flashing to a steady on state.
- Move the module to a white area adjacent to the track. Wait for 3 seconds to allow the sensor data to stabilize in the white area.
- Press the 'Key' button again to record the detected white area values. After recording, the red indicator light will change from flashing to a steady on state, indicating calibration is complete.

Image: One-button automatic calibration steps.
5.2. Line Tracking Principle and Application
The module operates based on infrared sensing technology. Each sensor probe consists of a pair of infrared transmitting and receiving tubes. The transmitting tube emits infrared light. When this light encounters a black line, most of it is absorbed. When it encounters a white surface, the light is largely reflected. The receiving tube measures the intensity of the reflected light. By comparing the intensity difference, the module determines the position of the black line.
The 8-channel design allows for flexible adaptation to various line widths, from 0.5cm to 6cm. This enables the module to perform in-line recognition and provide external-line warnings, crucial for navigating complex tracks with curves, intersections, and different angles.

Image: Adaptation to various line widths.

Image: Robot car tracking various complex maps.

Image: Tracking probe identification principle.
6. Maintenance
To ensure the longevity and optimal performance of your Yahboom 8 Channel Line Tracking IR Sensor Module, please observe the following maintenance guidelines:
- Keep Clean: Regularly clean the sensor probes to prevent dust or debris from affecting detection accuracy. Use a soft, dry cloth. Avoid abrasive materials or harsh chemicals.
- Avoid Physical Damage: Handle the module with care. Avoid dropping it or subjecting it to excessive force, which could damage the PCB or sensor components.
- Environmental Conditions: Operate and store the module within the specified operating temperature range (-10 ~ +60 °C). Avoid exposure to extreme temperatures, high humidity, or corrosive environments.
- Power Supply: Ensure a stable 5V power supply is used. Incorrect voltage can damage the module.
7. Troubleshooting
If you encounter issues with your line tracking module, consider the following troubleshooting steps:
- Module Not Responding:
- Check power connections to ensure the module is receiving a stable 5V.
- Verify all communication cables (IIC, serial, GPIO) are securely connected to both the module and the development board.
- Ensure the correct communication protocol is selected and configured in your code.
- Inaccurate Line Detection:
- Perform the automatic calibration process again, ensuring the module is placed correctly over black and white areas during calibration.
- Check the distance between the sensor probes and the tracking surface. It should be within the recommended range of 0.5cm to 6cm.
- Clean the sensor probes to remove any dust or obstructions that might interfere with infrared detection.
- Ensure the lighting conditions are consistent. Strong, direct sunlight or very dim lighting can affect sensor performance.
- LED Indicators Not Working:
- Check the power supply. Insufficient power can cause LEDs to malfunction.
- If individual LEDs are not lighting up during detection, the corresponding sensor might be faulty or obstructed.
- Communication Errors:
- For serial communication, verify baud rates are matched between the module and your development board.
- For IIC communication, check the I2C address and ensure no other devices are conflicting on the bus.
8. Warranty and Support
This Yahboom 8 Channel Line Tracking IR Sensor Module is covered by a standard manufacturer's warranty against defects in materials and workmanship. For specific warranty terms, technical support, or to access additional tutorials and code examples, please refer to the official Yahboom website or contact their customer service. A tutorial link for various resources is provided below:
Tutorial Link: http://www.yahboom.net/study/8-LP

Image: Gift information and tutorial resources. Source · https://manuals.plus/ae/1005009244829232
