Author Topic: Line following sensors  (Read 1354 times)

0 Members and 1 Guest are viewing this topic.

Offline pirouz38Topic starter

  • Beginner
  • *
  • Posts: 1
  • Helpful? 0
Line following sensors
« on: September 08, 2011, 05:57:52 PM »
Hi guys,
I'm working on a line folling robot for my first project, and got some questions
I just designed this (the attached pic) circuit for the sensors of this robot

Note: the Lx ones are emitters and the Tx ones are detectors

Questions:
1-is it right?
2-can I use 1 potentiometer instead of 2?
3-which one is better to use for the pair of ir emitter-detector?

                                                     0 0
                                                 0         0                            or                0 0 0 0 0 0 0 0
                                             0                 0
                                           0                     0
« Last Edit: September 08, 2011, 06:05:21 PM by pirouz38 »

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,944
  • Helpful? 99
Re: Line following sensors
« Reply #1 on: September 08, 2011, 07:03:51 PM »
Wire one set of emitter/detector to try the circuit on a line of the same width, color and distance as the one the Bot needs to follow. Then you'll know what works.

Most of the line followers I've seen use the second configuration.

Offline Soeren

  • Supreme Robot
  • *****
  • Posts: 4,672
  • Helpful? 227
  • Mind Reading: 0.0
Re: Line following sensors
« Reply #2 on: September 09, 2011, 07:54:37 PM »
Hi,

Note: the Lx ones are emitters and the Tx ones are detectors
It would be better naming them LEDx and either Qx, Trx or some other established  convention (and not using an LED symbol for the photo transistor/diode).


Questions:
1-is it right?
Values are often quite open for interpretation/debate, but I probably would change R7  ;)
And I'd commit seppuko before drawing the opamps with their ground leads pointing upwards.


2-can I use 1 potentiometer instead of 2?
Yes, given that all the photo transistors are identical in their response, the op-amps (used as comparators) only needs a common reference. I would add a cap from wiper to ground though (around 1µF).

You could make a similar circuit from a single 8 line buffer, by halving R1, R3...R15 and using a single potentiometer for setting their shifting points.


3-which one is better to use for the pair of ir emitter-detector?

                                                     0 0
                                                 0         0                            or                0 0 0 0 0 0 0 0
                                             0                 0
                                           0                     0
That really depends on your chassis and your steering strategy.
If you're using a 3 wheel setup with differential steering, mounting them on an imaginary circle with its center right between the two steering wheels, they will each have the same angular coverage when the wheels are turned and it will thus be usable for direct steering.
The same counts for steering made like on a soap box racer (where the entire front axle pivots around its center.

If you use Ackermann steering (like on a real car), a line, or at least a very shallow curve, will give the best spread. Alternatively they can be mounted with uneven center distances.
It's all about getting the most (i.e. the optimum amount of steering) info out of each, so you need to examine your steering for that.

Given that you probably need most precision when going straight and can live with a more coarse indications when turning, you might wanna consider a spread that gives you that, to avoid a zig-zag pattern when going on a straight line (the tell-tale of poor mechs and/or poor programming).

The further forward you can mount the line sensor, the more time for braking and turning, but if they're not under the vehicle, remember to shade them by other means, or ambient light may render them blind.
Regards,
Søren

A rather fast and fairly heavy robot with quite large wheels needs what? A lot of power?
Please remember...
Engineering is based on numbers - not adjectives

 


data_list