Skip to content

Rakeshtsg/Line-follower-robot-using-arduino

Repository files navigation

Line-follower-robot-using-arduino

//Using a IR Sensor|L298N Motor Driver|Arduino UNO

////Circuit. use Pin 10-ENA,

Pin 9-IN1,

Pin 8-IN2,

Pin 7-IN3,

Pin 6-IN4,

Pin 5 ENB

//This is unlikely to be of much use in a practical applications //ID OF USER: Rakeshtsg

//INTERFACE: Arduino

PLEASE REFER THIS CIRCUITRY FOR THE APPLICATION WhatsApp Image 2022-11-02 at 4 28 58 PM (1)

OUR PROTOTYPE WhatsApp Image 2022-11-19 at 7 42 28 PM

Here is a simple algorithm that can be used to develop a line following robot:

1]Attach infrared sensors to the front and bottom of the robot, facing forward and downward, respectively. These sensors will be used to detect the line.

2]Set the robot's initial position and orientation. The robot can start facing in any direction, but it should be positioned such that it is on the line.

3]Continuously read the values from the infrared sensors. If the front sensor detects the line, the robot should move forward. If the bottom sensor detects the line, the robot should adjust its orientation to stay on the line.

4]Use PID (proportional-integral-derivative) control to adjust the robot's movement and orientation. The PID controller can be used to calculate the necessary adjustments to the robot's movement and orientation based on the readings from the infrared sensors.

5]Repeat steps 3 and 4 until the robot reaches its destination.

6]This algorithm uses infrared sensors to detect the line, and PID control to adjust the robot's movement and orientation. By continuously reading the values from the sensors and making the necessary adjustments, the robot can follow the line and reach its destination.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published