Skip to content

Pengolahan Citra Digital dan Algoritma Fuzy pada Robot Line Follower

Notifications You must be signed in to change notification settings

frostdev03/LineFollowerRobotWithCamera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Line Follower Robot

jalur a lurus jalur b belok

Project Description

This project implements fuzzy control to adjust the speed of the right and left motors based on position error and change in position error in a line follower robot. This robot is able to follow a predetermined line path by relying on the camera to detect the center of the line (arena) and adjust the motor speed to keep the robot stable and keep on track.

Main Features

  • Fuzzy Control: Uses fuzzy control to adjust motor speed based on error and change in error (delta error).
  • Line Center Detection: Uses OpenCV to process images from the camera and detect the line center.
  • Data Storage: Saved the error, delta error, and motor speed data (LMS and RMS) into a CSV file for further analysis.
  • Data Visualization and Analysis: Plot graphs of error, delta error, LMS, and RMS and calculate and display rise time, settling time, average error, delta error, and error mode.
  • Robot Movement Map: Display the robot movement map for movement pattern analysis.

Before running this program you must install

  • Python 3.6 or higher
  • NumPy
  • OpenCv
  • Matplotlib
  • Scikit-Fuzzy
  • Webots

How to use

  • Clone repository
    $ git clone https://github.com/frostdev03/LineFollowerRobotWithCamera
    $ cd LineFollowerRobotWithCamera
    
  • Install dependency
    $ pip install -r requirements
    
  • Select the required controller
  • Run

Project Structure

  • lfr_cam_fuzzy.py: The main script to control the line follower robot.
  • robot_readings.csv: CSV file to store error, delta error, and motor speed data.
  • olah_data.ipynb: Script to visualize and analyze the collected data.
  • README.md: Project description.

Useful Links

About

Pengolahan Citra Digital dan Algoritma Fuzy pada Robot Line Follower

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published