go away spammer

Author Topic: how to make a circuit of white line detector using IR emitter & detector.  (Read 5312 times)

0 Members and 1 Guest are viewing this topic.

Offline rubberTopic starter

  • Jr. Member
  • **
  • Posts: 15
  • Helpful? 0
how to make a circuit of 3 set of IR emitter & detector for white line detector?

Offline Strikeskids

  • Jr. Member
  • **
  • Posts: 19
  • Helpful? 0
    • Strikeskids
You only need 2 Photoresistors. Use one on one side and the other on the other side. If any of those touches the white line, then turn in that direction. Just connect them up to a microcontroller and program it or, connect each photoresistor in the path to the motor so it slows the motor when it sees white.http://www.radioshack.com/product/index.jsp?productId=2062590
Don't take life seriously
Nobody gets out alive anyway.

Offline rubberTopic starter

  • Jr. Member
  • **
  • Posts: 15
  • Helpful? 0
You only need 2 Photoresistors. Use one on one side and the other on the other side. If any of those touches the white line, then turn in that direction. Just connect them up to a microcontroller and program it or, connect each photoresistor in the path to the motor so it slows the motor when it sees white.http://www.radioshack.com/product/index.jsp?productId=2062590

thanks for the reply..

sorry. i;m a real beginner to robotics.. do u mind explaining how this work?? thank you very much

Offline rubberTopic starter

  • Jr. Member
  • **
  • Posts: 15
  • Helpful? 0
You only need 2 Photoresistors. Use one on one side and the other on the other side. If any of those touches the white line, then turn in that direction. Just connect them up to a microcontroller and program it or, connect each photoresistor in the path to the motor so it slows the motor when it sees white.http://www.radioshack.com/product/index.jsp?productId=2062590


u mean something like this?

if left_photoresistor detects more light than right_photoresistor
then turn robot right

if right_photoresistor detects more light than left_photoresistor
then turn robot left

if right_photoresistor detects about the same as left_photoresistor
then robot goes straight


then how am i going to make the robot goes backward when it going nearer to the white line??

anymore, how the circuit design look like??

sorry for the troubles

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
one photocell on each side of the robot when one senses more light (the line) it moves to that side until it does not sense more light on that side. so the robot is always auto-correcting.
look at the attached picture to give an idea of the setup.
Howdy

Offline rubberTopic starter

  • Jr. Member
  • **
  • Posts: 15
  • Helpful? 0
but i making a sumo robot.. i don want to get near to the line..

when i get near the line, the robot must move away from the line.

sry that i didnt stat my point clearly.

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
ahh my bad, thought you wanted a line follower...
for this one, you want a sort of imaginary box your robot cannot go out of?
if the sides are marked you could do the same thing, have sensors on the corners of your robot
and the when say the left sensor sees the line it will turn right thus moving away from it.
Howdy

Offline rubberTopic starter

  • Jr. Member
  • **
  • Posts: 15
  • Helpful? 0
my bad also.. sorry abt that.

which will be better?? line detection using IR emitter & detector or the photoresistor??

i can find the circuit for IR emitter & detector.
http://www.societyofrobots.com/schematics_infraredemitdet.shtml

if i wan 3 sets of this in 1 PC board.. can i jus join 3 of the circuit together??

how do i send the data back to the mircocontroller?


Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
well for me i would opt for the photo resistor circuit as i have the parts available and its easier to use...
to send data back to the mcu, the mcu has to read a value off the pin, this is done through code.
Howdy

Offline rubberTopic starter

  • Jr. Member
  • **
  • Posts: 15
  • Helpful? 0
ohhh.. okay. thank you very much.

Offline rubberTopic starter

  • Jr. Member
  • **
  • Posts: 15
  • Helpful? 0
sorry to bother u again.

can help me take a look of the circuit.



http://i671.photobucket.com/albums/vv76/hengsuay_2009/Untitled.jpg
is it correct?

Vin supply by the mircocontroller then the Vout 1,2,3 connect back to the mircocontroller to get the data (1 or 0).

does i need something to convert the data to 1 or 0?

or jus do some programming will do?

« Last Edit: May 28, 2009, 07:34:46 AM by rubber »

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
do that is three sensor circuits...
im guessing when there is little light the "vout" goes back through the resistor to "vcc"
when there is light the path through the resistor is harder to it goes through the transistor to "gnd"
the mcu will read the pin in the programming.
Howdy

Offline rubberTopic starter

  • Jr. Member
  • **
  • Posts: 15
  • Helpful? 0
so that is correct?

cos i want to have 3 sets of emitter and detector.

something like this

http://www.leang.com/robotics/info/articles/linesen/senspace.gif

Offline galannthegreat

  • Supreme Robot
  • *****
  • Posts: 615
  • Helpful? 4
  • Blue-Lensed Blue LEDs?! What?! Impossible!!
That would work.
Kurt

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
that could work,
but rather just have one or a pair on each corner so it can see if any corner has gone out.
but don't get over excited and put stacks of them on because you may run out of i/o on your mcu.
Howdy

Offline rubberTopic starter

  • Jr. Member
  • **
  • Posts: 15
  • Helpful? 0
oh okay. thank you very much.


 


Get Your Ad Here

data_list