Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Guided
an unknown environment.
Second algorithm has a combined objective of both
Literature Survey
Paper referred
Year
Author
Comparison with
proposed system
2013
Muhammad
Mysorewala
1998
Borenstein. J
Algorithm
implemented using
ultrasonic sensors
Koren. Y
1991
Proposed System
Proposed system uses fuzzy logic based navigation
approaches.
Fuzzy logic
Fuzzy logic is a form of many-valued logic which
deals with reasoning that is approximate rather than
fixed and exact.
IR Sensors are used in this system instead of ultrasonic
sensors.
Apart from IR Sensor, a temperature sensor is also used in
this system to measure the ambient temperature of the
surroundings.
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGG.
Proposed System
Decision about the movement of the robot is
FUZZIFICATION
Processing
stage
APPLICATION OF
FUZZY LOGIC
RULES
Output stage
DEFUZZIFICATI
ON
Fuzzification
Fuzzification which can be defined as
Defuzzification
Defuzzification can be defined as
Membership functions
0 0.2 m
Close
0.2- 0.5 m
Medium
Above 0.5 m
Far
Membership
-0.8 m/sec to 0
functions
Backwards
Zero
m/sec
0 to +0.8 m/sec
Forwards
O
B
S
T
A
C
L
E
SENSORS
Membership functions
0 0.2 m
Close
0.2 - 0.4 m
Medium
0.4 - 0.6m
Far
For :
Range
Membership functions
-30 to 30
Zero
-60 to 0
Negative
0 to 60
Positive
INPUT
DISTANCE
MIDDLE
RIGHT
TARGET
OUTPUT
ROBOT
DIRECTION
TURNING
ANGLE
M
M
M
.
.
.
M
M
C
.
.
.
M
C
F
.
.
.
Z
Z
Z
.
.
.
PM
PL
NL
.
.
.
Membership functions
-40 to -60
Negative large
-20 to -60
Negative medium
-40 to 0
Negative small
-20 to 20
Zero
0 to 40
Positive small
20 to 60
Positive medium
40 to 60
Positive large
TARGET
ROBOT
Direction of
robotic
movement
Proposed system
Algorithm 1 : Obstacle avoidance
The input contains three
OBSTACLE
Far
SENSORS
Forwards
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGG.
algorithm
TARGE
T
Left
Middle
Right
Deviation from desired output()
OBSTACLE
ROBOT
PS, PM, PL
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGG.
Direction of
robotic
movement
Block diagram
Obstacle
Sensor
Obstacle
Sensor
Obstacle
Sensor
FPGA
Board
Signal
Conditioning
Input
buffers
Config
Memory
FPGA
H bridge
Motor Drive
Motors
RF
Transceiver
Receiver - Diagram
RF
Transceiver
PC with LabVIEW
software installed
Sensors
Two types of sensors are used in this system
Temperature sensor
IC
used - LM35
Operating voltage - 4V.
This is a 3 pin IC.
IR sensors
IC
used - GP2Y0A21YK
Coverage distance - 10 to 95 cm.
Operating voltage - 3.3V.
It is a 3 pin IC.
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGG.
FPGA
IC used : EP2C8T144C8
It is a 144 pin IC package.
89 pins are used as general input/output pins.
Working voltage - 1.2V.
Has three speed grades
Speed grade we use - 8
Motor drives
IC used - L293
Known as H bridge motor drive.
Uses NPN transistors to form H bridge.
Equal to two H bridge drives.
Mainly used to control the speed of motors.
Used as bidirectional switch.
Used to run two motors.
RF Transceivers
IC used - RF 434.
Properties
Transmitter
Receiver
No of pins
Frequency used
433.92 MHz
433.92 MHz
Operating voltage
2-12 V
4.5 - 5.5 V
Data rate
4800 bps
2400 bps
Distance
500 ft
500 ft
changes.
Using Fuzzy Logic Robot can able to avoid
obstacle in time efficient manner.
Using RF transceiver, Robot activity can be
monitored easily.
Hardware Details
Altera FPGA
Obstacle Sensor
RF Transceiver
H Bridge Motor Drive
Motors
Software Tools
Quartus II for FPGA programming
Nios EDS for processor programming
Orcad for circuit design
Eagle for PCB design
LabVIEW for path control
Working Principle
of IR Sensors
Simulation Program
clear
clc;
Goal position of vehicle
xgoal=[25; 25];
Initial vehicle position
x=[5; 5];
xmin=[0; 0];
xmax=[30;30];
Nsteps=500;
Simulation program
Next set the parameters of the vehicle:
lambda=0.1;
Ns=16;
r=1;
xs=0*ones(2,Ns);
Jo(:,1)=0*ones(Ns,1);
Jg(:,1)=0*ones(Ns,1);
J(:,1)=0*ones(Ns,1);
theta(:,1)=0*ones(Ns,1);
for m=2:Ns
theta(m,1)=theta(m-1,1)+(pi/180)*(360/Ns);
end
Weighting parameters for planning (sets priority for being aggresive
in the direction of the goal vs. avoiding obstacles
w1=1;
w2=1.0000e-04;
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGG.
Simulation program
Allocate memory
x(:,2:Nsteps)=0*ones(2,Nsteps-1);
The obstacles:
figure(1)
clf
plot(5,5, 's',25,25,'x')
axis([0 30 0 30])
hold on
xlabel('x');
ylabel('y');
title('Obstacles (o), initial vehicle (square) and goal (x) positions');
hold on
Plot obstacle positions (sets obstaclefunction)
plot(20,15,'o',8,10,'o',10,10,'o',12,10,'o',24,20,'o',18,20,'o')
hold off
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGG.
Simulation program
Plot the functions:
xx=0:31/100:30;
yy=xx;
Compute the obstacle and goal functions
for jj=1:length(xx)
for ii=1:length(yy)
zz(ii,jj)=obstaclefunction([xx(jj);yy(ii)],w1);
end
end
for jj=1:length(xx)
for ii=1:length(yy)
zzz(ii,jj)=goalfunction([xx(jj);yy(ii)],xgoal,w2);
end
end
[x] = fuzzyfis(Nsteps, Ns, x, xs, xmin, xmax, r, theta, xgoal,lambda);
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGG.
Simulation program
figure(8)
clf
contour(xx,yy,zz,25)
colormap(jet)
xlabel('x');
ylabel('y');
title('Vehicle path to avoid obstacles and reach goal');
hold on
plot(x(1,:),x(2,:),'r-')
plot(5,5,'s',25,25,'x')
hold off
Initial environment
Final output
Simulation results
The simulation of two fuzzy logic algorithms is shown.
Hardware results
The hardware results will show the actual movements of
robotic platform.
Sends those information to pc via RF transceiver
for further processing.
Two fuzzy logic algorithms will be implemented
on that data.
The outputs got by this implementation is being
sent to FPGA board via RF transceiver.
These outputs will be given to motor drives which
will control the movement of robot.
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGG.
motor?
What is the difference between the two
algorithms?
How do you set the target position?
How are you saying that distance is measured
through IR sensor?
References
Muhammad Mysorewala, Khaled Alshehri, Eyad Alkhayat, Adnan Al-Ghusain, Omar
References
NI-SBRIO details: www.ni.com/singleboard
A project on Creating a Smart Grid Monitoring and Control System Using LabVIEW
Thank You