Help with line following robot

Discussion in 'The Projects Forum' started by chaithanyatkm, Aug 26, 2011.

  1. chaithanyatkm

    Thread Starter New Member

    Aug 26, 2011
    23
    0
    hi i'm new to this site. could anyone please help me with a line tracer. we will have to make one.i'm doing b.tech in electronics and communication.. this line tracer is actually a robot ( or a machine) that should follow a particular line by sensing the reflected light. it should have a lidght source at its bottom and a light detector also.. and we are told that the path will have white track on a black background. so we are thinking that light wont be reflected back from a black surface and maximum intensity will get reflected back from a white source. will that idea work??:confused: i dont know anything about this. :( anyone having any new ideas
     
  2. praondevou

    AAC Fanatic!

    Jul 9, 2011
    2,936
    488
    Please open a new thread.
     
  3. bertus

    Administrator

    Apr 5, 2008
    15,647
    2,346
    Hello,

    I moved the posts to a new thread.

    Bertus
     
  4. Sparky49

    Active Member

    Jul 16, 2011
    834
    417
    Personally, I think it would be easier to have a shiny surface with a black line.

    Have two light sensors which control their own motor on the left and right side of the robot.

    If the sensor detects less reflected light, then it slows down or stops its motor. Otherwise it keeps its motor going.
     
    chaithanyatkm likes this.
  5. strantor

    AAC Fanatic!

    Oct 3, 2010
    4,302
    1,988
    This is a pretty common project so you can probably find something online like a tutorial. I've never done it myself, so my first thought is along the lines of sparky's; however (having never done it) I couldn't predict how smoothly it would operate with such simple control; you may need some proportional control. big picture: 2 sensors mounted side-by-side. if both detect the line (i.e. absence of reflected light) then it knows it's on track. if the line is detected by both sensors and the it transitions to the line being only detected by the right sensor, then it knows that it is going off track to the left and needs to turn right, and vise versa. You may be able to gain more control by using 3 sensors. if line is detected by middle sensor, you are on track; if detected by middle & right, steer slight right; if detected by right sensor only, steer hard right. My first instinct would be to use a microcontroller for this logic, but someone around here may be able to tell you how to do it otherwise.
     
    chaithanyatkm likes this.
  6. Sparky49

    Active Member

    Jul 16, 2011
    834
    417
    If you buy the book;

    Electronics Projects for Dummies

    It has the exact circuit diagram for what I described.


    I won't put it on here, because that would be cheating the authors.
     
    chaithanyatkm likes this.
  7. strantor

    AAC Fanatic!

    Oct 3, 2010
    4,302
    1,988
    So it's confirmed that it can work as you described it. I've just been reading up on it and apparently there are line-following robot competitions. I guess that would lead to designs at both ends of the spectrum from super simple to over complicated. Some may perform better than others, while some may be more efficient than others. This build notes page pretty much describes what I described (except he's using 5 sensors instead of 2 or 3 and he's using a PIC):
     
    chaithanyatkm likes this.
  8. Sparky49

    Active Member

    Jul 16, 2011
    834
    417
    Of course it would. ;)
     
  9. chaithanyatkm

    Thread Starter New Member

    Aug 26, 2011
    23
    0
    actually we are now planning to use 5 sensors in an array
     
  10. chaithanyatkm

    Thread Starter New Member

    Aug 26, 2011
    23
    0
    who's the author. is that book available in india?
     
  11. chaithanyatkm

    Thread Starter New Member

    Aug 26, 2011
    23
    0
    we have not yet decided about the microcontroller to be used. we are still in a confusion,whether to use PIC or Atmega16 or atmega32
     
  12. strantor

    AAC Fanatic!

    Oct 3, 2010
    4,302
    1,988
    chaithanyatkm likes this.
  13. Sparky49

    Active Member

    Jul 16, 2011
    834
    417
    I'm holding the book next to the picture on that link, and it is exactly the same.:)
     
  14. chaithanyatkm

    Thread Starter New Member

    Aug 26, 2011
    23
    0
    can we make the idea more creative than just making a robot to follow a line. Like, can we think of a dog shaped robo which will move towards a place by seeing light, or in the shape of a watchman who will move towards a place by hearing a sound. Just ideas are enough, as they(heads) won't ask us to explain this time. we are just told to bring ideas..
     
Loading...