SlideShare a Scribd company logo
Color sorting machine using color light to frequency converter
Assia HAMZA
assia.hamza@etu.usthb.dz
Merwan KHENAK
merwan.khenak@etu.usthb.dz
University of science and technology Houari Boumediene
BP 32, El Alia, Bab Ezzouar, 16111 Algiers, Algeria
Department of instrumentation and control
December 20, 2018
Abstract
In our daily life, our vision and actions are influenced by an abundance of geometry and color infor-
mation to identify a technical apparatus for identification. Only by analyzing color information do we
subsequently decide whether we are to continue.
In the industry, color processing is gaining a greater importance in digital signal processing.
With technological advancement optical sensors for reading operations in the visible spectrum with inte-
grated electronic readout circuits are getting affordable, that’s why we chose to use a low cost color light to
frequency converter to build a color sorting machine.
Our project was made in for pedagogical use but a further development using robust materials and compo-
nents could lead to an industrial color sorting machine for a use in the color sorting industry of recyclable
materials.
Keywords : Color sorting machine - Programmable color light to frequency converter - TCS230 - Op-
tical detector - Smart sensor - Arduino Robot - Colorimetry
1 Introduction
Humans have been quite interested in color for many
centuries. However, the scientific beginning of color
studies goes back only to Newton when he performed
his classic experiment with a prism.
Light is a narrow range of electromagnetic waves that
the eye can detect. Electromagnetic waves can have
many different wavelengths and frequencies in a range
known as the electromagnetic spectrum. Different
wavelengths of light produce different perceptions of
color. The longest wavelengths produce the percep-
tion of red, while the shortest ones produce the percep-
tion of violet. The spectrum in the visible, ultraviolet
(UV), and infrared (IR) regions is classified in a spec-
ified way.
The measurement of color is a very important issue
with applications in many types of industrial activi-
ties.
The light to frequency converter TCS230 is a small,
highly integrated color sensing device packaged in a
clear plastic 8-pin. It reports, as analog frequency, the
amount of short-wave (blue), medium-wave (green),
long-wave (red), and wideband (white) optical power
incident onto the device. It can be used in a variety of
color sensing applications.
In our case we use it to command a smart color sort-
ing machine with Arduino Nano controller. We tried
to make the most compact prototype and give it a prac-
tical use. We are going to introduce you how we made
a color sorting machine that which sorts bottles caps
in different boxes.
2 Materials and methods
In our project we only use Arduino Software IDE, but
a multitude of hardware components such as :
Light to frequency converter TCS230 :
The TCS3200 programmable color light-to-frequency
converter combines configurable silicon photodiodes
and a current-to-frequency converter on a single
monolithic CMOS integrated circuit. The output is
a square wave with frequency directly proportional to
light intensity (irradiance). The full-scale output fre-
quency can be scaled by one of three preset values via
two control input pins. Digital inputs and digital out-
put allow direct interface to a microcontroller or other
logic circuitry. Output enable (OE) places the output
1
in the high-impedance state for multiple-unit sharing
of a microcontroller input line. In the TCS3200, the
light-to-frequency converter reads an 8*8 array of pho-
todiodes. Sixteen photodiodes have blue filters, 16
photodiodes have green filters, 16 photodiodes have
red filters, and 16 photodiodes are clear with no fil-
ters. The four types (colors) of photodiodes are inter-
digitated to minimize the effect of non-uniformity of
incident irradiance. All photodiodes of the same color
are connected in parallel. Pins S2 and S3 are used to
select which group of photodiodes (red, green, blue,
clear) are active.
The benefits and features of TCS3200 Programmable
Color Light-to-Frequency Converter are that it :
- Enables High-Resolution Conversion of Light Inten-
sity to Frequency.
- Disables the Output into a Hi-Impedance State when
OE Input Pin is Low.
- Enables Output Range to be Optimized for a Variety
of Low-Cost Measurement Techniques.
- Reduces Board Space Requirements while Simplify-
ing Designs.
- Nonlinearity Error Typically 0.2 at 50kHz.
- Communicates Directly with a Microcontroller.
The functional blocks of this device are shown below
in figure 1:
Figure 1: Functional blocks of the TCS3200
And the TCS3200 pin assignments are described
below in figure 2: figure 1:
Figure 2: TCS3200 pin assignments
Arduino Nano
Arduino Nano is a small microcontroller good for
compact prototypes, it comes with a crystal oscillator
of frequency 16 MHz. It is used to produce a clock of
precise frequency using constant voltage.
Two Sg90 servo motor
We chose this specified servo motor because it is the
lightest on sale. It weights 90g and its engine couple
is up to 1,6 kg.cm on 4,8 Vcc ideal for our compact
prototype.
we use two servo motors one on the top and the 2nd at
the bottom. The top servo is used to bring the bottle
caps under our sensor, and the second servo is used to
deliver the bottle cap to the exact box of it’s color.
5V AC power battery
We chose to make an on-board power supply system
to power our electronics easily anywhere we want to
expose our prototype.
Switch
To disconnect or connect the conducting path in an
electrical circuit, interrupting the electric current or di-
verting it from one conductor to another and make the
machine ON or OFF.
Breadboard
The breadboard lets you easily insert electronic com-
ponents to to build and test an early version of the elec-
tronic circuit of the prototype.
Wires
It is necessary to connect our components in order to
make communication.
We connect the components together according to the
following circuit schematics in figure 3:
Figure 3: Schematics of the color sorting machine
The most important part beside the schematics is
how we calibrate the program to order the servo motor
to move for each color a specified direction.
So we chose 3 different colors bottle caps, red, white
and blue.
2
We pass each color under the sensor different times
and each time in the arduino real time monitor we reg-
ister the RGB colors variations for each bottle cup. By
recovering these datas we can put in our program spec-
ified RGB variation for each bottle cap color so the
servo motor moves to the correct wanted position each
time the sensor detects a bottle cap.
3 Results
The final machine prototype made is illustred in fig-
ure 4: The manner how it mechanically works is that
nitially, the colored bottle caps which are held in the
charger drop into the platform attached on the top
servo motor.
Then the servo motor rotates and brings the colored
bottle caps to the color sensor which detects its color.
After that the bottom servo motor rotates to the partic-
ular position and then the top servo motor rotates again
till the skittle drop into the guide rail.
Figure 4: Our final color sorting machine prototype
4 Conclusion
An automated color sorting machine was made at the
end of this project. Using color to frequency converter
sensor technology we learned how to make a low cost
equipment.
It’s important to admire how much sensor supplements
technology has developed in the last decade, and it’s
all fun to learn how to deal with it.
Color perception is so important for human interac-
tions, so as the industry. So making intelligent auto-
mated machine that can do tasks alone is a big invest-
ment of time for industries.
As many applications in the future require sensor
systems we want to participate in the creation of those
systems, and we won’t be able to achieve our goals
unless we master a variety of sensors.
Acknowledgement
The authors would like to express their special thanks
of gratitude to mr Dejan Nedelkovski founder of ’How
to mecatronics’ who made this work open source to
everyone wanting to learn about it.
3
References
Gaurav Sharma 2003, Electrical engineering and applied signal processing series, Digital Color Imaging Hand-
book
Andreas Koschan, Mongi Abidi 2008, Digital color image processing
Christine Fernandez - Maloigne 2013, Advanced Color Image Processing and Analysis
Asch, Georges 2015, Acquisition de donnees : Du capteur aa l’ordinateur
David C. Swanson 2000, Signal Processing for Intelligent Sensor Systems
Forrest M. Mims III 1996, Engineer’s Mini-Notebook: Sensor Projects
Daniel Malacara 2011, Color Vision and Colorimetry THEORY and APPLICATIONS
4

More Related Content

PDF
Smart Remote for the Setup Box Using Gesture Control
PDF
IRJET - Zigbee based Street Light Control System
PPTX
Smart sensors -Sukanta Bhattacharyya
PDF
Arduino in Agricoltura -Alessandro Matese
PPT
Ppt Digital Electronics
PDF
Color Sorting Robotic Arm
PPTX
Design connected thermometer
PDF
Introduction to DSP - Digital Signal Processing
Smart Remote for the Setup Box Using Gesture Control
IRJET - Zigbee based Street Light Control System
Smart sensors -Sukanta Bhattacharyya
Arduino in Agricoltura -Alessandro Matese
Ppt Digital Electronics
Color Sorting Robotic Arm
Design connected thermometer
Introduction to DSP - Digital Signal Processing

What's hot (20)

PPTX
Smartsensor 120713051429-phpapp02
PPTX
DIGITAL SIGNAL PROCESSING
DOCX
DIGITAL SIGNAL PROCESWSING AND ITS APPLICATION
PPTX
Automatic Unauthorized Parking Detector With SMS Notification To Owner
PPTX
next generation smart sensor
PDF
IRJET- IoT Color based Product Sorting Machine
PDF
B044020609
PPTX
Digital signal processing
PPTX
Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
PPT
Romain Rogister DSP ppt V2003
PPTX
Design, Construction and Performance Test of a Color Sorter
PDF
Arduino
PPT
Practical Digital Signal Processing for Engineers and Technicians
PPTX
Dsp presentation
PDF
IOT based Automatic Colour Sorting Machine
PPT
Real-Time Signal Processing: Implementation and Application
PDF
Advanced Topics In Digital Signal Processing
PPTX
Dsp class 1
PPTX
Introduction to digital signal processing
PPTX
digital signal processing
Smartsensor 120713051429-phpapp02
DIGITAL SIGNAL PROCESSING
DIGITAL SIGNAL PROCESWSING AND ITS APPLICATION
Automatic Unauthorized Parking Detector With SMS Notification To Owner
next generation smart sensor
IRJET- IoT Color based Product Sorting Machine
B044020609
Digital signal processing
Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
Romain Rogister DSP ppt V2003
Design, Construction and Performance Test of a Color Sorter
Arduino
Practical Digital Signal Processing for Engineers and Technicians
Dsp presentation
IOT based Automatic Colour Sorting Machine
Real-Time Signal Processing: Implementation and Application
Advanced Topics In Digital Signal Processing
Dsp class 1
Introduction to digital signal processing
digital signal processing
Ad

Similar to Color sorting machine using color light to frequency converter (20)

PPTX
Color sorting system robot project .pptx
PDF
Color to sound converter for blind people
PPTX
machine (colour sorting in food)
PPTX
Porte à puce - Smart Safety Door based on Arduino UNO R3
PPTX
Smart Safety Door based on Arduino Uno R3
PPTX
Smart Safety Door with Servo Motors as Actuators, Passcode and DHT Sensors B...
PDF
Garbage Monitoring System using Arduino
PPTX
IOT Vehicle Fuel Theft Detection System Using Arduino.pptx
PDF
Automatic Car Parking
PDF
IRJET- Oranges Sorting using Arduino Microcontroller
PPTX
Color Sensor.pptx
PDF
IRJET - Frequency Spectrum Analyser through OLED Display using Arduino Contro...
PDF
IRJET- Review on Colored Object Sorting System using Arduino UNO
PDF
Embedded Application on Microcontroller in Assembly and Embedded C
PDF
Decibel meter using IoT with notice board
PDF
IRJET- Smart Hand Gloves for Disable People
PDF
IRJET- Iot Based Route Assistance for Visually Challenged
DOCX
COLOR AUTHENTICATION AND FAULT DETECTION USING EMBEDDED SYSTEM
PDF
Gesture Control Robot using Arduino
PDF
ARM Based Handy and Portable Oscilloscope Using Graphical Display
Color sorting system robot project .pptx
Color to sound converter for blind people
machine (colour sorting in food)
Porte à puce - Smart Safety Door based on Arduino UNO R3
Smart Safety Door based on Arduino Uno R3
Smart Safety Door with Servo Motors as Actuators, Passcode and DHT Sensors B...
Garbage Monitoring System using Arduino
IOT Vehicle Fuel Theft Detection System Using Arduino.pptx
Automatic Car Parking
IRJET- Oranges Sorting using Arduino Microcontroller
Color Sensor.pptx
IRJET - Frequency Spectrum Analyser through OLED Display using Arduino Contro...
IRJET- Review on Colored Object Sorting System using Arduino UNO
Embedded Application on Microcontroller in Assembly and Embedded C
Decibel meter using IoT with notice board
IRJET- Smart Hand Gloves for Disable People
IRJET- Iot Based Route Assistance for Visually Challenged
COLOR AUTHENTICATION AND FAULT DETECTION USING EMBEDDED SYSTEM
Gesture Control Robot using Arduino
ARM Based Handy and Portable Oscilloscope Using Graphical Display
Ad

Recently uploaded (20)

PPT
Mechanical Engineering MATERIALS Selection
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
PPT on Performance Review to get promotions
PDF
Well-logging-methods_new................
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Sustainable Sites - Green Building Construction
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Mechanical Engineering MATERIALS Selection
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPT on Performance Review to get promotions
Well-logging-methods_new................
Embodied AI: Ushering in the Next Era of Intelligent Systems
Sustainable Sites - Green Building Construction
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Operating System & Kernel Study Guide-1 - converted.pdf
Automation-in-Manufacturing-Chapter-Introduction.pdf
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
CYBER-CRIMES AND SECURITY A guide to understanding
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
UNIT 4 Total Quality Management .pptx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx

Color sorting machine using color light to frequency converter

  • 1. Color sorting machine using color light to frequency converter Assia HAMZA assia.hamza@etu.usthb.dz Merwan KHENAK merwan.khenak@etu.usthb.dz University of science and technology Houari Boumediene BP 32, El Alia, Bab Ezzouar, 16111 Algiers, Algeria Department of instrumentation and control December 20, 2018 Abstract In our daily life, our vision and actions are influenced by an abundance of geometry and color infor- mation to identify a technical apparatus for identification. Only by analyzing color information do we subsequently decide whether we are to continue. In the industry, color processing is gaining a greater importance in digital signal processing. With technological advancement optical sensors for reading operations in the visible spectrum with inte- grated electronic readout circuits are getting affordable, that’s why we chose to use a low cost color light to frequency converter to build a color sorting machine. Our project was made in for pedagogical use but a further development using robust materials and compo- nents could lead to an industrial color sorting machine for a use in the color sorting industry of recyclable materials. Keywords : Color sorting machine - Programmable color light to frequency converter - TCS230 - Op- tical detector - Smart sensor - Arduino Robot - Colorimetry 1 Introduction Humans have been quite interested in color for many centuries. However, the scientific beginning of color studies goes back only to Newton when he performed his classic experiment with a prism. Light is a narrow range of electromagnetic waves that the eye can detect. Electromagnetic waves can have many different wavelengths and frequencies in a range known as the electromagnetic spectrum. Different wavelengths of light produce different perceptions of color. The longest wavelengths produce the percep- tion of red, while the shortest ones produce the percep- tion of violet. The spectrum in the visible, ultraviolet (UV), and infrared (IR) regions is classified in a spec- ified way. The measurement of color is a very important issue with applications in many types of industrial activi- ties. The light to frequency converter TCS230 is a small, highly integrated color sensing device packaged in a clear plastic 8-pin. It reports, as analog frequency, the amount of short-wave (blue), medium-wave (green), long-wave (red), and wideband (white) optical power incident onto the device. It can be used in a variety of color sensing applications. In our case we use it to command a smart color sort- ing machine with Arduino Nano controller. We tried to make the most compact prototype and give it a prac- tical use. We are going to introduce you how we made a color sorting machine that which sorts bottles caps in different boxes. 2 Materials and methods In our project we only use Arduino Software IDE, but a multitude of hardware components such as : Light to frequency converter TCS230 : The TCS3200 programmable color light-to-frequency converter combines configurable silicon photodiodes and a current-to-frequency converter on a single monolithic CMOS integrated circuit. The output is a square wave with frequency directly proportional to light intensity (irradiance). The full-scale output fre- quency can be scaled by one of three preset values via two control input pins. Digital inputs and digital out- put allow direct interface to a microcontroller or other logic circuitry. Output enable (OE) places the output 1
  • 2. in the high-impedance state for multiple-unit sharing of a microcontroller input line. In the TCS3200, the light-to-frequency converter reads an 8*8 array of pho- todiodes. Sixteen photodiodes have blue filters, 16 photodiodes have green filters, 16 photodiodes have red filters, and 16 photodiodes are clear with no fil- ters. The four types (colors) of photodiodes are inter- digitated to minimize the effect of non-uniformity of incident irradiance. All photodiodes of the same color are connected in parallel. Pins S2 and S3 are used to select which group of photodiodes (red, green, blue, clear) are active. The benefits and features of TCS3200 Programmable Color Light-to-Frequency Converter are that it : - Enables High-Resolution Conversion of Light Inten- sity to Frequency. - Disables the Output into a Hi-Impedance State when OE Input Pin is Low. - Enables Output Range to be Optimized for a Variety of Low-Cost Measurement Techniques. - Reduces Board Space Requirements while Simplify- ing Designs. - Nonlinearity Error Typically 0.2 at 50kHz. - Communicates Directly with a Microcontroller. The functional blocks of this device are shown below in figure 1: Figure 1: Functional blocks of the TCS3200 And the TCS3200 pin assignments are described below in figure 2: figure 1: Figure 2: TCS3200 pin assignments Arduino Nano Arduino Nano is a small microcontroller good for compact prototypes, it comes with a crystal oscillator of frequency 16 MHz. It is used to produce a clock of precise frequency using constant voltage. Two Sg90 servo motor We chose this specified servo motor because it is the lightest on sale. It weights 90g and its engine couple is up to 1,6 kg.cm on 4,8 Vcc ideal for our compact prototype. we use two servo motors one on the top and the 2nd at the bottom. The top servo is used to bring the bottle caps under our sensor, and the second servo is used to deliver the bottle cap to the exact box of it’s color. 5V AC power battery We chose to make an on-board power supply system to power our electronics easily anywhere we want to expose our prototype. Switch To disconnect or connect the conducting path in an electrical circuit, interrupting the electric current or di- verting it from one conductor to another and make the machine ON or OFF. Breadboard The breadboard lets you easily insert electronic com- ponents to to build and test an early version of the elec- tronic circuit of the prototype. Wires It is necessary to connect our components in order to make communication. We connect the components together according to the following circuit schematics in figure 3: Figure 3: Schematics of the color sorting machine The most important part beside the schematics is how we calibrate the program to order the servo motor to move for each color a specified direction. So we chose 3 different colors bottle caps, red, white and blue. 2
  • 3. We pass each color under the sensor different times and each time in the arduino real time monitor we reg- ister the RGB colors variations for each bottle cup. By recovering these datas we can put in our program spec- ified RGB variation for each bottle cap color so the servo motor moves to the correct wanted position each time the sensor detects a bottle cap. 3 Results The final machine prototype made is illustred in fig- ure 4: The manner how it mechanically works is that nitially, the colored bottle caps which are held in the charger drop into the platform attached on the top servo motor. Then the servo motor rotates and brings the colored bottle caps to the color sensor which detects its color. After that the bottom servo motor rotates to the partic- ular position and then the top servo motor rotates again till the skittle drop into the guide rail. Figure 4: Our final color sorting machine prototype 4 Conclusion An automated color sorting machine was made at the end of this project. Using color to frequency converter sensor technology we learned how to make a low cost equipment. It’s important to admire how much sensor supplements technology has developed in the last decade, and it’s all fun to learn how to deal with it. Color perception is so important for human interac- tions, so as the industry. So making intelligent auto- mated machine that can do tasks alone is a big invest- ment of time for industries. As many applications in the future require sensor systems we want to participate in the creation of those systems, and we won’t be able to achieve our goals unless we master a variety of sensors. Acknowledgement The authors would like to express their special thanks of gratitude to mr Dejan Nedelkovski founder of ’How to mecatronics’ who made this work open source to everyone wanting to learn about it. 3
  • 4. References Gaurav Sharma 2003, Electrical engineering and applied signal processing series, Digital Color Imaging Hand- book Andreas Koschan, Mongi Abidi 2008, Digital color image processing Christine Fernandez - Maloigne 2013, Advanced Color Image Processing and Analysis Asch, Georges 2015, Acquisition de donnees : Du capteur aa l’ordinateur David C. Swanson 2000, Signal Processing for Intelligent Sensor Systems Forrest M. Mims III 1996, Engineer’s Mini-Notebook: Sensor Projects Daniel Malacara 2011, Color Vision and Colorimetry THEORY and APPLICATIONS 4