A line-following robot project built with PlatformIO for Teensy 4.0 board.
This project implements a line follower robot using infrared sensors for line detection, an IMU for orientation, an OLED display for status, and motor control for movement.
- Teensy 4.0 microcontroller
- Infrared line sensors
- BMI160 IMU sensor
- SSD1306 OLED display
- Motor drivers and motors
- PlatformIO IDE
- Arduino framework
- Open the project in PlatformIO.
- Build the project:
pio run - Upload to the board:
pio run --target upload
Power on the robot and place it on a line track. The robot will follow the line autonomously.
src/main.cpp: Main program loopsrc/sensors.cpp: Line sensor handlingsrc/movement.cpp: Motor controlsrc/imu.cpp: IMU sensor integrationsrc/oled.cpp: OLED display managementsrc/config.cpp: Configuration settings


