A line follower bot is a type of autonomous robotic vehicle designed to follow a predefined path or track marked with contrasting lines, typically black on a light-coloured surface or vice versa. These robots employ a combination of sensors, such as infrared or optical sensors, to detect the contrast between the line and the surrounding area. By continuously analyzing the sensor data, the bot makes real-time decisions on how to adjust its wheels or propulsion system to stay centred on the line.
Line follower bots are popular in robotics competitions and educational settings, as they provide an engaging way to introduce students and enthusiasts to basic robotics principles, sensor technology, and programming. They serve as a fundamental example of closed-loop control systems and can be customized with various features, like obstacle avoidance and speed adjustments, to make them more versatile and adaptable to different scenarios. Line follower bots can be a great starting point for those interested in exploring the world of robotics and automation.
A PID Line Follower Bot using a Raspberry Pi Pico is a small autonomous robot that uses infrared sensors to follow a designated path. It employs a PID (Proportional-Integral-Derivative) control algorithm to continuously adjust its motor speeds based on sensor feedback, maintaining alignment with the path. The Pico microcontroller processes the sensor data and sends control signals to the motors, allowing the bot to track lines, making it a popular choice for educational robotics projects and competitions.
Note
Components price may vary.
main.py
file which contains the basic setup and selection of the code according to the width of the line.PID_LF_3cm.py
file contains code for a 3cm width line which uses only 7 sensors.PID_LF_2cm.py
file contains code for a 2cm width line which uses all 9 sensors.KpValue.csv
,KiValue.csv
andKdValue.csv
are files which store the kp, ki and kd values.ssd1306.py
file is the library used for oled display.
Important
All the above files must be saved in the PICO.
Note
Need To Update.
https://www.instructables.com/Line-Follower-Robot-PID-Control-Android-Setup/