Giter Club home page Giter Club logo

amjed-ali-k / esp-32-line-follower Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5 KB

This is an Arduino-based project for a line follower robot with an 8-sensor array. The robot uses PID control to follow a line on the ground and can make sharp turns when necessary. The project includes the source code for the robot's firmware, as well as instructions for setting up the hardware and software requirements.

C++ 100.00%
esp32 line-follower line-follower-robot pid

esp-32-line-follower's Introduction

LINE Follower Robot

This is an Arduino-based project for a line follower robot with an 8-sensor array. The robot uses PID control to follow a line on the ground and can make sharp turns when necessary.

Hardware Requirements

  • ESP32
  • QTR-8RC or QTR-8A sensor array
  • SparkFun TB6612 motor driver
  • DC motors
  • Jumper wires
  • Breadboard
  • Battery pack

Software Requirements

  • Platform IO
  • QTRSensors library
  • SparkFun_TB6612 library
  • TaskScheduler library
  • QuickPID library
  • JLed library

Installation

  1. Install the required libraries in the Platform IO.
  2. Connect the QTR-8RC or QTR-8A sensor array to the Arduino board according to the pin connections in the setup() function.
  3. Connect the SparkFun TB6612 motor driver to the Arduino board according to the pin connections in the Motor constructor.
  4. Connect the DC motors to the motor driver.
  5. Upload the main.cpp file to the Arduino board.

Usage

  1. Power on the robot.
  2. Place the robot on a line on the ground.
  3. The robot will follow the line using PID control.
  4. If the robot loses the line, it will continue moving forward for a certain number of iterations before attempting to find the line again using the findWhereLastLineWentFromHistory() function.
  5. The robot can make sharp turns when necessary by adjusting the motor speeds based on the line error.

Contributing

Contributions to this project are welcome. Please submit a pull request with your changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

esp-32-line-follower's People

Contributors

amjed-ali-k avatar

Stargazers

 avatar

Watchers

 avatar

esp-32-line-follower's Issues

QTR8RC

I'm not able to read the QTR8RC Data

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.