Skip to content

joshmessi10/LineFollowingRobot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

25 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค– Line-Following Robot

This repository documents the development of a line-following robot based on an STM32 microcontroller.

The project integrates embedded control, analog sensing, and a graphical desktop interface for sensor calibration and monitoring.

LineFollowingRobot

Line-Following.Robot.mp4

๐ŸŽฏ Project Objective

To implement an autonomous system capable of following a black line on a white background using reflective sensors and an embedded control algorithm. The approach includes a calibration phase assisted by a desktop interface built with Qt, which allows users to verify sensor functionality and power supply stability.


โš™๏ธ System Components

๐Ÿงฉ STM32 Firmware (Embedded)

  • Reading reflective sensors via ADC
  • Calibration of maximum and minimum values for each sensor
  • Line error calculation and control logic
  • Motor control using PWM signals
  • Structured serial communication protocol
  • Periodic transmission of data to the PC

๐Ÿ–ฅ๏ธ Qt Application (Visualization)

  • Automatic detection and connection to serial ports
  • Real-time reading of sensor values
  • Display of detected minimum and maximum values
  • Graphical indicators of signal intensity
  • Monitoring of system voltage

๐Ÿ”„ Communication Protocol

Communication between the microcontroller and the PC is handled through a structured packet format including delimiters, size, data, and checksum verification.

Packet structure (bytes):

[START][SIZE][DATA][CHECKSUM][END]

Types of data transmitted:

  • Sensor calibration values
  • Real-time sensor readings
  • System voltage level
  • Message type identified via control field

๐Ÿ“ˆ Applications and Use Cases

  • Education in mobile robotics and embedded systems
  • Prototyping of basic autonomous vehicles
  • Testing of control algorithms (P, PD, PID)

๐Ÿ“Ž Requirements

  • STM32 microcontroller board (e.g., F401 series or similar)
  • Reflective sensor module
  • Motor driver and geared motors
  • Stable power supply

๐Ÿ”ง Potential Extensions

  • Integration of PID control for smoother trajectories
  • Sensor session recording in CSV format
  • Real-time visualization with plots or graphs
  • Wireless data transmission (Bluetooth, WiFi)
  • Logic for handling curves or intersections

๐Ÿ“ธ Images

Pista

QT


๐Ÿ‘ฅ Credits

Josh Sebastiรกn Lรณpez Murcia
Juliรกn Humberto Lozada Silva

About

Line-Following Robot based on STM32

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages