Logo do repositório
 
A carregar...
Miniatura
Publicação

PID control of autonomous lline-following robot

Utilize este identificador para referenciar este registo.
Nome:Descrição:Tamanho:Formato: 
Achref Mabrouk.pdf15.84 MBAdobe PDF Ver/Abrir

Orientador(es)

Resumo(s)

This project aims to design and build an autonomous robot capable of precisely following a line in a complex environment. The main objective is to ensure reliable and autonomous tracking of a challenging path, providing both accuracy and motion stability. The robot is based on an ESP32 platform, equipped with five TCRT5000 infrared sensors arranged in a line to detect the lateral position of the line, and Hall-effect encoders on the wheels to measure the distance traveled and map the robot’s trajectory. The kinematic modeling of the differential-drive robot was performed in MATLAB/Simulink to validate expected motions, including straight paths with different initial orientations. The control system relies on a PID controller that adjusts motor speeds based on the error between the estimated line position (calculated using a weighted average of sensor readings) and the target position (center of the line). The control loop runs every 20 ms, providing fast and stable responses to disturbances. The code is modularized into distinct parts: sensor reading, encoder handling, PID control, motor driving, and odometry, which improves maintainability and clarity. Tests demonstrate that the robot successfully completes the map with near-perfect line following, although minor inaccuracies in trajectory plotting are attributed to encoder limitations. In conclusion, the project meets its goals of precise and autonomous line following, paving the way for future improvements such as odometry error correction and advanced navigation algorithms.

Descrição

Palavras-chave

Robotics Line following PID ESP32

Contexto Educativo

Citação

Projetos de investigação

Unidades organizacionais

Fascículo