intersection using 2 sensors?

2 replies [Last post]
ajitjaison
User offline. Last seen 26 weeks 14 hours ago. Offline
Joined: 01/27/2010
bOt Points: 58

is it posible to make a line follower bot which can find intersections using only two ir leds and 2 sensors??

aamiraarfi
aamiraarfi's picture
User offline. Last seen 1 day 39 min ago. Offline
Joined: 11/02/2009
bOt Points: 417
re:intersection using 2 sensors?

If it is an intersection at 90 degree then there is no need to worry about intersection of track. other than this case there are two possible solutions:

1) use more than two IR sensors-with PID.

why? because you have failed to develop a logic to detect a crossover using two IR sensors and infact its time to use more than two IR sensor pair , dont be lazy we have to consider more cases into account (if 8 sensors - then 256 cases ). So, use all P and C to write a new logic that can perfectly detect crossover (other than 90 degree). LEARN to implement PID.. 

2)use Light sensors with ADC - advance. with (IC-0804) 8 bit adc you can have 256 different values to differentiate the intensity of light.. or think of a color hue from black to white - with one sensor..now your sensor can detect slight change in intensity of light (where earlier your IR based bot, IR sensors had to actually come to white or black line to detect its presence). Now with only two sensors we can have 256X256 cases.. dont worry about so many cases .. learn PID and  with little error we can actually make the robot move without wobbling..

imagine human eye can differentiate so many colors.. so concept of adc is bit difficult ... stick to first solution. leave the second for your long term project.

read how adc works before you buy one:

 

hope it helps.

 

Note:- This post has been edited by aamiraarfi at Wed, 01/27/2010 - 23:07.

robo.jr
User offline. Last seen 1 year 14 weeks ago. Offline
Joined: 04/12/2009
bOt Points: 145
check out this -

check out this - Line Follower with PID