# The Design and Comparison of Central and Distributed Light Sensored Smart LED Lighting Systems

Authors: Mehmet Ali Özçelik
Journal: International Journal of Photoenergy
 (2018)

---

## Abstract

There is a lack of published peer-reviewed research comparing the efficiencies of distributed versus central sensor-controlled LED lighting systems. This research proposes improving the smart illumination of a room with external fenestration using central and distributed light sensors. The optical and electrical measurements of the daylight have been made in the case where the light was not distributed evenly and not sufficient. Test results show that the proposed distributed light sensor illumination system has increased the efficiency by 28% when compared to the proposed central system. It has also been shown that the two tested systems are more cost-effective than common smart illumination systems.


---

## Body

## 1. Introduction

Energy-efficient resources are essential in today’s world [1–3]. Petroleum- and coal-based conventional power plants are continuously spreading harmful gasses such as nitrogen dioxide and carbon dioxide that threaten the environment and human health [4]. The renewable energy resources emerge as an effective solution for increasing the need for clean energy [5]. Among renewable energy resources, solar energy is one of the promising ones providing major benefits, such as being environmentally friendly and being silent [6]. Studies show that the photovoltaic (PV) system can reduce release of one ton of carbon dioxide per kWh of electricity [7]. The modular structure of PV panels enables easy integration to energy-efficient buildings. Because such a modular structure can efficiently integrate electrical, electronic, and mechanical systems [8], the electrical energy used for illumination is equivalent to 20% of the total electrical energy production of the world [9, 10]. For this reason, the energy demand for illumination obtained from renewable energy sources is essential in terms of pollution-free environment. In the USA, the UK, and China, at least 20% of the total electric power production from renewable energy sources has been targeted till 2020. Moreover, it is envisaged that renewables will contribute to over 50% by 2050 in some countries [11–13]. Light-emitting diode (LED) technologies have significantly lowered down the energy demand needed for illumination. Moreover, they are durable and environmentally friendly [14–17]. Energy efficiency, smart buildings, and green buildings have recently come to the foreground as some striking topics. Furthermore, an illumination control is usually designed according to the needs of spots in the buildings to decrease energy consumption [18, 19]. With LED luminaires, it is possible to control the light output easily and accurately. Additionally, LED luminaires enable the flexible adaptation of a lighting system to its environment [20]. Artificial lighting accounts for a major fraction of global electrical energy consumption. In a typical office building, the energy consumed due to artificial lighting can be up to 40% of the total energy consumption [21]. As the need for the use of energy resources is increasing, the need for illumination control becomes essential.Automatic or photoelectrically controlled lighting systems in the buildings can significantly reduce the lighting energy consumption down to as low as 50% [22, 23]. Some authors have proposed an illumination model-based method and algorithm for intelligent open-loop lighting control. Specifically, the simulation results were presented using a simplistic virtual room [24, 25]. A single light sensor-driven lighting system was made early by Rubinstein [26] and Peruffo et al. [27]. Distributed optimization algorithms for lighting control with daylight and occupancy adaptation were proposed in Caicedo and Pandharipande [28] and Lee and Kwon [29], under networking and information exchange constraints. Techniques such as daylight harvesting and automatic dimming control with wireless sensor, illumination balancing, Konnex Association Worldwide Standard for Home and Building Control (KNX), digital addressable lighting interface (DALI) standard, and stochastic hill climbing optimization are applied to lighting control [30, 31]. However, DALI and KNX which are used to add intelligence to buildings have higher costs as much as tens of thousands of dollars for the basic installation [14].In smart lighting systems, the illumination level of the indoor environment can be determined by means of light sensors [32]. In these systems, the electrical information obtained from the sensors is converted into illumination knowledge [33]. The light information of the environment can be measured by a centrally located sensor or by placing more than one sensor in a distributed manner [34, 35]. By comparing the ambient light value measured by the sensors and the microprocessor system with the desired reference illumination value, the lighting levels of the LED luminaires can be increased or decreased to achieve the desired illumination rate. In this study, the efficiency and cost analysis of two different proposed smart LED architectures with the centralized and distributed sensor structure were performed in the 54 m2 classroom having two windows. The solution has been designed keeping in mind that low power, low consumption, and scalability are addressed. To the best of the author’s knowledge, it is the first time to compare the central sensor and the distributed sensor smart LED lighting.


## 2. Method

### 2.1. The PV System, LED Illuminating System Set on the DC Grid and the Positioning of LED Panels

As the sunlight hits on PV cells, photovoltage and photocurrent act like a forward diode on a large surface. The current expression resulted from the sunlight hitting on the cell is given.(1)I=IPH−IS⋅expqA⋅kB⋅TV+I⋅RL−1−V+I⋅RSRSH,where IPH is the photocurrent, IS is the saturation current, RL is the load resistance, RS is the series equivalent circuit resistance, RSH is the parallel equivalent circuit resistance, V is the terminal voltage, I is the load current, A is the diode ideality factor, kB is Boltzmann’s constant, and T is the temperature of the PV panel, respectively. As it is seen, photocurrent, saturation current, load resistance, series equivalent circuit resistance, parallel equivalent circuit resistance, terminal voltage, load current, diode ideality factor, Boltzman’s constant, and temperature of the PV panel are denoted by IPH, IS, RL, Rs, RSH, V, I, A, k, and T, respectively.The equivalent circuit diagram of a solar cell is shown in Figure1 [36].Figure 1
Equivalent circuit diagram for solar cell.In the smart LED lighting system, six PV panels are used and each panel is rated at 12 V and 65 W. PV panels are connected in series and are parallel with PWM charge regulators to obtain 36 V. Table1 shows the electrical parameters of the PV and the LED lighting systems.Table 1
Electrical parameters of the PV and the LED lighting systems.
Maximum power PV system
390 W
Maximum current of PV system
10.83 A
The maximum current and power of each of the LED panel lamp
1 A/36 W
The number of LED lamps
8
The maximum power of the LED illuminating system
288 WThe lumens per watt (lm/W) of the LED lamps used in the lighting systems is 88. The maximum luminous flux is 3200 lumen. The specifications of the room used in the experiment are as follows: (1) The room shape is rectangular having widtha=6m and length b=9m2). The room height is h=3m3). The vertical distance between the working plane and the luminaire is 1.85 m. Based on the EN 12464 lighting of indoor work places standard [37], the recommended classroom light level is 300 lux.The LED distribution curve for the classroom illumination is shown in Figure2.Figure 2
Light distribution curve for the classroom [38].Calculations of energy storage capacity are as follows:(2)MaximumdailypowerconsumptionMDPC=totalLEDpanelspower×operationtime=288×8=2304Wh,Batterycapacity=MDPCchargecontrollerefficiency×depthdischarge×systemvoltage=23040.9×0.75×36=≅100Ah.When the battery efficiency is 80%, the capacity value must be increased by100−80=20%. In this case, the required battery capacity is as follows: the required battery capacity=100+100×0.20=120Ah.The algorithm designed for the illumination control system in this study is a closed loop. In the closed-loop system, the light sensors are installed on the ceiling where changes in illuminance are related to variations in illuminance on the work surface. In areas where either indirect or direct-indirect electrical lighting systems are used, the light sensor should be installed at a place that should not get direct light from luminaires [39]. The placement of the light sensors used in the distributed and central illumination systems together with the illuminance meters are given in Figure 3. The light sensors are placed 60 degrees so that they are not exposed to direct daylight or LED light.Figure 3
Locations of light sensors and illuminance meters: (a) light sensors of the distributed system, (b) light sensor of the central system, and (c) illuminance meters.A TEMT6000 Ambient Light Sensor is utilized in this work [10, 40]. This sensor can measure incident illuminance up to 1000 lux with a peak sensitivity at around 580 nm with a spectral sensitivity curve adapted to match the human eye responsivity. The sensor output is an analog current information, converted to a variable voltage (0–5 V) that is read by the STM32F407 microcontroller through a 10 K resistor. The photocurrent and illuminance of the sensor are presented in Figure 4.Figure 4
The relative photocurrent and illuminance of the TEMT6000 ambient light sensor [40].The sensor TEMT6000 is the wide angle of half sensitivityφ=±60°. Its relative radiant sensitivity and angular displacement are given in Figure 5. This device of the sensor is strictly linear between ≤10 lux and ≥1000 lux, and the typical photocurrent is specified for 50 μA (at 100 lx). The photocurrent (IPCE) and illuminance equation of the TEMT6000 is given.
(3)Illuminancelux=12IPCEμA.Figure 5
Relative radiant sensitivity and angular displacement of TEMT6000 [40].In the system where the ambient light sensors are used, the purpose is to adjust the LED illumination level to the desired one and thus to decrease power loss. In daylight-exposed buildings and spaces, it can be realized that significant energy saving is achieved, which improves the quality of the visual environment and reduces the demand for electric illumination through the effective employment of automatic lighting controls [41, 42]. A light sensor with a wide spatial sensitivity mounted on the ceiling will have more difficulty during tracking the daylight when it receives more direct light from the window [43]. Also, the presence sensor was used. The reason for using the presence sensor is for the system to cut off energy to save energy and to reduce unnecessary power usage when there is no presence in a given environment for a certain time. The presence sensor’s detection distance is 360°, 32 meters.In the applied central and distributed sensored PV-based smart LED lighting system, an option for switching off the grid is available. The PV-based smart LED illuminating system view is shown in Figure6. The block charts of the central and the distributed systems are illustrated in Figures 7 and 8, respectively. A direct current (DC) obtained from PV panel’s LED lighting system using a DC-level dimming technique has been proposed and compared with distributed (zone) and central light sensor smart control systems. The smart illumination of the 54 m2 classroom having two windows, each 3.1 m long, has been implemented in a PV-equipped building. The lighting system has been designed for 36 V DC. To obtain this value, 12 V battery and PV panel groups have been used. The smart lighting system consists of 36 W over plaster LED panels designed to work with both PV system and grid. The windows are positioned at one side of the classroom which impede the homogeneous distribution of lighting the evening or in cloudy weathers. Hence, the control of the LED panels is carried out separately for the windows and the walls.Figure 6
PV-based smart LED illuminating system.Figure 7
PV-based central sensor smart LED lighting system block chart.Figure 8
PV-based distributed sensor smart LED illuminating system block chart.In the PV-based central sensor smart LED illuminating system, the block chart as shown in Figure7 has been adjusted in such a way that, with the potentiometer connected to the TEMT6000 ambient light sensor, the ambient reference value can be obtained. The reference value is designed as 300 lux. The maximum rate of this reference for a classroom environment is 350 lux while the minimum value is 250 lux. These values are in the hysteresis range, and these values have been determined by users’ preferences [10]. If the light knowledge taken from the ambient light sensor is less than the reference minimum limit, the volume of the light is increased. Similarly, both actions are performed by the proposed algorithm with the PWM method. The sensor light information is sent to the analog input of the STM32F407 microcontroller kit. The PV-based central sensor smart LED illuminating system block chart is shown Figure 7, The PWM control output over the optocoupler brings the illumination level of LED lamps to the required level by adjusting the duty cycle of MOSFETs.The block chart of the PV-based distributed sensor smart LED illuminating system is shown in Figure8. In the applied distributed sensored PV-based illuminating system, there exists an option for switching to grid connection.With potentiometers 1 and 2 connected to the TEMT6000 light sensors, the reference lighting level of the environment can be adjusted. By adjusting PWM values that are produced based on the reference lighting level, thanks to the IRFP460 N-Channel Power MOSFETs, it is possible to control one by one the LED lighting level on the wall column and the window column separately. The reference lighting level depends on the user preference which is recommended as 300 lux for the classroom environment [15].The right detection of the sensor points is important which affects the whole system performance. For example, when the system is exposed to direct sunlight or LED panel light, wrong feedbacks can be given to the control algorithm. Moreover, the same wrong feedbacks could be caused due to the shadows created by human or object motions [43]. For this reason, the sensors have been positioned close to the ceiling and in the mid points of LED illumination groups. At these points, the sensors will not be exposed to the LED panel, shadow lightings, and direct daylight. If the light knowledge taken from the ambient light sensors is below the reference minimum limit, the volume of the light is increased; in case the light knowledge is over the maximum reference limit, the light volume is decreased. The sensor light knowledge is sent to the analog input of the STM32F407 microcontroller kit. The PWM control output over the optocoupler brings the illumination level of LED lamps to the desired level by adjusting the duty cycle of MOSFETs. In the block structure seen in Figure 8, if there exists solar irradiation or there is redundant power in battery groups, DC power, without requiring conversion into AC, can meet the LED light energy. As shown in Figure 6, the ambient light sensors have been placed near the ceiling of the classroom. The lux voltage information obtained from the ambient sensors is sent to the microcontroller card’s 32-bit analog input. The values obtained from here, in relation with the reference value by the algorithm, regulates the duty cycle of both MOSFETs. Thus, by adjusting the lighting levels of the LED panels, the desired level of the lighting of the environment is reached. With illumination control, a high level of energy saving has been reached.


### 2.2. Smart Control Algorithm of Central Sensor and Distributed Sensors LED Lighting System

In the proposed control algorithm, in the light of the voltage information based on the light received from the central or distributed ambient light sensors, it could be adjusted automatically which LED will work at which illumination lux value. The block diagrams and pseudocodes of the proposed algorithm can be seen in Figures9 and 10, Pseudocodes 1 and 2, respectively. Here the Ps information signifies the presence sensor’s 0 or 1 information which is obtained on the human presence in the environment. The user-defined inputs to the control algorithm are room reference light (RRL), presence sensor time delay (Pstd) and its detection distance, increment (I) value, sampling period, and hysteresis (H). The light information and the active (logic 1) and passive (logic 0) states of the presence sensor signify the nonuser-definable entry information. This nonuser-definable input is the authentic information received from the presence sensor. The hysteresis (H) is a user-definable input that is determined at an accepted RRL interval of error 1 and error 2. Value H enables the illumination level to be at a certain interval and precludes unnecessary MOSFET switching losses by not applying duty cycles at minimum changes. Value increment (I) signifies PWM outputs’ increase or decrease coefficient. If the value I in Figures 9 and 10 decreases, then the tracking of the MOSFET for regulating PWM will be slower and the time to reach reference value illumination will be longer. If the I value increases, then the tracking will be faster. However, a large value I will lead to overshoot. The value of I is a user-definable input. In the proposed approach, 500 ms was selected for the sampling period because it is a good trade-off between power and reactivity [14]. The aim of the control algorithm is to minimize error 1 and error 2, as calculated in (4), which should be kept in the hysteresis range. These error signals are calculated
(4)Error1,2t1,t2=Room_Reference_Light−Measure_Light1,2.Figure 9
The proposed control algorithm central ambient light sensor smart LED system.Figure 10
The proposed control algorithm-distributed ambient light sensor smart LED system.The STM32F407 control card minimizes errors 1 and 2 by adjusting the duty cycle value and over the optocouplers composes the duty cycle (PWM1 and PWM2) signals of MOSFET 1 and MOSFET 2. This way, the lighting level of the LED groups by the window and wall, which are connected to the MOSFETS’ outputs, is controlled. The control card algorithm calculates the PWM values according to
(5)PWM1,2t1,t2=Presence_value0or1PWM1,2t1,t2+Iiferror1,2t1,t2≥I,Presence_value0or1PWM1,2t1,t2−Iiferror1,2t1,t2≤I.As it is seen in equation5, the logic 1 information, which is received from the presence sensor in line with the human presence, will start the PWM signals’ creation. The error 1 and 2 values are kept at hysteresis level, and the increase and decrease of the PWM values are provided with value I. The LED panels in the central system are controlled by the MOSFET (Figure 7) PWM signal, and the LED panels in the distributed system are controlled by the PWM1,2 signals of MOSFET 1 and MOSFET 2 (Figure 8). The PWM values of the MOSFETs are produced by the control algorithm according to the reference illumination value. In this way, the LED panels give light at the desired illumination level. All the LED panels in the central sensor illumination system in Figure 9 are controlled by the values obtained from a single light sensor.The sensor class shown in Figure9 is located at the center of the ceiling. The information from the sensor is compared with the reference value of 300 lux, and the brightness of all the LED lamps is controlled by a single PWM signal.In Figure10, the first sensor gives the brightness information of the four LED lamps on the wall side and the second sensor gives the brightness information of the four LED lamps on the side of windows. The obtained information is compared with the reference value (300 lux), and two PWM signals are obtained. With these PWM signals, the first and second LED lamp groups are controlled separately. The pseudocode of the control algorithm for the central sensor smart lighting system is shown in Pseudocode 1.Pseudocode 1: Pseudocode of the control algorithm for the central sensor smart lighting system.
#define Default_Room_Reference_Light
Room_Reference_Light=User_Preference
Light=Light_From_ADC_Lightsensor
Presence_Sensor=Presence_From_Timer
if presence =1      //presence is sensed
smart_lightingt=1;     // start the saving system
else
smart_lighting=0;
end if
while smart_lighting=1 do
Measure_Light
error=Room_Reference_Light-Measure_Light1
if error>hysteresis then     //adjust lighting level
PWM=PWM-I;
else
PWM=PWM+I;
end if
end whileWhen the codes in Pseudocode1 are examined, the control algorithm starts with the presence sensor being active. With the PWM+I command, the light is increased, and with the PWM-I command, the light of all the lamps is decreased. The pseudocode of the control algorithm for the distributed sensor smart lighting system is shown in Pseudocode 2.Pseudocode 2: Pseudocode of the control algorithm for the distributed sensor smart lighting system.
#define Default_Room_Reference_Light
Room_Reference_Light=User_Preference
Light1=Light_From_ADC_Lightsensor1
Light2=Light_From_ADC_Lightsensor2
Presence_Sensor=Presence_From_Timer
if presence =1
smart_lightingt=1;
else
smart_lighting=0;
end if
while smart_lighting=1 do
Measure_Light1
Measure_Light2
error1=Room_Reference_Light-Measure_Light1
error2=Room_Reference_Light-Measure_Light2
if error1>hysteresis then
PWM1=PWM1-I;
else
PWM1=PWM1+I;
end if
if error2>hysteresis then
PWM2=PWM2-I;
else
PWM2=PWM2+I;
end if
end whileIn the proposed smart system algorithm, the illumination level is tried to be kept at a certain value, and in case of minimal changes, the MOSFET PWM has not been regulated. At the same time, the LED lamp power has been regulated to the requested illumination value, which prevents unnecessary power loss and thus brings about an efficient lighting system.In the distributed sensor LED lighting system, as shown in Pseudocode2, MOSFET1 driven by PWM1 signals controls LED panels by the wall side. On the other hand, MOSFET2 driven by PWM2 signals controls LED panels by the window side.In this way, the LED panel groups by the wall and the window are managed by multiple ambient light sensors and distributed smart. Figure11 illustrates the oscilloscope screenshot of the working system, as the impact of the outer environment lighting level by the window side is higher in comparison with that of the wall side; the LEDs by the window are used with less lighting level whereas the ones by the wall are used at a higher lighting level. As it is noticed from the oscilloscope screenshot, the rate of the window side duty cycle rate is 27.61, but the wall side duty cycle rate is higher. Consequently, these results show that the lighting level of the groups of the LED lamps in the classroom has been efficiently controlled.Figure 11
Distributed sensored LED control system working example and the oscilloscope image.In Figure11, it is targeted that the illumination level on the work surface is 300 lux. The contrast in LED lamps means that the illumination in the window area is higher than the light on the wall side. When the proposed distributed system balances this situation, the brightness levels of the lamps are as shown in Figure 11.When the distributed sensored smart LED lighting system is controlled with a central single light sensor, it is seen that the LEDs by the window side work with a higher illumination value. Here, the positioning of the single light sensor can be seen in Figure12.Figure 12
Central sensored LED control system working example image.


## 2.1. The PV System, LED Illuminating System Set on the DC Grid and the Positioning of LED Panels

As the sunlight hits on PV cells, photovoltage and photocurrent act like a forward diode on a large surface. The current expression resulted from the sunlight hitting on the cell is given.(1)I=IPH−IS⋅expqA⋅kB⋅TV+I⋅RL−1−V+I⋅RSRSH,where IPH is the photocurrent, IS is the saturation current, RL is the load resistance, RS is the series equivalent circuit resistance, RSH is the parallel equivalent circuit resistance, V is the terminal voltage, I is the load current, A is the diode ideality factor, kB is Boltzmann’s constant, and T is the temperature of the PV panel, respectively. As it is seen, photocurrent, saturation current, load resistance, series equivalent circuit resistance, parallel equivalent circuit resistance, terminal voltage, load current, diode ideality factor, Boltzman’s constant, and temperature of the PV panel are denoted by IPH, IS, RL, Rs, RSH, V, I, A, k, and T, respectively.The equivalent circuit diagram of a solar cell is shown in Figure1 [36].Figure 1
Equivalent circuit diagram for solar cell.In the smart LED lighting system, six PV panels are used and each panel is rated at 12 V and 65 W. PV panels are connected in series and are parallel with PWM charge regulators to obtain 36 V. Table1 shows the electrical parameters of the PV and the LED lighting systems.Table 1
Electrical parameters of the PV and the LED lighting systems.
Maximum power PV system
390 W
Maximum current of PV system
10.83 A
The maximum current and power of each of the LED panel lamp
1 A/36 W
The number of LED lamps
8
The maximum power of the LED illuminating system
288 WThe lumens per watt (lm/W) of the LED lamps used in the lighting systems is 88. The maximum luminous flux is 3200 lumen. The specifications of the room used in the experiment are as follows: (1) The room shape is rectangular having widtha=6m and length b=9m2). The room height is h=3m3). The vertical distance between the working plane and the luminaire is 1.85 m. Based on the EN 12464 lighting of indoor work places standard [37], the recommended classroom light level is 300 lux.The LED distribution curve for the classroom illumination is shown in Figure2.Figure 2
Light distribution curve for the classroom [38].Calculations of energy storage capacity are as follows:(2)MaximumdailypowerconsumptionMDPC=totalLEDpanelspower×operationtime=288×8=2304Wh,Batterycapacity=MDPCchargecontrollerefficiency×depthdischarge×systemvoltage=23040.9×0.75×36=≅100Ah.When the battery efficiency is 80%, the capacity value must be increased by100−80=20%. In this case, the required battery capacity is as follows: the required battery capacity=100+100×0.20=120Ah.The algorithm designed for the illumination control system in this study is a closed loop. In the closed-loop system, the light sensors are installed on the ceiling where changes in illuminance are related to variations in illuminance on the work surface. In areas where either indirect or direct-indirect electrical lighting systems are used, the light sensor should be installed at a place that should not get direct light from luminaires [39]. The placement of the light sensors used in the distributed and central illumination systems together with the illuminance meters are given in Figure 3. The light sensors are placed 60 degrees so that they are not exposed to direct daylight or LED light.Figure 3
Locations of light sensors and illuminance meters: (a) light sensors of the distributed system, (b) light sensor of the central system, and (c) illuminance meters.A TEMT6000 Ambient Light Sensor is utilized in this work [10, 40]. This sensor can measure incident illuminance up to 1000 lux with a peak sensitivity at around 580 nm with a spectral sensitivity curve adapted to match the human eye responsivity. The sensor output is an analog current information, converted to a variable voltage (0–5 V) that is read by the STM32F407 microcontroller through a 10 K resistor. The photocurrent and illuminance of the sensor are presented in Figure 4.Figure 4
The relative photocurrent and illuminance of the TEMT6000 ambient light sensor [40].The sensor TEMT6000 is the wide angle of half sensitivityφ=±60°. Its relative radiant sensitivity and angular displacement are given in Figure 5. This device of the sensor is strictly linear between ≤10 lux and ≥1000 lux, and the typical photocurrent is specified for 50 μA (at 100 lx). The photocurrent (IPCE) and illuminance equation of the TEMT6000 is given.
(3)Illuminancelux=12IPCEμA.Figure 5
Relative radiant sensitivity and angular displacement of TEMT6000 [40].In the system where the ambient light sensors are used, the purpose is to adjust the LED illumination level to the desired one and thus to decrease power loss. In daylight-exposed buildings and spaces, it can be realized that significant energy saving is achieved, which improves the quality of the visual environment and reduces the demand for electric illumination through the effective employment of automatic lighting controls [41, 42]. A light sensor with a wide spatial sensitivity mounted on the ceiling will have more difficulty during tracking the daylight when it receives more direct light from the window [43]. Also, the presence sensor was used. The reason for using the presence sensor is for the system to cut off energy to save energy and to reduce unnecessary power usage when there is no presence in a given environment for a certain time. The presence sensor’s detection distance is 360°, 32 meters.In the applied central and distributed sensored PV-based smart LED lighting system, an option for switching off the grid is available. The PV-based smart LED illuminating system view is shown in Figure6. The block charts of the central and the distributed systems are illustrated in Figures 7 and 8, respectively. A direct current (DC) obtained from PV panel’s LED lighting system using a DC-level dimming technique has been proposed and compared with distributed (zone) and central light sensor smart control systems. The smart illumination of the 54 m2 classroom having two windows, each 3.1 m long, has been implemented in a PV-equipped building. The lighting system has been designed for 36 V DC. To obtain this value, 12 V battery and PV panel groups have been used. The smart lighting system consists of 36 W over plaster LED panels designed to work with both PV system and grid. The windows are positioned at one side of the classroom which impede the homogeneous distribution of lighting the evening or in cloudy weathers. Hence, the control of the LED panels is carried out separately for the windows and the walls.Figure 6
PV-based smart LED illuminating system.Figure 7
PV-based central sensor smart LED lighting system block chart.Figure 8
PV-based distributed sensor smart LED illuminating system block chart.In the PV-based central sensor smart LED illuminating system, the block chart as shown in Figure7 has been adjusted in such a way that, with the potentiometer connected to the TEMT6000 ambient light sensor, the ambient reference value can be obtained. The reference value is designed as 300 lux. The maximum rate of this reference for a classroom environment is 350 lux while the minimum value is 250 lux. These values are in the hysteresis range, and these values have been determined by users’ preferences [10]. If the light knowledge taken from the ambient light sensor is less than the reference minimum limit, the volume of the light is increased. Similarly, both actions are performed by the proposed algorithm with the PWM method. The sensor light information is sent to the analog input of the STM32F407 microcontroller kit. The PV-based central sensor smart LED illuminating system block chart is shown Figure 7, The PWM control output over the optocoupler brings the illumination level of LED lamps to the required level by adjusting the duty cycle of MOSFETs.The block chart of the PV-based distributed sensor smart LED illuminating system is shown in Figure8. In the applied distributed sensored PV-based illuminating system, there exists an option for switching to grid connection.With potentiometers 1 and 2 connected to the TEMT6000 light sensors, the reference lighting level of the environment can be adjusted. By adjusting PWM values that are produced based on the reference lighting level, thanks to the IRFP460 N-Channel Power MOSFETs, it is possible to control one by one the LED lighting level on the wall column and the window column separately. The reference lighting level depends on the user preference which is recommended as 300 lux for the classroom environment [15].The right detection of the sensor points is important which affects the whole system performance. For example, when the system is exposed to direct sunlight or LED panel light, wrong feedbacks can be given to the control algorithm. Moreover, the same wrong feedbacks could be caused due to the shadows created by human or object motions [43]. For this reason, the sensors have been positioned close to the ceiling and in the mid points of LED illumination groups. At these points, the sensors will not be exposed to the LED panel, shadow lightings, and direct daylight. If the light knowledge taken from the ambient light sensors is below the reference minimum limit, the volume of the light is increased; in case the light knowledge is over the maximum reference limit, the light volume is decreased. The sensor light knowledge is sent to the analog input of the STM32F407 microcontroller kit. The PWM control output over the optocoupler brings the illumination level of LED lamps to the desired level by adjusting the duty cycle of MOSFETs. In the block structure seen in Figure 8, if there exists solar irradiation or there is redundant power in battery groups, DC power, without requiring conversion into AC, can meet the LED light energy. As shown in Figure 6, the ambient light sensors have been placed near the ceiling of the classroom. The lux voltage information obtained from the ambient sensors is sent to the microcontroller card’s 32-bit analog input. The values obtained from here, in relation with the reference value by the algorithm, regulates the duty cycle of both MOSFETs. Thus, by adjusting the lighting levels of the LED panels, the desired level of the lighting of the environment is reached. With illumination control, a high level of energy saving has been reached.


## 2.2. Smart Control Algorithm of Central Sensor and Distributed Sensors LED Lighting System

In the proposed control algorithm, in the light of the voltage information based on the light received from the central or distributed ambient light sensors, it could be adjusted automatically which LED will work at which illumination lux value. The block diagrams and pseudocodes of the proposed algorithm can be seen in Figures9 and 10, Pseudocodes 1 and 2, respectively. Here the Ps information signifies the presence sensor’s 0 or 1 information which is obtained on the human presence in the environment. The user-defined inputs to the control algorithm are room reference light (RRL), presence sensor time delay (Pstd) and its detection distance, increment (I) value, sampling period, and hysteresis (H). The light information and the active (logic 1) and passive (logic 0) states of the presence sensor signify the nonuser-definable entry information. This nonuser-definable input is the authentic information received from the presence sensor. The hysteresis (H) is a user-definable input that is determined at an accepted RRL interval of error 1 and error 2. Value H enables the illumination level to be at a certain interval and precludes unnecessary MOSFET switching losses by not applying duty cycles at minimum changes. Value increment (I) signifies PWM outputs’ increase or decrease coefficient. If the value I in Figures 9 and 10 decreases, then the tracking of the MOSFET for regulating PWM will be slower and the time to reach reference value illumination will be longer. If the I value increases, then the tracking will be faster. However, a large value I will lead to overshoot. The value of I is a user-definable input. In the proposed approach, 500 ms was selected for the sampling period because it is a good trade-off between power and reactivity [14]. The aim of the control algorithm is to minimize error 1 and error 2, as calculated in (4), which should be kept in the hysteresis range. These error signals are calculated
(4)Error1,2t1,t2=Room_Reference_Light−Measure_Light1,2.Figure 9
The proposed control algorithm central ambient light sensor smart LED system.Figure 10
The proposed control algorithm-distributed ambient light sensor smart LED system.The STM32F407 control card minimizes errors 1 and 2 by adjusting the duty cycle value and over the optocouplers composes the duty cycle (PWM1 and PWM2) signals of MOSFET 1 and MOSFET 2. This way, the lighting level of the LED groups by the window and wall, which are connected to the MOSFETS’ outputs, is controlled. The control card algorithm calculates the PWM values according to
(5)PWM1,2t1,t2=Presence_value0or1PWM1,2t1,t2+Iiferror1,2t1,t2≥I,Presence_value0or1PWM1,2t1,t2−Iiferror1,2t1,t2≤I.As it is seen in equation5, the logic 1 information, which is received from the presence sensor in line with the human presence, will start the PWM signals’ creation. The error 1 and 2 values are kept at hysteresis level, and the increase and decrease of the PWM values are provided with value I. The LED panels in the central system are controlled by the MOSFET (Figure 7) PWM signal, and the LED panels in the distributed system are controlled by the PWM1,2 signals of MOSFET 1 and MOSFET 2 (Figure 8). The PWM values of the MOSFETs are produced by the control algorithm according to the reference illumination value. In this way, the LED panels give light at the desired illumination level. All the LED panels in the central sensor illumination system in Figure 9 are controlled by the values obtained from a single light sensor.The sensor class shown in Figure9 is located at the center of the ceiling. The information from the sensor is compared with the reference value of 300 lux, and the brightness of all the LED lamps is controlled by a single PWM signal.In Figure10, the first sensor gives the brightness information of the four LED lamps on the wall side and the second sensor gives the brightness information of the four LED lamps on the side of windows. The obtained information is compared with the reference value (300 lux), and two PWM signals are obtained. With these PWM signals, the first and second LED lamp groups are controlled separately. The pseudocode of the control algorithm for the central sensor smart lighting system is shown in Pseudocode 1.Pseudocode 1: Pseudocode of the control algorithm for the central sensor smart lighting system.
#define Default_Room_Reference_Light
Room_Reference_Light=User_Preference
Light=Light_From_ADC_Lightsensor
Presence_Sensor=Presence_From_Timer
if presence =1      //presence is sensed
smart_lightingt=1;     // start the saving system
else
smart_lighting=0;
end if
while smart_lighting=1 do
Measure_Light
error=Room_Reference_Light-Measure_Light1
if error>hysteresis then     //adjust lighting level
PWM=PWM-I;
else
PWM=PWM+I;
end if
end whileWhen the codes in Pseudocode1 are examined, the control algorithm starts with the presence sensor being active. With the PWM+I command, the light is increased, and with the PWM-I command, the light of all the lamps is decreased. The pseudocode of the control algorithm for the distributed sensor smart lighting system is shown in Pseudocode 2.Pseudocode 2: Pseudocode of the control algorithm for the distributed sensor smart lighting system.
#define Default_Room_Reference_Light
Room_Reference_Light=User_Preference
Light1=Light_From_ADC_Lightsensor1
Light2=Light_From_ADC_Lightsensor2
Presence_Sensor=Presence_From_Timer
if presence =1
smart_lightingt=1;
else
smart_lighting=0;
end if
while smart_lighting=1 do
Measure_Light1
Measure_Light2
error1=Room_Reference_Light-Measure_Light1
error2=Room_Reference_Light-Measure_Light2
if error1>hysteresis then
PWM1=PWM1-I;
else
PWM1=PWM1+I;
end if
if error2>hysteresis then
PWM2=PWM2-I;
else
PWM2=PWM2+I;
end if
end whileIn the proposed smart system algorithm, the illumination level is tried to be kept at a certain value, and in case of minimal changes, the MOSFET PWM has not been regulated. At the same time, the LED lamp power has been regulated to the requested illumination value, which prevents unnecessary power loss and thus brings about an efficient lighting system.In the distributed sensor LED lighting system, as shown in Pseudocode2, MOSFET1 driven by PWM1 signals controls LED panels by the wall side. On the other hand, MOSFET2 driven by PWM2 signals controls LED panels by the window side.In this way, the LED panel groups by the wall and the window are managed by multiple ambient light sensors and distributed smart. Figure11 illustrates the oscilloscope screenshot of the working system, as the impact of the outer environment lighting level by the window side is higher in comparison with that of the wall side; the LEDs by the window are used with less lighting level whereas the ones by the wall are used at a higher lighting level. As it is noticed from the oscilloscope screenshot, the rate of the window side duty cycle rate is 27.61, but the wall side duty cycle rate is higher. Consequently, these results show that the lighting level of the groups of the LED lamps in the classroom has been efficiently controlled.Figure 11
Distributed sensored LED control system working example and the oscilloscope image.In Figure11, it is targeted that the illumination level on the work surface is 300 lux. The contrast in LED lamps means that the illumination in the window area is higher than the light on the wall side. When the proposed distributed system balances this situation, the brightness levels of the lamps are as shown in Figure 11.When the distributed sensored smart LED lighting system is controlled with a central single light sensor, it is seen that the LEDs by the window side work with a higher illumination value. Here, the positioning of the single light sensor can be seen in Figure12.Figure 12
Central sensored LED control system working example image.


## 3. Results and Discussions

### 3.1. The Comparison of the Proposed Central and Distributed Sensor Lighting System

The central and distributed sensor smart LED lighting system in the DC grid based on the PV system is performed, and the experiment outcomes were compared. Various experiments were performed on the developed smart LED lighting system powered by the DC grid to understand the performance under several environments in classroom conditions.At the time of implemention of this experiment, the system has been working nonstop for two months and the values obtained belong to the date May 28. During the application, at the hours towards the evening it was noticed that the LED groups by the window side did not illuminate whereas those by the wall side illuminated. For the sunlight illumination measurement by the window side, a DT-1307 solar power meter was utilized (range: 0 to 1.999 W/m2, resolution: 1 W/m2, accuracy: ±10 W/m2), and for the classroom ambient lighting measurement, a DT-8809A professional light meter (max. range: 400,000 lux, resolution: 0.1 lux, accuracy: ±5%, spectral response: CIE photopic, photo detector: one silicon photodiode and spectral response filter) was utilized, as shown in Figure 13.Figure 13
(a) Solar power meter (W/m2) and (b) light meter (lux).
(a)
(b)Depending on the light detected by the photocensors on the ceiling at night time, the workplace task illuminance value, which is 300 lux, has been acquired. In this way, the correlation between the illuminance levels on the ceiling has been provided.The saved power values can be calculated by (6) [10], where Pc (t) and Pd (t) represent the output power of the proposed central and the proposed distributed sensor control lighting system, respectively [10].
(6)Psavedt=ΔP=∫0tPctdt−∫0tPdtdt.In the experiment, three cases are conducted to compare the algorithm with both proposed central and distributed light sensors smart lighting systems.Case 1.
Towards evening, the time is 18:00 PM. While the solar power meter by the window shows 8 W/m2 value, PWM outputs have the values for the window side at 0% and the wall side at 25%. Namely, while the LEDs by the window side are illuminating, the LEDs by the wall side of the classroom are functioning at a 25% duty cycle level. When the control system has reached the reference lighting level, the total current value of the LEDs by the wall side is measured as 0.45 A and the current value of the LED lamps by the window side is measured as 0 A. In this case, the power value of the proposed distributed ambient sensor smart LED lighting system is 36×0.45=16.2W and the power of the central ambient sensor smart LED lighting system is 32.4 W. The difference is 32.4−16.2=16.2W. The oscilloscope screen of the PWM signals of the distributed sensored led lighting system for case 1 is given in Figure 14.Case 2.
The time is 19:30 PM. While the solar power meter shows 1.3 W/m2, PWM outputs have the following values: for the LEDs by the window side 34.05% and for the LEDs by the wall side 90%. When the control system has reached the reference lighting level, the total current value for the wall side LED panels is measured as 2.3 A and the current value for the window side LED panels is measured 0.6 A. In this case, the power of the proposed distributed ambient sensor smart LED lighting system is 362.3+0.6=104.4W and the power of the central ambient sensor LED lighting system is 165.6 W. The difference value is 165.6−104.4=61.2W. The oscilloscope screen of PWM signals of the distributed sensor led lighting system for case 2 is given in Figure 15.Case 3.
Time is 19:45 PM, the solar power meter shows 0.1 W/m2 value, PWM outputs indicate the following values; for the LED panels by the window side 100% and for the LED panels by the wall side 90%. When the control system has reached 304 lux reference lighting level, the total current value of the LED panels by the wall side is measured as 1.99 A, the current value of the LED panels by the window side is 2 A. In this case, while the power of the distributed sensor smart LED lighting system is 361.99+2=143.64W, that of the central sensor smart LED lighting system’s is 143.2 W. The difference value between the two is 143.20−143.64=−0.44W. Here, it can be seen that the results are almost identical. The oscilloscope screen PWM signals of distributed sensor LED lighting system for case 3 is given in Figure 16.Figure 14
PWM signals of the proposed distributed lighting system: case 1.Figure 15
PWM signals of the proposed distributed lighting system: case 2.Figure 16
PWM signals of the proposed distributed lighting system: case 3.All the three cases above were applied when it got dark and there was need for artificial illumination. At the earlier hours of the day, artificial illumination was not needed as the classroom had windows. Central and distributed light sensor artificial illumination was applied from 18:00 PM until 20:15 PM (the last hour before the classroom is closed). When all three cases are analyzed, it is seen that the proposed distributed light sensor smart illumination has been successful in capturing the desired reference values, and when compared with the proposed central system, it is seen that the proposed distributed system provides more energy saving than the proposed central sensor smart LED lighting system.In conventional fluorescent lamps, the facility of adjusting PWM is not possible. At the same time, conventional LED illuminating systems function with fixed power. In the proposed central sensored smart LED system, in line with voltage information received from the ambient light sensor stationed in the midpoint of the classroom close to the ceiling, the illumination level of all the LED panels is controlled. With the proposed distributed light sensor lighting system, wall and window LED panels are self-adapting and dimmed separately, and by bringing about an energy-saving situation, it has increased the efficiency of both illumination systems. The comparison of the proposed distributed light sensor smart LED lighting system with that of the central smart light sensor LED system is given in Table2. By showing the powers consumed by the two systems and their power differences starting towards the evening time, the comparison of the two systems presents us a clearer understanding.Table 2
The comparison of the proposed distributed sensors lighting with that of the central system.
Time
Solar power (W/m2)
The total consumed power in distributed sensor smart LED lighting system (W)
The total consumed power in central sensor smart LED lighting system (W)
∆P (power difference) (W)
18:00
8
16.2
32.4
16.2
18:15
7.1
21.6
43.2
21.6
18:30
6.2
34.5
69.2
34.6
18:45
4.6
44.6
89.2
44.6
19:00
2.9
61.9
123.8
61.9
19:15
2.1
84.9
169.9
84.9
19:30
1.3
104.4
165.6
61.2
19:45
0.1
143.6
143.2
−0.4
20:00
0
146.1
146.1
0
20:15
0
146.1
146.1
0
∆Mean
∆PD=80.3
∆PC=112.8In Table2, when the power change between the proposed central ambient sensor smart LED illumination system and the proposed distributed ambient light sensor LED illumination system is compared, it is seen that the highest value is 84.9 W. An efficiency calculation regarding Table 2 can be made as follows:
(7)ηefficiency=∆PC−∆PD∆PC=112.8−80.4112.8×100=%28.7.It is seen that the proposed distributed ambient light sensor LED lighting system is 28.7% more efficient than the proposed central ambient light sensor. The LED lighting system works successfully at the universally determined ambient necessity illumination values. In spring and summer seasons, the use of LED panels and distributed light sensors or central light sensor smart LED lighting system is on the decrease, but in the other seasons its use is higher. The month when the measurement took place is May, which belongs to spring time.


### 3.2. Cost Analysis

The total setup cost of the central and distributed ambient light sensor smart LED lighting system controller is calculated and listed in Table3.Table 3
Cost analysis of the developed energy-saving controller.
Item
Unit cost (USD)
Central/distributed system number
Total cost (USD) central/distributed system
STM32F407 discovery kit
25.6
1/1
25.6/25.6
IRFP250 MOSFET
1.4
1/2
1.4/2.8
10 K multiturn pot
4
1/2
4/8
Optocoupler
0.2
1/2
0.2/0.4
5 V power switch regulator
11.2
1/1
11.2/11.2
MOSFET driver
1.9
1/2
1.9/3.8
TEMT6000 Ambient Light Sensor
5.3
1/2
5.3/10.6
Resistor
0.06
1/2
0.06/0.1
100 nF capacitor
0.07
1/2
0.07/0.1
MOSFET cooler
2.1
1/2
2.1/4.3
PCB
0.4
1/1
0.4/0.4
Proposed central/distributed sensor LED lighting system costs
52.2/67.3The total costs of the proposed central and distributed system are 52.2 and 67.3 USD, respectively. The system is flexible, meaning it can be expanded.A monetary payback period for the proposed central-distributed light sensor LED lighting and the normal LED lighting systems is made, as shown in Tables2 and 4.Table 4
Results of economic analysis for the central and distributed smart led lighting system.
System
kWh unit cost (USD) [44]
Average daily consumption (kWh)
Average total daily consumption for 5 hours
Average monthly consumption (kWh)
Total cost (USD)
The central sensor smart LED lighting
0.12
112.8
564
16.92
1.92
The distributed sensor LED lighting
0.12
80.3
401.5
12
1.44
The normal LED lighting
0.12
288
1440
43.2
5.18When Table4 is examined, it is seen that the 288 W LED panel-installed power capacity of the central illumination system has an average monthly consumption of 16.92 kWh, and its cost is 1.92 USD. It shows that there is a total cost difference of 5.18−1.92=3.26 USD between the central smart LED lighting and the normal LED lighting systems. In Table 4, if the total cost amount for the central smart LED lighting system is divided by the value found, the simple monetary payback period is calculated as 52.2/3.26=16 months.


### 3.3. Visual Comfort

The daylight source can be measured, but it is uncontrollable. Color, distribution, and other features of daylight are highly variable, and the speed of this variability is coincident with many components. This is a characteristic of human nature. In Figure17, there is a building which is 6 meters south of the working class and there is a light shelf over the roof of the class building which provides indirect daylight diffusion which is one of the best types for both comfort and work. As seen in Figure 17, a daylight of the room reduces energy consumption. The sensors are placed on the ceiling in such a way that they are not affected by direct daylight and the LED lamps are light. A reference 300 lux was targeted for the working surface illumination value.Figure 17
The position of the building and artificial lighting controlled with daylight availability.The color rendering index (CRI) and color temperature (kelvin) are important parameters in achieving visual comfort. The scale range of the color rendering index is 0–100; the natural light has a value of 100 CRI, and it is recommended that the CRI value should be higher than 80. The LED lamps selected for illumination of the class have a color rendering index which is greater than 80, and the color temperature of LED is 4000 K. Visual comfort zones based on color temperature and room illumination level are shown in Figure18. To achieve better user satisfaction and according to the Kruithof curve given in Figure 18, the intersection of the reference value of the illumination and color temperature of the LED lamp lays in the visual comfort zone.Figure 18
Comfort zone of the Kruithof curve [45].


## 3.1. The Comparison of the Proposed Central and Distributed Sensor Lighting System

The central and distributed sensor smart LED lighting system in the DC grid based on the PV system is performed, and the experiment outcomes were compared. Various experiments were performed on the developed smart LED lighting system powered by the DC grid to understand the performance under several environments in classroom conditions.At the time of implemention of this experiment, the system has been working nonstop for two months and the values obtained belong to the date May 28. During the application, at the hours towards the evening it was noticed that the LED groups by the window side did not illuminate whereas those by the wall side illuminated. For the sunlight illumination measurement by the window side, a DT-1307 solar power meter was utilized (range: 0 to 1.999 W/m2, resolution: 1 W/m2, accuracy: ±10 W/m2), and for the classroom ambient lighting measurement, a DT-8809A professional light meter (max. range: 400,000 lux, resolution: 0.1 lux, accuracy: ±5%, spectral response: CIE photopic, photo detector: one silicon photodiode and spectral response filter) was utilized, as shown in Figure 13.Figure 13
(a) Solar power meter (W/m2) and (b) light meter (lux).
(a)
(b)Depending on the light detected by the photocensors on the ceiling at night time, the workplace task illuminance value, which is 300 lux, has been acquired. In this way, the correlation between the illuminance levels on the ceiling has been provided.The saved power values can be calculated by (6) [10], where Pc (t) and Pd (t) represent the output power of the proposed central and the proposed distributed sensor control lighting system, respectively [10].
(6)Psavedt=ΔP=∫0tPctdt−∫0tPdtdt.In the experiment, three cases are conducted to compare the algorithm with both proposed central and distributed light sensors smart lighting systems.Case 1.
Towards evening, the time is 18:00 PM. While the solar power meter by the window shows 8 W/m2 value, PWM outputs have the values for the window side at 0% and the wall side at 25%. Namely, while the LEDs by the window side are illuminating, the LEDs by the wall side of the classroom are functioning at a 25% duty cycle level. When the control system has reached the reference lighting level, the total current value of the LEDs by the wall side is measured as 0.45 A and the current value of the LED lamps by the window side is measured as 0 A. In this case, the power value of the proposed distributed ambient sensor smart LED lighting system is 36×0.45=16.2W and the power of the central ambient sensor smart LED lighting system is 32.4 W. The difference is 32.4−16.2=16.2W. The oscilloscope screen of the PWM signals of the distributed sensored led lighting system for case 1 is given in Figure 14.Case 2.
The time is 19:30 PM. While the solar power meter shows 1.3 W/m2, PWM outputs have the following values: for the LEDs by the window side 34.05% and for the LEDs by the wall side 90%. When the control system has reached the reference lighting level, the total current value for the wall side LED panels is measured as 2.3 A and the current value for the window side LED panels is measured 0.6 A. In this case, the power of the proposed distributed ambient sensor smart LED lighting system is 362.3+0.6=104.4W and the power of the central ambient sensor LED lighting system is 165.6 W. The difference value is 165.6−104.4=61.2W. The oscilloscope screen of PWM signals of the distributed sensor led lighting system for case 2 is given in Figure 15.Case 3.
Time is 19:45 PM, the solar power meter shows 0.1 W/m2 value, PWM outputs indicate the following values; for the LED panels by the window side 100% and for the LED panels by the wall side 90%. When the control system has reached 304 lux reference lighting level, the total current value of the LED panels by the wall side is measured as 1.99 A, the current value of the LED panels by the window side is 2 A. In this case, while the power of the distributed sensor smart LED lighting system is 361.99+2=143.64W, that of the central sensor smart LED lighting system’s is 143.2 W. The difference value between the two is 143.20−143.64=−0.44W. Here, it can be seen that the results are almost identical. The oscilloscope screen PWM signals of distributed sensor LED lighting system for case 3 is given in Figure 16.Figure 14
PWM signals of the proposed distributed lighting system: case 1.Figure 15
PWM signals of the proposed distributed lighting system: case 2.Figure 16
PWM signals of the proposed distributed lighting system: case 3.All the three cases above were applied when it got dark and there was need for artificial illumination. At the earlier hours of the day, artificial illumination was not needed as the classroom had windows. Central and distributed light sensor artificial illumination was applied from 18:00 PM until 20:15 PM (the last hour before the classroom is closed). When all three cases are analyzed, it is seen that the proposed distributed light sensor smart illumination has been successful in capturing the desired reference values, and when compared with the proposed central system, it is seen that the proposed distributed system provides more energy saving than the proposed central sensor smart LED lighting system.In conventional fluorescent lamps, the facility of adjusting PWM is not possible. At the same time, conventional LED illuminating systems function with fixed power. In the proposed central sensored smart LED system, in line with voltage information received from the ambient light sensor stationed in the midpoint of the classroom close to the ceiling, the illumination level of all the LED panels is controlled. With the proposed distributed light sensor lighting system, wall and window LED panels are self-adapting and dimmed separately, and by bringing about an energy-saving situation, it has increased the efficiency of both illumination systems. The comparison of the proposed distributed light sensor smart LED lighting system with that of the central smart light sensor LED system is given in Table2. By showing the powers consumed by the two systems and their power differences starting towards the evening time, the comparison of the two systems presents us a clearer understanding.Table 2
The comparison of the proposed distributed sensors lighting with that of the central system.
Time
Solar power (W/m2)
The total consumed power in distributed sensor smart LED lighting system (W)
The total consumed power in central sensor smart LED lighting system (W)
∆P (power difference) (W)
18:00
8
16.2
32.4
16.2
18:15
7.1
21.6
43.2
21.6
18:30
6.2
34.5
69.2
34.6
18:45
4.6
44.6
89.2
44.6
19:00
2.9
61.9
123.8
61.9
19:15
2.1
84.9
169.9
84.9
19:30
1.3
104.4
165.6
61.2
19:45
0.1
143.6
143.2
−0.4
20:00
0
146.1
146.1
0
20:15
0
146.1
146.1
0
∆Mean
∆PD=80.3
∆PC=112.8In Table2, when the power change between the proposed central ambient sensor smart LED illumination system and the proposed distributed ambient light sensor LED illumination system is compared, it is seen that the highest value is 84.9 W. An efficiency calculation regarding Table 2 can be made as follows:
(7)ηefficiency=∆PC−∆PD∆PC=112.8−80.4112.8×100=%28.7.It is seen that the proposed distributed ambient light sensor LED lighting system is 28.7% more efficient than the proposed central ambient light sensor. The LED lighting system works successfully at the universally determined ambient necessity illumination values. In spring and summer seasons, the use of LED panels and distributed light sensors or central light sensor smart LED lighting system is on the decrease, but in the other seasons its use is higher. The month when the measurement took place is May, which belongs to spring time.


## 3.2. Cost Analysis

The total setup cost of the central and distributed ambient light sensor smart LED lighting system controller is calculated and listed in Table3.Table 3
Cost analysis of the developed energy-saving controller.
Item
Unit cost (USD)
Central/distributed system number
Total cost (USD) central/distributed system
STM32F407 discovery kit
25.6
1/1
25.6/25.6
IRFP250 MOSFET
1.4
1/2
1.4/2.8
10 K multiturn pot
4
1/2
4/8
Optocoupler
0.2
1/2
0.2/0.4
5 V power switch regulator
11.2
1/1
11.2/11.2
MOSFET driver
1.9
1/2
1.9/3.8
TEMT6000 Ambient Light Sensor
5.3
1/2
5.3/10.6
Resistor
0.06
1/2
0.06/0.1
100 nF capacitor
0.07
1/2
0.07/0.1
MOSFET cooler
2.1
1/2
2.1/4.3
PCB
0.4
1/1
0.4/0.4
Proposed central/distributed sensor LED lighting system costs
52.2/67.3The total costs of the proposed central and distributed system are 52.2 and 67.3 USD, respectively. The system is flexible, meaning it can be expanded.A monetary payback period for the proposed central-distributed light sensor LED lighting and the normal LED lighting systems is made, as shown in Tables2 and 4.Table 4
Results of economic analysis for the central and distributed smart led lighting system.
System
kWh unit cost (USD) [44]
Average daily consumption (kWh)
Average total daily consumption for 5 hours
Average monthly consumption (kWh)
Total cost (USD)
The central sensor smart LED lighting
0.12
112.8
564
16.92
1.92
The distributed sensor LED lighting
0.12
80.3
401.5
12
1.44
The normal LED lighting
0.12
288
1440
43.2
5.18When Table4 is examined, it is seen that the 288 W LED panel-installed power capacity of the central illumination system has an average monthly consumption of 16.92 kWh, and its cost is 1.92 USD. It shows that there is a total cost difference of 5.18−1.92=3.26 USD between the central smart LED lighting and the normal LED lighting systems. In Table 4, if the total cost amount for the central smart LED lighting system is divided by the value found, the simple monetary payback period is calculated as 52.2/3.26=16 months.


## 3.3. Visual Comfort

The daylight source can be measured, but it is uncontrollable. Color, distribution, and other features of daylight are highly variable, and the speed of this variability is coincident with many components. This is a characteristic of human nature. In Figure17, there is a building which is 6 meters south of the working class and there is a light shelf over the roof of the class building which provides indirect daylight diffusion which is one of the best types for both comfort and work. As seen in Figure 17, a daylight of the room reduces energy consumption. The sensors are placed on the ceiling in such a way that they are not affected by direct daylight and the LED lamps are light. A reference 300 lux was targeted for the working surface illumination value.Figure 17
The position of the building and artificial lighting controlled with daylight availability.The color rendering index (CRI) and color temperature (kelvin) are important parameters in achieving visual comfort. The scale range of the color rendering index is 0–100; the natural light has a value of 100 CRI, and it is recommended that the CRI value should be higher than 80. The LED lamps selected for illumination of the class have a color rendering index which is greater than 80, and the color temperature of LED is 4000 K. Visual comfort zones based on color temperature and room illumination level are shown in Figure18. To achieve better user satisfaction and according to the Kruithof curve given in Figure 18, the intersection of the reference value of the illumination and color temperature of the LED lamp lays in the visual comfort zone.Figure 18
Comfort zone of the Kruithof curve [45].


## 4. Conclusion

Natural lighting reduces energy consumption of artificial lighting such as LED or fluorescent lighting, and it provides a healthy and comfortable environment. As is known, not much research comparing the distributed and central sensor smart LED lighting systems with respect to energy efficiency has been carried out. In this study, a PV system set up on the building meets the energy demand of the DC grid LED panel structure whose illumination level has been controlled by the proposed self-adapting algorithm based on the information taken from distributed ambient light sensors. The system is composed of the presence sensor, ambient light sensors, PV system, control card, and battery elements. The use of the ambient light sensors and the presence sensor in combination with the user preferences allows the central or the distributed ambient sensor smart to save energy and thus reduce the light intensity. From the measurement taken two hours before sunset, the distributed system energy consumption was 16.2 W while that of the central sensor’s stood at 32.4 W. One hour before the sunset, these values stood at 61.92 W and 123.84 W, respectively. When the proposed distributed ambient light sensors and the proposed central ambient light sensor smart LED lighting systems are compared, it is seen that the proposed distributed ambient light sensor smart LED lighting system comes with 28.762% more efficiency. At the same time, both proposed systems have a low consumption rate and building integrated photovoltaic (BIPV) basis which offers an environmentally friendly approach.



---

*Source: 4589085-2018-04-03.xml*