Professional Documents
Culture Documents
07 Chapter2 PDF
07 Chapter2 PDF
CHAPTER 2
Chapter 1 discusses about ITS, AVCS, its advantages and need for
current study and objectives of the thesis. This chapter focuses the hardware
modules used in the prototype vehicles. The schematics and the interfacing
circuits of vision sensors, steering mechanism, drive mechanism, and
communication modules are discussed in this chapter. Overall system
modeling is discussed at the end of this chapter.
2.1 INTRODUCTION
Vision System
Regulated
Power Supply H – Bridge
Driver
Control Drive
Battery Unit Feedback Motors
Regulated Steer
Power Motor
Supply
The dimensions of the vehicle, its maximum left and right turn
angle with turning radius and the PWM duty cycle values for extreme left,
right and center steer of the servo motors are given in Table 2.1.
Two test bed tracks are used for testing which is shown in
Figure 2.4 (a) and (b). Track-1 as shown in Figure 2.4(a) has 15m length with
black track of width 2.5 cm which has three curves of different radii (60cm,
66cm and 120cm). Track-2 as shown in Figure 2.4(b) has 28m length with
black track of width 2.5 cm with varying turn radius not less than 60cm.
The prototype vehicle under test is kept in the starting point (black
intersecting point) and the vehicle is allowed to travel in different radii of
curves and finally it comes to the starting point. The time taken for the vehicle
to complete the lap is taken as the metric. The vehicle is tested with different
algorithms in the track and the performance of the sensing algorithms and
parameters like speed accuracy and tracking accuracy is measured and
analyzed to evaluate the performance of the sensing algorithms, lateral control
algorithms and longitudinal control algorithms in real time.
array. Each sensor has its own advantages and disadvantages and their
effectiveness upon implementation are compared in the later sections. The
following section discusses the specifications, schematic diagrams and
sensing mechanism of these sensors.
+5V
+5V
+5V SFH4550
5K
TLC
SMBT3904
272
560
56
The NPN transistors SMBT 3904 has many features that facilitate
its use in the sensing circuitry when operated in the switching mode. Silicon
NPN photo transistor SFH314 is suitable for applications from 460nm to
1080nm. Also it possesses high linearity. The circuit diagram of
phototransistor interfacing is shown in Figure 2.8. The phototransistors are
used in common emitter configuration and voltage across it is fed to analog
input channel of the microcontroller. Reflected IR rays from the white surface
induce a greater diminishing effect on the output voltage, in comparison to
that from the black surface. This voltage difference facilitates the algorithm to
predict the nature of the track. Analog signal from sensors are connected to
the on-chip analog channels of microcontroller. Data acquisition rate, from
the track, close to 500Hz to 1KHz is achieved using this scanning circuit.
24
circuitry, and an internal pixel data hold function that provides simultaneous
integration start and stop times for all pixels. The pixels measure 63.5 µm (H)
by 55.5 µm (W) with 63.5µm center-to-center spacing and 8µm spacing
between pixels. Operation is simplified by internal control logic that requires
only a serial-input (SI) signal and a clock. This sensor can be operated with
up to 8MHz clock frequency and with a power supply of 3 to 5 V. The linear
sensor array and its position in the vehicle is shown in Figure 2.10.
Figure 2.10 Linear Sensor Array and its Position in Prototype Vehicle-2
high-impedance state. The pin description of the linear sensor array is given
in Table 2.2.
Terminal Pin
Description
Name Number
AO 3 Analog output.
Clock. The clock controls charge transfer, pixel
CLK 2
output.
Ground (substrate). All voltages are referenced
GND 6,7
to the substrate.
NC 5,8 No internal connection.
Serial input.SI defines the start of the data output
SI 1
sequence
Supply voltage. Supply for both analog and
VDD 4
digital circuits.
The integration time of the linear array is the period during which
light is sampled and charge accumulates on each pixel’s integrating capacitor.
The flexibility to adjust the integration period is a powerful and useful feature
of the TAOS TSL14xx linear array family. By changing the integration time,
a desired output voltage can be obtained on the output pin while avoiding
saturation for a wide range of light levels. The minimum time needed to
guarantee the sampling capacitor for pixel ‘n’ will charge to the voltage level
of the integrating capacitor is the charge transfer time of 20 µs. Therefore,
after n + 1 clocks, an extra 20 µs wait must occur before the next SI pulse to
start a new integration and output cycle. The minimum integration time for
any given array is determined by time required to clock out all the pixels in
29
the array and the time to discharge the pixels. The minimum integration time
can be calculated from the equation 2.1, Where, ‘n’ is the number of pixels.
1
T(int(min)) = ( ) × (n - 18)pixels + 20 s (2.1)
maximum clock frequency
The following pins of MPC 5604 board are connected to the sensor
board via amplifier. PCR 27 is pad configuration register 27 in 5604
microcontroller.
The analog output signal from the sensor is then passed through a
TLC272 precision dual operational amplifier to facilitate a high degree of
precision. The amplifier board amplifies the sensor voltage by 2.1609 times.
The normal conversion mode has two types namely, one shot and scan mode.
It is operated in one shot mode with an ADC clock of 32 MHz. The
conversion time for a single analog value at this clock speed is 1.156 µs.
Power UART
GN VCC GND Tx Rx
Power LED
PACKET
J2
J1 CONFIG-
URATION
Speed
Torque
Dimensions
Weight
0.041 Kg
The servo motor will move based on the pulses sent over the
control wire, which set the angle of the actuator arm. The servo expects a
pulse every 20ms in order to gain correct information about the angle. The
33
width of the servo pulse dictates the range of the servo’s angular motion. A
servo pulse of 1.5 ms width will set the servo to its neutral position or 900.
Pulse width less than 1.5ms will set position left to neutral or towards 00 and
pulse width more than 1.5ms will set position right to neutral or towards 1800.
Pulse width is determined by the control unit based on the information
obtained by the sensing mechanism.
2.6 BATTERY
(2.2)
where ‘v’ is the linear velocity of the vehicle, ‘r’ is the radius and ‘ ’ is the
angular velocity.
From the values of the current velocity and the angular position of
the vehicle, the position of the vehicle at any point of the track can be
accurately given by the fundamental relationship between the parameters.
The relation between the linear and the angular velocity is shown in Figure
2.19. The horizontal and vertical components of the velocity can be
decomposed as shown in Figure 2.19(c).
Figure 2.19 (a) Angular Velocity (b) Linear Velocity (c) Velocity
Components
37
= (2.3)
= (2.4)
Where ‘x’ and ‘y’ are the displacement in horizontal and vertical direction
respectively. The position of the vehicle is given in equations 2.5, 2.6
and 2.7.
= ( ) (2.5)
= ( ) () (2.6)
= ( ) () (2.7)
= ( ). ( ) (2.8)
= ( ). ( ) (2.9)
cos cos 0
= sin [ ] = sin + 0 (2.11)
1 0 1
2.8 CONCLUSION