A maze-solving robot based on the STM32 microcontroller, designed to follow a line and navigate a maze. This project is coded using the Arduino IDE.
This repository contains the full source code, hardware schematics, and documentation for building your own maze-solving robot. The robot uses 8 IR sensors to detect the line and LSR or Left-Hand-Rule Algorithm to solve the maze.
Here is the list of materials used in this project:
- Microcontroller: STM32 model STM32F103C8T6 "Blue Pill"
- Power: Buck Converter to step down the voltage.
- Motor Driver: TB6612FNG Dual Motor Driver
- Motors: 2x DC geared motors
- Sensors: RLS08 IR Sensor
- Chassis: 2WD PCB cutout chassis
- Wheels: 2x wheels and 2x caster wheels
- Battery: 2x Rechargable 600mAh AA Batteries
The project is coded in C++ using the Arduino IDE.
- STM32 Core: You must add the STM32 board manager to your Arduino IDE.
- The only external library used is the config.h file.
- Open the
.inofile in the Arduino IDE. - Select the correct board (e.g., "Generic STM32F1 series").
- Set the Upload Method (e.g., "STLink" or "Serial").
- Connect your STM32 to the computer.
- Press the "Upload" button.