Professional Documents
Culture Documents
INTRODUCTION
1.1 Introduction.
Navigational systems are having lot of importance as far as modern industrial
applications are concerned. Hence any attempt towards the design of such navigational
system will definitely give deep insight into the practical problems of such challenging
projects. Different problems such as;
a) Selection of drives,
b) Physical size of the moving system,
c) Development of electronic control circuit,
d) Development of software packages etc.
which are likely to arise are presented in a detailed manner. After the
development of a model physical system their performance evaluation is carried out
experimentally and the evaluation details are presented.
Practically the moving system with manual mode and auto mode is fabricated
along with the associated hardware modules. With the help of indigenously developed
control software, the above prototypes are tested for their operational evaluation and test
results are monitored and recorded.
i) Selecting the suitable components for the electronic circuitry based on the
requirement.
ii) Design and selection of the DC series motors for the application.
iii) Construct a perfect micro controller program and feedback strategy for
controlling the motors.
1|P age
iv) Interfacing serial port communication and Visual Basic interface for to get
the required performance.
1.3 Methodology:
The complete controlling of the moving system is through a central console or a
software interface from where the commands are given to the microcontroller for
performs the specified tasks. The moving system using DC series motors where the
controlling is made through serial port communication, through a sufficiently long RS232
communication channel.
2|P age
CHAPTER 2
REVIEW OF THE EXISTING LITERATURE
2.1 Introduction:
Having given a brief introduction, a detailed review of the existing work in this
area is mentioned here. The references are includes papers, reports, books, data sheets
and other articles downloaded from webs links and a brief description about their work is
mentioned in this chapter.
3|P age
control with Differential Drive technique to the Wheeled Mobile Robot. For the design
analysis of Motor Driving System, PIC16F84A is used and five inputs of sensors detected
data are tested with five ON/OFF switches. The outputs of PIC are the commands to
drive two DC series motors, inputs of H-bridge circuit .In this paper, Control techniques
of PIC microcontroller and H-bridge circuit, Mechanism assignments of WMR are
combined and analyzed by mainly focusing with the “Modeling and Simulink of DC
Motor using MATLAB”
We are mainly concentrating on how the system responds to the commands we
give and we analyze the system performance. Even though, the experimental setup is
same as suggested by the authors, they implemented the hardware by serial
communication using RS232 channel taking servo motors as the actuators. But in this
work, we will implement the hardware module, moving system with DC series motors as
the actuators using serial communication.
Details about the software part of control programming, the data logging software
is well described in [4] and [5]. The data logging refers to the command inputs to the
moving system that displays on the computer screen and this page is called ‘hyper
terminal’. There are steps to enter this hyper terminal link,
“Start => Programs => Accessories => Communications => HyperTerminal”
In this we have to make the settings of the suitable communication port, baud rate and
other port settings. The hyper terminal port is more accessible for the serial
communication modes. In this project, we used Visual Basic software a graphical user
interface, which is very simple to operate aged as well as normal people for the moving
system using DC series motors.
In [6], the author described about electronic navigation system with both DC
motors and stepper motors. The controller he used is Atmel AT89C52 and L293D and
ULN 2803 ICs used as drivers for DC motors and stepper motors respectively. Serial port
communication with HyperTerminal is implemented for DC motors and RF
communication is used for the stepper motors. The detailed analysis and performance
evaluation is also reported. In his work he found that the stepper motor provides better
results than the DC motors with both three and four wheel systems.
4|P age
2.3 Summary:
The principles and details regarding the control of such devices mentioned in the
above references are found much useful in the present work. Having given a detailed
review about the similar work carried out, through the above literatures, a similar work is
done here and its further explanation is presented in the coming chapters.
5|P age
CHAPTER 3
DEVELOPMENT OF NAVIGATIONAL SYSTEM
3.1 Introduction:
Having given a brief survey about the work done in the navigational problem of
moving bodies, a detailed description about the problems faced currently is the content of
this chapter. The moving body with DC series motors is considered. The navigation is
done with the help of serial port communication facility implemented by RS232 cable
and Visual Basic graphical user interface.
The objective is to navigate the moving system through a predetermined path. A
detailed description about different subsystems involved in the project is given as under.
6|P age
Visual Basic graphical user interface
PIC 16F877A Microcontroller
12
5
Power 7805 Voltage
Supply unit regulator
Regulated
power supply
12
IR sensor 1
Motor 1 Bridge
0 IR sensor 2
circuit
ULN PIC
2803 16F877A Optical
Motor 2 Bridge Encoder 1
0
circuit
Optical
12 Encoder 2
5
5
7|P age
3.2.1(b) 7805 voltage regulator:
The power requirement for the developed hardware is 12V DC for the DC motors
which is directly taken from the regulated power supply unit and 5V DC for the control
circuit is limited by using 7805 voltage regulator. The input is 12V from a regulated
power supply and the output is 5V DC to the control circuit. The schematic of the 7805
pins and circuit diagram is as shown below.
8|P age
wrong then the diode D1 will be in the reverse biased and it opposes the current flow
through the circuit. Thus it helps the circuit as well as the components.
9|P age
3.2.1(c)ii Pin Description of PIC 16F877A Microcontroller:
10 | P a g e
both the A/D converters and the comparators. The operation of each pin is selected by
clearing/setting the appropriate control bits in the ADCON1 and/or CMCON registers.
11 | P a g e
RB4 Bit 4 TTL No connection
RB5 Bit 5 TTL No connection
RB6/PGC Bit 6 TTL/ST(2) No connection
RB7/PGD Bit 7 TTL/ST(2) No connection
Table 3.2.2 Pin Description of Port B
12 | P a g e
RC6/TX/CK Bit 6 ST No connection
RC7/RX/DT Bit 7 ST No connection
Table 3.2.3 Pin Description of Port C
13 | P a g e
when they are being used as analog inputs. The user must make sure to keep the pins
configured as inputs when using them as analog inputs.
Compare Timer1
PWM Timer2
14 | P a g e
CCP2 Module:
Capture/Compare/PWM Register 2 (CCPR2) is comprised of two 8-bit registers:
CCPR2L (low byte) and CCPR2H (high byte). The CCP2CON register controls the
operation of CCP2. The special event trigger is generated by a compare match and will
reset Timer1 and start an A/D conversion (if the A/D module is enabled).
The speed control of the navigational system is done by the help of CCPR1
register of PIC 16F877A microcontroller. The value of CCPR1 register will change from
0 to 255 that is the pulse width of the will be changed. By default the value 128 is stored
in this register. And the speed increasing and decreasing is done by giving interrupts to
the register. If we pressing the pin RC4 or RC3, it’s for increasing or decreasing the
speed respectively, it will produce an interrupt and according to that the speed will
change.
3.2.1(d) IR Sensors:
Two infrared sensors are used in the navigational system. These are placed either
sides of the moving system that is right and left sides. The infrared LED transmits the IR
rays and a photo diode is there for receiving this rays. Main parts of the circuit are
15 | P a g e
Infrared led and LM 358 operational amplifier. The LM 358 is used in the comparator
mode. The IR led is used as a potential divider in a reverse bias mode. A threshold
voltage is set at the inverting terminal of the op-amp using potentiometer. So when
infrared light reflects from a surface, the resistance of the photodiode would decrease and
this in turn on when exceeds the threshold voltage will make the output of the Op-amp go
high. The reverence distance can set depending upon the threshold voltage by adjusting
the potentiometer. Whenever an obstacle in the path, either at right side or at left side the
corresponding receiver can’t get any signals from the transmitter. This will produce a
potential difference between the inverting and non inverting terminals of the op – amp
and produces an output according to that. The output of left side sensor is connects to
RC0 (15th) pin and the output of the right side sensor connects to RC1 (16th) pin of the
microcontroller. If any obstacle is there then the corresponding op-amp’s output will
produce a 5V pulse and it goes to the corresponding pin of the microcontroller and
changes the direction of the moving system. The circuit diagram is shown in the figure
3.2.5 below.
16 | P a g e
voltage gain around 100bB, wide bandwidth (unity gain) 1.1MHz and essentially
independent of supply voltage.
Since the circumference of the wheel used for the moving system is 22cm. so here
the designed disc having 21 holes. Between two holes the system will move 1cm or the
displacement between 160. The circuit diagram of optical encoder is shown in the figure
3.2.8 below. When working with DC series motors, a shaft encoder is the most common
and accurate way of providing feed-back to the controller. Shaft encoder comes in many
17 | P a g e
shapes and sizes, but they all rely of the same principle. Figure 3.2.7 shows a classic
encoder disk (which is one of the main parts of a shaft encoder mechanism). The optical
diode is always conducting when this optical signal passes through the encoder disc the
photo transistor in the receiving circuit gets the sufficient light source to turning on. Then
microcontroller pin gets a logic low signal from emitter of photo transistor.
3.2.1(f) Keypads:
In navigational system, two keypads are using. The first key pad is using for mode
selection, that is to select either manual mode or auto mode and to increase or decrease
the speed of the moving system. Keyboard contains one push button switch for mode
selection and two micro switches for adjusting the speed of the moving system. The
circuit diagram is shown figure below.
18 | P a g e
If no key is pressed then 5V flows to the microcontroller pins RC2, RC3 and RC4
through the pull up resistors. When any key is pressed then a low signal appeared to the
corresponding micro controller pin
The second keypad is for changing the direction of the moving system. Four
micro switches are arranged in this for moving four directions like forward, reverse, right
and left. One end of each switch connected to common ground and another end is
connected to 5V through pull-up resistor and microcontroller pins. When a switch is
closed, 5v bypasses through the pull-up resistor and switch and a low signal is passing to
microcontroller. The circuit diagram of keypad for direction control is shown in figure
3.2.10 below.
19 | P a g e
Fig 3.2.11 Pin diagram of power transistors TIP 127 and TIP 122
20 | P a g e
Power Transistor Switches
1 2
Current
S1 S2 S3 S4 Direction Effect
Motor spins
1 0 0 1 1 to 2 Forward
Motor spins
0 1 1 0 2 to 1 Forward
-- Breaking
1 1 0 0 occurs
-- --
0 0 0 0
Two H – Bridge circuit is used in the system ie; for each motor separate H –
Bridge circuits are using. Here in this system the H – Bridge consist a pair of power
transistors TIP 127 and TIP122 and four BC 547 transistors. In first case when control
inputs are ‘1’ and ‘0’, the Q5 transistor is turned ON and the power transistors Q1 and Q4
gets sufficient voltage to turning ON. This will cause the motor to rotate in one direction.
The current flow direction will be Vcc – Q1 – motor – Q4 – Ground. At this time the
power transistors Q2 and Q3 are in OFF state and no conduction. Second case when the
control inputs are ‘0’ and ‘1’, the Q7 transistor is ON and power transistor Q2 and Q3
21 | P a g e
gets sufficient voltage to turning ON. This will cause the motor to rotate in the opposite
direction. The same time the power transistors Q1 and Q4 are in OFF state. The current
flow direction will be Vcc – Q2 – motor – Q3 – Ground.
Rse
Series Field +
Supply
(V) Ra(Armature)
22 | P a g e
3.2.1h (Ia) Speed current characteristics:
Speed
Current
Fig 3.2.15 Speed Current Characteristics
From the speed equation it is obvious that speed is directly proportional to back
emf, Eb and inversely proportional to flux per pole ф. Flux per pole is depending on field
current which in turn depends on armature current (Ise = Ia). So as armature current is
increases, speed decreases and vice versa. From the speed – current characteristic, it is
obvious that series motor is variable speed motor. With the decrease in load on DC series
motor speed increases, and become dangerously high at no load (light loads). So far this
reason series motors are never started at no load as the machine may get damaged due
heavy centrifugal forces set up in the rotating parts at dangerously high speed at no load.
The minimum load on DC series motor is not below 15% of full load.
Torque
Current
23 | P a g e
If. Therefore on light load mechanical torque T is proportional to the square of the
armature current i.e, T α Ia2 and hence curve drawn between torque and armature current
up to saturation point is a parabola, as shown in the figure above.
After saturation point flux ф is almost independent of excitation current and so
the torque is proportional to the armature current i.e. T α Ia. Hence the characteristics
become a straight line. The useful torque is, of course, less than the total torque
developed. This is due to torque lost in iron and friction and windage loss. From this we
can infer that starting torque for DC series motor is high.
Speed
Torque
Fig 3.2.17 Speed Torque Characteristics
Speed sharply falls with the increase in torque for smaller values of load. But at
higher loads, the speed drops linearly but slowly with increasing torque. Hence series
motors are best suited for services where the motor is directly coupled to the load such as
fans whose speed falls with the increase in load torque(11).
24 | P a g e
Armature current
Torque
Efficiency
Speed
i) The speed of series motor falls rapidly with the increase in load, so a
series motor is not suitable for services requiring a substantially constant
speed.
ii) The efficiency increases rapidly in the beginning, reaches its maximum
value and then decreases. This is due to the fact that at light loads the friction
and iron losses are large compared with the load and effect to these losses
becomes less with the increase in load. The armature and field copper loss
varies as the square of the current, so these losses increase rapidly with the
increase in load. The efficiency become maximum when friction and iron
losses are practically equal to the copper loss.
iii) Series motor develops a starting torque comparatively greater than that
developed by a shunt motor for a given current. Hence series motors are best
suited where huge starting torque is required i.e. street cars, cranes, hoists and
locomotives.
3.2.1h (III) 22N28 210E DC series motor with K38 Gear box:
25 | P a g e
The DC series motor with the gear box assembly is shown in the figure 3.2.19
above. The two DC series motors used here are 22N28 210E which having a no-load
speed of 5900 rpm. In this high speed the controlling will be difficult and torque is less.
For improving the control of speed and getting high torque geared motor is one of the
best choice. The gear used here is K38 and it will reduce the speed by 100:1 ratio. Thus
the system works with the speed of nearly 60 rpm. The maximum continuous torque and
maximum continuous power of the motor is 7.3mNm and 3.8 watts respectively.
The above figure 3.2.21 shows the diagram of driver circuit part of the main
system. The four input signals form the microcontroller is coming to the pins 1, 2, 3 and
4; the corresponding output is generated from 18, 17, 16 and 15. The input signal
amplitude is either ‘0’V or ‘5’V depending on the application. In the output pins the
signals will be inverted form from the input. In figure the resistors R1 to R4 will limit the
voltage to the driver IC and R5 to R8 are pull up resistors. The diodes D1 to D4 are for
the protection purpose that is to avoid the reverse current flow from the bridge circuit.
27 | P a g e
decode RS-232 signal, it does not provide a serial/parallel conversion. All it does is to
convert signal voltage levels. The key features of MAX232 are as follows [14].
28 | P a g e
The circuit diagram of MAX232 IC is shown in the figure 3.2.23 above. In order
to make two devices communicate, whether they are desktop computers,
microcontrollers, or any other form of integrated circuit, we need a method of
communication and an agreed-upon language. The most common form of communication
between electronic devices is serial communication. Communicating serially involves
sending a series of digital pulses back and forth between devices at a mutually agreed-
upon rate. The sender sends pulses representing the data to be sent at the agreed-upon
data rate, and the receiver listens for pulses at that same rate. This is what’s known as
asynchronous serial communication. There isn’t one common clock in asynchronous
serial communication; instead, both devices have their own clock and agree on a rate to
which to set their clocks.
Here the two devices PC and microcontroller are to exchange data at a rate of
9600 bits per second. First, we would make three connections between these devices:
a) a common ground connection, so both devices have a common reference point to
measure voltage by;
b) one wire for the sender to send data to the receiver on (transmit line for the
sender);
c) One wire for the receiver to send data to the sender on (receive line for the
sender).
29 | P a g e
Fig 3.2.24 Visual Basic front end
When the person presses a particular switch then the background color of the
button in the front will change from red to green. Thus the person who operates it can
easily understand the direction of the moving system. The below figure 3.2.25 shows the
system moving towards the forward direction.
30 | P a g e
When any key is pressed then a character is sent to the microcontroller and the
microcontroller will send to the control signals to the bridge circuit according to the
character which it received. When forward key is pressed then both the motors will
rotates at clockwise direction that is the signal to bridge circuit will be ‘1 0 1 0’. For
moving reverse direction, the both motors moves anticlockwise direction then the signal
voltage to bridge circuit will be ‘0 1 0 1’. For moving right direction the right motor
moves anticlockwise (backward) and left motor moves clockwise (forward) direction.
The control signal to the bridge for right direction is ‘1 0 0 1’. Like for left direction the
control signals will be ‘0 1 1 0’.
START
X = Distance,
Y = angle
NO
Is switch A //Auto mode
S1 is open
YES(Manual)
NO NO
Is Forward Is Right key Is Reverse Is Left key
key pressed pressed key pressed pressed
YE YE YE YE
31 | P a g e
A
Distance = X
Move Forward
NO
Is distance <
STOP
X
YES
NO
Is Obstacle
Detected
YES
NO
Is Obstacle at
left
32 | P a g e
3.4 Circuit diagram of Navigational system
33 | P a g e
3.5. Summary
Detailed descriptions of the blocks are given along with the characteristics and
operational description and flowcharts are given. Description of the DC motor driving IC,
Serial port communication channel along with MAX232 and microcontroller are
presented.
Having given this description, a detailed analysis of the moving system, results
and inferences drawn from experiments conducted with the moving system is specified in
the coming chapter. These include experimental results, tables and graphical plots.
34 | P a g e
CHAPTER 4
EXPERIMENTAL WORK AND RESULTS
4.1 Introduction:
Having given a brief description of the architecture of the fabricated moving
system, a detailed explanation about the analysis is considered here. This analysis
consists of two major sections as:
a) Analysis of the moving system unit in manual mode
b) Analysis of the moving system unit in automatic mode
These analysis are done with the DC series motor driven navigational system in different
speeds and different paths.
35 | P a g e
4.3 ANALYSIS (Manual mode):
4.3.1 Introduction:
The above described moving systems are subjected to the following experiment.
They are energized to follow the path as described as under. The analysis is done at
different speeds (Low – 1cm/s, Medium – 6.25cm/s and High 12.5cm/s). The control
signals are generated so as to guide the moving system to follow. Both X and Y axes are
in centimeters.
a) Horizontal path
b) Vertical path and
c) Triangular path
d) Rectangular path
e) A random path
Each is discussed separately in detail as under.
Initial conditions: The supporting wheel must be in a right position as marked with a
dotted line shown in the Fig 4.2.1to minimize the positional error. This can be observed
by placing a marker at the center of axis of both motors on the rear side.
36 | P a g e
system traced the same path. The graph below shows the paths which system traced for
the vertical path.
Model calculation:
37 | P a g e
Operational Description (Forward Direction):
The system designed as follows:
1) Keyboard
2) MAX 232 IC
3) Microcontroller
4) ULN 2803
5) Bridge 1
6) Bridge 2
7) Motor 1
8) Motor 2
A command ‘F’ is given from the keypad for the forward direction, a logic high
appears at the input port of the MAX232 through RS232 serial communication channel
from the keyboard. This data is in serial form and it is sent to the port C (RC 7) of the
microcontroller. From the character it received from the MAX 232 IC, 1 for forward
direction, the moving system will move forward direction. If ‘F’ key is pressed, then case
1 in the direction register is executed. It’s for to move the system forward. The pins RD 4
and RD 6 produces pulses and these pins are connected to the pins of ULN 2803. The
output f ULN 2803 is just inverted form of its input and given as the control input to the
motor through the bridge circuits. The actual waveform that appears across the output of
the ULN 2803 IC is shown in the figure below as observed through the oscilloscope.
38 | P a g e
Fig 4.3.4 Control signals for motor M1 in forward direction
39 | P a g e
Operational Description (Backward Direction)
The system designed as follows:
1) Keyboard
2) MAX 232 IC
3) Microcontroller
4) ULN 2803
5) Bridge 1
6) Bridge 2
7) Motor 1
8) Motor 2
Similarly as described above for the forward direction, a logic high appears at the
input port of the MAX232 through RS232 serial communication channel from the
keyboard. This data is in serial form and it is sent to the port C (RC 7) of the
microcontroller. From the character it received from the MAX 232 IC, 2 for reverse
direction, the moving system will move reverse direction. If ‘B’ key is pressed, then case
2 in the direction register is executed. It’s for to move the system reverse. The pins RD 5
and RD 7 produces pulses and these pins are connected to the pins of ULN 2803. The
output f ULN 2803 is just inverted form of its input and given as the control input to the
motor through the bridge circuits. The actual waveform that appears across the output of
the ULN 2803 IC is shown in the figure below as observed through the oscilloscope.
40 | P a g e
Fig 4.3.7 Control signals for motor M1 in reverse direction
41 | P a g e
4.3.1(b) Case 2: For the Horizontal path:
Model Calculation:
42 | P a g e
For an ideal case, δx = 0 and δy = 0. At the specified point (35, 0) it is observed
that, the system traced the coordinates (35, -0.4) with low speed, (35, 0.7) with medium
speed and (35, 0.2) with high speed. The observations and the errors are indicated in the
table below and no error at low speed.
Actual
Command Codes for Desired Error in distance RMS Angular
Speed Initial from the Motor M1 final Displacement travelled √δx2 + error in
2
position keypad and Motor position in Cm √δy (θ)
M2 H V H V
Low (10, 0) F 01 (35, 10) 0 -0.4 35 -0.4 0.4 0.92
01
Medium (10, 0) F 01 (35, 10) 0 0.7 35 0.7 0.7 1.60
01
High (10, 0) 01 (35, 10) 0 0.2 35 0.2 0.2 0.46
01
43 | P a g e
By starting the moving system from the coordinates (10, 5) on a X-Y plane by
providing a straight path up to (20, 20) then the starting point (10, 5) through (30, 5).
From the below graph it is clear that the error is large at medium speed.
Model calculation:
44 | P a g e
Initial Command Codes for Desired Error in Actual RMS Angular
position from the Motor M1 final Displacement distance √δx2 + error in
keypad and position travelled in √δy2 (θ)
Motor M2 Cm
H V H V
45 | P a g e
2) MAX 232 IC
3) Microcontroller
4) ULN 2803
5) Bridge 1
6) Bridge 2
7) Motor 1
8) Motor 2
A command ‘R’ is given from the keypad for the forward direction, a logic high
appears at the input port of the MAX232 through RS232 serial communication channel
from the keyboard. This data is in serial form and it is sent to the port C (RC 7) of the
microcontroller. From the character it received from the MAX 232 IC, 1 for forward
direction, the moving system will move forward direction. If ‘R’ key is pressed, then case
1 in the direction register is executed. It’s for to move the system forward. The pins RD 4
and RD 7 produces pulses and these pins are connected to the pins of ULN 2803. The
output f ULN 2803 is just inverted form of its input and given as the control input to the
motor through the bridge circuits. The actual waveform that appears across the output of
the ULN 2803 IC is shown in the figure below as observed through the oscilloscope.
46 | P a g e
Fig 4.3.14 Control signals for motor M1 in right direction
47 | P a g e
4.3.1(d) Case 4: For the Rectangular path:
By starting the moving system from the coordinates (10, 5) on a X-Y plane by
providing a straight path up to (35, 5) then the starting point (10, 5) through (10, 15)
(30,15). From the below graph it is clear that the error is large at medium speed.
48 | P a g e
Initial Command Codes for Desired Error in Actual RMS Angular
position from the Motor M1 final Displacement distance √δx2 + error in
keypad and position travelled in √δy2 (θ)
Motor M2 Cm
H V H V
(10, 5) F 01 (10, 15) 0 0 10 15 0 0
01
(10, 15) R 10 (10, 15) 0 0 10 15 0 0
01
(10, 15) F 01 (30, 15) 0 0 30 15 0 0
01
(30, 15) R 10 (30, 15) 0 0 30 15 0 0
01
(30, 15) F 01 (10, 5) 0 0 35 5 0 0
01
(35, 5) R 10 (35, 5) 0 0 35 5 0 0
01
(30, 5) F 01 (10, 5) 0 0 10 5 0 0
01
49 | P a g e
Initial Command Codes for Desired Error in Actual RMS Angular
position from the Motor M1 final Displacement distance √δx2 + error in
keypad and position travelled in √δy2 (θ)
Motor M2 Cm
H V H V
(10, 5) F 01 (10, 15) 0 0.4 10 15.4 0.4 0
01
(10, 15) R 10 (10, 15) 0 0 10 15.4 0 0
01
(10, 15) F 01 (30, 15) 0.1 0.5 31.1 15.5 0.50 1.14
01
(30, 15) R 10 (30, 15) 0 0 31.1 15.5 0 0
01
(30, 15) F 01 (10, 5) 0.1 0 35.1 5 .1 0.55
01
(35, 5) R 10 (35, 5) 0 0 35.1 5 0 0
01
(30, 5) F 01 (10, 5) 0 1 10 4 1 2.28
01
50 | P a g e
Model calculation:
51 | P a g e
Initial Command Codes for Desired Error in Actual RMS Angular
position from the Motor M1 final Displacement distance √δx2 + error in
keypad and position travelled in √δy2 (θ)
Motor M2 Cm
H V H V
(38, 0) F 01 (38, 11) 0 0.1 38 11.1 0.1 0.52
01
(38, 11) L 01 (38, 11) 0 0 38 11.1 0 0
10
(38, 11) F 01 (20.5, 28.5) 0.6 0.5 19.9 28 0.78 1.38
01
(20.5, L 01 (20.5, 28.5) 0 0 19.9 28 0 0
28.5) 10
(20.5, F 01 (10, 18) 0.8 0 10.8 18 0.8 3.20
28.5) 01
(10, 18) L 01 (10, 18) 0 0 10.8 18 0 0
10
(10, 18) F 01 (10, 0) 0.4 0 10.4 0 0.4 1.28
01
52 | P a g e
Operational Description (Right Direction):
The system designed as follows:
1) Keyboard
2) MAX 232 IC
3) Microcontroller
4) ULN 2803
5) Bridge 1
6) Bridge 2
7) Motor 1
8) Motor 2
A command ‘L’ is given from the keypad for the forward direction, a logic high
appears at the input port of the MAX232 through RS232 serial communication channel
from the keyboard. This data is in serial form and it is sent to the port C (RC 7) of the
microcontroller. From the character it received from the MAX 232 IC, 1 for forward
direction, the moving system will move forward direction. If ‘R’ key is pressed, then case
1 in the direction register is executed. It’s for to move the system forward. The pins RD 5
and RD 6 produces pulses and these pins are connected to the pins of ULN 2803. The
output f ULN 2803 is just inverted form of its input and given as the control input to the
motor through the bridge circuits. The actual waveform that appears across the output of
the ULN 2803 IC is shown in the figure below as observed through the oscilloscope.
53 | P a g e
Fig 4.3.21 Control signals for motor M1 in Left direction
54 | P a g e
4.4 ANALYSIS (Auto mode):
When switch S1 is pressed, then a low signal goes to the 17th pin (RC 2) of the
microcontroller. According to the program it will goes to the predefined path. When
switch is closed, then the system goes straight to 100cms. When 100 pulses are over
system will automatically stop. If any obstacle is there in the path of the system the IR
sensors detects that and system moves to the opposite direction by 320 that is between 3
holes of the encoder disc. Then again it goes to 10cm forward direction and rotate the
direction opposite to the first rotation the angle rotates here is 640. After 10 cm again it
changes its position 320 and now it’s in the path which is predefined. The signal flow in
auto mode is shown in the figure below.
Predefined path:
55 | P a g e
Results have been taken by starting the moving system from the coordinates (10,
0) on a X-Y plane by providing a straight vertical path up to (10, 100). And observed that
the system traced the coordinates (10, 100) at low speed, (8, 101) at medium and (6, 100)
at high speed. At low speed the system traced the same path. The graph below shows the
paths which system traced in auto mode.
Model Calculation:
Initial Command Codes for Motor Desired Error in Actual RMS Angular
position from the M1 and Motor M2 final Displacement distance √δx +
2
error in
Speed keypad position travelled in √δy 2
(θ)
Cm
H V H V
Low (10, 0) F 01 (10, 100) 0 0 0 0 0 0
01
(10, 0) F (10, 100) 2 1 8 100 2.23 1.32
Medium 01
01
(10, 100) 4 0 6 100 4 2.29
01
(10, 0) F
High 01
56 | P a g e
In different speeds that is low, medium and high speeds the system took different
times to rotate the angle 320 the table below shows the time required to the system to
rotate 320 with different speeds.
57 | P a g e
CHAPTER 5
CONCLUSIONS AND FUTURE SCOPE
A detailed description about the design and fabrication of the moving system is
given next. The type of driving systems, moving mechanism, microcontrollers used for
the purpose are given in detail. Their operational description, under the influence of
selected driving forces is presented. The specifications of each components / modules
were also considered in detail. The systems with manual mode and auto mode using DC
series motors were described.
The details of the experiments conducted upon the moving systems and
subsequent analysis done is the content of the 4th chapter. The moving systems are
subjected to move in the forward, backward and also through well defined curved
trajectories. The task was performed for both manual and auto mode using DC series
motors separately. The actual trajectory traced by the moving system was compared with
the desired trajectory through the actual experiment. The deviation shown by the moving
systems in different cases are noted and analyzed.
From the experimental results it is concluded that in the low speeds the
navigational system with DC series motor follows the desired path without any error and
medium speeds the system producing more error compared to its high speeds.
58 | P a g e
5.2 Suggestions for future work
A video camera placed on the moving system to send the video signal of the
system to the computer so that the user knows what exactly the system (robot) is heading.
The usage of sensors for prescribed applications such as detecting mines and exploring
the unsafe environment and so on. It is possible to implement a web based control which
allows the user to control and access the data from anywhere. Simultaneously, it is
possible to control four moving systems at a time through a single microcontroller.
59 | P a g e
REFERENCES
(1) I. Firmansyah, B.Hermanto and L.T. Handoko “Control and Monitoring System
for Modular Wireless Robot”, Group for Theoretical and Computational
Physic,Research Center for Physics, Indonesian Institute of Sciences, Kompleks,
PuspiptekSerpong, Tangerang 15310, Indonesia
(3) Wai Phyo Aung, “Analysis on Modeling and Simulink of DCMotor and its
Driving System Used for Wheeled Mobile Robot” World Academy of Science,
Engineering and Technology 32 2007
(6) Rajender Naik “On the design fabrication and performance evaluation of an
electronic navigational system” project report, Department of Electrical
Engineering, NIT Calicut
(7) Thomas Braunl, “Embedded Robotic, Mobile Robot Design and Applications
with Embedded System”, Springer, 2003.
(8) http://www.microchip.com/downloads/en/devicedoc/39582b.pdf
(9) http://www.datasheetarchive.com/MOC7811-datasheet.html
(10) http://www.datasheetcatalog.com/datasheets_pdf/T/I/P/1/TIP122.shtml
60 | P a g e
(11) http://www.fairchildsemi.com/ds/TI%2FTIP127.pdf
(13) http://www.datasheetcatalog.com/datasheets_pdf/U/L/N/2/ULN2803.shtml
(14) http://focus.ti.com/lit/ds/symlink/max232.pdf
61 | P a g e