Automatic Sorting System Using Machine V PDF
Automatic Sorting System Using Machine V PDF
Abstract: Nowadays various automation techniques are being traditionally occupied by human beings whose degree of failure is
adopted & researched on for increase in productivity, for classically high through distraction, illness and circumstance. Human eyes
better accuracy, eliminating the human errors and for safety. are sensitive to electromagnetic wavelength s ranging from 390 to 770
nanometres (nm). Video cameras can be sensitive to a range of
Machine Vision is one such advancement in automatic
wavelengths much wider than this. Some machine-vision systems function
systems. Machine vision performs the tasks that are at infrared (IR ), ultraviolet (UV), or X-ray wavelengths.
equivalent to human vision. It helps to automate the systems
where there are limitations of human vision like detecting 1.3 Origins of Colour in Machine Vision
various shades of colors or determining high precise
dimensions and thus permitting human employees to serve in Colour in machine vision began in the mid-1980s with the
more appropriate positions. Now, what happens when the commercial availability of colour cameras and imaging boards.
questions turn to "Is this part of correct color?" or "Which The first application for which colour machine vision was
widely deployed was food processing, specifically the high-
parts are blue and which red?” So in our system, colour based
speed sorting of fruit where the goal was to detect and remove
identification of the parts will be done and then it will be flawed, blemished and/or inappropriately sized fruit as well as
sorted according to different colours. After recognizing the extraneous vegetable matter.[1]
colour of the object, robotic arm will automatically pick & In industry applications, automotive fuse block inspection used
place it accordingly. If the colour of the work piece is not RGB color imaging to verify the presence of the correct fuses
found in accordance to the required one then it will be was the first use of colour machine vision.
rejected. The complete sorting system operates on image
processing using the MATLAB application & microcontroller 1.4 APPLICATIONS OF THE SYSTEM
which will control different motors in the system. Machine
vision based on color concept has found its wide application in Specifically, manufacturers use colour vision to solve three primary
the pharmaceuticals industry, agriculture industry and vision applications:
1. Color verification -- Verifying that a certain part's colour matches what
assembly of parts especially in automobile industry. Advances the vision system is programmed to find.
in both machine vision technology and related software tools 2. Color sorting -- Sorting parts based on colour.
have enabled manufacturers to apply color machine vision on 3. Color inspection -- Inspecting coloured parts for defects that grayscale
the factory floor in real time. This technology can solve image processing tools can't detect.
problems formerly restricted to manual inspections & sorting.
2. DESIGN OF THE SYSTEM
Keywords- Machine Vision, MATLAB, Microcontroller,
Sorting, Colour Inspection
2.1 Block diagram
1. INTRODUCTION
B. Specification of sensor
Input:10 to 30v
Type: PNP/(NO)
Range:10cm
Specifications (INTEX-IT-305WC)
3.1.2 Microcontroller Image resolution: 160x120,176x144,320x240,352x288
,640x480,800x600
Frame rate:upto30 frames per second
Camera Controls: Color saturation, brightness, sharpness is
adjustable
Image Quality:RGB24
Exposure: Auto or manual
Focus Range:4cm to infinity
A microcontroller (also microcontroller unit, MCU or µC) is a small 3.2 Mechanical components
computer on a single integrated circuit consisting of a relatively simple
CPU combined with support functions such as a crystal oscillator, 3.2.1 Robot arm
timers, watchdog timer, serial and analog I/O etc. Program memory is also
often included on chip, as well as a typically small amount of RAM. The robot arm is probably the most mathematically complex robot you
Microcontrollers are designed for small or dedicated applications. Thus, in could ever build. But here we have made very simple arm for picking or
placing the object according to its colour.[10]
contrast to the microprocessors used in personal computers and other
high-performance or general purpose applications, simplicity is Design of robot arm
emphasized.[11]
Some of our basic requirement for the project from microcontroller: A. Degree of freedom
B. Workspace of the robot
1. Output port: C. Torque calculations at different joints
4 port pins for each stepper motor with full step sequence D. Selection of motors
2 port pins for each stepper motor with half step sequence
1 port pin each for servo motor
W3 - Weight of link ( 0.500 kg)
Wm1 – Weight of motor 1 ( .250kg)
A. Degrees of Freedom (DOF) L - Length between gripper and motor1 ( 20 cm)
The degrees of freedom, or DOF, are a very important term to understand. Distance between M1 & M2 is 5cm.
Each degree of freedom is a joint on the arm, a place where it can bend or Torque about motor1
rotate or translate. You can typically identify the number of degrees of = (W1+W2)*L + W3*(L/2)
freedom by the number of actuators on the robot arm. =(0.150+0.350)*20 + (.500*10)
The robotic arm which we are going to use has 3 DOF. =10+5
=15 kg.cm
B. Robot Workspace
Torque about motor2
The robot workspace (sometimes known as reachable space) is all places = (W1+W2)*(L+5) + W3*(L/2 + 5) + Wm1*5
that the gripper can reach. The workspace is dependent on the DOF
= (.150+0.350)*25 + (.500*15) + (.250*5)
angle/translation limitations, the arm link lengths, the angle at which
something must be picked up at, etc. The workspace is highly dependent = 12.5+7.5+1.25
on the robot configuration. = 21.25 kg.cm
The figure shows the free body diagram of robotic arm which we will be
used for our project. D. Motors
We are using stepper & servo motors in arm to get good
accuracy, precision, repeatability.
we are using two servo motors (Motor1 & 2) which have
24kg.cm torque.
For gripper we are using dc stepper motor because it needs less
torque.
C. Torque calculations
Torque calculation is a very important factor for designing the robot arm.
As our system needs 20cm of robot arm (according to size of conveyor
belt & block), we can calculate motor torque from that.
Here is the FBD of given robot arm.
Specifications
Length : 900mm
Width :135 mm
Thickness : 5 mm
1. Permanent magnet DC servo motor
1.1. Model : D2415PL20
1.2. SR No : PDD8013
1.3. Torque : 35 kg-cm
1.4. Current Rating: 2.5 Amps
1.5. Voltage : 24 V
1.6. RPM : 80
3.3Software components
4. INTERFACING
Here we are using Mat lab software for image processing.
MATLAB is a high-performance language for technical computing. It Interfacing is a term used in electronics when different electronic
integrates computation, visualization, and programming in an easy-to-use devices are attached. The term is commonly used when attaching memory
environment where problems and solutions are expressed in familiar chips. Interfacing also often refers to the connection of peripheral devices
mathematical notation. [12] to computers. For Micro-controllers it is useful to the extent that they
Typical uses include communicate with other devices, such as sensors, motors, switches,
Math and computation keypads, displays, memory and even other micro-controllers. Many
Algorithm development interface methods have been developed over the years to solve the
Data acquisition complex problem of balancing circuit design criteria such as features,
Modelling, simulation, and prototyping cost, size, weight, power consumption, reliability, availability,
Data analysis, exploration, and visualization manufacturability.
Scientific and engineering graphics In our project we need to do the following interfacing:
Application development, including graphical user interface A. Computer to Web camera
building B. Computer to MAX232 IC
In Matlab we are concentrating on Image processing toolbox. Image C. MAX232 IC to Microcontroller
Processing Toolbox is a collection of functions that extend the capability D. MICROCONTROLLER to actuators (stepper motor and servo
of the MATLAB numeric computing environment. motors)
The toolbox supports a wide range of image processing operations, E. Microcontroller to sensor
including
Spatial image transformations A. Computer to Web camera :
Morphological operations
Neighbourhood and block operations Requirement:
Linear filtering and filter design Webcam is used for capturing the image, and this image is needed to be
Transforms Image analysis and enhancement sanded in to the image processing software for processing, this is achieved
Image registration by this interfacing.
How it is done:
Deblurring
As webcam used is a plug and play device, it can be easily connected to
Region of interest operations
computer, via USB port, in which the image processing needs to be done.
C. MAX232 IC to Microcontroller:
Requirement:
As stated above the need for the data transmission between the computer
and microcontroller, by serial communication over UART or USART,
requires some voltage or level converter IC, which is done via MAX232
IC.
How it is done:
The R1OUT and T1IN pins of MAX232 IC are simply connected to RX
and TX pins of microcontroller.
Fig 1 Fig 2
Ex: In the white color family, shades might include white, off-
white, champagne, pearl and cream. Human operators often
mismatch these colors, while color vision tools can distinguish
more reliably between them.
8. 3D MODEL OF THE
SYSTEM
REFERENCES