Line follower. IR sensors

29 replies [Last post]
mecool.1988
Offline
Last seen: 5 years 4 weeks ago
Joined: 2009-03-24
bOt Points: 74

Is it better to use the conventinal IR sensors or will it be better to use TSOP

Can u help me wd d circuit.. plz?? 

ankit
Offline
Last seen: 4 years 50 weeks ago
Joined: 2009-03-24
bOt Points: 123
I believe that it will be

I believe that it will be better to use TSOP as it acts as a bandpass filter for IR. This help to cut off the frequency that are larger or smaller then the central frequency (the peak frequency for which the TSOP will sense the pulse. This cutoff the disturbance due to the sun or other  light sources and allow only a band of frequency which improves the performance of line follower drastically. 

 



 

There are variety of TSOP with different central frequency ranging from 32kHz to 42kHz. 

The IR-LED (sender) should sense pulses of the particular central frequency, you can use IC555 for generating the pulses.

You can check the datasheet for the application circuit.



 

shobhitkukreti
Offline
Last seen: 4 years 16 weeks ago
Joined: 2009-04-28
bOt Points: 683
The TSOP gives a pulsing

The TSOP gives a pulsing output so you will need to take care of that while programing

bOtskOOl
Offline
Last seen: 4 years 19 weeks ago
Joined: 2009-02-21
bOt Points: 3500
The IR sensors are sensitive

The IR sensors are sensitive to ambient light and sometimes you may find your bot not performing well in bright environment.

The ingenious solution that was developed to avoid this problem is to send pulses of IR light at a certain frequency instead of a constant beam, and build a receiver that would only detect IR pulses of the same exact frequency, cutting of all pulses of higher or lower frequency. The kind of device capable of filtering signals this way is called a bandpass filter. 

TSOP is one such band pass filter that is used for IR range. They are available for different carrier frequencies from 32 kHz to 42 kHz. . The TSOP module is commonly found at the receiving end of an IR remote control system; e.g., in TVs, CD players etc.

 

[  * :recommended to suppress power supply disturbances.]

 

 

We shall use IC555 (in astable mode), to generate a constant stream of square wave signal to drive the receiver IR-LED at at frequency centered at 38 kHz. Whenever a signal bounces off the obstacles, the receiver will detect it & change its output. 

 

T= .7* [(R1+R2)*C1]; f= 1/T;

We choose the R1& R2 for appropriate TSOP,

{Suppose I am using TSOP-1736 that has central frequency at 36kHz then I can choose C1=.02µF, R1= 1kΩ, R2= 1kΩ, which gives a frequency of 35.71kHz}

 

heloitsadi
Offline
Last seen: 4 years 50 weeks ago
Joined: 2009-03-15
bOt Points: 1321
Does TSOP

Does TSOP gives digital output

shobhitkukreti
Offline
Last seen: 4 years 16 weeks ago
Joined: 2009-04-28
bOt Points: 683
Pulsing DC Voltage. WIll

Pulsing DC Voltage. WIll fluctuate between 5V & 0V. Also the 38Khz stream of IR pulses should not be continous or the AGC of the TSOP filter will become immune to the 38Khz stream. It actually requires pulses of 38Khz frequency like a remote control does.

heloitsadi
Offline
Last seen: 4 years 50 weeks ago
Joined: 2009-03-15
bOt Points: 1321
sorry i couldn't get you

sorry i couldn't get you point shobit.. my question is that is TSOP  give digital fluctuations so that we can directly interface to the controller as input.

HARI
Offline
Last seen: 4 years 48 weeks ago
Joined: 2009-03-10
bOt Points: 452
@ heloitsadi Ya, TSOP could

@ heloitsadi

Ya, TSOP could be directely interfaced to the microcontroller. 

heloitsadi
Offline
Last seen: 4 years 50 weeks ago
Joined: 2009-03-15
bOt Points: 1321
ok..thanks a lot..

ok..thanks a lot.. 

shobhitkukreti
Offline
Last seen: 4 years 16 weeks ago
Joined: 2009-04-28
bOt Points: 683
You can manage a good line

You can manage a good line follower with an array of sensors and a little bit of shieldig it from Infrared light. It does not essentially require TSOP bases sensors.

heloitsadi
Offline
Last seen: 4 years 50 weeks ago
Joined: 2009-03-15
bOt Points: 1321
ya i have used IR sensors

ya i have used IR sensors only... i was trying to implant them on micromouse... but facing lot of problems.. I think micromouse needs analog sensors for accuracy... whereas in my case they are digital... 

nileshrockfire
Offline
Last seen: 2 years 14 weeks ago
Joined: 2009-07-19
bOt Points: 106
line follower

will u tell me the actual cost of the microcontroller AT89S52?

& the cost of LM324A & of L293D?????

& y we use here the POT?????

what is its function?

 

and the anoter question is......... i haven't doen any programing of microcontroller yet...

 u have given a program in the discution..........

should i copy that program and paste it in Keil version software???????

will u please give some tips for programing???????

robo.genius
Offline
Last seen: 51 weeks 5 days ago
Joined: 2009-04-12
bOt Points: 265
hi nileshrockfire

AT89S52 - Rs40

L293D - Rs90

L293B - Rs60

LM324 - Rs25

wot do u mean by POT???

by program i guess u mean line follower snippet given on line follower tut.. yeah u can directly copy it in ur Keil  

heloitsadi
Offline
Last seen: 4 years 50 weeks ago
Joined: 2009-03-15
bOt Points: 1321
AT89S52 : Rs. 60

AT89S52 : Rs. 60 (approx)

LM324A:  Rs. 5 (approx)

L293D: Rs. 80(approx)

The prices actually vary with the location. These are most common prices you will find in the general market.

 

The POT in the circuit is basically used for caliberation, the varying resistance change the value of the voltage set for comparison so it also varies the output. In practical way you can say that by varying the POT resistance you can vary the range of the sensor up to which it is sensing. Increasing the resistance will decrease the sensing distance. e.g. If at 5Kohm the sensors senses the obstacle found upto 10 cm. then at 8 Kohm it will sense only upto 6 cm (its just an example). So you can caliberate it for a particular distance according to your application.

 

It is better that you follow a book like Muhammad Ali Mazidi for learning microcontroller basic programming rather then copying the posted content. Its a very good book for beginners. As far as the Keil software is concerned, you also need to learn how to write and compile the code into it. This link will guide you regarding keil www.microdigitaled.com/8051/Software/keil_tutorial.pdf.

 

Feel free for any othe query..

 

Regards,

Aditya Sharma

http://robozeal.blogspot.com

 

nileshrockfire
Offline
Last seen: 2 years 14 weeks ago
Joined: 2009-07-19
bOt Points: 106
linefollower

hi.........every one..........

will u plz tell me .......how much distance should i kept between transmiter IR led and the IR reciever????????

another qustion is can i use 500 rpm moter???? what should be the change in the program? is it advisible to use 500 rpm moter?plz explain me the significance of delay here?

another confusion is what should i do after programing in keil?

my another question is can i make this robot as a black line follower on the white surface?what should be the change in the c program codes which is mentioned above?

plz reply me soon so that i can make this robot as soon as earlier..........

sajeevkumar5079
Offline
Last seen: 4 years 25 weeks ago
Joined: 2009-10-22
bOt Points: 62
help me m a beginner

 will u pls help to learn how to select d values of d components like resisters , capacitors for a circuit.. give me any easy example.. 

robo.jr
Offline
Last seen: 5 years 14 weeks ago
Joined: 2009-04-12
bOt Points: 145
hi sajeevkumar5079 check out

hi sajeevkumar5079
check out this tutorial - http://botskool.com/tutorials/electronics/general-electronics/building-electronic-circuits-using-breadboard
everything has been explained regarding resistor and capacitor values and how to choose them.. 

mose87
Offline
Last seen: 4 years 21 weeks ago
Joined: 2010-01-15
bOt Points: 54
help me for this

 i have this task of building a line follower circuit for the robotics team but i have no any circuitdiagram concerning the above please will you help me to get this cicuit diagram

shashwat
Offline
Last seen: 12 weeks 5 days ago
Joined: 2009-02-18
bOt Points: 1160
Hi mose87, Check out this

Founder and Admin

sivan000
Offline
Last seen: 4 years 17 weeks ago
Joined: 2010-01-26
bOt Points: 118
i wan ask about the connection of ir sensor with LM324N

http://www.botskool.com/tutorials/electronics/8051/line-follower

 

 

any wan can help me...i fix all the conection ready ,,,,but i dun know how to connect the wire at one part wich is can see in the picture from the url above check out the picture of the OP-Amplifier in that pic see at R3 how to conect it...wat it is..POT?....................................PLZ HELP ME...if any wan got answer explani me or if can show me the pic to used what ....

 

 

 

sivan

shashwat
Offline
Last seen: 12 weeks 5 days ago
Joined: 2009-02-18
bOt Points: 1160
Info regarding R3 in the circuit diagram of OP-AMP (LM324)

Hi sivan000,

In the circuit diagram of Op-Amplifier (LM324) R3 is a potentiometer (also known as POT). Read more about potentiometer here - http://en.wikipedia.org/wiki/Potentiometer

Founder and Admin

sajeevkumar5079
Offline
Last seen: 4 years 25 weeks ago
Joined: 2009-10-22
bOt Points: 62
hi robo.jr

can u tell me hw can i make my bot to remember a coordinate

 

on its path that it has traveresed 

sivan000
Offline
Last seen: 4 years 17 weeks ago
Joined: 2010-01-26
bOt Points: 118
about sensor

hai...

im realy realy need help here....

i want to make one line follower robot using 8051..

so i get one circuit from botskool...

but here there is only got IR(reciever) only in this circuit...

so is tat will detect correctly with out emitter.....

i got the circuit pic but i dun noe how to upload here...if u wan..i can email too.....

plzzzz help me as fast as can..... 

sivan

aamiraarfi
aamiraarfi's picture
Offline
Last seen: 1 year 22 weeks ago
Joined: 2009-11-02
bOt Points: 457
@sivan000

hey  sivan your emitter circuit will be as simple as IR emitter connected in series with a resistance say 10k-100k across 5V supply..thats all

 

5V|-------^^^^---resistance-----||>>--emitter---|0V

 

transmitter is independent of other circuit, this is just the basic line follower..

other wise sometimes we connect the 5V supply to uC ..or a timer circuit..(eg. TSOP..) 

hope you got it..

Note:- This post has been edited by aamiraarfi at Tue, 2010-02-09 19:10.

sivan000
Offline
Last seen: 4 years 17 weeks ago
Joined: 2010-01-26
bOt Points: 118
broo..............

 hai aamiraarfi.....now like this...i dun have much time so that i must make sure my robot is working fully..

i got all the things....i can email u the circuit ..can u see the circuit and make sure it it cn work or not...can help ah bro....

sivan

aamiraarfi
aamiraarfi's picture
Offline
Last seen: 1 year 22 weeks ago
Joined: 2009-11-02
bOt Points: 457
how to upload an image

well its a public forum..so let me explain how to upload an image..

After you have logged in and reached the comment area click on the button as marked in the image below..

NOw a screen will pop up click on browse server and then another popup will open, see the image below

click on the upload button and upload your images one after the other..

after uploading the images select the image you want add in your comment and click sent to FCK editor .. keep the width 350 , you are done now Dont worry about the circuit being public.. its the code that makes the difference.. just upload it here I 'll help you out.. 

sivan000
Offline
Last seen: 4 years 17 weeks ago
Joined: 2010-01-26
bOt Points: 118
 thanks to teach me hw to

 

thanks to teach me hw to upload pic ro...i wan to know...is this connection will work...is ther that IR(reciever no need IR(transmitter) to make ir reciever works...explani me...because i make conection ready and i program it also..but it not working bro...

sivan

Vivek.psg
Offline
Last seen: 4 years 23 weeks ago
Joined: 2010-02-02
bOt Points: 70
IR receuver doubts!!!!

Hi guys,

 

I have almost completed circuit part... i am usin a ir receiver which has three pins

 

 

you can find a image of the ir receiver at http://gpelec.en.alibaba.com/product/51115480-50200899/IR_Receiver_Module.html

 

 i dunno how to connect this ir receiver in the circuit......

 

 

the pot u have shown has three pins.... i don know how to connect it .... plz help me.....

Note:- This post has been edited by Vivek.psg at Wed, 2010-02-10 10:20.

shashwat
Offline
Last seen: 12 weeks 5 days ago
Joined: 2009-02-18
bOt Points: 1160
IR transmitter is absolutely necessary

Hi sivan000,

IR transmitter is absolutely necessary; without it your circuit won't work. There is a separate circuit diagram of IR transmitter given on Line Follower tutorial page. It seems like you have missed it. Go through it once.  

Founder and Admin

shashwat
Offline
Last seen: 12 weeks 5 days ago
Joined: 2009-02-18
bOt Points: 1160
IR receiver three pin configuration

Hi Vivek.psg,

For using 3 pin IR receiver see the figure uploaded below -

IR receiver three pin configuration

See the picture of 3 pin pot (potentiometer) below -

3 pin potentiometer

Connect the extreme left and right pins to Vcc and GND and the centre pin to LM324 as shown in circuit diagram of Line Follower

Founder and Admin