Line Follower Robot Tutorial

Line Follower ROBOT

Plermjai Inchuay, plermjai@loxinfo.co.th

Award winner from VingPeaw Competition 2543, the robot built with 2051, L293D, and four IR sensors. Simple circuit and platform, quick tracking and easy-understand program using C language.

Line Follower Robot design

I designed my robot, which use two motors control rear wheels and the single front wheel is free. It has 4-infrared sensors on the bottom for detect black tracking tape, when the sensors detected black color, output of comparator, LM324 is low logic and the other the output is high. Microcontroller AT89C2051 and H-Bridge driver L293D were used to control direction and speed of motor.

line follower robot circuit

Fig 1. Circuit diagram of my Robot.

line detector circuit diagram
Fig 2. Circuit diagram of Infrared sensors and comparators.

line follower sensor
Fig 4. Position of sensors, left hand side is side view and right hand side is top view.

Software
Software for write to AT89C2051 is robot1.hex ,which was written by C-language ,the source code is robot1.c compiled by using MC51 in TINY model with my start up code robot.asm .MPEG files

Sample of competition between 2051 and 68HC11.

Source: www.kmitl.ac.th

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • BlinkList
  • Furl
  • Reddit
  • StumbleUpon
  • TwitThis
Author: Robotics Technology on March 20, 2008
Category: Electronics, Mechanics, Microcontroller, Programming, Robotics Tutorial, Sensors, Software
Tags: line followerline follower robot circuitline follower robot circuit diagramline follower robot projectline follower tutorialline following robot circuitline trackingrobotroboticsRobotics Tutorialtutorial

34 responses to “Line Follower Robot Tutorial”
  1. Rakesh says:

    Hi!!!
    I want to code of heder file include in cprogram
    please reply on

    trivedi_rakesh4u@yahoo.co.in

  2. rakesh says:

    Hi,
    Which compiler use in your program and it is possible run on while line and black background.In your program 8051io.h and 8051reg.h added send me this header file in my email address.

    please reply……

  3. jonas says:

    may i have a pcb and diagram..?

  4. CK PATEL says:

    PLESE SEND ME CIRCUIT DIAGRAM OF LINE FOLLOWER ROBOT WHICH IS OPERATED BY COMPARATOR IC(OP-AMP) NOT CONTROLLER IC.

  5. robotic line follower using comparator says:

    plese send me the circuit diagram and working details of robotic line follower using comparator.

  6. KAPIL says:

    how much volt dc motors does it require…plz reply soon…

  7. lanstein says:

    Plz send me different techniques of programming Microcontroller AT89C2051

  8. chetan says:

    i want programing code for line follower robot.
    give me immidiatly,and help for that……..
    thankins for

  9. ramesh says:

    Hi!!!
    I want to cprogram codes
    please reply on
    rameshhardwaria@gmail.com

  10. ramesh says:

    hi i want to use at89s51 instead of AT89C2051.can i use this Microcontroller for the same circuit.
    please provide me assembly language program

    on
    rameshhardwaria@gmail.com

  11. ashok says:

    hay can u pls tell me how can we execute this code in c????
    send reply to this :ashok_92008@yahoo.com

  12. yogadada says:

    please tell me using l293b and ats9s52….

  13. ishu says:

    I would like to see a few program for line follower robots micro controller program,,,

  14. basu says:

    hey please can u help me by sending me the source code of this robot i am having my competition please immediatly

  15. the program source code already given on the post, please check…

  16. Siddharth says:

    Please mail me the circuit diagram of the line follower robot

  17. harish says:

    how do i embed pgm into circuit
    plz reply me @ yayiharish@yahoo.co.in

  18. keval says:

    pls give me source code of this project on vadiya_keval@yahoo.co.in

  19. Tathagata says:

    hi iam interested in line follower robot and i need the circuit diagram and also the code betails for the microcontroller,Can u send me those urgently
    my email tathagata21in@gmail.com

  20. Ali says:

    hi
    may i know what IC you used in this circuit???
    please send the code to my email
    carnp.com@gmail.com

    thanks alot

  21. pinku says:

    i wna trak white light on blue arena can sumbdy tell me whch sensor will be da best
    i nees diagram…
    plzz help me urgently

  22. simmi says:

    hi……i want assembly code for line follower using microcontroller. please send on my email id

  23. ben says:

    please on your circuit is it a dc or stepper motor? if it’s a dc motor can you use a 2 steppers motors instead of DC?

  24. ben says:

    my eamil is betrajack@yahoo.fr a quick answer will be helpfull

  25. sunny says:

    help me in making the line following robot

  26. nahid says:

    please send pgm for line follower i m looking for .

  27. pasan says:

    I want to c cordings for 16f84a line follower robot

  28. apoorva kumar singh says:

    iii like thats all robts …….

  29. M.Ahsan says:

    PLZ mail me circut diagram,assembly program,components required and their specifications on my email address asap.

  30. Amith S Bhat says:

    can i know how u simulated the code first using a suitable software??thanx in advance….

  31. i do not simulated the code… but i do “trial and error” the code on the line track using line follower robot… :)

  32. kishor says:

    plz send me assembly language program for above project

  33. just use SDCC to compile the C language to assembly language or hexadecimal.

  34. James Thangasamy says:

    Hi Team,

    I am looking for below programmer kit.

    MICROCONTROLLER ATMEL AT89C2051 COMPILER KIT MC51 in TINY model. (This done by Plermjai inchuay)

    Please advice the sources.

    Thanks.

    James

Leave a Reply

Latest Robotic Info added:

Search term for this post:
Search to this robotics article: line follower robot circuit, line follower robot project, line follower tutorial, line follower robot circuit diagram, line following robot circuit, line following robot sensor, Circuit diagram of line follower robot, line follower robot tutorial, line following robot tutorial, line tracking robot circuit, circuit of line follower robot, line tracer robot circuit diagram, line tracer robot circuit, line tracer robot project, infrared sensor in line follower robot, circuit diagram for line follower robot, line follower robot