Вы находитесь на странице: 1из 19

EPC431 Robotics and Automation

Robot-Automation Project
Class Schedule
Monday 12.00 - 13.00
Tuesday 10.00 - 11.00
Thursday 10.00 - 11.00

Venue :
DK10
MEK 1
DK5
Dr. Elmi Abu Bakar
Room: 0.68A
Instrumentation, Electronics and Avionics Laboratory
School of Aerospace Engineering
Tel.: 04-5995954/5926 H/p: 016-4939839
Email: meelmi@usm.my
http://elearning.usm.my

Introduction
Robotics competitions are becoming widely used on education. The use of
products from market makes building robots possible at very low cost
awakening the engineering nature of students and researchers.

The Automation project activities are for university students to enhance the
knowledge in class into practical life. Using the manual provided in elearning
website, the students is requested to work in group for assembling own
automation mechanism and finally to operate the automation in mode task.

The goal for this project to expose the engineering student integrates more
and more knowledge in the robot allowing it to perform better as their
knowledge increase along the course.

Robot-Automation Project
Topics
1. Assembly any of your design components.
2. Installing the language and controller of your automation.
3. Create Project for File Code with source provided.
4. Program the Operation mode of Own Project .

Suggested-Robot-Automation Project
SuggestedTheme(AgricultureBasedAutomationProject)
1. Monitoring or Controlling the Aerospace School Garden Using
mechanism

Others- Robot-Automation Project

Robot-Automation Project-Example

Contents
ToolsfromMatlab

ControlToolboxes
ImageCapturing.
ImageProcessing..
ObjectIdentification
MovementAlgorithm.

BasicsOfMatlab
Predeclarationofvariableisnotnecessary,youcanusevariable
wheneverrequired.
FORloop
fori=1:n
body
end
IFcondition
if(condn)
statement
end
ImageistreatedasanarrayinMatlabwhichcanbeinanyformatlike
RGB,Grayscale,BW,Intensity.
Function[outputvariables]=name(inputvariables).Functionshouldbe
writteninanMfile.
Forcallingfunctionsayaddtypeadd(4,5)intheprompt.

11/29/2016 3:47:04
PM

ImageCapturing

Makeavideoinputobject.
Setvariousattributesoftheobject.
TakeSnapShots.
Saveimagesinanarray.

11/29/2016 3:47:04
PM

ImageCapturing
forui=1:10
x=0;T=0;
data=.2;
imaqreset;
imaqmem(inf);
vid=videoinput('winvideo',1,'RGB24_640x480');
set(vid,'FramesPerTrigger',Inf);
triggerconfig(vid,'Immediate');
start(vid);
dio=digitalio('parallel','LPT1');%forenablingparallel
ports
addline(dio,0:1,'out');

f=getsnapshot(vid);
flushdata(vid);
end
disp('START');tic;
f=getsnapshot(vid);
flushdata(vid);
prev_cen=0;
flag=0;
end_y=400;
start_y=40;
whilex==0
T=T+1;
f=getsnapshot(vid);
{insertyourcode}
end
stop(vid);

11/29/2016 3:47:05
PM

School of Aerospace Engineering

10

ImageCapturing
Previewastreamofimageframes.
preview(obj);
Acquireanddisplayasingleimageframe.
frame=getsnapshot(obj);
Removevideoinputobjectfrommemory.
delete(obj);

11/29/2016 3:47:05
PM

School of Aerospace Engineering

11

ImageProcessing
imread:toreadanimage
egi=imread(name.jpg);
imview:toviewtheimage
egimview(i);
im2bw:convertsacolouredimagetoblack
andwhite
egb=im2bw(i);
orb=im2bw(i,.4);

11/29/2016 3:47:05
PM

12

ImageProcessing
RGBcomponents
Forexample,thered,green,andbluecolor
componentsofthepixel(10,5)arestoredin
RGB(10,5,1),RGB(10,5,2),andRGB(10,5,3),respectively.
eg
a=imread(name.jpg);
r=a(:,:,1);
g=a(:,:,2);
b=a(:,:,3);

11/29/2016 3:47:05
PM

13

Objectidentification

imcrop(image)
Im2bw(image)
medfilt2(image)
bwlabel(image)

11/29/2016 3:47:05
PM

14

Objectidentification
imcrop(image)

11/29/2016 3:47:05
PM

15

Objectidentification
Im2bw(image)

11/29/2016 3:47:05
PM

16

Objectidentification
medfilt2(image)

11/29/2016 3:47:05
PM

17

Objectidentification
bwlabel(image)

11/29/2016 3:47:05
PM

18

Closure

Select an hour slot that your team can come to the


Instrumentation and Electronics Laboratory at School of
Aerospace Engineering during your free time to complete
your learning activities.
Each team needs to submit one report.
The Viva date for Project will be announce in
ELearning

Submit it to lab 0.68A (Aero) before 5 pm on 12th


Dec 2016.

Вам также может понравиться