1 Introduction

Renewable energy resources like solar energy and its great demand of usage in electricity is drastically increased, whereas usage of nonrenewable sources like fossil fuel, coal and their demand in electricity is decreasing day by day due to their depletion and polluting nature. Partial shading of PV cells due to nonuniform irradiance significantly decreases the power delivered by the solar panel, because PV module cells are connected in series. In such a case the unshaded cells force a large current through the shaded ones, in the long term these hot spots reduce the life span of the module. In photovoltaic array systems partial shading or nonuniform irradiance is reduced using maximum power point tracking technique (MPPT). Dynamic and static PV array reconfiguration techniques are used for reduction in partial shading effect for large PV plants. The efficiency of solar panel is significantly affected when the panel is installed nearer to large buildings or hills, at the time of sunrise or sunset or cloud effect due to nonuniform irradiance projected over the panel. Partial shading effect is minimized by direct sensing of irradiance or intensity parameter fall on the PV module in solar tracking systems  [1].

Optimized sun-pointing sensor with tracking control parameter increases the tracking accuracy of the sun in DAST applications. So captured power is increased include and exclude cloud effects, sunrise and sunset. Existing sun-pointing sensors with tracking control parameters used in solar tracking applications  [2] such as photosensitive sensor is operated with differences of currents of photo-detector  [3], four quadrant LDRs are isolating the light from each LDR and sun position is measured by resistance sensitive comparison method [4], optimal azimuth and tilt angles of the sun measurement based on brightness and shade of the sun [5], measurement of the sun position using difference of voltages by means of comparator with four quadrant LDR [6], a design consists of two photodiodes and a metal wall creates light, shadow and differences of currents [7], four monolithic photodiodes with a transimpedence amplifier are used to measure elevation angle of the sun based on difference in voltage of the photodiodes [8], maximum light detection sensor applied in solar energy generation  [9], and power of photo-diode sensor [10].

Tracking control parameters are designed to capture maximum irradiance in solar tracking applications such as analog signal of three LDRs arranged in tetrahedron [11], voltage difference of LDR sensors for single direction tracking systems  [12], analog voltage of LDR with optimized series connected load resistance (\({R}_{\text {L}}\)) [13], digital value of LDR sensor along with real-time virtual instrumentation test bench tool [14], and photo-resistance (\({R}_{\text {ph}}\)) of LDR sensor in terms of voltage  [15].

Tracking control parameter implemented with LDR sensor interfaced to microcontroller is used to improve the power gain in DAST system. 29.58% power is gained using voltage as control parameter with LDR sensor interfaced to AVR microcontroller  [16]. 30–40% power is gained using voltage as control parameter with LDR sensor interfaced to PLC [17]. 28.04% power is gained using analog signal as control parameter with LDR sensor interfaced to AVR  [18]. 25–30% power is gained using voltage as control parameter with LDR sensor interfaced to ATmega (Arduino based) [15]. 30–40% power is gained using voltage as control parameter with LDR sensor interfaced to ATmega (Arduino based) [19]. 36.25% power is gained using analog signal as control parameter with LDR sensor interfaced to ATmega (Arduino based) [13].

It is identified that previous works do not considered the influence of actual solar intensity measurement as control parameter using LDR sensor in improving tracking accuracy. There is no evidence of optimization of CdS-LDR sensor for DAST systems from the literature.

This article is focus on analyzing DAST system performance in terms of power gain using optimized CdS-LDR sensor. During the time of partial shading or cloudy condition increase in tracking accuracy using optimized CdS-LDR sensor is analyzed with clear condition. It is analyzed with increase in percentage of generated out power of DAST system with respect to theoretically calculated values.

Optimization of LDR sensor increases the power gain of DAST system during normal or nonuniform irradiance conditions. Light intensity comparison method is proposed to track the sun position using optimized CdS-LDR sensor. Correlation of CdS-LDR sensor characteristics described by manufacturer with real-time outside conditions is the major factor. Optimized CdS LDR sensor is obtained using characteristic curve of \({R}_{\text {ph}}\) and intensity of the CdS-LDR sensor along with tracking mechanism. An application is implemented on DAST system which is designed with comparison of intensity of the sun measured by optimized CdS LDR sensor segment.

In this proposed work 50.63% power is gained using light intensity as control parameter with LDR sensor interfaced to ATmega (Arduino based). Also, identified that DAST system if not positioned to initial position leads to some generating power loss by solar panel which is resolved by minimum dull intensity of the sunlight (MDISL) using optimized CdS-LDR sensor. During the time of cloudy, one more parameter is observed that is sudden high power impulse (surge power) with reference to temperature humidity index (THI) term which is used to identify cloud release and effect condition of the sunlight.

2 Methodology

With power algorithm, LDR sensor plays major role in the measurement of the sun intensity, tracking and minimum dull intensity of the sunlight (MDISL).

Intensity parameter of optimized LDR sensor is used to find the following aspects (i) to track the sun position perpendicularly, (ii) to track the maximum intensity of the sunlight during the time of shading effect.

MDISL is used to operate the tracking mechanism in various conditions such as (a) to stop or run the tracking motors by microcontroller under cloud effect, (b) move to initial position of tracking system when there is no sun’s irradiance for more than 8 h or above.

Sudden high power impulses along with THI (Temperature and humidity) are used to find the switching of cloud such as (1) cloud released, (2) cloud effect, (3) immediate switching between cloud release & effect, and vice versa.

2.1 Design of CdS LDR sensor intensity and its optimization

Light absorption wavelength range of CdS-LDR is 350–850 nanometer (nm) which is compatible with the highest electromagnetic radiation emitted by the sun range of 400 –800 nm. Optimization of LDR sensor is designed from characteristic curve of \({R}_{\text {ph}}\) with the intensity in terms of lux (\({\text {Int}}_{\text {lx}}\)) of 5 mm CdS LDR specification data sheet. Data samples are chosen at mid points of LDR sensor characteristic curve of the intensity and \({R}_{\text {ph}}\) as show in Table 1.

Table 1 \({R}_{\text {ph}}\) versus \({\text {Int}}_{\text {lx}}\) data from characteristic curve of LDR specification data sheet

Curve fitting is used to design the intensity equation using scattered points and data trend line analysis in excel [20, 21]. Data samples are correlated using power algorithm which has \({R}^{2}\) value of 0.995 as shown in Fig. 1.

Fig. 1
figure 1

Designed power algorithm using excel scattered and trend line analysis

LDR sensor can be connected with power supply \(({V}_{\text {s}})\) and load resistance \(({R}_{\text {L}})\) in two ways as shown in Fig. 2a, b, where both the connections are negative intensity coefficient types.

Fig. 2
figure 2

a Measured analogRead \({R}_{\text {L}}\), b measured analogRead \({R}_{\text {ph}}\)

ATmega 328P microcontroller which has 10 bit ADC which converts measured LDR sensor output into analog value (digital) in the range of 0–1023 such as analogRead \({R}_{\text {L}}\) (anlg \({R}_{\text {L}}\)) and analogRead \({R}_{\text {ph}}\) (anlg \({R}_{\text {ph}}\)). These digital values are converted into voltages within in the range of 0–5 V which depends on the value of \({V}_{\text {s}}\). These digital values are converted into voltages within in the range of 0–5 V which depends on the value of \({V}_{\text {s}}\).

Based on 10 bit resolution calculated voltages are: voltage across \({R}_{\text {L}}\) is \({V}_{{\text {dig}}\,{\text {RL}}}\) which is equal to (anlg \({R}_{\text {L}} \times V_{\text {s}}\))/1023, voltage across \({R}_{\text {ph}}\) is \({V}_{{\text {dig}}\,{\text {Rph}}}\) which is equal to (anlg \({R}_{\text {ph}} \times {V}_{\text {s}}\)) /1023.

Based on voltage dividing network calculated voltages are: voltage across \({R}_{\text {ph}}\) is \({V}_{{\text {R}}\,{\text {ph}}}\) which is equal to (anlg \({R}_{\text {ph}} \times {V}_{\text {s}}\))/(anlg \({R}_{\text {L}}\, +\,{\text {anlg}} {R}_{\text {ph}}\)), voltage across \({R}_{\text {L}}\) is \({V}_{\text {RL}}\) which is equal to (anlg \({R}_{\text {L}} \times {V}_{\text {s}}\))/(anlg \({R}_{\text {L}}\) + anlg \({R}_{\text {ph}}\)).

$$\begin{aligned}&{R}_{{\text {ph}}}=\frac{R_{{\text {L}}}}{\left( {\displaystyle \frac{V_{{\text {s}}}}{V_{{\text {dig}}\,{\text {R}}\,{\text {ph}}}}}-1\right) }. \end{aligned}$$
(1)
$$\begin{aligned}&{\text {Int}}_{{\text {k}}\,{\text {lx}}}=\frac{\left( {\displaystyle \frac{R_{\text {ph}}}{32717}}\right) ^{\left( {\displaystyle \frac{-1}{0.63}}\right) }}{1000}. \end{aligned}$$
(2)

Optimization of CdS-LDR sensor is the conversion of photo-resistance (\({R}_{\text {ph}}\)) of LDR sensor into projected intensity \({}_{{\text {k}}\,{\text {lx}} }\)(\({\text {Int}}_{{\text {k}}\,{\text {lx}}}\)) which is designed from its characteristic curve using power algorithm. Voltage across LDR sensor (\({V}_{{\text {dig}}\,{\text {Rph}}}\)) is converted into \({R}_{\text {ph}}\) of LDR sensor using Eq. (1). Equation (2) depicts the sunlight intensity measurement using optimized CdS-LDR sensor.

2.2 Minimum dull intensity of the sunlight

Without optimization, tracking mechanism is affected by LDR sensors, because LDR sensor can easily change its \({R}_{\text {ph}}\) with respect to intensity or illuminance of external light sources. Value of MDISL is nothing but the average intensity of the sunlight at minimum dark condition, which is measured by LDR sensor segment wise at the time of sunset or sunrise.

Here, MDISL represents the insufficient irradiance of the sun projected over the panel to generate the power during the time of sunrise, sunset and shading effect. It is used to stop the tracking to reduce the power consumption by tracking mechanism when there is insufficient irradiance of the sun. MDISL value is also used to place the solar panel to initial place.

At the time of sunset or sunrise the intensity of the sunlight (intensity 1000 lx is represented as \({\text {Int}}_{{\text {k}}\,{\text {lx}}}\)) is measured by optimized CdS-LDR sensor which is below 5k lx and it’s corresponding solar panel generated power is 0.027 W. This power is insufficient to control the DAST system. The sun intensity value 5k lx has been taken as MDISL value to be used to stop the tracking mechanism under insufficient or no irradiance of the sun as shown in Table 4.

2.2.1 Initial position

Without initial position condition, some generating power of solar panel is lost. The panel faces West side on previous day without initial position implementation which leads to shading effect on successive day due to nonuniform irradiance received by the solar panel. DASTsystem not captured the maximum irradiance on successive day without initial position implementation, because DAST system is existed under the partial shading effect until 9:00 to 9:30 AM as shown in Fig. 3.

Fig. 3
figure 3

Without initial position

Fig. 4
figure 4

Panel movement to initial place flow chart using minimum dull intensity of the sunlight

This problem is also resolved by the parameter of MDISL with countdown time. Arduino 328p microcontroller prototype board provides software-based countdown time, without the need of external clock. On the previous day the solar panel is moved from East to West, after the sunset tracking mechanism is stopped by microcontroller which depends on the value of MDISL value. If the average value of MDSIL \(\le\) 5k lx then the countdown time of microcontroller is immediately started. The panel is placed to initial position immediately when it existed for more than 8 h of countdown time which depends on the value of MDISL as shown in Fig. 4.

$$\begin{aligned} \begin{array}{@{}l}\begin{array}{l}{\text {Position}}^\circ \Delta ={\text {Position}}\;^\circ \Delta +^\circ \Delta H.\end{array}\end{array} \end{aligned}$$
(3)

Equation (3) is used to calculate total position degree change horizontally (Position \({}^{\circ }\Delta\)) with respect to degree of change horizontally (\({}^{\circ }\Delta H\)). Initial condition is implemented to horizontal movement of the tracking panel only, because on previous day it is observed that the panel surface directing towards the sunset which has total position degree change horizontally is \(145^{\circ }{-}150^{\circ }\) and total position degree change vertically is \(5^{\circ }{-}10^{\circ }\) with respect to the earth surface.

With initial condition, on successive day the panel is faced towards the direction of the sunrise which has total position degree change horizontally is \(1^{\circ }{-}2^{\circ }\) and total position degree change vertically value is \(5^{\circ }{-}10^{\circ }\). This small degree change of horizontal and vertical movements is automatically controlled by microcontroller with optimized LDR sensors segment within 1–2 min. So vertical movement of the tracking system is not considered placing the panel to initial place. Total position degree change horizontally depends on curvature effect of the earth and initial installation position of the DAST system.

2.3 Sudden switching cloud identification

Air mass is another factor which changes the solar irradiance captured by solar panel, and air mass depends on the temperature and humidity values of the environmental condition. Actual air mass condition is not calculated in this experiment, whereas air mass is represented with THI [22] term.

$$\begin{aligned} \begin{array}{@{}l}{\text {THI}}={T}_{\text {F}}-\left( 0.55-\left( 0.55 {\text {R.H}}\%\left( {T}_{\text {F}}-58.8\right) \right) \right) ,\end{array} \end{aligned}$$
(4)

Here, \({T}_{\text {F}}= 1.8 {T}_{\text {C}}+ 32\). Ambient temperature in Celsius (\({T}_{\text {C}}\)), relative humidity in % (R.H) and temperature in Fahrenheit (\({T}_{\text {F}}\)) are used in Equation (4) to calculate THI .

Fig. 5
figure 5

Sudden switching of clouds

It is observed that sudden high power impulses (\({P}_{\text {HI}}\)) are generated with DAST system during the time of cloud effect, which are not observed throughout the day. These occurred at particular time instants only. These transients are due to sudden effect of sun rays during the time of effect of cloud, which look like sudden switching surges. Sudden cloud effect or cloud release is analyzed with \({P}_{\text {HI}}\) with values of THI within 2–3 s of short intervals of time.

\({\text {THI}}_{\text {C}}\) is represented as present THI value at \({P}_{\text {HI}}\), previous THI value is represented as \({\text {THI}}_{\text {P}}\), and next THI value is represented as \({\text {THI}}_{\text {N}}\) which are shown in Fig. 5, where (1) value of \({\text {THI}}_{\text {P}} - {\text {THI}}_{\text {C}}\) is increased and \({\text {THI}}_{\text {N}}\) is equal to \({\text {THI}}_{\text {C}}\) which means the sun rays are released by the cloud. (2) Value of \({\text {THI}}_{\text {P}}- {\text {THI}}_{\text {C}}\) is decreased and \({\text {THI}}_{\text {N}}\) is equal to \({\text {THI}}_{\text {C}}\) which means the sun rays are effected by cloud. (3) Value of \({\text {THI}}_{\text {P}} - {\text {THI}}_{\text {N}}\) is constant and corresponding power increase or decrease which means the sun rays are immediate switching effect or release of cloud and vice versa.

3 Design and implementations

3.1 Digital values reading in presence of sun intensity using CdS-LDR sensor using various connection types

Data from Table 2, photo-resistance of LDR sensor anlg \({R}_{\text {ph}}\) (digital) value is very less at mid time in presence of the sun, whereas photo-resistance of anlg \({R}_{\text {L}}\) which is high. This type of connection is indirect method to calculate anlg \({R}_{\text {ph}}\), because microcontroller first reads the analog \({R}_{\text {L}}\) which is further converted into anlg \({R}_{\text {ph}}\). In this case anlg \({R}_{\text {ph}} = 1023 - {\text {anlg}} {R}_{\text {L}}\).

Table 2 Digital values in presence of the sun intensity when supply terminal is directly connected to LDR sensor

From Table 3, measured anlg \({R}_{\text {ph}}\) is very less at mid time in presence of the sun, because intensity of the sun is large. This type of connection is direct method to calculate anlg \({R}_{\text {ph}}\), because microcontroller directly reads the anlg \({R}_{\text {ph}}\).

Table 3 Digital values in presence of the sun intensity when ground terminal is directly connected to LDR sensor

From Tables 2 and 3, \({V}_{{\text {dig}}\, {\text {Rph}}}\) and \({V}_{\text {Rph.}}\) values are same, which means any type of connections as shown in Fig. 2 for voltage measurement across LDR sensor can be used.

The sunlight intensity measurement parameters using optimized CdS-LDR sensors are represented as left top light intensity (LT) of LDR in 1000 lux, right top light intensity (RT) of LDR in 1000 lux, left down light intensity (LD) of LDR in 1000 lux and right down light intensity (RD) of LDR in 1000 lux. Equation (2) is optimized CdS-LDR sensor equation which is used to implement the sunlight intensity measurement parameters like LT, RT, LD & RD.

3.2 Dual axis solar tracking system design

DAST system along with fixed panel system is shown in Fig. 6. DAST system is a combination of active-based driver system and dual degree of freedom. Tracking mechanism is implemented with hybrid combination of stepper motor for horizontal movement of the solar panel and DC (Direct current) motor for vertical movement of the solar panel as shown in Fig. 7. Based on maximum annual average irradiance projected over the fixed panel at installed place, angle of fixed solar panel is fixed to \(30^{\circ }\) using multiclinometer mobile application.

Fig. 6
figure 6

Dual axis solar tracking system and fixed panel

Vertical movement of DAST system is controlled by DC motor which is rotated with fixed speed, constant voltage and low time interval mechanism. Vertical tracking control signals are passed to L293D dc motor driver which are operated with low time intervals of ON and OFF conditions by microcontroller. Horizontal movement of DAST system is controlled by 28BYJ-48 unipolar stepper motor with 1 RPM (revolutions per minute) which has gearing ratio of 2075.77. Horizontal tracking control signals are passed to stepper motor driver (ULN 2003) by microcontroller.

Weight of solar panel is 300 g. During vertical movement of the solar panel holding position (i.e., hold a position when there is no control signal from microcontroller) is unable to be controlled by using 28BYJ-48 unipolar stepper motor which has torque 0.08 N-m, though it consumes less power. 2KG (stp-43d1027-01) bipolar stepper motor which has holding torque of 0.314 N-m is also unable to control the holding position, because gear wheel is directly connected to motor shaft as shown in Fig. 7b. Holding position is controlled by using 10 RPM geared DC motor which has rated torque of 0.687 N-m and it requires less power consumption during tracking condition.

Fig. 7
figure 7

a Stepper motor installation, b DC motor installation

Two-millimeters thick plastic black-coated material is used to separate the reflections or luminance of the sun intensity projected from other sides of four quadrant LDR sensors segment wise structure as shown in Fig. 8a, b. LDR sensors segment structure is placed over the panel as shown in Fig. 8c.

Fig. 8
figure 8

a LDRs separated with 2-mm thick plastic black-coated material to minimize the light reflections or luminance, b Four quadrant LDRs structure segments wise representation, c LDRs position on the DAST system

Figure 15 describes the working flow of inputs and outputs which are interfaced by microcontroller. The execution of microcontroller is designed based on the multiple state machine concept which run all the inputs and outputs concurrently  [23]. State machine concept minimizes the number of execution instructions which speed up the process of execution. Here, four CdS-LDR sensors are used to read light intensity using class file. In class file same instruction set is used to all four LDR sensors. Class file functioned like called function, but it is executed concurrently. Ambient temperature and humidity values are measured by using digital humidity temperature (DHT 11) sensor. Current sensor (ACS 712-05B) is used to measure the generated current from the solar panel, calibration of current sensor is tested to 0.0 A under open circuit condition as well as with known current values using power supply regulator. Voltage divider circuit is used to measure the generated voltage from the solar panel, calibration of voltage divider circuit is tested to 0.0 V under short circuit condition as well as with known current values using power supply regulator.

Vertical movement of optimized DAST system is controlled by microcontroller using the following parameters : average top light intensity (AVT), average down light intensity (AVD), top position (TP), bottom position (BP), and degree of change vertically (\({}^{\circ }\Delta\)V).

AVT is equal to (LT+RT)/2. AVD is equal to (LD+ RD)/2. TP is equal to mapping of (AVT, 0 to 500, 0 to 100), BP is equal to mapping of (AVD, 0 to 500, 0 to 100), \({}^{\circ }\Delta\)V is equal to mapping of (abs(TP-BP, 5 to 100, \(0.5^{\circ }\) to \(10^{\circ }\))).

Horizontal movement of optimized DAST system is controlled by microcontroller using the following parameters : average left light intensity (AVL), average right light intensity (AVR),left position (LP), right position (RP), and degree of change horizontally (\({}^{\circ }\Delta\)H).

AVL is equal to (LT+LD)/2. AVR is equal to (RT+RD)/2. LP is equal to mapping of (AVL, 0 to 500, 0 to 100). RP is equal to mapping of (AVR, 0 to 500, 0 to 100). \({}^{\circ }\Delta\) H is equal to mapping of (abs(LP-RP, 5 to 100, \(2^{\circ }\) to \(10^{\circ }\))). Mapping technique is used to scale the calculated values into required range. Minimum \(2^{\circ }\) is required to operate the stepper motor which is used in this experiment.

Experimental results are transferred from microcontroller to personal computer at 115200 baud rate using Universal Serial Bus (USB 2.0) cable. Results are stored in excel using PLX-DAQ excel macro-tool [24]. PLX-DAQ is a simple add-on Microsoft Excel tool which supports to collect each and every sample with in short interval of time to reduce the human effort in data collection process. Using PLX-DAQ errors can be minimized and accuracy of results is increased when more number of samples have been collected. More than 800 samples per hour of each data like average intensities of LDR sensors segment wise, degree change horizontally, degree change vertically, ambient temperature , relative humidity and power of solar panels are stored in excel using PLX-DAQ.

4 Results and discussions

4.1 MDISL using optimized CdS-LDR sensor

From Table 2 insufficient intensity of the light is projected over the panel which is identified using insufficient power generate by DAST. It is observed that 0.027 W of insufficient power is generated by solar panel. Corresponding segment wise measured average intensity of the sunlight is below 5k lx using optimized CdS-LDR sensor (Table 4).

Table 4 Minimum dull intensity of the sunlight (MDISL) value identification

Overall day measured segment wise average intensities of the sun using optimized CdS-LDR sensors include cloud effect (from 7:57:39 to 11:08:30) at the same location on 7.12.2019 as shown in Fig. 9. It describes segment wise average intensities of the sun correlated in the same path. During the time of sunset, sunrise or cloudy condition segment wise average intensities of the sun using optimized CdS-LDR are more correlated with minimal difference of intensities.

Fig. 9
figure 9

Segment wise optimized average intensities of average top light intensity, average bottom light intensity, average left light intensity, and average right light intensity

Data from Table 5, it is observed that before 6:32:00 and after 17:25:55 overall average intensity of the sunlight (AVG) using optimized CdS-LDR is zero. Intensity of the sun is very high during 11:27:41 to 15:01:23. In the experiment value of MDISL using optimized CdS-LDR sensor is chosen at 5k lx so that tracking of the system started at 6:32:04, and stopped before 6:32:04, because the intensity of the sun is less than 5k lx. Tracking is again stopped at 17:15:59, at the same time countdown time is started which depends on the value of MDISL. After completion of 8 h of countdown time, panel is moved horizontally to initial place at 1:15:59 on successive day.

During countdown time, a 60 W bulb which illuminates 100 lx is projected over the LDR sensors segment perpendicularly and it does not affect the tracking mechanism, because its intensity value is below MDISL until it illuminates 5k lx over the LDR sensors segment.

MDSIL designed with optimized CdS-LDR stops the tracking when there is insufficient intensity of the sunlight which minimizes the power consumption.

Table 5 Average intensity of the sunlight with respect to photo-resistance of overall four structured LDR sensors

Overall average intensity of the sunlight (AVG) is equal to (AVT+AVD+AVL+AVR)/2. Measured values of AVG (lx) using optimized CdS-LDR with respect to \({R}_{\text {ph}}\) are shown in Fig. 10. During 6:32:00 to 17:25:55, it is analyzed that intensity of the sunlight increases and corresponding \({R}_{\text {ph}}\) of the LDR sensor system decreases and vice versa. During the time of sunset and sunrise, value of \({R}_{\text {ph}}\) is very large, because the intensity of the sunlight at that time is very less.

Fig. 10
figure 10

Overall average photo-resistance of the optimized CdS-LDR sensor and overall average intensity in presence of the sunlight

4.1.1 Analytical verification of Minimum dull intensity of the sunlight

For justification of MDISL value, we considered the polynomial equation \(y=f(x)=0.001x^{5}-0.073x^{4}+1.241x^{3}-6.472x^{2}+40.79x-26.57\) which has \({R}^{2}\) value of 0.92. Polynomial equation is correlated with the curve of average intensity of the sunlight AVG (lx) and photo-resistance of the LDR sensor as shown Fig. 11. Where x represents photo-resistance of the LDR sensor, y represents average intensity (k lx) and their corresponding 1st derivative of f(x) is \(f(x)^{\prime }={\text {d}}y/{\text {d}}x=0\) and 2nd derivative of f(x) is \(f(x)^{\prime }=({\text {d}}y/{\text {d}}x)^{2}\) which are used to find analytical minimum condition of dull intensity of the sunlight. At \({x}_{1}=42.04512\), \(\textit{f(x}_{1}\))” \(>0\) that is minimum dull intensity value starts at \({R}_{\text {ph}}\,(\Omega\)) of LDR sensor is 42.045 \(\Omega\) in presence of the sunlight. In the proposed work MDISL is considered at 5k lx and its corresponding \({R}_{\text {ph}}\,(\Omega\)) is approximately 174 \(\Omega\) which is more than 42.045 \(\Omega\), so we can justify that value of MDISL which is used to move the panel to initial place or to stop the tracking mechanism during dull light conditions. Analytically taken polynomial equation may change with change in curve as shown in Fig. 11.

Fig. 11
figure 11

Correlating the overall average intensity of the sun with photo-resistance

4.2 DAST system using optimized CdS-LDR

Standard test conditions (STC) of solar panel used in the DAST application are: air mass (AM) is 1.5, maximum peak power (\({P}_{\max }\)) is 15.00 W at irradiance1000 \(\text {W}\,\text {m}^{-2}\) at \(25\,{}^{\circ }{\text {C}}\), maximum voltage (\({V}_{\text {pmax}}\)) is 17 V, maximum peak current (\({I}_{\text {pmax}}\)) is 0.88 A, total cell area is 0.0825 \({\text {m}}^{2}\), cell efficiency of panel (\(\eta _{\text {cell}}\%\)) is 18.18, and temperature coefficient at \({P}_{\max }\,[\alpha {p}(\%\,{}^{\circ }{\text {C}}^{-1})]\) is − 0.44. The experiment was conducted at latitude 17.711521 longitude 83.299172 on 7.12.2019 from 6:32:00 to 17:40:15 in Visakhapatnam, Andhra Pradesh. Global irradiance (Ir) data are taken from India Meteorological Department database which is measured at station 43150. Ir value is used to calculate the theoretical values of solar panel cell input power (\({P}_{\text {in}}\)). Change in temperature (\(\Delta {T}_{\text {c}}\)) will also affect the efficiency of generated solar panel power. Solar panel output power with \(\Delta {T}_{\text {c}}\) is theoretically calculated (\({P}_{\text {out}}\)) using Eq. (5).

$$\begin{aligned} \begin{array}{@{}l}\begin{array}{l}{P}_{\text {out}}=\left[ 1+\bigtriangleup {T}_{\text {c}}\times {\alpha }_{\text {p}}\%\right] \times {P}_{\text {in}}\times {\eta }_{\text {cell}}\%,\\ \end{array} \end{array} \end{aligned}$$
(5)

where \({P}_{\text {i}} = {\text {Ir}}\, \times\) Total cell area, \(\Delta {T}_{\text {c}}= {T}_{\text {STC}}{} \mathbf - {T}_{\text {m}}\), \(T_{\text {m}}\) is measured average temperature and \({T}_{\text {STC}}\) is standard test condition temperature of the solar panel which is equal to \(25\,{}^{\circ }\text {C}\).

Figure 12 depicts the experimental performance of DAST system using optimized CdS-LDR throughout the day include and exclude cloud effects are discussed in Sects. 4.2.1, 4.2.2, and 4.2.3.

Fig. 12
figure 12

Experimental performance of DAST system using optimized CdS-LDR throughout the day

4.2.1 Experimental and theoretical performance of DAST system using optimized CdS-LDR throughout the day

The results are carried out at the same location on 7.12.2019 from 6:49:00 to 17:14:27. Studies are carried out to observe the overall performance of optimized DAST system. Measured value is analyzed with the theoretical value as shown in Table 6.

Table 6 Day performance of DAST system include cloud effect, i.e., from 6:49:00 to17:14:27

Theoretically calculated power (\({P}_{\text {out}}\)) is 6.87 W, measured average power (\({P}_{\text {m}}\)) is 4.12 W. Ratio of \({P}_{\text {m}}\) to \({P}_{\text {out}}\) is expressed as \({\text {EXP}}_{\text {out}}\). Day performance of the system include cloud effect (\({\text {EXP}}_{\text {out}}\)) is 59.92% of the theoretically calculated value.

4.2.2 Experimental and theoretical performance of DAST system using optimized CdS-LDR during cloudy

The effect of cloud changes the irradiance of the sun projected over the surface of the solar panel Which is observed during 7:57:39 to 11:08:30. Cloud effect leads to either change of position or staying at the current position which depends on the MDISL. The measured average power \({P}_{\text {m}}\)(W) is compared against theoretical value of \({P}_{\text {out}}\) as shown in Table 7.

Table 7 Performance of DAST system during the time of effect of clouds, i.e., from 7:57:39 to 11:08:30

Theoretically calculated solar panel out power (\({P}_{\text {out}}\)) is 4.04 W, measured average power (\({P}_{\text {m}}\)) is 3.49 W. Performance of optimized DAST system during the time of cloudy (\({\text {EXP}}_{\text {out}}\)) is 86.49% of the theoretically calculated value.

4.2.3 Experimental and theoretical performance of DAST system using optimized CdS-LDR exclude cloudy

Cloud effects completely released the sunlight during the time of 11:03:39–15:52:45. Theoretically calculated solar panel out power (\({P}_{\text {out}}\)) is 9.19 W, measured average power (\({P}_{\text {m}}\)) is 5.05 W. Performance of optimized DAST system during the time of cloudy (\({\text {EXP}}_{\text {out}}\)) is 54.88% of the theoretically calculated value (Table 8).

Table 8 Performance of DAST system exclude cloud condition, i.e., from 11:03:39 to15:52:45

Using optimized CdS-LDR sensors in the application of DAST system 86.49% of power is generated during the time of cloudy condition, 54.88% of power is generated exclude cloud condition, and 59.92% of power is generated throughout the day with reference to theoretical values. During cloudy 31.61% of more power is generated by DAST system which means optimization of CdS-LDR as the sun-pointing sensor increases the tracking accuracy.

4.3 Performance comparison of DAST system using optimized CdS-LDR sensor with fixed panel

Generated average power of optimized DAST system (\({P}_{\text {DAST}}\)) during the time of 11:03:39 to 15:52:45 is 5 W, whereas generated average power of the fixed panel (\({P}_{\text {Fixed}}\)) is 3.32 W under clear sky conditions as shown in Fig. 13. 50.63% of power is gained with reference to fixed panel. In addition to that improvements of current work with other existing works are described in Table 9.

Fig. 13
figure 13

Measured power of fixed panel and DAST system using optimized CdS-LDR without cloudy condition

Table 9 Power gain of DAST systems with reference to fixed panel

Present work implemented with intensity of the sunlight as control parameter in DAST system using optimized CdS-LDR sensor include MDISL method performed better than the recently existing works which are designed based on Arduino microcontroller with control parameters like analog signal5  [13] or voltage signal  [19].

4.4 Sudden switching cloud effect or cloud release during short interval of time

Additional outcome during the experimental process of DAST system using optimized CdS-LDR sensor is observed to identify the cloudy condition as shown in Table 10. Images are taken during the time of cloud effect as shown in Fig. 16. The density of the clouds is referred with the generated sudden high power impulses of DAST system using optimized CdS-LDR sensor which are shown in each image. The generated power of DAST system using optimized CdS-LDR depends on the irradiance incident on the surface of the solar panel.

Table 10 Effect and release of cloud conditions using sudden high power impulses with reference to THI

THI value is taken to analyze the switching effects during short interval of time such as,

(a) From 8:26:30 to 8:26:40 AM, cloud released the sun rays. Sudden switching reference high power impulse (\({P}_{\text {HI}}\)) is 6.621 W and its corresponding \({\text {THI}}_{\text {C}}\) value is 91.84, this case is represented as a very small density cloud effect released, another example is 9:22:23 to 9:22:28 AM.

(b) From 8:26:47 to 8:26:52 AM, cloud effected the sun rays. \({P}_{\text {HI}}\) is 6.225 W and \({\text {THI}}_{\text {C}}\) value is 91.715, this case is represented as switching into cloud effect, another examples are 8:55:35-8:55:40 AM, 9:22:51-9:23:02 AM.

(c) From 8:28:23 to 8:28:30 AM, released and immediately effected the sun rays. \({P}_{\text {HI}}\) values are 6.620 W, 5.431 W and their corresponding \({\text {THI}}_{\text {C}}\) values are 93.848 and 93.848. This case is considered as immediate switching of effectrelease of cloud, because their corresponding powers are decreased and then increased, another examples are 9:03:57-9:04:11 AM, 9:13:50-9:14:09 AM.

(d) From 8:54:34 to 8:54:45 AM, there is a random effect and release of the sun rays by the clouds within short interval of time, sudden switching reference high power impulses are 9.79115 W, 7.8097 W, 5.43196 W. In all above cases types of cloud are not mentioned.

Fig. 14
figure 14

THI, \({P}_{\text {m}}\) (W), \({T}(^{\circ }\text {C}\)), and R. H(%) curves during the time of effect of clouds

It is also analyzed that THI curve is proportional to temperature curve and inversely proportional to relative humidity curve with some scaled factor as shown in Fig. 14.

Climatic factors such as air temperature, humidity, rainfall, amount of clouds and dust density are negatively affecting the technical performance of the solar panel [25].

Slippage error in terms of degree is encountered during downward movement of DAST system controlled by geared DC motor. If the size of the solar panel increases more torque is needed with less RPM (revolutions per minute). Low RPM geared DC motor is needed to hold the vertical position of the solar panel.

5 Conclusion

Optimized CdS-LDR sensors with intensity parameter using power algorithm which is performed include cloud effects for the application of DAST system. Performance of the optimized DAST is 86.49% of theoretically observed value during the time of cloud conditions. With optimized DAST system gained power is 48–52% with reference to fixed panel. This value is further changed if the energy consumption of tracking motors is also considered. Increase or decrease in percentage of generated power of solar panel is due to abnormalities of the irradiance and temperature. Minimum dull intensity of the sunlight is another key factor to place the panel in initial position. For more accuracy, the overall day performance of DAST system is analyzed with collected data of 8800 samples of each parameter. Transients of cloud effect are analyzed by more data collection within short interval of time which is done by PLX-DAQ tool. Results may change when experiment is conducted under greater exposure of wind speed or heavy rain condition. Still, there is some misalignment angle along with the direction of top segment and bottom segment of LDR sensor due to effect of jerks during vertical tracking by DC motor. Jerking occurs due to loading effect of improper fixing. It is observed that still the experiment still lacks attaining 100% accuracy because of misalignment angle, and altitude value in theoretical solar panel output power calculation is neglected in this design aspect. Design and development of irradiance sensor using optimized CdS-LDR sensor is our future work. It can be achieved by intensity of the sunlight data validated with irradiation measured by standard equipment.

Fig. 15
figure 15

Working flow chart

Fig. 16
figure 16

Cloud effect images captured from 7:57:39 to 11:08:30 AM and it’s corresponding generated power by DAST using optimized CdS-LDR sensor