A front add-on for Stackr. Five reflective sensors on a custom board read a black line, and the robot steers to stay on it.
Line follower is one of the most typical robotic applications. I custom designed and built an infrared sensor bar using five QRE1113 modules. This is an add-on for the Stackr robot. It is designed to explore classic line-following strategies and serve as an accessible introduction to PID control algorithms. It's also a fun project that can be expanded to solve very complex tracks.
| ISSUE | SOLUTION |
|---|---|
| Robot was picking up undesired reflections | Modified the sensor housing to isolate better the sensors by lowering the mount and using narrow gaps for sensors. |
| The robot was losing the line | Adjusted the PID coefficients for a better tracking. |
Stackr with the sensor bar on a black oval drawn on a white surface.
The add-on rides at the front while Stackr follows the black oval.
A custom PCB was designed to incorporate 5 reflective optical sensors. The board was made to fit the dimensions of the Stackr Robot.
Housing for the sensor was designed in such a way to eliminate ambient light as a factor in line detection.
As one of the most typical robotics application, the core algorithm at the heart of this project is a PID controller.
The Line follower is provided as an add-on to the Stackr Robot. The software and control is done through the Stackr MCU.
The bar on Stackr, the sensor board, the printed parts, and the CAD and KiCAD drawings.
FreeCAD exploded view of Stackr plus the purple sensor bar and brackets.
Schematic of five QRE1113 sensors and their resistors.
KiCad board for the five-sensor line follower, marked RobotiXOne.
Populated blue sensor PCB with five reflective sensors and a header.
Purple brackets, sensor housing, and lid.
Purple sensor bar mounted on the front of Stackr, with a ribbon cable to the Nano.
Stackr on a black oval line with the sensor bar down.
27 photographs and drawings from this build.
| PARAMETER | SPECIFICATION / VALUE |
|---|---|
| Special Design | Electronics |
| Special Design | PCB Design |
| Optical Sensors | 5 x QRE1113 |
| CAD Software | FreeCAD |
| Manufacturing | 3D Printing |
| Algorithms | PID controller |
| Special Features | Fully autonomous |