Line Follower Robot Using Arduino

Introduction: Line Follower Robot Using Arduino

About: -----Product Developer----- Field: Python,Machine Learning

let's make a line follower ;

guys just follow the index and at last you will have your own line follower robot.

INDEX:

  1. INTRODUCTION
  2. COMPONENTS
  3. WORKING PRINCIPLE
  4. BLOCK DIAGRAM
  5. PROGRAMMING ON ARDUINO
  6. ADVANTAGES ,DISADVANTAGES AND APPLICATIONS
  7. SPECIAL DISCUSSION FOR T-POINT

  8. FOR ANY HELP CONTACT ....

Step 1: INTRODUCTION

A robot is a machine capable of carrying out a complex series of actions automatically,especially one programmable by a computer.A robot is programmed based on the requirement.for a line follower robot we programme the robot according to the line or track,keeping in mind of T point ,most line follower faces dificulties at T points.

Line following Robot is a machine that can follow a path.The path can be visible like a black line on a white surface or it can be invisible like a magnetic field.

Sensing a line and maneuvering the robot to stay on track,while constantly correcting wrong moves using feedback mechanism forms a simple yet effective closed loop system.

Step 2: COMPONENTS

Step 3: WORKING PRINCIPLE

Step 4: BLOCK DIAGRAM

Step 5: PROGRAMMING ON ARDUINO

Here two programme is given we can use any of these two based on our application.

PROGRAMME 1:


PROGRAMME 2:

void setup()

{

Serial.begin(9600);

pinMode(8,OUTPUT);

pinMode(9,OUTPUT);

pinMode(11,OUTPUT);

pinMode(12,OUTPUT);

}

void loop()

{

int a= analogRead(A0);

int b=analogRead(A1);

if (a>500 && b>500)

{

digitalWrite(8,1);

digitalWrite(9,0);

digitalWrite(11,1);

digitalWrite(12,0);

}

else if (a>500 && b<500)

{

digitalWrite(8,1);

digitalWrite(9,0);

digitalWrite(11,0);

digitalWrite(12,1);

}

else if (a<500 && b>500)

{

digitalWrite(8,0);

digitalWrite(9,1);

digitalWrite(11,1);

digitalWrite(12,0);

}

else

{

digitalWrite(8,0);

digitalWrite(9,0);

digitalWrite(11,0);

digitalWrite(12,0);

}

}

Step 6: ADVANTAGES,DISADVANTAGES AND APPLICATIONS

Step 7: SPECIAL DISCUSSION FOR T-POINT

USE INCRIMENTATION AND DECREMENTATION TECHNIQUES.

Step 8: FOR Any Help Write in Comment Section or Contact Me :shubh2ai@gmail.com

shubham kumar

UIET,Punjab University

https://in.linkedin.com/in/shubham-kumar-746b84108

https://github.com/shubh2ai

Sensors Contest 2017

Participated in the
Sensors Contest 2017

Be the First to Share

    Recommendations

    • Pi Day Speed Challenge

      Pi Day Speed Challenge
    • Trash to Treasure Contest

      Trash to Treasure Contest
    • Microcontroller Contest

      Microcontroller Contest

    7 Comments

    0
    Kaurska07
    Kaurska07

    1 year ago on Step 7

    can you guide me with this.... please hurry up

    Screenshot_20190624-221625.jpg
    0
    DivyanshS26
    DivyanshS26

    3 years ago

    can I use a shield instead?

    0
    Ddoyd Brown
    Ddoyd Brown

    3 years ago

    Hi,

    i have tried it so far, but nothing until now. i have only changed the numbers. I have send you a pic of how my robot is connected so far. I have four sensors on my robot but am trying to make two work first. In order for me to take it to the next level.

    Could you help me out?

    20170418_163229[1].jpg
    0
    Ddoyd Brown
    Ddoyd Brown

    3 years ago

    hi,

    I have been searching for days now for a code that works with my line robot but i haven't got true as yet. I hope that this code works with mines. I copied it and paste it into my arduino so far.

    I only had to change the code to the pins that i used. But i am still afraid that its not going to work.

    Is it possible to contact you if it does not function?

    0
    ShubhamK118
    ShubhamK118

    Reply 3 years ago

    It will work.if doesn't you can contact me.

    0
    Maghnuma
    Maghnuma

    4 years ago

    Nice instructable , thanks for sharing