Skip to content

linden713/Microcontroller-Car-Based-on-Tm4c123g

Repository files navigation

Design and Control System of an Infrared Obstacle Avoidance Car Based on TM4C123

Project Objectives

Designing an infrared obstacle avoidance car system based on the TM4C123 can perceive obstacles through infrared modules and autonomously avoid collisions. It can also be remotely controlled via a PS2 handle, demonstrating high practicality and application value.

Methods and Technologies

  • Hardware Selection:
    • Main Control Chip: TM4C123
    • Perception Module: HW201 Infrared Obstacle Avoidance Module
    • Control Module: PS2 handle and receiver, TB6612FNG motor driver module
  • Motor Control: Speed adjustment of the car is achieved by controlling the motor's speed through PWM (Pulse Width Modulation).
  • Speed Closed-Loop Control: Using QEI (Quadrature Encoder Interface) to obtain the car's speed information, and through an incremental PID control algorithm to achieve closed-loop speed control, improving the car's stability and precision.
  • Obstacle Avoidance Function: Utilizing the HW201 infrared obstacle avoidance module to sense obstacles ahead. When an obstacle is detected, the car avoids it by controlling the motor's direction or stopping.

Project Outcomes

  • Successful remote control and speed adjustment of the car.
  • Realization of closed-loop speed control, enhancing the car's operational stability.
  • Implementation of infrared obstacle avoidance, allowing the car to autonomously avoid obstacles ahead.

All files in the repositories are a project of code composer studio v8.

For more information you may can view the report.

Vedio :https://www.bilibili.com/video/BV1c841117dH/

About

A Microcontroller Car Based on Tm4c123g

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published