Professional Documents
Culture Documents
Index TermsImage Processing, Open CV, Stepper The proposed project work colour based object sorting
Motor, Actuator. system comprises of following components:
5V, 1A specification. MOSFET based driver circuit MATLAB(matrix laboratory) developed by Math
drives stepper motor. Works allows matrix manipulations, plotting of
functions and data, implementation of algorithms,
USB Camera: To sense the colour of the objects on the creation of user interfaces and interfacing programs
conveyer belt, USB camera has been fitted on to the written in other languages, including C,C++,Java,
conveyer belt for sensing the colour of the objects. Open Fortran and Python.
CV library is included in Python IDE to detect the
colour. It is a high-level language for technical computing &
has a good development environment to manage code,
Actuators: Solenoid actuators are used to push the files, data visualization. It has various toolboxes, which
objects to the appropriate bins. can be downloaded that will help in solving particular
class of application problems. Using MATLAB or
Arduino UNO: Arduino UNO microcontroller acts as Simulink and related products, one can control and
the core of the entire system. It provides the required acquire data from data acquisition hardware, imaging
signals to the conveyer belt and actuators. It has been
hardware, instruments. It is also possible to
programmed using Python 2.7 IDE.
communicate with circuit boards and sensors.
2. Introduction to Python
programming language while MATLAB recognize faces, identify objects, classify human actions
started as a Matrix manipulation package. in videos, track camera movements, track moving
objects, extract 3D models of objects, produce 3D point
iii. Powerful: Transforming ideas into code we clouds from stereo cameras, stitch images together to
wish is easier in Python than MATLAB. produce a high resolution image of an entire scene, find
similar images from an image database, remove red
iv. Image processing and interfacing with Arduino eyes from images taken using flash, follow eye
was found more easy in Python than movements, recognize scenery and establish markers to
MATLAB. For image processing just overlay it with augmented reality, etc
downloaded OpenCV library and for
interfacing with arduinoinorder to access the Ease of use: If you are a python programmer, using
arduino ports pyfirmata library was OpenCV (Python) would be very easy. Python is an
downloaded. easy language to learn (especially compared to C++). It
is also an excellent first language to learn.
v. Semicolon is used in MATLAB where as in
Python is not required. Python has become the language of scientific
computing: A few years back MATLAB was called the
vi. Portability: Python code can run everywhere language of scientific computing. But now, with
since its a free software. Further it works on OpenCV,numpy, scipy, scikit-learn,
Windows, Linux and OS X. But in MATLAB, and matplotlib Python provides a powerful environment
Mathworks keep restrictions on code for learning and experimenting with Computer Vision
portability ie. The ability to run code on and Machine Learning.When using OpenCV (Python)
someone else computer. you have access to a huge number of libraries written
for Python.
3. Introduction to OpenCV Library
4. Introduction to Pyfirmata
window. Add C:\Python27 or the full path of your microcontroller board then we will have to use
custom Python installation directory at the end of your external hardwares and softwares more.
existing PATH variable. It is required to put a
semicolon(l) before the Python installation path. Arduino can be used to make a variety of
projects taking analogue as well as digital
Step 3: Installation of Setuptools.install pip.py from inputs and can easily interface with different
the link www.pip-installer.org/en/latest/&download get- hardware like switches, encoders, sensor,
pip.py motors, relays and many more.
Step 6: Type > easy_install.exe pip to install any Larger number of libraries are freely available
package in Arduino software itself & in our project we
have used StandardFirmata which was already
Step 7: > easy_install.exe pyfirmata for accessing pins internally installed in software.
of Arduino.
Arduino is inexpensicve compared to other
5. Introduction to Arduino UNO
microcontroller platforms.
6. Web Camera
Typical applications of stepper motor is for accurate Excellent low speed/high torque characteristics
positioning of X-Y tables, plotters, printers, facsimile without gear reduction.
machines, medical applications, robotics, barcode Inherent detent torque.
scanners, image scanners, copiers, etc. Holding torque when energized.
Bidirectional operation
8. Introduction to Solenoid Actuator
A Solenoid Actuator is an electromagnetic device that library and where able to detect different coloured
converts electrical energy into mechanical pushing or objects ie; Blue, white and blue by using USB camera in
pulling force or motion.When an electrical current is Python.
passed through the coils windings,it behaves like an
electromagnet and the plunger which is located the Interfacing Python with Arduino
coil,is attracted towards the center of the coil by the
magnetic flux setup within the coils body,which in turn Pyfirmata protocol was installed in Python to access
compress a small spring attached to one end of the Arduino port.USB cable from Arduino board to PC
plunger.The force and speed of the plungers movement where connected and uploaded StandardFirmata
is determined by the strength of the magnetic flux program in Arduino for interfacing with Python. Tested
generated within the coil. program for stepper motor & actuators using LEDs and
interfacing Python with Arduino was success.
III. PHASES OF PROJECT
Driver circuit for stepper motor
The following concepts and softwares were used in
process of undertaking this project. Following are the Learned about stepper motor and how to make its driver
phases followed for project. circuit. MOSFET based driver circuit for stepper motor
where made and connected to Arduino board. Tested
1. Introduction to MATLAB & Arduino program with Python and motor shaft starts to move.
2. Introduction to Python 2.7 IDE
3. Interfacing Python with Arduino
4. Driver circuit for stepper motor
5. Construction of overall system
6. Tested conveyer belt
7. Driver circuit for actuator
A. AutoCAD Model
V. CONCLUSION