Development of Color Detector Using Colorimetry System With Photodiode Sensor For Food Dye Determination Application
Development of Color Detector Using Colorimetry System With Photodiode Sensor For Food Dye Determination Application
Development of Color Detector Using Colorimetry System With Photodiode Sensor For Food Dye Determination Application
*yulkifliamir@gmail.com
Abstract. Colorimeter is a detector that is used to determine the concentration by analyzing the
intensity of light transmitted by the solution. The samples used in this study are harmful and
harmless dyes. The light emitted will pass through the sample, so that the beam of light in the
sample will be captured by the photodiode sensor. The photodiode sensor functions to convert
light into an output voltage. The output voltage will be amplified by a voltage amplifier circuit.
The results of the output voltage are confirmed on the arduino which is then displayed on the
LCD. In this paper, we will explain the performance of color detector devices that have been
developed and their implications for the field of medicine and food.
1. Introduction
Plants are one of the living things in the world. Plants have varied colors, because they have pigments.
So that plants can become one of the natural dyes that have extracts that can be used by humans.
The development of science and technology in humans makes him think to be able to produce a
natural thing into something useful and can be developed with a variety of new innovations. Experts
also continue to conduct research to produce technology products to meet human needs. The science
and technology results have proven to provide many facilities and benefits for humans.
One of the disciplines that contributed significantly to the development of science and technology
was Physics. In physics has provided a strong foundation for technological progress. Technological
progress that is closely related to the advancement of physics. One of the fields of physics study that is
no less rapidly developing today is Electronics and Instrumentation. The advancement of Electronics
and Instrumentation is enough to help humans meet their needs. Therefore, the field of Electronics and
Instrumentation is a serious and interesting concern among the generation of new technology
designers.
The development of science and technology can also be observed in the transition of mechanical or
manual systems into digital systems. The transition from a manual system to a digital system requires
a sensor. The sensor is a device that can change physical quantities to electrical quantities. A sensor is
a device that receives a stimulus and responds with an electrical signal [1]. Through sensors can be
Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution
of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.
Published under licence by IOP Publishing Ltd 1
The 2018 International Conference on Research and Learning of Physics IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 1185 (2019) 012031 doi:10.1088/1742-6596/1185/1/012031
designed various systems that can work automatically and the sensors used in building a measurement
and control system vary according to the usefulness of the sensor itself.
1.2.Spectrophotometer UV-Vis
Uv-Vis Spectrophotometer (Ultra Violet-Visible) is a tool to measure the transmittance and
absorbance of a sample as a function of wavelength. UV-Vis spectrophotometer can be used for
qualitative and quantitative analysis of a chemical. Ultraviolet (UV) light has a wavelength between
180-380 nm, and visible light has a wavelength of 380-780 nm shown in Figure 1.
1.3.Beer-Lambert Law
Beer and Lambert's law states that the absorbance of a sample is directly proportional to the
concentration of the sample turned out to be linear. The amount of transmittance is:
I
T= (1)
I0
A beam of light with an initial intensity (I0) has a wavelength λ. Light files are fired towards the
sample. Some light will be transmitted or transmitted (I), partially reflected (Ir), and partially
absorbed. Transmitance (T) is defined as the ratio between the intensity of light coming out of a
solution with the intensity of light coming. Lambert-Beer's law can also be stated in the equation:
A = a.b.c (2)
2
The 2018 International Conference on Research and Learning of Physics IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 1185 (2019) 012031 doi:10.1088/1742-6596/1185/1/012031
A is absorbance or absorption that we will look for systematically, a is molar absorption (constant
type of substance), b is the thickness of cuvette and c is the sample concentration.
Where V1 is the initial volume in liters or milliliter (l or ml). M1 is the initial molarity in molL-1 or
mmolmL-1. V2 is the volume after dilution in l or ml. M2 is molarity after dilution in molL-1 or
mmolmL-1.
1.5. Coloring
Food coloring is an additive added to increase the color of food or drink. Food coloring is mixed to
color the food, increase the visual appeal of food, stimulate the senses of sight, and stabilize colors,
and overcome color changes. This substance is available in various forms, such as liquids, powders,
gels, or pastes. There are 2 kinds of food coloring, which are harmful and harmless food coloring.
• Alizarin S
Alizarin S is an example of synthetic organic dyes that have the potential to pollute the environment.
This is due to the wide use of alizarin S compounds in various industries of textiles, paper, plastics,
paints and inks as well as food.
•Bromofenol Blue
Bromophenol Blue is a type of dye from a class of reactive dyes. Bromophenol Blue solution will
exchange colors from yellow at PH 3.0 and blue at PH 4.6. at a low pH, this dye will absorb ultraviolet
and blue light, and the color seems to be yellow in the solution.
3
The 2018 International Conference on Research and Learning of Physics IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 1185 (2019) 012031 doi:10.1088/1742-6596/1185/1/012031
•Indigo Carmin
Indigotin (Indugo Carmine) is blue, brown, reddish flour, easy to dissolve in water and the solution is
blue. Soluble in glycerol and glycol, slightly soluble in 95% alcohol. This dye is very resistant to light,
so the color disappears quickly. Even so the resistance to acid is good, while the concentrated NaOH is
less resistant. Not resistant to oxidizing, but rather resistant to reducing agents. Indigotine is not
affected by Cu or AL both neutral and acidic solutions.
•Dayak Onions
Dayak onion is a typical plant of Central Kalimantan that is used by Dayak tribal traders as
medicine. This plant has a height of about 30-40 cm
1.8. RGB
The spectrum of light produced by LED is not just visible light, but can also produce light with an
infrared or ultraviolet spectrum. The light produced by low-power LEDs is caused by the transfer of
electron and hole charges to a higher energy level or otherwise will produce photons. These photons
will be seen in the eye as light. While for LED RGB spectrum can be seen in Figure 4.
4
The 2018 International Conference on Research and Learning of Physics IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 1185 (2019) 012031 doi:10.1088/1742-6596/1185/1/012031
It can be seen that in the RGB LED the blue wavelength range is 400-500 nm, the green
wavelength is 450-600 nm, and the red wavelength is 600-700 nm. Blue has the longest intensity
compared to red and green. The RGB LED circuit to Arduino can be seen in Figure 5:
RGB LED has 4 legs, where the legs function to turn on the red, green and blue LEDs and the other
one is the cathode feet.
1.9. Photodioda
When Photodiode is exposed to light, photons which are the smallest particles of light will
penetrate the N-type semiconductor layer and enter the P-type semiconductor layer. The photons will
then collide with the electrons that are bound so that the electron is separated from the core and causes
a hole. Separate electrons due to collisions and near the PN junction (PN junction) will cross the
intersection into the N-type semiconductor region. As a result, the electrons will increase on the side
of the semiconductor N while the semiconductor side P will be excess Hole. This separation of
positive and negative charges causes a potential difference at the PN junction. When we connect a
load or cable to the cathode (the side of the semiconductor N) and the anode (the side of the
semiconductor P), the electrons will flow through the load or cable from the cathode to the anode or
we usually call it an electric current.
5
The 2018 International Conference on Research and Learning of Physics IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 1185 (2019) 012031 doi:10.1088/1742-6596/1185/1/012031
1.10. Arduino
Arduino is a single-board micro controller that is open-source, derived from the wiring platform,
designed to facilitate electronic use in various fields. The hardware has an Atmel AVR processor and
the software has its own programming language. Currently Arduino is very popular throughout the
world so many beginners who learn to know robotics and electronics use Arduino because it is easy to
learn. But not only beginners, professional users are also happy to develop electronic applications
using Arduino.
1.12. LCD
The LCD functions to display a sensor value, displays text, or displays a menu in the microcontroller
application. The LCD used is a type of LCD M1632. M1632 LCD is an LCD module with 16x2 line
display with low power consumption. The module is equipped with a microcontroller specifically
designed to control LCDs .
2. Method
In system design, it is planned from a simple block diagram shown in Figure 8.
2.1.Block Diagram
RGB sample Photodiode
6
The 2018 International Conference on Research and Learning of Physics IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 1185 (2019) 012031 doi:10.1088/1742-6596/1185/1/012031
In accordance with the block diagram above, this system consists of:
1. RGB LEDs are a blue wavelength range of 400-500 nm, a green wavelength of 450-600 nm, and
a red wavelength of 600-700 nm. Blue has the longest intensity compared to red and green.
2. The samples used in this study are dyes, the following categories are dangerous and harmless
dyes:
a. Dangerous Dyes
1) Alizarin S
2) Bromophenol Blue
3) Indigo Carmin
b. Harmless Dyes
1) Soursop Leaf Extract
2) Breadfruit Leaf Extract
3) Dayak Onion Extract
3. Photodiode sensor, as an optical sensor that is used to capture RGB light emitted on color
samples that are replaced to see the voltage difference of each sample.
4. Voltage amplifier is a circuit used as a reinforcement of the output voltage released by the
photodiode, because the photodiode produces a very small voltage.
RGB Photodiode
The mechanical circuit scheme is the original form made according to the block circuit diagram.
7
The 2018 International Conference on Research and Learning of Physics IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 1185 (2019) 012031 doi:10.1088/1742-6596/1185/1/012031
Ways of working is preparing samples for input in the form of aromatic fluids (here using
dangerous and harmless dyes). Arranging the sequence according to the series that has been made. The
Arduino application is opened and the software uses the application on Arduino. The diverify program
by clicking the checkbox first. If there is an error in programming, an error warning will appear on the
screen. Click File -> save at the place you want. The project board is connected to Arduino Uno ports
using telephone cables whose arrangement is in accordance with the program that has been made.
Arduino uno is connected to a laptop using a USB cable. Putting the sample between RGB and
photodiode. When finished, just click on Tools on the Arduino application then select the board ->
Arduino Uno and select the port and check the options. Click Tools on the Arduino application then
select the board -> Arduino Uno and select the port and check the options. The program is uploaded
by clicking on the arrow image to be downloaded by the Arduino Uno microcontroller. On the
keyboard click Ctrl + Shift + M so the monitor will display the output of the sensor in the form of
voltage according to the program that has been made.
3.1.Research result
In this research, photodiode sensors are used, the input of which is light from the RGB LED lights
emitted on samples that have different colors. The output will be displayed on the monitor in the form
of voltage. The monitor used is a monitor on a laptop. Installation of RGB LEDs and photodiode
sensors on the appliance must be parallel to each other because the RGB LED is used by the sensor as
its input. So that the voltage displayed on the monitor depends on the intensity of the light captured by
the photodiode sensor.
In the software written the code “float” which is written in the void loop, this code serves to
display the voltage value in the form of a decimal number. Whereas in the next code it says
“Serial.println” the code “ln” serves to automatically enter so that the display on the monitor runs
vertically. When not given the code “ln”, the display will run horizontally. So the voltage changes on
the sensor will appear on the monitor as shown in Figure 12. Testing about the output voltage using
hazardous and non-hazardous dye samples harmless by using an Arduino Uno-based colorimeter and
UV-Vis are shown in Figure 13.
Samples of harmful dyes measured using an Arduino Uno-based colorimeter are shown in Figure
13 (a). For testing carried out with a wavelength between 400 nm to 700 nm where the measurement
results produce a graph of the comparison between wavelength and voltage. Where at a wavelength of
400 nm, 440 nm, 480 nm, 520 nm, 560 nm, 600 nm, 640 nm, 680 nm, 720 nm and 760 nm. The
resulting voltage is between 0.2 Volts and 5 Volts.
8
The 2018 International Conference on Research and Learning of Physics IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 1185 (2019) 012031 doi:10.1088/1742-6596/1185/1/012031
(a) (b)
(c) (d)
Figure 12. (a). Program series, (b). Voltage value of green samples (c). Voltage value of an Orange
sample, (d). Voltage value of a red sample.
(a) (b)
(c) (d)
Figure 13. Measurement results of various sample using an Arduino Uno-based colorimeter and UV-
Vis. (a). harmful dyes measured using an Arduino Uno-based colorimeter, (b). harmful dyes measured
using UV-Vis, (c). Non-hazardous dye samples using an arduino Uno-based colorimeter, (d). non-
hazardous dyes measured using UV-Vis.
9
The 2018 International Conference on Research and Learning of Physics IOP Publishing
IOP Conf. Series: Journal of Physics: Conf. Series 1185 (2019) 012031 doi:10.1088/1742-6596/1185/1/012031
Samples of harmful dyes measured using UV-Vis are shown in Figure 13 (b). For testing carried
out with a wavelength between 400 nm to 700 nm where the measurement results produce a
comparison graph between the wavelength and absorption. Where at a wavelength of 400 nm, 440 nm,
480 nm, 520 nm, 560 nm, 600 nm, 640 nm, 680 nm, 720 nm and 760 nm. Absorbs produced between
0.1 A to 4.5 A.
Non-hazardous dye samples measured using an arduino Uno-based colorimeter are shown in Figure
13 (c). For testing carried out with a wavelength between 400 nm to 700 nm where the measurement
results produce a graph of the comparison between wavelength and voltage. Where at a wavelength of
400 nm, 440 nm, 480 nm, 520 nm, 560 nm, 600 nm, 640 nm, 680 nm, 720 nm and 740 nm. Absorbs
produced between 0.5 V to 5 V.
Samples of non-hazardous dyes measured using UV-Vis are shown in Figure 13 (d). For testing
carried out with a wavelength between 400 nm to 700 nm where the measurement results produce a
comparison graph between the wavelength and absorption. Where at a wavelength of 400 nm, 440 nm,
480 nm, 520 nm, 560 nm, 600 nm, 640 nm, 680 nm, 720 nm and 740 nm. Absorption produced
between 0.1 A to 3 A.
4.Conclusion
From the results of the discussion and the series can specify the performance and design specifications
of the tool and find out how the colormeter works in natural plant extracts and harmful dyes. Where
from RGB light has different wavelengths that produce bright light emitted on plant extracts which are
then absorbed by photodiode sensors which produce voltage and absorption which are different from
each color of the plant extract and food coloring which is sampled for the colormeter. From the
measurement results we can make a conclusion from the tool that is in a comparison table between the
extract color of plants and dangerous ones which is very different where harmful food coloring has a
high absorption and very small voltage because the wavelength is inversely proportional to the
intensity while the intensity is directly proportional with voltage.
Acknowledgment
This research was supported by Ministry of Research, Technology and Higher Education,
Indonesia.This work under PD UPT with grant number 805/UN35.2/PG/2018.
References
[1] Fraden, J 2003 Handbook of Modern Sensors (New York: Springer).
[2] J.Besset, R.C et.al.1991. Vogel Textbook: Chemistry of Inorganic Quantitative Analysis
translation from Vogel's Textbook of Quantitative Inorganic Analysis Including Elementary
Instrumental Analysis, translator: A. Hadyana P. and Ir. L. Setiono). EGC Medical Book
Publisher. ISBN 979-448-228-5.
[3] Anggoro, D., Rezki, S., dan MZ, Siswarni, 2015, Ekstraksi Multi Tahap Kurkumin dari
Temulawak (Curcuma xanthorriza Roxb) Menggunakan Pelarut Etanol, Jurnal Teknik Kimia
USU, Vol 4, No.2.
[4] Jeffery G H, Basset J, Mendham J and Denny R C. 1994. Vogel’s Text Book of Quantitative
Chemical Analysis 5th edition. (New York : John Wiley & Sons).
[5] Evan, Edy and Eddy Wijayanto. 2014. Rotary light Emitting Diode Display with RGB System.
Krida Wacana Christian University: Jakarta.
[6] Yulkifli, et al: 2014. Making Digital Viscosity Measurement Systems Using Arduino Uno328
Ugn3503 Hall Effect Sensors. Sainstek Journal Vol. VI No. 1: 71-83 June 2014.
10