Friday, 24 February 2012

Light Following Robot

The main purpose of this project is to design a robot which would follow the path of higher luminescence across all directions.It is based on the principle that resistance of a LDR changes with the amount of light falling on it.


It consists of 3 modules

Sensor Circuit


It consists of 4 LDRs' arranged at each side of the robot (front, back, left, right). The resistance of an LDR will decrease with the increase in the luminescence. This variation is fed to a comparator with a reference voltage set. We use LM324 IC which conveniently has 4 comparators on a single chip. In our case we found that each LDR was having different response the same luminescence. For example, for the same indoor daylight the LDR resistances were respectively 6k, 8k, 9k, 10k. To offset this variation, we are using seperate pot for reference voltage for each LDR. You can use a single pot and use the same reference voltage for all 4 LDR's if you find that LDR's are having the same response (i.e shorting pins 3,5,10,12 in LM324). The 4 outputs of comparator is fed to a port of Microcontroller 8051 via port P0.
Light Detection Circuit

Microcontroller


The microntroller used here is 89c51. The microcontroller gets the sensor inputs via port P0. The micrcontroller will drive the robot only when one of the LDR's resistance (i.e one of front, back, left, right) is below the threshold and consequently the output of the comparator is logic HIGH. The microcontroller will send the signal for the robot to drive in specific direction via port P1. One thing to note is that the robot can move either forward or backward. In case it moves forward and then right, the robot turns right looking into forward direction. Similarly, if the robot moves in the opposite direction i.e reverse and then right, the robot needs to move right looking into reverse direction (or left looking into forward direction).


DC motors with H-Bridge


The DC motor driver or H-bridge IC used here is L293D. The H-bridge converts the logic voltage 5v into DC motor specific 9v and also takes care of back emf when the DC motor direction reverses. The microcontroller send the signals to H-bridge via P1 based on which the robot moves in the specific direction (or stops). The DC motors used here is 150RPM, considering that there is not much load, higher RPM motors can be used to get higher speed.

8051 Microcontroller Interface with H-Bridge L293D



11 comments:

  1. Is it available to buy?

    ReplyDelete
  2. can you post complete details and diagram ...

    ReplyDelete
    Replies
    1. I will update the posts with explainations and circuit diagrams in a week.

      Delete
    2. Add all the required details and circuit diagram. Check out.

      Delete
  3. hey i am a second year engg student n wanna wrk on dis project...it wud b helpful if yu guide me wid how to realli go bout it..also can yu temme d cost of dis project ?

    ReplyDelete
    Replies
    1. Most of what is required is in this article. Mail me enggproj07@gmail.com on what exactly else you need.

      Delete
  4. What would be the implementations of logic gates if the micro controller needs to be omitted? Please answer. Thanks

    ReplyDelete
  5. I WANT TO MAKE THIS PROJECT WITH A MODIFIED FORM, I NEED YOUR HELP PLEASE, RESPOND ME SOON BECAUSE I HAVE A SHORTAGE OF TIME ali.islam190@yahoo.com

    ReplyDelete
  6. please give me report of this project

    ReplyDelete
  7. please give me report of this project

    ReplyDelete
  8. hello sir realy good project can u mail me the coding program please
    mail: ssanthoshphanindra@gmail.com

    ReplyDelete