Arduino Documentation
Arduino Documentation
Rhomnel, Saguinsin P.
Montesines, Ann Caolin S.
Zaguirre, Jennifer T.
May 2019
LAGUNA UNIVERSITY
CHAPTER I
INTRODUCTION
As part of the fast growing innovations today about computer visual technologies
. How computers react on what they see. Computers may be smart somehow they are
blind because computer only can store and retrieve data , manipulate it and give reports
unlike a person that have fast instinct and fast perspective on what do they see and what
do they feel. As part of the computer visual technologies OPENCV (Open Source
Computer Visual ) this technology opens the gate for developers to easy manipulate
computer visual. This technology teaches the computer to see objects the building block
of the visual world, in the simplest terms that requires a training images of a particular
objects , design a model comes from the training images. In this kind of technology an
advance learning of computer images recognition, a machine learning concept, an
artificial intelligence to determine objects between computer visual and object models to
give the probability of object classification.
that let us do it more frequently. Technology has forever changed the way billions travel
either for pleasure or business. , AI, electronic payments, social media and so on have,
for better and worse, affected travel in incalculable ways. One of the major challenges of
the next generation of road transportation vehicles is to increase the safety of the
passengers and of pedestrians
Project Context
Arduino dashboard camera is an optical system with camera which has been
design for vehicles such as for wheel cars, motorcycles and etc. to have a preliminary
warning. This system prevents the accidents by warning the drivers in 1 to 2 seconds.
Which is very important period on crashes. When the drivers lose their attention. It has
been determined by polls that 84 percent of accidents happen on a straight road and on
bright weather. It is the preventive system of warning the drivers in those crucial 2
seconds when they lose their attention. It is a both audio and visual warning equipment
has a camera module and a piezo. The equipment warns the driver audio visually in any
lane violation or any attention lost happens. By camera the system estimates the
distance between the 2 vehicles or other any object . System calculating the distance
and estimated the time impact between the vehicles. It either warns by green or red
colored lightings. The proposed dashcam also warns by an alarm sound before accident.
When the 2 vehicles get too close or the distance being lowered. The device doesn’t
warn when the drivers gives signal or it warns when the driver doesn’t use signal. The
camera renders in visual images. One of the important point is that camera has to see
the lanes. This doesn’t work on roads which have no traffic lanes. Assembling the
system does not alter the vehicles originality and does not damage the vehicle.
Purpose and Description
This study is intended to address the problems that arise in the manual
process. The following are the beneficiaries of the proposed system which is the
Fabric Color Segregator Using Arduino Color Sensor.
To the Family Member. The device will provide an easier and faster way
to sort fabric automatically. That will gives the in charge person to perform other
important stuff that makes the time maximize.
To the Laundry Shops. It will very beneficial to the business owner due
to a promising functionality to sort colors in laundry that will makes works
convenient and reliable.
LAGUNA UNIVERSITY
To the Local Government Unit. LGU will benefit by this kind of works
and devices because more business will opens especially laundry shops that
increase income and productivity of the city.
Research Framework
Using Arduino Color Sensor. The Researchers used theoretical and conceptual
framework to analyze the problem and identified the current process in
developing the proposed device as shown in Figure 1.
Theoretical Framework
FEEDBACK
Figure 1
Input – Process – Output (IPO) Diagram
Conceptual Framework
Data
The Color Sensor
Requirements
with the led will
Codes
scan the color of
the fabric.
Hardware
Requirements
If the fabric is
Arduino MEGA FABRIC COLOR
colored the servo
2560 SEGREGATOR
push the fabric to
Arduino Color USING
first container.
Sensor ARDUINO
Conveyor COLOR SENSOR
Then, if the fabric
Modules
is non-colored the
conveyor will run
Software
to the next
Requirements
container and
C++
servo will moved
Programming
the fabric.
Language
Definition of Terms
For better understanding, the following words used in this study are
operationally defined.
CHAPTER II
REVIEW OF RELATED LITERATURE
This chapter will discuss the previous and existing related literature and
related studies that the system used to conduct and serves as a reference in
developing the study.
Technical Background
Arduino
Arduino is an open source computer hardware and software company,
project, and user community that designs and manufactures single-board
microcontrollers and microcontroller kits for building digital devices and
interactive objects that can sense and control objects in the physical and digital
world. The project's products are distributed as open-source hardware and
software, which are licensed under the GNU Lesser General Public License
(LGPL) or the GNU General Public License (GPL), permitting the manufacture of
Arduino boards and software distribution by anyone. Arduino boards are
available commercially in preassembled form, or as do-it-yourself (DIY) kits.
Arduino Mega
The Arduino MEGA 2560 is designed for more complex projects. With 54
digital I/O pins, 16 analog inputs and a larger space for your sketch it is the
recommended board for 3D printers and robotics projects. This gives your
LAGUNA UNIVERSITY
C++ Programming
C++ is a general-purpose object-oriented programming (OOP) language,
developed by Bjarne Stroustrup, and is an extension of the C language. It is
therefore possible to code C++ in a "C style" or "object-oriented style." In certain
scenarios, it can be coded in either way and is thus an effective example of a
hybrid language. C++ is considered to be an intermediate-level language, as it
encapsulates both high- and low-level language features. Initially, the language
was called "C with classes" as it had all the properties of the C language with an
additional concept of "classes." However, it was renamed C++ in 1983.
Foreign Literature
As stated by Shuang Mei (2018) from the article “Automatic Fabric Defect
Detection with a Multi-Scale Convolutional Denoising Auto encoder Network
Model” Fabric defect detection is a necessary and essential step of quality
control in the textile manufacturing industry. Traditional fabric inspections are
usually performed by manual visual methods, which are low in efficiency and
poor in precision for long-term industrial applications.
LAGUNA UNIVERSITY
Local Literature
Foreign Studies
Local Studies
LAGUNA UNIVERSITY
The article by Shuang Mei (2018), K. Mathur, (2016) and Jude Garvey
(2015), emphasize that the fabric color are quite complicated to identified and
LAGUNA UNIVERSITY
recognized base on the exact color to sort. Fabric Color has a different type
either textile, fiber, wool and cotton that make the color differs from each other.
J.G.PAUL (2017) and Marloun Sejera (2017) both have studied that waste
should have to sort on proper storage or bin. Like on the study of the proposed
device.
Alvin Joseph Macapagal (2016) and LI Pengfei, ZHU Pengfei, ZHANG Lei,
WANG Xiaohua and LIU Xiuping (2017) talks about with the use of robots as a
device color sorting will make things easier to classifies the proper color to be
used.
Roy N. Jarantilla (2017) stated that conveyor is the best tools to segregate
and operate the machine used for color sorting.
LAGUNA UNIVERSITY
CHAPTER III
DESIGN AND METHODOLOGY
Research Design
criteria of an consistency and effectiveness. And for the descriptive research, the
researchers conducted an interview for the household community to find out the
total population of the study and calculate the statistical number of respondents,
The researchers conducted a survey questionnaire for selected respondents that
will determine the problems and error using manual process of fabric color
segregator which can help for the researchers in developing the device.
The population of the study was the assigned personnel in the laundry
shop and assigned family member in every household in the community.
Table 1
Respondents of the Study
Respondents Frequency Percentage
Family Member 7 70%
Assigned Personnel 3 30%
Total 10 100%
Statistical Treatment
In order for the researchers to have an acceptable and reliable result for
the survey, the researchers used the Probability Sampling Research Method
particularly Simple Random Sampling Technique. Sampling Random Sampling
was the basic sampling technique where the researchers select a group of
subjects (a sample) for the study from a larger group (a population). Each
individual was chosen entirely by chance and each member of the population has
an equal chance of being included in the sample. Every possible of a given size
LAGUNA UNIVERSITY
has the same chance of selection. For this case, researchers involved Family
Member and Assigned Personnel in every household in the community.
The researchers used Slovin’s Formula to obtain the sample size of the
respondents and to know how large the sample size will be needed in the
percentage.
Slovin’s Formula:
N
n=
1+N(e)2
Where:
n = Sample Size
e = Desired Margin of Errors
N = Total Population of the Respondents
To calculate the total sample size population of the study, the researchers
divide each frequency to the total number of population to get the percentage for
each respondent. The study consists of seventy percent (70%) family member
and thirty-three percent (30%) assigned personnel in the laundry shop.
P
S=
N
LAGUNA UNIVERSITY
Where:
S = Sample Size of Particular Respondents
P = Population Size
N = Population of All Respondents
n = Sample Size of Respondents
The formula was to identify the sample size of the particular respondents
in every household in the community.
The researchers used the Five-Point Likert Scale for the preliminary
survey questions 4-10 and for Software Evaluation. Likert scaling is a bipolar
scaling method, measuring either positive or negative response to a statement.
The researchers used this formula in computing for the Weighted Mean of
preliminary survey questions 4-10 and Software Evaluation.
It shows the rating scale to easily understand the range of the method that
the researchers used in the study for the Survey.
Table 2
Five-Point Likert Scale Method for Survey
2 1:50-2:49 Disagree(DA)
1 1:00-1:49 Strongly Disagree(SD)
It shows the rating scale so easily understand the range of the method
that the researchers used in the study for the Software evaluation.
The above formula was used by the researchers to identify the average
weighted mean for each question in preliminary survey and software evaluation
to recognize the verbal interpretation of the results in each question.
Requirements Analysis
Research Instruments
The researchers used different instruments for the project to acquire the
needed information in developing the process of the study and also to provide a
cheap but productive and effective way of collecting data.
Requirements Documentation
in laundry. Color from non-color, black to white should be able to separate. This device
will enable user to have a great start in laundry. Through this we can maximize our time
in other thing in our house. The Fabric Color Segregator is not only for our house but it
also necessary for the laundry business. Workers and busy people tend to paid for their
laundry than doing this stuff with their bare hands. Many of us are searching for possible
solution on our very own problem. This kind of mind set and aspects can make us
productive and have a convenient way of life. With this modern era having technology is
the essence of our lives.
Planning
Analysis
Design
Software
Development
Testing
Operations
Maintenance
phases do not overlap. Waterfall Model also works well for smaller projects
where requirements are very well understood.
Designing. The software design is easy to understand invent for the user
to perform and operate the device.
Software Development. In the development of the system, the
researchers made used of C++ Programing Arduino based IDE for encoding
source code of the system, in order to be accurate and fast acquisition of
information requirements.
Testing. The researchers installed the new device. The researcher
encountered problems while processing it for the first time but in a few days the
device had become successful.
Operation. In operation, the researchers were responsible for conducting
an operation test. The researchers conducted a test under the actual operation
conditions and verified that the system satisfies the required specification. The
researchers conducted an operation test by running the device on a machine
being used by actual operations.
Maintenance. In maintenance, the researchers maintain performance,
fixing defects and upgrading features needed in the device.
In the software and hardware resources, the table 3 was the list of
recommended software and hardware requirements for the device to run. The
requirements should be achieved for an efficient and effective Fabric Color
Segregator.
Table 3
Recommended Software Requirements
Type Software Product
Software Application C++ Programming Arduino IDE
Type Specification
Arduino Module Arduino Mega 2560
Color Sensor Recognition
Servo Motor
Relay Module
Conveyor
Hardware Analysis
LAGUNA UNIVERSITY
The researchers performed test during and after the implementation of the
Fabric Color Segregator Using Arduino Color Sensor. The researchers used
compatibility testing for a better used of the developed device.
Description of Prototype
The device prototype is shown in Figure 4. The user will put the fabric on
the right said of the conveyor and it will run immediately to the bottom view of the
color recognition, after identifying if it’s a colored or a non-colored fabric the
conveyor will run continuously if the fabric is non-colored and it’s not the
conveyor stop on the mid part and servo motor as follow will swipe or segregate
LAGUNA UNIVERSITY
it on the colored fabric. The module use in the device is the color sensor for
detecting and recognizing the fabric color. Servo Motor for the segregation and
conveyor for the automatic running of machine. Fabric Color segregator will be
the medium of a convenient way of sorting laundry clothes.
Implementation Plan
The researchers conduct analysis, by analyzing the perfect device for the
proposed title and identified the problem and needed requirements for the
device. Especially designing and developing the proposed title.
The Researchers used Gantt chart to show the timeline of their research
and also to help them accomplish their research on time. They used this chart to
manage their project well as a reflection of the progress they have done.
Figure 4. Shows the Gantt chart of the study that shows the work schedule
of the researchers. The researchers started at the month of March on the 14th
day, they think of a title, problem and possible solution for the title research. The
researchers’ title proposal conduct on the 23rd of March in which they propose
the desire title that will benefits many people. On the month of April, Research
and Planning together with the module device ordered are applied by the
researchers. After the trial and error with the testing and coding the researchers
finally presented their device on the 10th of May as part of the Project Schedule.