선정목록으로
Innovative Approach to Adjustable Color Temperature in LED Luminaires
필름·전자재료 · (16) CPI(투명 폴리이미드)
기본 정보
- 저자
- DOI
- 10.62520/fujece.1537662
- 저널
- Firat University Journal of Experimental and Computational Engineering
- 발행년도
- 2025
- 발행기관
- LookUs Bilisim A.S.
- 피인용수
- 0
- 라이선스
- cc-by-nc
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.62520/fujece.1537662
- 토픽
- Color Science and Applications
- OpenAlex ID
- W4411668428
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (16) CPI(투명 폴리이미드)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > CPI(투명 폴리이미드)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
The field of lighting technology is rapidly evolving. Among these technologies, Light Emitting Diode (LED) systems stand out as highly efficient light sources. LEDs are manufactured with various characteristics and structures. For instance, RGB (Red Green Blue) LEDs are capable of producing a wide spectrum of colors. By using RGB LEDs, it is also possible to achieve white light with different color temperatures Color temperature plays a crucial role in how our eyes perceive the colors of objects. We can observe the true colors of an object under daylight illumination with a color temperature of 6500K. The same object may appear differently under lighting with various color temperatures. Consequently, there has arisen a need to adjust different color temperatures within a single lighting fixture. Existing LED lighting systems often struggle with achieving precise control over color temperature and brightness due to limitations in hardware integration and computational efficiency. Additionally, these systems may require costly sensors or lack the flexibility to adapt to varying environmental conditions. To address these gaps, the proposed system integrates PSoC technology with an AS7261 XYZ Chromatic White Color Sensor, enabling real-time adjustments of color temperature and brightness with enhanced precision and cost-effectiveness. In this study, a design of an adjustable LED luminaire in terms of both brightness and color temperature has been developed using PSoC (Programmable System on Chip) technology, which is gaining significant traction and importance in the field of embedded systems. The necessary XYZ data for the color temperature of the luminaire, which consists of RGB LEDs, were obtained from the AS7261 XYZ Chromatic White Color Sensor. The XYZ information gathered from this sensor was utilized in the algorithm of the designed system. By adjusting the brightness levels at which the RGB LEDs operate according to the desired color temperature and illumination level, the system was successfully implemented. This innovative approach has practical applications in energy-efficient lighting systems, industrial production processes, and customizable illumination solutions for residential, commercial, and automotive environments, highlighting its potential for widespread industrial adoption.
본문 41,885자
본문 펼치기
# Fırat Üniversitesi Deneysel ve Hesaplamalı Mühendislik Dergisi
Ayarlanabilir Renk Sıcaklığına Sahip LED Armatürlerde Yenilikçi Yaklaşım
Burak TAŞCI <sup>1*</sup>, Yavuz EROL2
1*Teknik Meslek Yüksekokulu, Fırat Üniversitesi, Elazig,Türkiye.
2Elektirik ve Elektronik Mühendisliği, Mühendislik Fakültesi, Fırat Üniversitesi, Elazig, Türkiye.
1btasci@firat.edu.tr, 2yerol@firat.edu.tr
Geliş Tarihi: <mark>23.08.2024</mark> doi: https://doi.org/10.62520/fujece.1537662
Düzeltme Tarihi: <mark>28.12.2024</mark>
Kabul Tarihi: <mark>18.01.2025</mark> Araştırma Makalesi
Alıntı: B. Taşcı ve Yavuz Erol,’’Ayarlanabilir renk sıcaklığına sahip LED armatürlerde yenilikçi yaklaşım”, Fırat Üni. Deny.
<u>ve Hes. Müh. Derg., vol. 4, no 2, pp. 245-261, Haziran 2025.</u>
Öz
Aydınlatma teknolojisi hızla gelişmektedir. Bu teknolojiler arasında, yüksek verimli ışık kaynakları olarak öne
çıkan Işık Yayan Diyot (LED) sistemleri bulunmaktadır. LED'ler, çeşitli özellikler ve yapılarla üretilmektedir.
Örneğin, RGB (Kırmızı Yeşil Mavi) LED'ler geniş bir renk yelpazesi üretebilmektedir. RGB LED'leri kullanarak,
farklı renk sıcaklıklarına sahip beyaz ışık elde etmek de mümkündür. Renk sıcaklığı, gözlerimizin nesnelerin
renklerini nasıl algıladığı üzerinde önemli bir rol oynar. Bir nesnenin gerçek renklerini, 6500K renk sıcaklığına
sahip gün ışığı aydınlatması altında gözlemleyebiliriz. Aynı nesne, çeşitli renk sıcaklıklarına sahip aydınlatma
altında farklı görünebilir. Sonuç olarak, tek bir aydınlatma armatüründe farklı renk sıcaklıklarını ayarlama ihtiyacı
doğmuştur. Mevcut LED aydınlatma sistemleri, renk sıcaklığı ve parlaklığın hassas şekilde kontrol edilmesinde
genellikle donanım entegrasyonu ve hesaplama verimliliği konularında sınırlamalar yaşamaktadır. Ayrıca, bu
sistemler genellikle yüksek maliyetli sensörler gerektirmekte veya değişen çevresel koşullara uyum sağlayabilme
esnekliğinden yoksun kalmaktadır. Bu eksiklikleri gidermek için önerilen sistem, PSoC teknolojisini AS7261
XYZ Kromatik Beyaz Renk Sensörü ile birleştirerek renk sıcaklığı ve parlaklık seviyelerini gerçek zamanlı olarak
daha hassas ve maliyet etkin bir şekilde ayarlama imkanı sunmaktadır. Bu çalışmada, hem parlaklık hem de renk
sıcaklığı açısından ayarlanabilir bir LED armatürü tasarımı, gömülü sistemler alanında giderek daha fazla önem
kazanan PSoC (Programmable System on Chip) teknolojisi kullanılarak geliştirilmiştir. RGB LED'lerden oluşan
armatürün renk sıcaklığına yönelik gerekli XYZ verileri, AS7261 XYZ Kromatik Beyaz Renk Sensörü'nden elde
edilmiştir. Bu sensörden toplanan XYZ bilgileri, tasarlanan sistemin algoritmasında kullanılmıştır. RGB LED'lerin
istenen renk sıcaklığı ve aydınlatma seviyesine göre çalıştığı parlaklık seviyeleri ayarlanarak sistem başarıyla
uygulanmıştır. Bu yenilikçi yaklaşım, enerji verimli aydınlatma sistemleri, endüstriyel üretim süreçleri ve konut,
ticari ve otomotiv ortamları için özelleştirilebilir aydınlatma çözümleri gibi pratik uygulamalara sahiptir ve yaygın
endüstriyel benimseme potansiyelini vurgulamaktadır.
Anahtar kelimeler: <mark>CCT ayarlanabilir LED armatür, CCT kontrol, Gömülü PSoC sistemi</mark>
- Yazışılan yazar
İntihal Kontrol: Evet – Turnitin
[Şikayet: fujece@firat.edu.tr](mailto:fujece@firat.edu.tr)
T lif H kk Li D id l CC BY NC 4 0
# Firat University Journal of Experimental and Computational Engineering
Innovative Approach to Adjustable Color Temperature in LED Luminaires
Burak TAŞCI <sup>1*</sup>, Yavuz EROL2
1*Vocational School of Technical Sciences Firat University, Elazig,Türkiye.
2Electrical and Electronic Engineering, Faculty of Engineering, Firat University, Elazig, Türkiye.
[1btasci@firat.edu.tr, 2yerol@firat.edu.tr](mailto:1btasci@firat.edu.tr)
Received: <mark>23.08.2024</mark> doi: https://doi.org/10.62520/fujece.1537662
Revision: <mark>28.12.2024</mark>
Accepted: <mark>18.01.2025</mark> Research Article
Citation: B. Taşçı and Y. Erol, “Innovative approach to adjustable color temperature in LED luminaires”, Firat Univ.
<u>Jour.of Exper. and Comp. Eng., vol. 4, no 2, pp. 245-261, June 2025.</u>
<mark>Abstract</mark>
The field of lighting technology is rapidly evolving. Among these technologies, Light Emitting Diode (LED)
systems stand out as highly efficient light sources. LEDs are manufactured with various characteristics and
structures. For instance, RGB (Red Green Blue) LEDs are capable of producing a wide spectrum of colors. By
using RGB LEDs, it is also possible to achieve white light with different color temperatures Color temperature
plays a crucial role in how our eyes perceive the colors of objects. We can observe the true colors of an object
under daylight illumination with a color temperature of 6500K. The same object may appear differently under
lighting with various color temperatures. Consequently, there has arisen a need to adjust different color
temperatures within a single lighting fixture. Existing LED lighting systems often struggle with achieving precise
control over color temperature and brightness due to limitations in hardware integration and computational
efficiency. Additionally, these systems may require costly sensors or lack the flexibility to adapt to varying
environmental conditions. To address these gaps, the proposed system integrates PSoC technology with an AS7261
XYZ Chromatic White Color Sensor, enabling real-time adjustments of color temperature and brightness with
enhanced precision and cost-effectiveness. <mark>In this study, a design of an adjustable LED luminaire in terms of both</mark>
<mark>brightness and color temperature has been developed using PSoC (Programmable System on Chip) technology, which</mark>
<mark>is gaining significant traction and importance in the field of embedded systems. The necessary XYZ data for the color</mark>
<mark>temperature of the luminaire, which consists of RGB LEDs, were obtained from the AS7261 XYZ Chromatic White</mark>
<mark>Color Sensor. The XYZ information gathered from this sensor was utilized in the algorithm of the designed system. By</mark>
<mark>adjusting the brightness levels at which the RGB LEDs operate according to the desired color temperature and</mark>
<mark>illumination level, the system was successfully implemented. This innovative approach has practical applications in</mark>
<mark>energy-efficient lighting systems, industrial production processes, and customizable illumination solutions for</mark>
<mark>residential, commercial, and automotive environments, highlighting its potential for widespread industrial adoption.</mark>
Keywords: CCT tunable LED luminaire, CCT control, Embedded PSoC system
*Corresponding author
Plagiarism Checks: Yes – Turnitin
Complaints: fujece@firat.edu.tr
C i h & Li A h bli hi i h h j l i
_B Taşcı, Y. Erol_
1. Introduction
Electromagnetic waves consist of electric and magnetic fields moving perpendicular to each other in a
coordinated manner. The portion of electromagnetic waves that can be perceived by the human eye is
called "visible light." The smallest wavelength of visible light is 380 nm (violet) and the largest
wavelength is 780 nm (red). Our eyes can only see wavelengths between 380–720 nm and cannot
perceive all electromagnetic waves. Objects appear colored based on the absorption and reflection of
light rays with wavelengths in the visible range. Color can be physically defined as a measure of which
wavelengths a specific light ray contains and in what proportions, and light is necessary for the
observation of color [1]. The temperature of a light source that has the same color coordinates as the
radiation color of a black body at a specific temperature is called 'Color Temperature.' This relates not
to the heat output of the light source but to the color of the light output. The CIE (Commission
internationale de l'éclairage) also recommends expressing the closeness of temperatures to ideal
distributions in Kelvin (K). At this point, the CCT (Correlated Color Temperature) magnitude is defined
as a measure of how closely the emission of visual artificial light sources resembles the theoretical black
body radiation at a specific temperature [2]. In this study, the PSoC embedded system was used to adjust
the brightness of the designed luminaire, obtain the XYZ information from the AS7261 XYZ Chromatic
White Color Sensor according to the changing brightness, and ensure the operation of the luminaire
according to the developed algorithm. PSoC technology, which is rapidly gaining popularity today,
holds an important place in embedded systems due to its significant features such as allowing the
simultaneous use of analog and digital blocks and its ease of use. The PSoC family consists of devices
that feature a controlled mixed-signal array on a single chip. These devices are designed to integrate
many traditional microprocessor-based system components into a programmable, low-cost single chip.
The PSoC device includes configurable analog and digital circuit elements as well as programmable
interconnects. This structure offers configurations that the user can adjust as desired, thus meeting the
requirements of many applications. In addition to these features, it includes a fast CPU, flash program
memory, SRAM data memory, and configurable inputs and outputs [3].
Figure 1 shows the PSoC CY8CKIT-059 kit used in the study. This kit uses the CY8C5888LTI-LP097
68-pin PSoC 5LP chip, which has an M3 cortex. The CY8C5888LTI-LP097 chip features an 80MHz
CPU (Central Processing Unit) speed, 256kb flash, 64kb sram, 2kb eeprom, 1x20-bit delta sigma adc,
2x12-bit sar adc, 4 dacs, 4 comparators, 4 sc/ct analog blocks, 4 opamps, 24 udbs, 4 16-bit timer/pwm,
and a total of 48 input/output pins.
<mark>Figure 1.</mark> <mark>PSoC CY8CKIT-059 Kit [4]</mark>
<mark>Fedasyuk et al. [5] attempted to solve the problem of developing magnetic tracking sensors for high-</mark>
<mark>precision object localization within the concepts of the Internet of Things and virtual reality using PSoC</mark>
<mark>5LP. Alakananda and Venugopal [6] tested the operation and performance of a quadcopter. In their</mark>
<mark>study, the PSOC 6 was used, featuring a dual-core processor, which allows for simultaneous data</mark>
<mark>sampling and processing. PSOC 6 was chosen due to its power efficiency, which enhances battery life</mark>
<mark>or flight time. Kim et al. [7] proposed an LED matrix headlight system that reduces communication</mark>
<mark>burden by using bilinear interpolation shift and masking operations, allowing fine adjustments in</mark>
<mark>brightness and color with minimal data transfer. Liu et al. [8] demonstrated an energy-efficient</mark>
<mark>embedded system for electrical engineering automation, integrating fuzzy logic with a PID control</mark>
<mark>algorithm to optimize energy consumption. Their findings, implemented in a tunnel lighting project,</mark>
<mark>revealed a significant energy savings rate of up to 51% per day, showcasing the potential of embedded</mark>
_B Taşcı, Y. Erol_
<mark>systems in enhancing energy efficiency. Satvaya et al. [9], developed an outdoor luminaire based on</mark>
<mark>LEDs that can wirelessly control illuminance, CCT, color rendering index (CRI), and spectral power</mark>
<mark>using a microcontroller and pulse width modulation (PWM) technique. The system, controlled via a</mark>
<mark>smartphone, demonstrated a wide range of color temperature options, enhanced spectral power,</mark>
<mark>improved CRI, and the ability to create a calming nocturnal lighting ambiance. Barbadekar and Patil</mark>
<mark>[10] proposed a PSoC-based smart antenna system, which offers features such as reliability,</mark>
<mark>reconfigurability, automatic steering, and low cost. Ghoroury et al.[11] designed a color temperature</mark>
<mark>adjustable white LED based on a newly developed monolithic color-tunable LED structure, capable of</mark>
<mark>producing white light in the range of 2700 K to 6500 K. Kumar et al.[12] proposed a stand-alone, cost-</mark>
<mark>effective, and innovative design for comprehensive online analysis of arc welding processes using PSoC</mark>
<mark>embedded systems. Rafał Kociszewski [13] demonstrated the practical application of a PI controller</mark>
<mark>using the PSoC embedded system. Tasci and Erol [14] designed a multi-channel wireless</mark>
<mark>communication system using a PSoC and an RF transceiver module. Wojtkowski and Kociszewski [15]</mark>
<mark>utilized SPDM (Stochastic Pulse Density Modulation) in their PSoC-based LED application to minimize</mark>
<mark>harmonic effects. Lin et al. [16] developed a photometric optimization model for color temperature</mark>
<mark>(CCT) tunable white LED clusters under the constraint of color rendering index (CRI), including</mark>
<mark>downconversion energy loss. Lovasoa et al. [17] experimentally analyzed white LEDs with a</mark>
<mark>wavelength of 445 nm. Using different module configurations, they examined the variations in different</mark>
<mark>photometric parameters according to varying supply voltages. Nandhini et al. [18] implemented a color</mark>
<mark>detection application for a wireless robotic arm using PSoC, utilizing LabVIEW graphical language for</mark>
<mark>virtual instrument programming. Komiyama et al.[19] developed a prototype to demonstrate wireless</mark>
<mark>visible light communication using RGB LEDs, with PSoC used to control the parallel signal</mark>
<mark>communication provided by the RGB LEDs. He and Zeng [20] designed a simulation program capable</mark>
<mark>of predicting not only the spectral power distribution, chromaticity coordinates, CCT, and color</mark>
<mark>rendering index (CRI) but also the drive currents, luminous flux, input power, and luminous efficacy of</mark>
<mark>white light LEDs. Chang et al. [21] developed a mixed light control module with RGB LEDs by</mark>
<mark>integrating a photodiode with PSoC. In this study, the sensor was used to examine the ambient</mark>
<mark>temperature and feedback voltage levels of the RGB photodiodes. Yang et al. [22] presented a</mark>
<mark>reflection-based color measurement using a tricolor LED. The color of the tested sample was determined</mark>
<mark>by measuring the three reflective intensities of different colors. A modulation/demodulation technique</mark>
<mark>was used to distinguish the three reflected intensities. The three reflected signals could be processed by</mark>
<mark>a computer to provide an (x, y) coordinate on the CIE chromaticity diagram. Since the three-terminal</mark>
<mark>measurements provide insufficient predictions for an entire spectral reflection, a calibration procedure</mark>
<mark>was successfully developed to correct the predicted results, which significantly differed from the values</mark>
<mark>measured by a well-calibrated device. Speier and Salsbury [23] reviewed efficient white light LED</mark>
<mark>systems with adjustable color temperatures (CT) ranging from 3000 K to 6500 K.</mark> <mark>Cho et al.[24] examine</mark>
<mark>the historical development, technological advancements, and future potential of white light-emitting</mark>
<mark>diodes (LEDs). The study focuses on the evolution of blue LED chips, device architecture, and the role</mark>
<mark>of phosphors in generating white light. It highlights the commercial success of the blue LED and</mark>
<mark>phosphor combination due to its energy efficiency and durability. While noting the limitations in color</mark>
<mark>rendering capabilities, the authors report remarkable performance metrics, such as a luminous efficacy</mark>
<mark>reaching up to 303 lm/W. The study also discusses the future potential of smart LED applications.</mark>
2. Color Space
<mark>Due to the vast diversity of colors, there arose a need to group and standardize these colors, leading to</mark>
<mark>the concept of color space. Color spaces are mathematical models used to define colors. They are</mark>
<mark>designed to represent all colors and are typically constructed in three dimensions. This is because,</mark>
<mark>according to Grassmann’s first law, which forms the basis of colorimetry, three independent variables</mark>
<mark>are needed to determine a color. The positions of colors within the color space are determined by these</mark>
<mark>variables. Each color space has its own standards for color generation. While constructing color spaces,</mark>
_B Taşcı, Y. Erol_
<mark>it should be possible to transform from one color space to another using linear or non-linear</mark>
<mark>methods[25].</mark>
<mark>Different devices for color display and processing use different color spaces. For instance, televisions,</mark>
<mark>computer monitors, and scanners use the RGB color space, while printers and plotters use the CMY(K)</mark>
<mark>color space. Color spaces are generally divided into two groups: device-dependent and device-</mark>
<mark>independent color spaces. In device-dependent color spaces, colors are produced based on the</mark>
<mark>characteristics of the device, meaning they are entirely dependent on the device's technical</mark>
<mark>specifications. Device-independent color spaces, on the other hand, are developed by the CIE</mark>
<mark>(Commission Internationale de L’Eclairage) and are used for color measurement in colorimetry,</mark>
<mark>ensuring consistent color measurement across all colors. In these color spaces developed by the CIE,</mark>
<mark>definitions and standards related to color (such as the standard observer and standard illuminant) are</mark>
<mark>utilized [26]. Figure 2 presents the Planckian locus and the CIE 1931 chromaticity diagram, which</mark>
<mark>determine the colors and color temperature of light sources.</mark>
<mark>Figure 2.</mark> <mark>Planckian locus 1931 chromatic diagram in CIE 1931</mark>
<mark>The X, Y, and Z values are the sum of the signals sent to the brain by the nerves that perceive the three</mark>
<mark>primary colors (red, green, blue). Each of these three signals, in relation to the total amount of stimulus,</mark>
<mark>defines the color. While the brain combines these three magnitudes, it uses ratios to achieve the overall</mark>
<mark>perception of color. The sum of the X, Y, and Z values equals the total visual perception of the color</mark> [27].
<mark>The proportion of red perception within this total is given by Equation 1, the proportion of green perception</mark>
<mark>by Equation 2, and the proportion of blue perception by Equation 3. The calculated x, y, and z values are in</mark>
<mark>the range of 0-1 and their total must be 1.</mark>
∑??=1 <u>??</u> (1)
∑??=1 ??+??+??
x =
∑??=1 <u>??</u> (2)
∑??=1 ??+??+??
∑??=1 <u>??</u> (3)
∑??=1 ??+??+??
y=
z=
Using Equations 1 and 2, the coordinates of the color on the chromaticity diagram can be determined.
According to the tristimulus theory of color perception, color can be represented by three parameters.
In 1931, the CIE introduced the three primary colors, denoted as X, Y, and Z, which are calculated using
Equations 4, 5, and 6. Here, r(λ) represents the spectral reflectance; P(λ) represents the spectral power
_B Taşcı, Y. Erol_
distribution of the illuminant; and x(λ), y, and x(?), y(?), z(?) are the CIE color matching functions.
The CIE color matching functions are shown in Figure 3.
x=∫?(?)?(?)?̅(?)?? (4)
y=∫?(?)?(?)?̅(?)?? (5)
z=∫?(?)?(?)?̅(?)?? (6)
Figure 3. XYZ color matching functions [24]
3. Measurement Procedures With As7261 Spectral Sensor
In this study, the XYZ values were measured to ensure that the designed LED RGB luminaire operates
at the desired color temperature and illumination level. The measurement of XYZ values was carried
out using the AS7261 XYZ Chromatic White Color Sensor, as shown in Figure 4.
Figure 4. AS7261 XYZ Chromatic White Color Sensor
The AS7261 is a chromatic white color sensor that provides direct XYZ color coordinates consistent
with the CIE 1931 2° Standard Observer color coordinates. The AS7261 controls the light entering the
_B Taşcı, Y. Erol_
sensor array by integrating Gaussian filters through nano optic deposited interference filter technology
into standard CMOS silicon. Control and spectral data access are provided via I²C or a serial UART
[28]. The field of view of the AS7261 sensor's LGA package is shown in Figure 5.
<mark>Figure 5.</mark> <mark>AS7261 LGA Package Field of View [24]</mark>
To examine how the brightness of the RGB LED luminaire changes according to the XYZ information,
the experimental setup shown in Figure 6 was established. The brightness level of the RGB LED
luminaire was adjusted in the range of 0-255 using the PWM blocks of the PSoC 5LP. The brightness
level of the luminaire was controlled with the help of an LED driver connected to the output pins of the
PSoC 5LP. Changes in brightness levels were measured using the AS7261 sensor, which was connected
to another PSoC 5LP kit via I2C. The measured values were read as XYZ values from the computer
connected to the PSoC via UART.
Figure 6. Experimental setup set up to read XYZ values
In the experimental setup, the PWM values for the red, green, and blue LEDs were individually varied
within the range of 0-255. The XYZ values were recorded for each LED's PWM variation. These
recorded values, obtained from experimental studies, are point values. There is no continuous function
definition among the data. In such cases, the data are given as pairs of points (x1, y1), . . .,(xn, yn). It is
desired to find a function f(x) such that f(xj) ≈ yj for j = 1, . . ., n . In other words, it is necessary to
perform curve fitting to determine another function that is closest to the given point-by-point function
values or to replace practically difficult-to-use functions with ones that can facilitate calculations.
_B Taşcı, Y. Erol_
For the obtained XYZ values, graphs were plotted using Matlab's curve fitting application. Curve fitting
was applied to the plotted graphs. Initially, curve fitting was performed for the XYZ values of each
color, resulting in a total of 9 fittings. However, upon further examination, it was observed that the
differences in the fitted curve values were significant. Therefore, the curve fitting process was repeated
by dividing the XYZ values of each color into three segments. As a result, 9 second-degree equations
were obtained for each color, totaling 27 equations.
<mark>Figure 7.</mark> <mark>Red XYZ PWM exchange</mark>
The variation of the XYZ values for the red LED according to the PWM values varied in the range of
0-255 is shown in Figure 7. Nine fitted equations, numbered in the order in Figure 7, are given in
equations 7-15.
-1.607*((R-42.5)/24.39) <sup>2</sup> + 366.2*((R-42.5)/24.39)+638.3
(7)
-0.2844*((R-42.5)/24.39) <sup>2</sup> + 111.4*((R-42.5)/24.39)+210.1
(8)
-0.009132*((R-42.5)/24.39) <sup>2</sup> + 2.476*((R-42.5)/24.39)+9.569
(9)
-1.466*((R-127.5)/24.97) <sup>2</sup> + 345.1*((R-127.5)/24.97)+1851
(10)
10.85*((R-127.5)/24.97) <sup>2</sup> + 116.7*((R-127.5)/24.97)+577.8
(11)
-0.01346*((R-127.5)/24.97) <sup>2</sup> + 2.331*((R-127.5)/24.97)+17.83
(12)
-14.33*((R-213)/24.68) <sup>2</sup> + 267.4*((R-213)/24.68)+2934
(13)
-4.51*((R-213)/24.68) <sup>2</sup> + 93.77*((R-213)/24.68)+999
(14)
-0.1109*((R-213)/24.68) <sup>2</sup> + 1.808*((R-213)/24.68)+25.09
(15)
Equations 7, 8, and 9 represent the XYZ values for PWM ranges from 0 to 84. Specifically, Equation 7
calculates the X value, Equation 8 calculates the Y value, and Equation 9 calculates the Z value. For the
PWM range of 85 to 170, Equations 10, 11, and 12 are used, where Equation 10 determines the X value,
Equation 11 determines the Y value, and Equation 12 determines the Z value. Finally, for PWM values
ranging from 171 to 255, Equations 13, 14, and 15 are employed. Equation 13 calculates the X value,
Equation 14 calculates the Y value, and Equation 15 calculates the Z value. These equations are crucial
_B Taşcı, Y. Erol_
for determining the appropriate PWM values to achieve the desired color temperature and brightness in
the LED luminaire.
Figure 8. Green XYZ PWM variation
The variation of the XYZ values for the green LED according to the PWM values varied in the range of
0-255 is shown in Figure 8. Nine fitted equations, numbered in the order in Figure 8, are given in
equations 16-24.
-0.21*((G-42.5)/24.39) <sup>2</sup> + 56.86*((G-42.5)/24.39)+107
(16)
-1.339*((G-42.5)/24.39) <sup>2</sup> + 240.6*((G-42.5)/24.39)+428.9
(17)
-0.3941*((G-42.5)/24.39) <sup>2</sup> + 37.07*((G-42.5)/24.39)+66.22
(18)
0.3643*((G-127.5)/24.97) <sup>2</sup> + 60.81*((G-127.5)/24.97)+307.8
(19)
-1.77*((G-127.5)/24.97) <sup>2</sup> + 241.7*((G-127.5)/24.97)+1259
(20)
-0.869*((G-127.5)/24.97) <sup>2</sup> + 34.07*((G-127.5)/24.97)+190
(21)
-0.6235*((G-213)/24.68) <sup>2</sup> + 56.83*((G-213)/24.68)+506.6
(22)
-1.166*((G-213)/24.68) <sup>2</sup> + 205.1*((G-213)/24.68)+2007
(23)
(24)
0.3105*((G-213)/24.68) <sup>2</sup> + 24.95*((G-213)/24.68)+285.9
<mark>For the PWM range of 0 to 84, Equations 16, 17, and 18 are used, where Equation 16 calculates the X value,</mark>
<mark>Equation 17 calculates the Y value, and Equation 18 calculates the Z value. In the PWM range of 85 to 170,</mark>
<mark>Equations 19, 20, and 21 are employed, with Equation 19 determining the X value, Equation 20 determining</mark>
<mark>the Y value, and Equation 21 determining the Z value. For the PWM range of 171 to 255, Equations 22, 23,</mark>
<mark>and 24 are used, where Equation 22 calculates the X value, Equation 23 calculates the Y value, and Equation</mark>
<mark>24 calculates the Z value. These equations are essential for adjusting the PWM values to achieve the desired</mark>
<mark>color temperature and brightness for the Green LED in the luminaire.</mark>
_B Taşcı, Y. Erol_
Figure 9. Blue XYZ PWM variation
The variation of the XYZ values for the blue LED according to the PWM values varied in the range of
0-255 is shown in Figure 9. Nine fitted equations, numbered in the order in Figure 9, are given in
equations 25-33.
-1.081*((B-42.5)/24.39) <sup>2</sup> + 66.64*((B-42.5)/24.39)+118.8
(25)
-0.2957*((B-42.5)/24.39) <sup>2</sup> +18.51*((B-42.5)/24.39)+33.52
(26)
-10*((B-42.5)/24.39) <sup>2</sup> +400*((B-42.5)/24.39)+720
(27)
-1.311*((B-127.5)/24.97) <sup>2</sup> +60.5*((B-127.5)/24.97)+338.3
(28)
-0.4176*((B-127.5)/24.97) <sup>2</sup> +17.98*((B-127.5)/24.97)+96.44
(29)
-10.21*((B-127.5)/24.97) <sup>2</sup> +369.1*((B-127.5)/24.97)+2045
(30)
-0.07585*((B-213)/24.68) <sup>2</sup> +53.26*((B-213)/24.68)+532.1
(31)
0.2312*((B-213)/24.68) <sup>2</sup> +17.03*((B-213)/24.68)+155.8
(32)
-0.1808*((B-213)/24.68) <sup>2</sup> +327.2*((B-213)/24.68)+3228
(33)
For the PWM range of 0 to 84, Equations 25, 26, and 27 are used, where Equation 25 calculates the X
value, Equation 26 calculates the Y value, and Equation 27 calculates the Z value. In the PWM range of
85 to 170, Equations 28, 29, and 30 are employed, with Equation 28 determining the X value, Equation
29 determining the Y value, and Equation 30 determining the Z value. For the PWM range of 171 to
255, Equations 31, 32, and 33 are used, where Equation 31 calculates the X value, Equation 32 calculates
the Y value, and Equation 33 calculates the Z value. These equations are essential for adjusting the
PWM values to achieve the desired color temperature and brightness for the Blue LED in the luminaire.
4. Obtaining PWM Ratios
Color temperature can be determined using the x and y coordinate information obtained from Equations
1 and 2. In this study, the x and y coordinate information for color temperature values of 3000K, 4000K,
and 5000K were taken from Figure 10. For example, for 5000K, x = 0.346 and y = 0.362. The calculation
of the CCT value from these x and y coordinates is performed using Equations 34 and 35.
n=(x-0.3320)/0.1858-y) (34)
CCT=449n <sup>3</sup> +3525n <sup>2</sup> +6823.2n+5520.33 (35)
_B Taşcı, Y. Erol_
Figure 10. CCT change according to xy coordinates
For the brightness level, the Y data from the AS7261 XYZ Chromatic White Color Sensor is used.
Accordingly, the target X and Z values are calculated using Equations 36 and 37.
X=x*(Y/y) (36)
Z=(Y/y)*(1-x-y) (37)
After calculating the X, Y, Z, x, and y values for the target color temperature and brightness level, the
PWM values need to be determined. Using the equations obtained from curve fitting in the previous
section, we determine the appropriate PWM values.
For an RGB LED, a separate PWM value needs to be determined for each color. The intersection point
of the xy coordinates of the determined PWM values for the RGB LEDs provides the desired color
temperature and brightness level.
For example, let's select 5000K and a brightness level of Y = 3000. From Figure 10, x = 0.346 and y =
0.362 are found. Substituting these values into Equations 9 and 10, we find X = 2867.4 and Z = 2419.8.
To achieve the desired XYZ values, the appropriate PWM curves need to be determined.
XR= -1.466*((R-127.5)/24.97) <sup>2</sup> + 345.1*((R-127.5)/24.97)+1851 (38)
YR= 10.85*((R-127.5)/24.97) <sup>2</sup> + 116.7*((R-127.5)/24.97)+577.8 (39)
ZR= -0.01346*((R-127.5)/24.97) <sup>2</sup> + 2.331*((R-127.5)/24.97)+17.83 (40)
XG=-0.6235*((G-213)/24.68) <sup>2</sup> + 56.83*((G-213)/24.68)+506.6 (41)
YG=-1.166*((G-213)/24.68) <sup>2</sup> + 205.1*((G-213)/24.68)+2007 (42)
ZG=0.3105*((G-213)/24.68) <sup>2</sup> + 24.95*((G-213)/24.68)+285.9 (43)
XB=-0.07585*((B-213)/24.68)2+53.26*((B-213)/24.68)+532.1 (44)
YB=0.2312*((B-213)/24.68)2+17.03*((B-213)/24.68)+155.8 (45)
ZB=-0.1808*((B-213)/24.68)2+327.2*((B-213)/24.68)+3228 (46)
_B Taşcı, Y. Erol_
Using the equations, the PWM values are determined according to the targeted values. The obtained
PWM values are substituted into Equations 47,48 and 49 to verify their accuracy.
XT= XR + XG + XB (47)
YT= YR + YG + YB (48)
ZT= ZR + ZG + ZB (49)
For the PWM values, R = 133, G = 248, and B = 128 are found. When these values are substituted into
Equations 11, 12, and 13, X = 2852.4, Y = 2996.35, and Z = 2392.64 are calculated. Substituting these
values into Equations 7 and 8 yields a CCT value of 5000.2 K. Figure 11 shows the xy coordinates of
the RGB LEDs for 5000K.
Figure 11. Representation of RGB LEDs in xy coordinates for 5000K
LEDs are preferred due to their low voltage operation, high efficiency, and long lifespan. To adjust the
light intensity of an LED, an LED driver is required. LED drivers convert the AC or DC voltage at their
input into a current and/or voltage suitable for the LED's operation. The selection of the driver is just as
important as the selection of the LED in LED luminaires. If the correct LED driver is not chosen, the
lifespan of the LEDs will be shortened. There are two main types of drivers on the market based on the
driving methods for LEDs: constant voltage and constant current drivers. Constant voltage LED drivers
are generally used with decorative lighting strips or bar LEDs, while constant current LED drivers are
preferred in general lighting applications such as street lights and projectors. Constant current LED
_B Taşcı, Y. Erol_
drivers drive the LEDs at desired currents such as 350, 500, 700, 1000, and 1400mA, with variable
output voltages determined by the voltage drop across the LED [29].
Various ready-made driver circuits are available on the market for driving LEDs at constant current. In
this PSoC-based study, the constant current C series product from ACG Electronics, shown in Figure
11, was used as the LED driver.
Figure 12. C series constant current LED driver circuit
Adjusting the brightness of an LED with a PWM signal is based on the principle of changing the average
current of the LED. The average value of the PWM signal is given in Equations 50-52.
_T_
_I_
_ort_ _I_ ( _t_ ) _dt_
1 _T_
0 _I_ ( _t_ )
_T_
1 _T_ _on_ _T_
_I_ _I_ ( _t_ ) _dt_ _I_ ( _t_ )
_T_
_on_
(50)
(51)
_T_
_ort_
1 _T_ _on_
0 _I_ max ( _t_ ) _dt_ _T_
0 max _T_ min
_I_ ( _t_ ) _dt_ _I_ ( _t_ ) _dt_
_on_
_T_
_T_
_ort_
_I_ _ort_ _d_ . _I_ max
_ort_ max (52)
Since the minimum value of the signal is 0V, the average value is equal to the product of the duty cycle
and the maximum value of the signal.
5. Programming The Designed System
In the designed system, the color temperature and brightness level at which the RGB LED luminaire
will operate are selected using a touch LCD screen. The touch LCD screen is connected to the PSoC
5LP via UART. The values selected from the touch screen are transmitted to the PSoC. Based on the
experiments conducted, the PSoC sends the obtained PWM values to the LED driver, as shown in Figure
_B Taşcı, Y. Erol_
13. By operating the RGB LEDs with different PWM values, the desired illumination levels are
achieved.
# Intelligent HMI
# LED Drivers
# PSoC CY8CKIT-059 RGB LED Luminaire
Figure 13. Block Diagram
# LCD Touch Display
In LED technology, manufacturers document a lifespan of up to 50,000-60,000 hours through testing.
However, these tests are conducted under specific temperature conditions. Therefore, using a heat sink
in luminaire design is very important. In this study, a heat sink was used to minimize the system's
heating. The overall appearance of the designed system is shown in Figure 14.
Figure 14. General view of the system
_B Taşcı, Y. Erol_
The designed RGB LED luminaire is made using 50x50 RGB LEDs. The circuit of the LED luminaire
consists of 12 parallel groups. Each group contains 3 series-connected RGB LEDs.
6. Conclusion
In this innovative project, which integrates the AS7261 XYZ Chromatic White Color Sensor and the
PSoC microcontroller, a design has been developed that can be particularly utilized by LED luminaire
manufacturers. This study allows for the design of luminaires during the production phase based on
precise data obtained from the AS7261 XYZ Chromatic White Color Sensor. The significant advantage
of this system is that it eliminates the need to use a sensor in the design of every luminaire, thereby
offering a cost-effective solution. This approach ensures accurate color and brightness control while
reducing the overall production costs, making it a viable option for mass production of LED luminaires.
The implementation of the PSoC microcontroller for managing the PWM signals provides precise
control over the RGB LEDs, enabling the attainment of the desired color temperature and brightness
levels. The flexibility and programmability of the PSoC platform allow for easy adjustments and
scalability in production, accommodating various design requirements and preferences. Moreover, by
utilizing a heat sink in the luminaire design, the system's longevity and performance are enhanced,
ensuring that the LEDs operate within optimal temperature ranges. This contributes to the durability and
reliability of the luminaires, meeting the high standards expected in modern lighting solutions. This
project not only demonstrates the practical application of advanced sensor technology and embedded
systems in lighting design but also provides a framework for future developments in the field. Future
studies could explore the thermal effects of prolonged operation to optimize the system's performance
and longevity. Additionally, addressing scalability challenges and investigating adaptability to diverse
luminaire designs can expand the system’s applicability. Future research could also explore ways to
enhance the scalability of the system for industrial-scale applications and improve its adaptability to
various luminaire designs. Additionally, integrating advanced control systems, such as IoT frameworks,
could further expand the system's functionality and practical applications. The methodologies and
findings presented can serve as a reference for further research and innovation, promoting the
development of more efficient and versatile lighting systems. Overall, the integration of the AS7261
sensor with the PSoC microcontroller presents a robust and efficient approach to LED luminaire design,
paving the way for enhanced performance, cost savings, and increased adaptability in the lighting
industry.
7. Author Contribution Statement
All authors contributed equally to this study.
8. Ethics Committee Approval and Conflict of Interest
“There is no need for an ethics committee approval in the prepared article”
“There is no conflict of interest with any person/institution in the prepared article”
9. Ethical Statement Regarding the Use of Artificial Intelligence
During the preparation of this manuscript, the writing assistance tool ‘Grammarly’ was used solely for
limited linguistic editing; all scientific content, analyses, and conclusions remain entirely the
responsibility of the authors.
_B Taşcı, Y. Erol_
10. References
[1] R. McDonald, The Measurement of Colour, Colour Physics for Industry. SDC Publication, England,
1997.
[2] A. K. Türkoğlu and Y. Çalkın, "Siyah Cisim Renk Sıcaklığı," in V. Ulusal Aydınlatma Sempozyumu
Bildiriler Kitapçığı, pp. 44–47, 2009.
[3] R. Ashby, Designer’s Guide to the Cypress PSoC. Elsevier, 2005.
[4] C. Semiconductor, "CY8CKIT-059 PSoC® 5LP Prototyping Kit Guide," Document, 2015.
[5] D. Fedasyuk, R. Holyaka, and T. Marusenkova, "Signal chain of programmable system on chip for
magnetic tracking sensors," in Proc. 2020 IEEE 15th Int. Conf. Adv. Trends Radioelectron.,
Telecommun. Comput. Eng. (TCSET), pp. 46–49, 2020.
[6] B. Alakananda and N. Venugopal, "Development of a programmable system on chip (PSoC) based
quadcopter," in Proc. 2020 4th Int. Conf. Trends Electron. Informatics (ICOEI), pp. 93–98, 2020.
[7] S.-Y. Kim and S.-W. Lee, "A controller system for LED matrix headlights with adjustable brightness
and color," IEIE Trans. Smart Process. Comput., vol. 12, no. 3, pp. 275–282, 2023.
[8] Y. Liu, "Application of embedded systems in electrical engineering automation and energy-saving
design," Appl. Math. Nonlinear Sci., vol. 9, no. 1, 2023.
[9] P. Satvaya and S. Mazumdar, "Performance analysis of a variable flux and CCT-based outdoor LED
luminaire," J. Opt., vol. 52, no. 3, pp. 1305–1317, 2023.
[10] A. B. Barbadekar and P. M. Patil, "A novel method of smart communication using PSoC for
wireless push system," in Proc. 2020 Int. Conf. Emerg. Smart Comput. Informatics (ESCI), pp.
184–187, 2020.
[11] H. S. El-Ghoroury et al., "Color temperature tunable white light based on monolithic color-tunable
light emitting diodes," Opt. Express, vol. 28, no. 2, pp. 1206–1215, 2020.
[12] V. Kumar, S. K. Albert, and N. Chanderasekhar, "Development of programmable system on chip
based weld monitoring system for quality analysis of arc welding process," Int. J. Comput. Integr.
Manuf., vol. 33, no. 9, pp. 925–935, 2020.
[13] R. Kociszewski, "Implementation of PI controller in reconfigurable PSoC microcontroller to
control the speed of mobile robot drives," in Proc. 2020 Int. Conf. Mechatron. Syst. Mater. (MSM),
pp. 1–6, 2020.
[14] B. Tasci and Y. Erol, "PSoC based embedded RF link design," in Proc. 2020 13th Int. Conf.
Commun. (COMM), pp. 381–385, 2020.
[15] W. Wojtkowski and R. Kociszewski, "Stochastic pulse density modulation for a power LED
driver," Photonics Lett. Pol., vol. 12, no. 2, pp. 64–66, 2020.
[16] D. Lin, P. Zhong, and G. He, "Color temperature tunable white LED cluster with color rendering
index above 98," IEEE Photon. Technol. Lett., vol. 29, no. 12, pp. 1050–1053, 2017.
[17] R. Lovasoa et al., "Lens impact investigation on photometric parameters of some LED luminaires
for exterior lighting," in Proc. 2016 Int. Conf. Appl. Theor. Electr. (ICATE), pp. 1–6, 2016.
[18] J. Nandhini, K. Shabatini, and S. Karthikeyan, "Wireless colour sensing arm robot," in Proc. 2015
Int. Conf. Robot., Autom., Control Embedded Syst. (RACE), pp. 1–6, 2015.
[19] T. Komiyama et al., "Study of visible light communication system using RGB LED lights," in Proc.
SICE Annu. Conf. 2011, pp. 1926–1928, 2011.
[20] G. He and L. Zheng, "Color temperature tunable white-light light-emitting diode clusters with high
color rendering index," Appl. Opt., vol. 49, no. 24, pp. 4670–4676, 2010.
[21] Y. N. Chang, C. C. Hung, S. C. Tung, and S.-Y. Chan, "Auto mixed light for RGB LED backlight
module," in Proc. 2009 IEEE Int. Symp. Ind. Electron., pp. 864–869, 2009.
[22] P. Yang, J. Chen, and Y. Chuang, "Improvement on reflective color measurement using a tri-color
LED by multi-point calibration," Opt. Commun., vol. 272, no. 2, pp. 320–324, 2007.
[23] I. Speier and M. Salsbury, "Color temperature tunable white light LED system," in Proc. SPIE Int.
Conf. Solid State Light., vol. 6337, pp. 301–312, 2006.
[24] J. Cho, J. H. Park, J. K. Kim, and E. F. Schubert, "White light‐emitting diodes: history, progress,
and future," Laser Photon. Rev., vol. 11, no. 2, p. 1600147, 2017.
[25] İ. Yılmaz, "Renk uzayları ve dönüşüm algoritmaları," M.S. thesis, Selçuk Üniv., Fen Bilimleri
Enst., Jeodezi ve Fotogrametri ABD, 2002.
[26] H. R. Kang, Color Technology for Electronic Imaging Devices. SPIE Press, 1997.
_B Taşcı, Y. Erol_
[27] İ. Yılmaz, M. Güllü, T. Baybura, and A. O. Erdoğan, "Renk Uzayları ve Renk Dönüşüm Programı
(RDP)," Afyon Kocatepe Üniv. Fen Müh. Bilim. Derg., vol. 2, no. 2, pp. 19–35, Dec. 2002.
[Online]. Available: https://dergipark.org.tr/tr/pub/akufemubid/issue/1594/19803
[28] OSRAM, "AS7261 XYZ Chromatic White Color Sensor Datasheet". [Online]. Available:
https://ams-osram.com/products/sensors/ambient-light-color-spectral-proximity-sensors/amsas7261-spectral-sensing-engine [Accessed: Jul. 23, 2024].
[29] M. Sezer, "Kablosuz haberleşmeli fotovoltaik modüllü LED aydınlatma sistemi," M.S. thesis,
Selçuk Üniv., Fen Bilimleri Enst., Elektrik-Elektronik Müh. ABD, 2018.
섹션 본문
섹션 본문이 없습니다.
참고문헌 19건
- Wireless colour sensing arm robot 2015 10.1109/race.2015.7097240
- Improvement on reflective color measurement using a tri-color LED by multi-point calibration Optics Communications · Elsevier BV · 2006 10.1016/j.optcom.2006.11.051
- Color temperature tunable white-light light-emitting diode clusters with high color rendering index Applied Optics · Optica Publishing Group · 2010 10.1364/ao.49.004670
- Auto mixed light for RGB LED backlight module 2009 10.1109/isie.2009.5213116
- Color temperature tunable white light LED system Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2006 10.1117/12.679688
- Lens impact investigation on photometric parameters of some LED luminaires for exterior lighting 2016 10.1109/icate.2016.7754677
- White light‐emitting diodes: History, progress, and future Laser & Photonics Review · Wiley · 2017 10.1002/lpor.201600147
- Color Temperature Tunable White LED Cluster With Color Rendering Index Above 98 IEEE Photonics Technology Letters · Institute of Electrical and Electronics Engineers · 2017 10.1109/lpt.2017.2702709
- Color temperature tunable white light based on monolithic color-tunable light emitting diodes Optics Express · Optica Publishing Group · 2019 10.1364/oe.375320
- Signal Chain of Programmable System on Chip for Magnetic Tracking Sensors 2022 IEEE 16th International Conference on Advanced Trends in Radioelectronics, Telecommunications and Computer Engineering (TCSET) · 2020 10.1109/tcset49122.2020.235387
- Stochastic pulse density modulation for a power LED driver Photonics Letters of Poland · Photonics Society of Poland · 2020 10.4302/plp.v12i2.1027
- PSoC Based Embedded Rf Link Design 2020 10.1109/comm48946.2020.9142006
- A Novel Method of Smart Communication using PSoC for Wireless Push System 2021 International Conference on Emerging Smart Computing and Informatics (ESCI) · 2020 10.1109/esci48226.2020.9167681
- Development of programmable system on chip-based weld monitoring system for quality analysis of arc welding process International Journal of Computer Integrated Manufacturing · Taylor & Francis · 2020 10.1080/0951192x.2020.1815847
- Implementation of PI Controller in Reconfigurable PSoC Microcontroller to Control the Speed of Mobile Robot Drives 2020 10.1109/msm49833.2020.9202384
- Performance analysis of a variable flux and CCT-based outdoor LED luminaire Journal of Optics · Springer Nature · 2023 10.1007/s12596-023-01113-0
- A Controller System for LED Matrix Headlights with Adjustable Brightness and Color IEIE Transactions on Smart Processing and Computing · The Institute of Electronics Engineers of Korea · 2023 10.5573/ieiespc.2023.12.3.275
- Application of embedded systems in electrical engineering automation and energy-saving design Applied Mathematics and Nonlinear Sciences · De Gruyter · 2024 10.2478/amns-2024-1520
- Why Use the Cypress PSoC? Elsevier eBooks · Elsevier BV · 2005 10.1016/b978-075067780-6/50005-2