Laurel Project 5
Laurel Project 5
INTRODUCTION
1.1 Background to the study
Because manual systems have limitations, automated systems help refine industrial processes.
The manual system of object sorting relies on labor. Humans are very good at sorting and
distinguishing between different colors of objects.
However, going through the same motions again could aggravate you and make you stressed out,
which could result in manual mistakes like poor accuracy, low effectiveness, etc. Automated
systems are used to decrease production time and improve quality. The suggested system can
recognize, classify, and tally items according to color. It can also show the items on an LCD
screen and store them in the cloud. The objects of different colors are repeatedly transferred to
different containers (Anandh et al,2022).
Production efficiency is now widely considered the secret to success in the current climate of
fierce competition. Production efficiency is the rate at which production lines and equipment
may be put into use to reduce production costs for materials and labor, increase quality, reduce
rejects, and minimize downtime for both expensive and low-cost manufacturing machinery.
Taking this into account, a project that is very helpful to industries is established. The study's
primary goals include examining alternative sorting procedures, creating and making a conveyor
belt, designing and making an automatic color sorting system for products on the belt, and
automatically removing defective goods from the conveyor belt. The system's key advantages are
that it takes less time to sort the goods, requires less manpower because the entire process is
automated, and reduces the potential for error.
PAGE \* MERGEFORMAT 23
However, with advancements in computer vision, machine learning, and sensor technologies,
automated color sorting systems have emerged as a reliable and cost-effective solution.
These systems typically consist of a conveyor belt or chute that transports objects, such as grains,
fruits, or recyclable materials, toward an inspection area. Multiple high-speed cameras or sensors
capture images of the objects as they pass through the inspection area. The captured images are
then analyzed and processed by sophisticated algorithms and software. The algorithms analyze
the color properties of each object, extracting relevant features and comparing them to
predefined color standards or user-defined criteria. Based on this analysis, the system determines
the appropriate action for each object, such as diverting it to a specific bin or rejecting it from the
production line.
Automated color sorting systems offer several advantages. First and foremost, they provide
highly accurate and consistent sorting results, minimizing human error and improving quality
control. They can quickly process large volumes of objects, significantly increasing productivity
and throughput. Additionally, these systems are capable of handling a wide range of object sizes
and shapes, making them versatile across different industries. The effectiveness of automated
color sorting systems is largely attributed to the integration of advanced technologies. Machine
learning algorithms enable the system to learn and adapt to different color variations, enhancing
its sorting capabilities over time. High-speed cameras and sensors with precise color recognition
capabilities ensure accurate object classification. User-friendly interfaces and software provide
operators with real-time monitoring and control, enabling efficient system management.
The application areas for automated color sorting systems are diverse. In the food industry, these
systems are used for sorting grains, nuts, fruits, vegetables, and even meat products based on
color defects, ripeness, or quality. In recycling facilities, they aid in the separation of recyclable
materials, such as plastic, paper, and glass, based on their color properties. In the pharmaceutical
industry, color sorting systems assist in ensuring consistent capsule or tablet quality.
In summary, automated color sorting systems have revolutionized industrial processes, offering
efficient and reliable solutions for object classification based on color. They combine computer
vision, machine learning, and sensor technologies to provide accurate sorting results, enhance
PAGE \* MERGEFORMAT 23
productivity, and improve quality control. With their versatility and wide-ranging applications,
these systems continue to play a vital role in various industries, contributing to streamlined
production processes and customer satisfaction.
By achieving these objectives, the study aims to provide valuable insights and practical guidance
for industries looking to adopt automated color sorting solutions, ultimately leading to increased
efficiency, accuracy, and cost-effectiveness in their sorting processes.
PAGE \* MERGEFORMAT 23
ii. Industrial applications: The study considered the application of the color sorting device in
various industries, including manufacturing, recycling, food processing, pharmaceuticals,
and logistics. It takes into account the specific sorting requirements and constraints of
each industry.
iii. Performance Evaluation:
The study included evaluating the performance of the color sorting device through
experiments and testing. It aims to assess the efficiency, accuracy, speed, and adaptability
of the device compared to manual sorting methods.
iv. Implementation Considerations:
The study explored the challenges and considerations associated with implementing the
color sorting device in real-world industrial settings. It provides recommendations for
effective deployment, integration, and utilization of the device based on cost-
effectiveness, scalability, and compatibility with existing production lines or processes.
1.5 Limitations:
While the study aimed to address the development and implementation of a color sorting device
with a conveyor belt, there were certain limitations to consider:
The study was limited by budgetary constraints and access to resources required for designing,
developing, and testing the color sorting device. The availability of advanced color detection
technology and suitable conveyor belt systems may vary based on affordability and accessibility.
While the study considered various industries, the specific requirements and constraints of each
industry may vary significantly. It may not be possible to address all industry-specific factors in
depth, requiring additional customization and adaptation of the device for specific applications.
PAGE \* MERGEFORMAT 23
equipment, and training of personnel. These challenges impacted the successful deployment and
utilization of the device.
Environmental conditions, such as lighting variations, dust, or ambient temperature affected the
performance and accuracy of the color detection system. The study needed to consider these
factors and explore strategies to mitigate their impact on sorting accuracy.
While the study was to develop a colour sorting device adaptable and scalable to different
applications, there were limitations in terms of the size, shape, and types of objects that can be
effectively sorted using the device. The study defined specific limitations or recommendations
regarding object characteristics.
PAGE \* MERGEFORMAT 23
CHAPTER TWO
LITERATURE REVIEW
Colour sorting is an important process in manufacture of products of different colour variety.
However, manual or conventional colour sorting are not essential and can lead to low quality
products and low productivity. Automated colour sorting systems have been developed to
address this challenge. These systems can be powered electrically and have sensors incorporated
in them to make selection process possible.
i. RGB Colour Model: In this method of color sorting the RGB (Red, Green, Blue) color
model is extensively employed in digital imaging, representing each color by blending
varying intensities of red, green, and blue.
ii. HSV Colour Model: In this method of color sorting the HSV (Hue, Saturation, Value)
color model offers an alternative to RGB, depicting colors based on their hue, saturation,
and brightness.
iii. Colour Histograms: In this method of color sorting histograms portray the color
distribution in an image, allowing identification of dominant colors and sorting objects
based on color frequency.
iv. Colour Thresholding: In this method of color sorting Involves setting specific color
thresholds to segregate objects of interest, with pixels within the specified color range
being deemed part of the target object.
v. Machine Learning and Deep Learning: In this method of color sorting there is an
application of machine learning algorithms or deep learning models trained on color data
to recognize and categorize objects based on their color.
vi. Colour-Based Sorting Machines: In this method of color sorting Industrial sorting
machines equipped with sensors and cameras capable of identifying and categorizing
objects based on their color.
vii. Image Processing Algorithms: In this method of colour sorting algorithms like k-means
clustering, color space conversions, and morphological operations applied for image
processing and sorting objects based on colour.
viii. Colour Sensors: In this method of colour sorting Physical sensors designed to detect and
measure the color of objects, often utilizing filters to identify specific color wavelengths.
PAGE \* MERGEFORMAT 23
2.2 Recent Advancements
(Anandh,et al 2019) proposed a system that sorted and counted objects based on their colors and
the collected data is transferred to the cloud. In this system NodeMCU was used as control unit
and transmitted the entire process. TCS3200 color sensor was used to sort out the objects and
were being directed with the help of servo motor. In conclusion the proposed system is an
inexpensive system with which even small-scale industries can able to get updated with the
automated system. With the help of this, the sequence of objects can be sorted in basis of color
which can reduce the manpower and time in industries. Since the information of the objects is
being displayed in LCD display and web-server it is easy for the person who supervised the
system.
(Vandana, et al, 2021) developed a S71200 PLC-based sorting system to demonstrate this sorting
system, this project used electro-magnetic actuators with a TCS2300 color sensor to automate the
whole system. The system consisted of a conveyor belt to carry items and a color sensor to sense
the product’s color form, and the system the used 2 electromagnetic actuators to actuate and
drive the product at its respective collection station. To identify the color of the object moving on
the conveyor belt, a color sensor was used. The color sensor transmitted a particular signal to the
PLC as soon as the appropriate color is detected, which, in turn, operated the corresponding
electromagnetic actuator to force the product out of the respective station. In conclusion, an
easily re-programmable framework utilizing the Programmable Logic Controller (PLC) was
developed.
(T.J. Nuva et al, 2022) This system identified, separated, and collected the things based on color
and weight using a conveyor belt, strain gauge load cell, DC motor, servo motor, TCS 34725
PAGE \* MERGEFORMAT 23
RGB color sensor, LCD, LED, and LDR. Arduino was used to manage every procedure. Three
different color types red, green, and blue as well as weights within various ranges were sorted in
this work. The intended colors were sorted by the color sensor after the weights had first been
sorted by a load cell. The box is retrieved depending on the signal gotten from the Arduino, a
bucket at the end of the conveyor belt is rotated. There is a specified area in one color on the
collecting box. It could therefore be turned at a weight or color either red green or blue.
(A. Thike, et al, 2019) stated that Color and size are the most important features for accurate
classification and sorting of product which was done by using some optical sensors or analyzing
their pictures. They separated items by their colors, detecting the colors if things that pass before
them and used mechanical or pneumatic ejection devices to divert items whose colors do not fall
within the acceptable range. The Color Sorting Machine was used for sorting mainly RGB
colors. A simple robot arm was used to apply a color sorting to a physical system. The objects
were placed to the conveyor belt using robot arm with servo motors. One conveyor belt was
used, which is controlled by DC motors. A TCS230 color sensor module was used to sense the
color then the Arduino microcontroller sent signal to circuit which drove the various motors of
the robotic arm to grip the object and place it in the specified location. Based upon the detection,
the robotic arm moved to the specified location, released the object and came back to the original
position. The main advantages of the system were less time required to sort the product, as the
whole system was performed by machine there was less possibility of mistake, less man power
required.
(Amin, et al, 2014) emphasized on a project to design an efficient, microcontroller based system
that picked up right color of objects and put it down at right place to optimize the productivity,
minimizing the cost of the products and decreasing human mistakes was carried out. The
controller used was a PIC Microcontroller (18F452) having high speed performance, low cost
and 32 kilobytes program memory. It communicated with color sensor TCS3200 and various
motor modules in real time to detect the right color object and to control the arm movement.
Designed system could pick objects of 1kG weight and arm could rotate up to 360.
PAGE \* MERGEFORMAT 23
2.3 Knowledge Gap
The design and implementation of an Automated Color Sorting System has the potential to
greatly improve a production process. However, despite the recent advancements in the field the
remains several knowledge gaps that needs to be filled to ensure that we get best design and
implementation of these technologies.
i. Cost and Scalability: This knowledge gap is concern with the cost of
implementation and maintenance of the system and also the design of a system
that can be scaled to work efficiently.
ii. Database and Machine Learning: The system requires high level data training to
effectively learn to recognize different colors.
iii. Sophisticated Algorithm: The use of advance sensors and machine learning to
train the system will require the use of high level programming to help system
process data.
iv. Education and awareness efforts: Improved and awareness creation of the
importance of this technology and how to use it should be enforced.
v. Enforcement and regulation: Ensure that the use of this technology complies with
every law and regulation in the industry which it works in.
PAGE \* MERGEFORMAT 23
CHAPTER THREE
MATERIALS AND METHODS
3.1 Principles of system working
The whole process began at the power supply unit which has a DC supply that powered the
system, items to be sorted are received through a plastic tube. These items are then detected by
the color sensor placed at the end of the receiving tube. The Reflection of the objects color is
detected by the color sensor, for this project colors considered are red, green and blue.
After color is detected by the colour sensor, algorithms use referenced values or pre-established
color criteria to compare the colour data, the analysis is used by the system to determine each
item's color. The products are divided into various classes or color groups.
Servo are then activated to help guide the different coloured items to their compartment
MCU
5V Battery
LCD COLOUR
DISPLAY SENSOR
SERVO
MOTORS
Fig 3.1 A block diagram representing the components used for the Automated Color sorting
system.
PAGE \* MERGEFORMAT 23
3.2 Materials
The major components that make up the color system are discussed below:
PAGE \* MERGEFORMAT 23
Plate 3.3: A diagram of an Arduino Nano
3.2.1.3 Battery
A 5-volt battery is a compact and versatile electrical power source designed to deliver a
consistent voltage of 5 volts across its terminals. This standardized voltage makes it a popular
choice for a wide range of electronic devices and small-scale applications, providing a reliable
and stable energy supply to power microcontrollers, sensors, and other components.
With its modest voltage output, the 5-volt battery is often employed in gadgets such as USB-
powered devices, Arduino boards, and various digital peripherals. Its compatibility with common
electronic components makes it an accessible and widely used option for hobbyists, engineers,
and manufacturers alike. The 5-volt battery's compact form factor, coupled with its reliable
performance, contributes to its prevalence in portable electronics, ensuring seamless operation
and power efficiency in diverse applications.
PAGE \* MERGEFORMAT 23
3.2.1.4 Servo Motor
A servo motor is a specialized electric motor equipped with a feedback mechanism that enables
precise control of its angular position. Widely used in robotics, automation, and other
applications requiring accurate and controlled movement, servo motors receive signals from a
controller to adjust their rotational position, providing a versatile solution for tasks such as
steering mechanisms, robotic arm movements, and camera positioning.
PAGE \* MERGEFORMAT 23
Plate 3.6: Diagram of a 16 x 2 LCD
PAGE \* MERGEFORMAT 23
Plate 3.8: Diagram of a strip board or Vero board
3.2.1.9 Wood
Wood is a natural, fibrous, and porous material derived from the stems and branches of trees,
widely utilized in construction, furniture making, and various crafts due to its versatility,
durability, and aesthetic appeal.
PAGE \* MERGEFORMAT 23
Plate 3.10: Diagram of wood
PAGE \* MERGEFORMAT 23
Plate 3.12: Hot Glue Gun
3.2.2.3 Saw
A saw is a cutting tool with a toothed blade or abrasive disc that is used to mechanically separate
materials such as wood, metal, or plastic by repeatedly moving the blade or disc across the
material.
PAGE \* MERGEFORMAT 23
Plate 3.14: Diagram of an Arduino IDE
3.2.2.5 Proteus 8
The Proteus Design Suite is a proprietary software tool suite used primarily for electronic design
automation. It is a Windows application for schematic capture, Simulation, and Printed Circuit
Board(PCB) layout design. It can be found in many configurations, depending on the size of
designs being produced and the requirements for microcontroller simulation. All PCB Design
products include an auto router and basic mixed-mode SPICE simulation capabilities.
PAGE \* MERGEFORMAT 23
This is a software that is used to is used to develop and simulated 2D and 3D design concepts for
a project before they are built.
3.3 Methods
we discussed the principles, theories to be used. It is important to understand the principles and
theories of operation used in design and construction of automated color sorting system.
3.3.1 Method of fabrication
Following the successful sizing of all the components, the method of installation is as follows;
i. Define the Requirements: The first step in this stage research is carried out on the objects or
materials to be sorted based on colour, Specification of the desired sorting speed, accuracy, and
throughput and lastly the identification of the colors or color ranges that need to be detected and
sorted.
ii. Gather the Required Components: The following components are identified and studied.
these components include: Arduino Nano, APDS-9960 RGB colour sensor, Conveyor tubes,
Power supply for the Arduino, sensor and motor and servos for controlling conveyor tubes.
iii. Assemble the Hardware: The motor driver module is connected to the Arduino Nano board,
the motor driver module is wired to the conveyor motor, The RGB colour sensor module is
connected to the Arduino board, Measures are taken to ensure that all components are securely
mounted and properly connected.
iv. Develop the Software: The Arduino IDE is installed with necessary libraries for the colour
sensor module, the code to control the conveyor motor, the code to read colour data from the
sensor module is implemented, robotic arms servos are controlled by code which is also written
into the Arduino IDE, the colour thresholds or ranges for sorting is defined, the logic for sorting
PAGE \* MERGEFORMAT 23
objects based on colour data is developed, Integration of motor control, sorting mechanism and
colour sorting algorithms is carried out.
v. Calibrate the Colour Sensor: A calibration process to establish baseline colour values is
performed, colour readings from known reference samples are captured, the colour thresholds or
ranges based on the calibration data is adjusted.
vi. Test and Refine the System: Tests with objects of different colours to verify the sorting
accuracy is carried out, the system's performance and make adjustments if necessary is
monitored, the software and hardware components as needed is iterated and defined.
Total 0.925W
PAGE \* MERGEFORMAT 23
Location – choba
Daily power supply - 10hrs
Total consumed by the system =0.625+0.1+0.1+0.1=0.925W (3.1)
Based on the above calculations we can say that the power supply is sufficient to power the
system for its total operating time.
Where:
Ts - Servo torque
r - distance from position of force applied on axis of rotation
F – Weight of the load being carried by servo
x – Angle of inclination
PAGE \* MERGEFORMAT 23
Ts (3.6)
r
1.2 kg-cm = 0.3kg x 9.81= 2.943N
4cm
Ts
R (3.8)
CHAPTER FOUR
RESULT AND DISCUSSION
4.1 Design Results
The outputs of design analysis are shown in the table below:
Table 4.1: Design Parameters
Value
Quantity symbol Unit Equation
PAGE \* MERGEFORMAT 23
Servo 2 calculation
SV2 N Eqn 3.8 0.3924N
PAGE \* MERGEFORMAT 23
18. Miscellaneous 30,000
4.3 Discussion
From table 4.1, it is understood that the daily energy consumed by the system is 9.25Wh which is
met with a sufficient supply from 5V DC power supply.
The servo motors had the adequate torque for what needed to be achieved.
With every colour detected, the servos of the selection mechanism changes orientation as
expected and programmed to achieve a color sorting action of the detected colored items. For a
Red object detected all servo motors move to direct the red object to its desired compartment,
this is the same for color blue and green when these objects have encountered.
PAGE \* MERGEFORMAT 23
4.4 Logic Circuit
This logic circuit shows how all the conncections are done as regards to the robotic arm servo
motors,motors for the converyor,ADPS 9960 colour sesnor and other peripheral components
used to achieve the overall system.
Fig 4.1 A diagram showing the logic circuit of the connection done for the system
PAGE \* MERGEFORMAT 23
Fig 4.2 A Engineering Design of an Automated colour sorting
CHAPTER FIVE
CONCLUSION AND RECOMMENDATION
5.1 Conclusion
In this paper a new automated color sorting system was designed and implemented that has the
ability to detect red, blue and green colors using the ADPS 9960. Based on color detected a
selection process was carried out by the colour. A plastic tube was the main transport medium in
this system which was used to direct items to be selected from initial position to the sorting
section of the system. The major drawback of the system was its inability to sort a wide range of
colored items, it was just limited to three colors. It is important to carry out comprehensive
analysis of the power requirements and use high efficiency components, optimize the movement
of the servo motor controlled mechanism with respect to the color detected, use suitable power
supply and properly implement sensor and automation features to maximize output.
5.2 Recommendations
Here are some recommendations for the design and fabrication of automated color sorting
system:
PAGE \* MERGEFORMAT 23
i. Usage of high efficiency components: To maximize output and energy efficiency of the
system, it’s important to use high efficiency components. These include selecting a high
efficiency servo motor, using adequate colour sorting and DC power supply
ii. Use of adequate DC supply: The use of adequate DC power is important for power supply to
components like servo motors which use at least 4.8v voltage inputs.
iii. Implement Regular Maintenance: Maintenance should be carried out to ensure that the
system continues to operate efficiently. This includes regular component checks especially
sensor to make sure they are working optimally and also quick changes for repair of faulty
components.
REFERENCES
Vandana, S. K. Shamukha Sri Sai, P. Rohila and V. Manideep, “PLC Operated Color Based
Product Sorting machine,” IOP Conference. Series: Materials Science and Engineering
1119 (2021) 012016. doi: https://doi.org/10.1088/1757-899X/1119/1/012016.
Nuval, T.J & Md.I. Ahmed, S.S Mahmud,” Fabrication of Automatic Color & Weight-Based
Sorting on Conveyor Belt,” Journal of Integral and Advanced
Engineering(jiae),Vol.2,September 2022:147-157. doi:
https://doi.org/10.51662/jiae.v2i2.87.
PAGE \* MERGEFORMAT 23
Thike, A., Moe San, Z. Z., & Min Oo, Dr. Z. (2019). Design and Development of an Automatic
Color Sorting Machine on Belt Conveyor. International Journal of Science and Engineering
Applications, 8(7), 176–179. https://doi.org/10.7753/ijsea0807.1002
Amin, U., Ahmad, G., Liaqat, N., Ahmed, M., & Zahoor, S. 2014. Detection & Distinction of
Colors using Color Sorting Robotic Arm in a Pick & Place Mechanism. International Journal of
Science and Research. 3 (6): pp. 1164-1168 http://hdl.handle.net/20.500.11937/81255
APPENDICES
Project Code
#include <Wire.h>
#include <SparkFun_APDS9960.h>
#include <Servo.h>
#include <LiquidCrystal_I2C.h>
Servo servo1;
Servo servo2;
Servo servo3;
// Global Variables
SparkFun_APDS9960 apds = SparkFun_APDS9960();
uint16_t ambient_light = 0;
PAGE \* MERGEFORMAT 23
uint16_t red_light = 0;
uint16_t green_light = 0;
uint16_t blue_light = 0;
void setup() {
// Initialize Serial port
Serial.begin(9600);
servo1.attach(8);
servo2.attach(7);
servo3.attach(6); // Assuming servo3 is connected to pin 9
lcd.init();
lcd.backlight();
Serial.println();
Serial.println(F("--------------------------------"));
Serial.println(F("APDS-9960 - ColorSensor"));
Serial.println(F("--------------------------------"));
PAGE \* MERGEFORMAT 23
Serial.println(F("Something went wrong during light sensor init!"));
}
void loop() {
// Read the light levels (ambient, red, green, blue)
if (!apds.readAmbientLight(ambient_light) ||
!apds.readRedLight(red_light) ||
!apds.readGreenLight(green_light) ||
!apds.readBlueLight(blue_light)) {
Serial.println("Error reading light values");
} else {
Serial.print("Ambient: ");
Serial.print(ambient_light);
Serial.print(" Red: ");
Serial.print(red_light);
Serial.print(" Green: ");
Serial.print(green_light);
Serial.print(" Blue: ");
Serial.println(blue_light);
if (red_light > redThreshold && red_light > green_light && red_light > blue_light) {
PAGE \* MERGEFORMAT 23
// Object is red, move servo1 to the corresponding position
moveServo(servo1, 180, 3);
} else if (green_light > greenThreshold && green_light > red_light && green_light >
blue_light) {
// Object is green, move servo2 to the corresponding position
moveServo(servo2, 180, 3);
} else if (blue_light > blueThreshold && blue_light >red_light && blue_light >
green_light) {
// Object is blue, move servo3 to the corresponding position
moveServo(servo3, 180, 3);
} else {
// Object does not match any color, perform other actions or do nothing
}
}
delay(1000);
}
PAGE \* MERGEFORMAT 23
Arduino Nano
PAGE \* MERGEFORMAT 23
PAGE \* MERGEFORMAT 23