Overview
Yahboom 8-channel infrared tracking sensor module for robot car line patrol. It integrates 8PCS high-sensitivity infrared probes to detect black/white line contrast for smooth route recognition. The module supports GPIO, serial port (USART), and IIC (I2C) communication, provides both digital and analog outputs, and includes a one-key automatic calibration function (no potentiometer/knob adjustment required). Standard IO and PH2.0 interfaces help connect to common development boards such as Arduino, Raspberry Pi, Micro:bit, and STM32-based controllers.
Key Features
- 8-channel infrared probe array for accurate identification of line position and path features.
- Digital/analog dual-mode output: supports digital signal output and analog signal output.
- Multiple communication options: supports GPIO communication, serial communication, and IIC (I2C) communication.
- One-key calibration: automatic calibration by button operation; no manual potentiometer/knob adjustment.
- Line width adaptability: supports line width recognition from 0.5CM to 6CM.
- Onboard MCU reads and processes 8-channel probe data (A/D conversion processing for analog values).
- Status indication: onboard LED indicator reflects the working status of each sensor.
- Two connection styles: PH2.0 interface (anti-reverse connection design) and 2.54 pitch DuPont line connection via pin header.
- Mounting adaptability: slot design supports 16mm~42mm spacing hole range for installation and fixing.
- Protection circuit: triple safety protection including reverse connection protection for 5V power input to the pin header, current limiting protection for I/O ports, and anti-static protection.
Specifications
| Brand | Yahboom |
| Model marking on PCB | YB-MX04-2.0 |
| Version note | V2.0 New Upgrade |
| Number of probes (channels) | 8 |
| Recognizable line width range | 0.5CM to 6CM |
| Outputs | Digital value / Analog value |
| Communication modes | GPIO / Serial port (USART) / IIC (I2C) |
| Interfaces | PH2.0 interface; pin header interface (2.54 pitch DuPont line connection) |
| PCB thickness | 1.6mm (thickened PCB board) |
| Mounting hole adaptability | Slot design; 16mm~42mm spacing hole range |
| Protection | Reverse connection protection (5V input to pin header); I/O port current limiting protection; anti-static protection |
Pin Interface & Communication Modes
Mode introduction
| Mode | 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 |
Wiring methods shown include PH2.0 anti-reverse connection interfaces for serial port and I2C, plus 2.54 pitch DuPont line connections for serial port, I2C, and 8-channel GPIO.
One-Key Automatic Calibration (No Knob Adjustment)
- Adjust the detection height: Place the probe at the desired height and let it stand for 10 seconds to allow the data to stabilize.
- Enter calibration: Press and hold the Key button on the module until the red indicator light is on, indicating it has entered calibration mode.
- Enter black line data: Point all probes at the black line for 3 seconds and press the Key button once. After acquisition is completed, the red indicator light will change from flashing to solid.
- Enter white field: Point all probes at the white area for 3 seconds and press the Key button once. After acquisition is completed, the red indicator light will change from flashing to solid.
Applications
- Robot car line following / line patrol (including complex routes such as crossroads, acute angle/T-junction, curve intersection, and intersection)
- Educational robotics and competitions requiring stable black/white line recognition
- Controller platforms such as Arduino, Raspberry Pi, Micro:bit, STM32, and other master controls
Tutorials
Official tutorial page: Yahboom 8 channel tracking module. For purchase support or connection questions, contact https://rcdrone.top/ or email support@rcdrone.top.
Details
The Yahboom YB-MX04-2.0 uses eight IR probes to read black/white contrast for reliable robot car line following.
Example projects and code resources help speed up integration on common controllers such as STM32 and Raspberry Pi.
Compared with basic 4-channel boards, the 8-channel array improves line position resolution and track feature detection.
Multiple connection modes are supported—GPIO, serial (USART), or I2C—depending on the controller and wiring preference.
One-key calibration replaces manual knob adjustment, making setup faster when changing surfaces or track colors.
Eight sensing points help the robot recognize curves, T-junctions, and crossings for smoother routing.
The sensor array is designed to work with common line widths from 0.5 cm to 6 cm for flexible track layouts.
Infrared reflection differences between black and white surfaces are used to determine line position and direction.
Built-in protection adds safer power and I/O handling, including reverse connection and current limiting.
Choose digital thresholds for simple control logic or analog values for finer-tuned line following algorithms.
Both PH2.0 and 2.54 mm pin header connections are available to match typical robotics wiring setups.
Slotted mounting holes make it easier to align the sensor board to different chassis and mounting patterns.
The Yahboom YB-MX04-2.0 infrared tracking sensor module runs on 5V and provides 8 IO channels with I2C and UART interfaces for line-following robot car builds.
The Yahboom YB-MX04-2.0 line tracking module outputs 8-channel digital readings via 4 GPIO pins and is intended for colored or black-and-white line tracking setups.
The 4-channel infrared line tracking module outputs digital values via GPIO and is specified for 10–100 mm detection height and 1.8–2 cm line width.
The 8-channel infrared line tracking module supports I2C/serial and 8 GPIO inputs, with analog and digital outputs for black-and-white line following.
A provided tutorial link and bundled documentation cover the 8-channel line tracking module, protocols, and Arduino/STM32/Raspberry Pi car builds.
MSPM0G3507-based routines and documentation support development in KEIL and CCS for robot car tracking control.
The 8-channel infrared tracking sensor module integrates into robot car chassis builds for reliable line-following on track tape.
The Yahboom YB-MX04-2.0 board uses an X1–X8 infrared sensor array and a single pin header for straightforward robot car line-following wiring.
The package includes a separate 8-channel infrared tracking module with an array of sensors for line-following builds.
The Yahboom YB-MX04-2.0 8-channel tracking module comes with a 20cm PH2.0 4-pin cable and 20cm female-to-female DuPont leads for easy robot car wiring.
The Yahboom 8-channel tracking module kit includes a 20cm PH2.0 4-pin cable, 10-pin female-to-female DuPont leads, M3 screws, and multiple copper standoff lengths for mounting.
Related Collections