Use of Infrared Detectors Basics
Use of Infrared Detectors Basics
IR reflectance sensors contain a matched infrared transmitter and infrared receiver pair.
These devices work by measuring the amount of light that is reflected into the receiver.
Because the receiver also responds to ambient light, the device works best when well
shielded from abient light,
and when the distance between the sensor and the reflective surface is small(less than
5mm).
IR reflectance sensors are often used to detect white and black surfaces. White surfaces
generally reflect well,
while black surfaces reflect poorly. One of such applications is the line follower of a robot.
To get a good voltage swing , the value of R1 must be carefully chosen. If Rsensor = a when
no light falls on it and Rsensor = b when light falls on it. The difference in the two
potentials is:
Vcc * { a/(a+R1) - b/(b+R1) }
Relative voltage swing = Actual Voltage Swing / Vcc
= Vcc * { a/(a+R1) - b/(b+R1) } / Vcc
= a/(a+R1) - b/(b+R1)
The resistance of the sensor decreases when IR light falls on it. A good sensor will have
near zero resistance
in presence of light and a very large resistance in absence of light. We have used this
property of the sensor to form a potential divider. The potential at point ‘2’ is Rsensor /
(Rsensor + R1). Again, a good sensor circuit should give maximum change in potential at
point ‘2’ for no-light and bright-light conditions. This is especially important if you plan to
use an ADC in place of the comparator
To get a good voltage swing , the value of R1 must be carefully chosen. If Rsensor = a when
no light falls on it and Rsensor = b when light falls on it. The difference in the two
potentials is:
Vcc * { a/(a+R1) - b/(b+R1) }
The line position is compeared to the center value to be tracked, the position error is
processed with Proportional/Integral/Diffence filters
to generate steering command. The line folloing robot tracks the line in PID control that
the most popular argolithm for servo control.
The proportional term is the commom process in the servo system. It is only a gain
amplifire without time dependent process.
The differencial term is applied in order to improve the responce to disturbance, and it also
compensate phase lag at the controled object.
The D term will be required in most case to stabilize tracking motion. The I term that
boosts DC gain is applied in order to remove left offset error,
however, it often decrease servo stability due to its phase lag.
When any line sensing error has occured for a time due to getting out of line or end of line,
the motors are stopped and
the microcontroller enters sleep state of zero power consumption.
Typical Examples of infrared Transmitter and Receiver installation