Department of Electrical Engineering, Sirjan University of Technology, Sirjan, Iran
Submitted on 21 March 2025; Accepted on 21 April 2025; Published on 09 May 2025
To cite this article: E.S.N. Korrani, “Line-Following Electronic Board for Robotics Applications,” Insight. Electr. Electron. Eng., vol. 2, no. 1, pp. 1-5, 2025.
Abstract
Existing line-following robotic systems, such as Pololu boards, are constrained by static thresholding algorithms, limited adaptability to dynamic environments, and high costs. To address these limitations, this paper proposes a compact, low-cost printed circuit board (PCB) designed for robust line tracking in educational and industrial applications.
The system integrates an array of QRE1113GR infrared (IR) sensors, an adaptive threshold-based signal processing algorithm, and an Arduino Nano microcontroller to achieve stability under variable lighting (100–500 lux) and uneven terrain. Key hardware innovations include a two-layer PCB layout with segregated analog and digital components to minimize noise, MOSFET-based motor drivers for efficient power distribution, and a voltage regulation circuit using AMS1117 and decoupling capacitors.
Experimental validation demonstrates a 95%-line detection accuracy on white surfaces, a 50 ms sensor-to-motor response latency, and a 50% reduction in power consumption (120 mA at 5V) compared to commercial alternatives. The design achieves a material cost of USD 18 and dimensions of 60.2 mm × 24.7 mm, enabling portability for small-scale robotics. The primary contributions of this work are: 1) a dynamic thresholding algorithm empirically optimized for environmental adaptability, 2) a modular, open-source hardware architecture, and 3) a comparative analysis quantifying performance improvement over a fixed-threshold system. Future research will focus on integrating machine learning for real-time terrain classification and expanding wireless communication capabilities.
Keywords: PCB design; line-following robot; infrared sensors; adaptive control; educational robotics; cost-effective automation
Abbreviations: PCB: printed circuit board; IR: infrared; EMI: electromagnetic interference; AGVs: automated guided vehicles; CNNs: convolutional neural networks; RL: reinforcement learning; BLE: Bluetooth low energy
1. Introduction
Line-following robots are integral to applications ranging from educational robotics to industrial automation, yet existing solutions face three persistent challenges: 1) high costs of commercial sensor arrays, 2) inflexibility of fixed-threshold algorithms in dynamic environments, and 3) limited hardware integration in academic prototypes. Commercial systems, such as Pololu QTR-8RC, utilize static thresholding for sensor signal processing, rendering them unsuitable for environments with fluctuating ambient light or uneven terrain. While academic efforts have explored adaptive algorithms, these often neglect cost-effective hardware design, resulting in impractical or expensive implementations [1–3].
This paper addresses these limitations by introducing a low-cost, adaptive line-following printed circuit board (PCB) optimized for stability and affordability. The proposed design achieves a material cost of USD 18, a 45% reduction compared to the Pololu QTR-8RC (USD 35), through strategic component selection, including QRE1113GR infrared (IR) sensors (unit cost: USD 0.227) and open-source microcontroller integration. These digital-output sensors enhance noise immunity and simplify signal processing, enabling robust performance at a fraction of the cost of commercial alternatives. This affordability broadens accessibility for educational institutions and small-scale industrial applications [1–6].
The novelty of this work lies in three key innovations:
2. Methodology
2.1. Component selection and hardware design
The PCB schematic (Figure 1) comprises five subsystems:
2.1.1 Infrared sensors:
2.1.2. Signal conditioning:
2.1.3. Resistors:
2.1.4. Capacitors:
2.1.5. Motor control:
2.2. PCB layout and noise mitigation
The two-layer PCB (60.2 mm × 24.7 mm) minimizes electromagnetic interference (EMI) through (Figures 2 and 3):
FIGURE 1: Schematic diagram of the line-following PCB including IR sensors and voltage regulation circuitry.
FIGURE 2: PCB layout includes the top layer, which connects elements on top of the board, and the bottom layer, which connects elements on the bottom.
FIGURE 3: Line following PCB prototype (unassembled).
3. Mathematical Notation in Adaptive Control Algorithm
The dynamic threshold T is computed recursively to adapt to variable lighting and terrain conditions. The equation governing T is:
3.2. Command execution
3.3. Parameter justification
3.3.1. Smoothing factor
3.3.2. Offset (β)
4. Results
4.1. Performance under variable conditions
The proposed PCB was tested under diverse lighting and terrain conditions to validate its adaptability (Table 1):
TABLE 1: System performance (accuracy, response time, power) across lighting conditions (optimal, low, high).
Condition |
Accuracy |
Response time |
Power consumption |
Optimal (White surface, 500 lux) |
95% |
50 ms |
120 mA |
Low Light (50 lux) |
88% |
55 ms |
125 mA |
High Light (1000 lux) |
82% |
60 ms |
130 mA |
4.2. Comparative analysis with Pololu QTR-8RC
The proposed design outperforms Pololu QTR-8RC [3] in critical aspects beyond cost and power (Table 2):
TABLE 2: Proposed system vs. Pololu QTR-8RC. Improvements in adaptability, latency, and cost.
Metric |
This work |
Pololu QTR-8RC [3] |
Improvement |
Adaptive thresholding |
Yes |
No |
30% higher accuracy in dynamic environments |
Latency consistency |
≤70 ms across conditions |
100–150 ms |
2x faster response under stress |
Cost per unit |
$18 USD |
$35 USD |
48% cost reduction |
5. Applications
6. Conclusion
This work demonstrates a cost-effective, adaptive line-following PCB that addresses critical limitations of commercial solutions like the Pololu QTR-8RC. By integrating QRE1113GR IR sensors, a dynamic thresholding algorithm, and a modular two-layer PCB design, the system achieves 95% accuracy under optimal conditions (500 lux) and maintains > 80% accuracy under extreme lighting (50–1000 lux). Key contributions include:
7. Future Work
To advance adaptability and functionality, future efforts will focus on:
1. Machine learning integration:
2. Wireless connectivity: Integration of Bluetooth low energy (BLE) for remote monitoring and control.
These enhancements aim to bridge the gap between low-cost hardware and intelligent autonomy, enabling broader applications in robotics education and industrial automation.
References