Next Article in Journal
Effects of Gamma-Valerolactone Assisted Fractionation of Ball-Milled Pine Wood on Lignin Extraction and Its Characterization as Well as Its Corresponding Cellulose Digestion
Next Article in Special Issue
Special Issue on Standalone Renewable Energy System: Modeling and Controlling
Previous Article in Journal
Importance of Event Binary Features in Stock Price Prediction
Previous Article in Special Issue
Day-Ahead Optimal Battery Operation in Islanded Hybrid Energy Systems and Its Impact on Greenhouse Gas Emissions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Development of a DSP Microcontroller-Based Fuzzy Logic Controller for Heliostat Orientation Control

by
Eugenio Salgado-Plasencia
,
Roberto V. Carrillo-Serrano
and
Manuel Toledano-Ayala
*
División de Investigación y Posgrado, Facultad de Ingeniería, Universidad Autónoma de Querétaro, Cerro de las Campanas s/n, Santiago de Querétaro, Querétaro 76010, Mexico
*
Author to whom correspondence should be addressed.
Appl. Sci. 2020, 10(5), 1598; https://doi.org/10.3390/app10051598
Submission received: 25 December 2019 / Revised: 13 February 2020 / Accepted: 17 February 2020 / Published: 28 February 2020
(This article belongs to the Special Issue Standalone Renewable Energy Systems—Modeling and Controlling)

Abstract

:
This paper describes the design and implementation of a heliostat orientation control system based on a low-cost microcontroller. The proposed system uses a fuzzy logic controller (FLC) with the Center of Sums defuzzification method embedded on a dsPIC33EP256MU806 Digital Signal Processor (DSP), in order to modify the orientation of a heliostat by controlling the angular position of two DC motors connected to the axes of the heliostat. The FLC is compared to a traditional Proportional-Integral-Derivative (PID) controller to evaluate the performance of the system. Both the FLC and PID controller were designed for the position control of the heliostat DC motors at no load, and then they were implemented in the orientation control of the heliostat using the same controller parameters. The experimental results show that the FLC has a better performance and flexibility than a traditional PID controller in the orientation control of a heliostat.

1. Introduction

The output power produced by a solar plant is proportional to the amount of solar energy absorbed by the system. Therefore, a sun tracking system (STS) with a high degree of accuracy is necessary to avoid losses in the output power of solar plants. STSs are usually classified into two categories [1]: passive sun tracking systems, which use the expansion of a gas caused by the solar radiation to move the mechanical structure of the tracker, and active sun tracking systems, which use motors, gears and electric controllers to drive concentration and absorption devices in a solar plant. There are two types of active sun tracking systems based on their controlling methods [2]: sensor driver systems (SDSs) and microprocessor driver systems (MDSs). SDSs use photosensors in order to detect a change in light sources and convert it into an electrical signal, which is used to obtain the position of the sun. However, there are tracking errors when the sensors cannot produce an electrical signal due to low solar radiation levels produced by the presence of passing clouds or contamination in the air. MDSs use microprocessors and computer systems to execute mathematical equations based on solar position algorithms and the current date and time to determine the exact position of the sun. MDSs are cheaper than SDSs; however, there is no feedback to verify the position of the sun, and tracking errors may appear due to the precision of the solar position algorithm. Several algorithms with different levels of complexity and accuracy can be found in the literature [3], where the use of a more precise solar position algorithm increases both the accuracy and the computational effort of the system.
Central tower power plants use two-axis sun reflectors called heliostats, which reflect the solar irradiance into a collector tower. Every heliostat has a local control which drives two motors connected to reduction gears, where the trend is to give greater autonomy to the central control by increasing the intelligence of the local control of each heliostat. Additionally, in solar plants, there are changing dynamics due to non-linearities and uncertainties that traditional PID controllers cannot handle. This is because a PID controller may produce high oscillations when it is tightly tuned, and the dynamics of the process varies due to changes in the operating conditions. Hence, the use of more efficient control strategies results in better responses [1]. An FLC is a good alternative to traditional PID controllers, because it can deal with non-linear systems and can be designed by using the knowledge of a human operator without knowing the mathematical model of the system. Although the FLC does not have a better response in time domain than a PID controller, this later one cannot be applied to systems which have a quick change of parameters because it would require to adjust the value of its control gains [4].
FLCs [5,6,7,8,9,10] and hybrid PID-FLCs [4,11,12,13,14,15,16] have been applied to control the position of DC motors, showing a good output response and better performance against traditional PID controllers. Furthermore, FLCs have been implemented to control two-axis sun trackers for photovoltaic systems. Yousef [17] was the first to develop a PC-based FLC algorithm to control a two-axis photo-voltaic (PV) solar panel. Afterwards, the FLC has been implemented in different platforms and devices such as microcontrollers [18,19,20], DSPs [21], personal computers (PCs) [22,23,24,25] and field-programmable gate arrays (FPGAs) [26].
Finally, the FLC has also been applied in orientation control of heliostats. Ardehali and Emam [27] performed a comparison between a classical PI and PID controller, a PI-FLC and a PID-FLC for the orientation control of a laboratory-scale heliostat with two mirrors of 0.9 m × 0.7 m, two 15 W DC motors, and a data acquisition system with 20 ms sampling time. The FLC uses three membership functions in order to adjust the PID controller gains. The results showed that PI-FLC presented reductions in the overshoot and better performance than the other controllers. Zeghoudi and Chermitti [28] and Zeghoudi et al. [29] used the Matlab environment in order to simulate the orientation of a heliostat by using an FLC with two different rule bases, comparing the output response with a PI, a PID, a PI-FLC and a neural controller. The results showed a better output response for the FLC compared with the other controllers. Additionally, the FLC with fewer rules showed a better output response to step changes than the FLC with the bigger rule base. Bedaouche et al. [30] simulated the position control of two DC motors in order to modify the orientation of a heliostat by using a PID controller self-adjusted by an FLC. The FLC adjusts each PID controller gain by using an individual rule base of forty-nine rules and the error and change of error values. The results showed a faster output response and a smaller overshoot than a classic PID controller. Jirasuwankul and Manop [31] applied an FLC to control the orientation of a lab-scale heliostat with two stepper motors by using a micro-step driver. The position of the heliostat is obtained by using image processing of the reflected solar radiation on the target. The results showed a good performance of the FLC; however, there are tracking errors when the system cannot process the image due to passing clouds.
Nevertheless, the works cited above have only been presented in simulations and small-scale models. Considering the aforementioned, the objective of this paper is to describe the design and implementation of a two-axis STS for the orientation control of a real-scale azimuth-elevation heliostat by using an FLC implemented on a low-cost microcontroller-based embedded system. The comparison between the FLC and a PID controller has also been done.

2. Heliostat Orientation Control

The orientation control system is presented in Figure 1. The control system modifies the angular position of two DC motors connected to the axes of the heliostat through two worm drive mechanisms to guide the heliostat to the desired position. A microcontroller unit (MCU) calculates the position of the sun and the desired angles of the heliostat in order to reflect the solar radiation on a specific target by using the geographic position of the heliostat and the current time and date values. Afterwards, a position control algorithm calculates the error between the desired and current angular position of the heliostat axes by using two rotary encoders in order to obtain a control signal which orients the heliostat by using two motor drivers that allow the bidirectional control of the DC motors.

2.1. DC Motor Mathematical Model

A DC motor can be described by using the equivalent model shown in Figure 2. The reduced transfer function of the armature-controlled DC motor is given by (1) [32].
G ( s ) = Θ ( s ) V a ( s ) = k m s [ R a ( J s + b ) + k b k m ]
where k m represents the motor torque constant and k b represents the back electromotive-force constant.
The mathematical model of the DC motor can be estimated by using the step signal response method with the motor speed response under a fixed voltage. The transfer function of the position and speed model can be described by (2) and (3).
Θ ( s ) V a ( s ) = k m J R a s ( s + b R a + k b k m J R a ) = C k s ( s + C p )
Ω ( s ) V a ( s ) = C k s + C p = C k C p 1 C p s + 1 = K τ s + 1
where C k and C p are fixed parameters, τ represents the time constant, and K represents the steady-state gain of the system.
The steady-state gain is the ratio of the output and the input in steady-state [33] and is given by (4).
K = ω s u s t e p = C k C p
where ω s represents the steady speed of the DC motor and u s t e p represents the step input signal.
Finally, the transfer function of the DC motor is given by (5).
G ( s ) = Θ ( s ) V a ( s ) = ω s u s t e p s ( s + 1 τ )

2.2. Control Algorithms

2.2.1. PID Controller

The PID controller is the most commonly used in industrial applications due to its simple structure. However, its linear nature makes it not very suitable for non-linear systems. It is a control technique which reduces the error ( e ( t ) ) of a system using three control gains (Proportional, Integral and Derivative) in a mathematical operation to produce a control output ( u ( t ) ). The equation for the PID controller in the time domain is described by (6) [32].
u ( t ) = K p e ( t ) + K i e ( t ) d t + K d d e ( t ) d t
When the controller is digital, it can be approximated with a backward difference and a sum for the derivative and integral terms [4], respectively. The digital PID controller is given by (7).
u ( n ) = K p e ( n ) + K i j = 1 n e ( j ) T s + K d e ( n ) e ( n 1 ) T s
where n and T s represent the number of the sample and the sample time of the digital system.

2.2.2. Fuzzy Logic Controller

An FLC uses the experience of an expert instead of the mathematical model of the system to control a plant, and it can deal with complex non-linear systems with unknown mathematical models. The controller produces a control signal using four blocks [34]: fuzzification, inference engine, rule base and defuzzification, as shown in Figure 3.
The FLC is graphically shown in Figure 4. The fuzzification module converts the input values into fuzzy sets using the singleton fuzzification, which evaluates the membership value of the input value. The inference mechanism determines the values of the output fuzzy sets by using an “if–then” rule base, which describes the relationship between the input and output variables based on their linguistic terms. In Mamdani fuzzy systems, the rule base determines the output fuzzy set value taking the minimum value of the combination of two or more input fuzzy set values as a consequence of one rule in the rule base. Finally, the defuzzification module gets a scalar value by combining the scaled output fuzzy sets values.
The reduction of the number of fuzzy rules as long as they express a similar relationship decreases the computational effort and memory requirements used in the implementation of the controller [35]. Therefore, it is necessary to eliminate the less critical rules in order to obtain faster controller actions [36].
The defuzzification module is another component that can be modified in order to obtain a fast response of the controller. There are many defuzzification methods proposed in the literature [34]. The center of gravity method (CoG), also called the center of area method (CoA), is the most widely used of all the defuzzification methods. Nonetheless, this method has a very high computational effort. The CoG method calculates the area under the combined output fuzzy sets by sampling them between the minimum and maximum values of the output fuzzy sets, as shown in Figure 5a. The drawback of the CoG is that it requires more samples to obtain a more accurate output value. The output value of the CoG defuzzification method is given by (8).
u = i = 1 n μ ( x i ) x i i = 1 n x i
where x i represents a value between the minimum and maximum values of the scaled output fuzzy sets, and n represents the number of the samples.
Another defuzzification method is the center of sums method (CoS), which is a fast method because of its computational simplicity [37]. This method calculates the average between the centroid and the area of each scaled output fuzzy set. The drawback of the CoS is that the intersecting areas are added twice, as shown in Figure 5b. The output value of the CoS defuzzification method is given by (9).
u = i = 1 n μ ( x ¯ i ) A i i = 1 n A i
where x ¯ i and A i represent the centroid and the scaled area of the output fuzzy set i , and n represents the number of the output fuzzy sets.

2.3. Sun Position and Heliostat Angles

Due to the fact that the relative position of the sun in the sky changes throughout the day, it is necessary to use a solar tracker in order to know the location of the sun at any time. The position of the sun with respect to the observer can be described by a reference system of horizontal coordinates using two angles: the azimuth angle and the elevation angle [1]. The angles of the solar vector S are denoted by A s and E s , respectively, as shown in Figure 6a. The azimuth angle is measured in relation to the South (0°), and it is negative to the East (−90°) and positive to the West (90°). The elevation angle of the sun ranges from the horizon (0°) to the zenith (90°).
For the heliostat to reflect the solar irradiance towards the central receiver, the heliostat surface normal vector N must be the bisector of the angle formed by the fixed vector pointing to the receiver from the reflective surface of the heliostat T and the solar vector [1] (Figure 6b). The azimuth and elevation angles of the solar vector are given by the Grena [38] algorithm, which has a maximum error of 0.0027°. The solar position algorithm takes the geographical coordinates of the heliostat and the current date and time of the day as input data. The algorithm also uses the monthly average local values of temperature and atmospheric pressure to calculate the atmospheric refraction correction of the elevation angle of the sun. The azimuth and elevation angles of the target vector are obtained by using spherical coordinates. The normal vector is obtained by the addition of the unit vectors of the solar and target vectors.
N = ( S ^ x + T ^ x S ^ y + T ^ y S ^ z + T ^ z )
where S ^ and T ^ are given by (11) and (12).
S ^ = ( s i n ( A s ) c o s ( E s ) , c o s ( A s ) c o s ( E s ) , s i n ( E s ) )
T ^ = ( s i n ( A t ) c o s ( E t ) , c o s ( A t ) c o s ( E t ) , s i n ( E t ) )
Finally, the azimuth and the elevation angles of the normal vector are given by (13) and (14).
A h = t a n 1 ( N y N x )
E h = t a n 1 ( N z N x 2 + N y 2 )

2.4. Embedded System

The block diagram of the embedded system is shown in Figure 7. The heliostat orientation control is implemented in a dsPIC33EP256MU806 MCU running with a clock frequency of 48 MHz. The current date and time values are given by a real-time clock (RTC) model DS1307 with I2C (Inter-Integrated Circuit) serial interface protocol. Two H-Bridge motor drivers built with four bipolar junction transistors (tip135 and tip136) are connected to the embedded system in order to change the direction of rotation of the DC motors by using an external power supply and two control signals from the MCU for each DC motor, whereas the feedback signal of the controller is given by two single-turn absolute rotary encoders model CAS60RS12A10SGG with synchronous serial interface (SSI) protocol and 12 bits of resolution (4096 pulses per revolution). Both rotary encoders are connected to the axes of the heliostat in order to obtain the real position of the heliostat. The system also contains an alphanumeric LCD Display to visualize the initial controller parameters, an analog thumb joystick for the manual heliostat control, a UART block to send data to a computer to perform graphical analysis, and a programming port ICSP (In-Circuit Serial Programming).
The algorithm of the embedded system was designed and developed by using CCS C Compiler software and is shown in Figure 8. All fixed values are read from a database at the start of the program. These values include the geographical position of the heliostat, distance to the target, local weather record, configuration data of the microcontroller peripherals, and parameters and grogram functions of the control algorithms. Afterwards, the program runs an infinite loop and waits for a start command to move the heliostat to the desired position. The program uses four 16-bit timers to generate software interrupts at fixed intervals of time in order to operate different components of the system. Timer1 generates a 200 kHz frequency square signal in order to communicate the MCU with the rotary encoders through the SSI protocol, timer2 establishes the period of the PWM signal which controls the speed and position of the DC motors by using the motor drivers, timer3 performs a software interrupt every 10 ms for the sampling time of the control algorithms, and timer4 performs a software interrupt every second in order to send the data to the UART block and read the time and date values from the RTC.
Once the start command is received, the program reads the date and time values from the RTC to compute the position of the sun by using the solar position algorithm. Afterwards, the program calculates the desired position of the heliostat to determine the reference values of the control algorithm. Finally, the program calculates the value of the error between the reference values and the position of the heliostat axes which is given by the rotary encoders and determines the control signal of each DC motor by using a program function that takes the error value and returns the values of the voltage that must be supplied to each DC motor. The voltage values are converted into duty cycle values of the PWM signals, which are supplied to the motor drivers in order to move the heliostat to the desired position by adjusting the angular position of each DC motor.
The position of the sun is calculated every second when the value of the RTU changes. However, the reference values of the control algorithm can be set in a fixed period without producing a significant error in the incidence of solar irradiance in the target. Therefore, the desired position of the heliostat is calculated every minute.
The control algorithms are shown in Figure 9, Figure 10 and Figure 11, for the PID controller and FLC with the CoG and Cos defuzzification methods, respectively.
The PID controller uses the error value to obtain the control signal by using the control gains loaded from the database and Equation (7). A saturation block is used on the integral term to limit its value and obtain a faster response at changes in the error value.
The FLC algorithm obtains the value of the change of error by using the error value and a backward difference, in order to evaluate the input fuzzy sets. Afterwards, the rule base determines the output fuzzy set that corresponds to the values of the error and changes of error and combines it according to the defuzzification method in order to obtain the control signal. The CoG defuzzification method executes a loop for the number of samples that evaluates the output fuzzy sets. In each iteration of the loop, all the rules are evaluated by using another loop for the number of rules in order to obtain the maximum value of the evaluated output fuzzy sets in the sample value, as shown in Figure 5a. Finally, all resulting values are added to obtain the output value by using Equation (8). The CoS defuzzification method only executes one loop, calculating the output value by using values of the scaled area and the centroid of each output fuzzy set, as indicated in Equation (9). The values of the centroid of the output fuzzy sets are calculated once at the beginning of the program and do not change.
The values of the error and integral term are saved in order to calculate the terms used in the next sample of the control algorithms. There is also a saturation block to limit the output signal of the control algorithms at the rated voltage value of the DC motors.

2.4.1. Controller Parameters

The algorithms of the FLC and PID controller were designed for the position control of the DC motors at no load. Both controllers were tuned to accomplish with the design parameters of 10 ms sampling time and 100 ms of rising time without overshoot for the smallest change in the reference signal in order to reduce the energy consumed by the DC motors when the heliostat is moving [27].
Figure 12 shows the block diagram of the FLC. It is a two-input and one-output controller, three fuzzy sets in each input and output signal, a rule base with nine “if–then” rules, a Mamdani inference engine and the CoS defuzzification method. Additionally, there are two processing blocks due to the difference between the fuzzy sets values and the values of the input and output signals. The processing values are given by (15)–(17).
e * = e π
d e * = d e T s π
u * = u V m a x
where e * , d e * and u * represent the processing values of the input and output signals, and V m a x represents the maximum voltage signal of the DC motors.
The values of the fuzzy sets and the rule base of the FLC are shown in Figure 13 and Table 1, where the negative, middle, and positive values are denoted by the linguistic variables N , Z and P , respectively. The number and values of the fuzzy sets were selected in order to the control signal of the FLC can modify the position of the DC motor due to the smallest change of the error with a low computational effort. The symmetric shape of the fuzzy sets allows the controller to modify the direction of rotation of the DC motors with the same amplitude of the control signal, which corresponds to the values of the error and change of error.
The resulted control surface of the FLC is presented in Figure 14, showing the relationship between the inputs and the output as a consequence of the values of the fuzzy sets, the if–then rule base, and the CoS defuzzification method. The output value of the defuzzification varies from −1 to 1; therefore, using Equation (17), the DC motor supply voltage ranges from V m a x to V m a x .
For the PID controller, the transfer function of the DC motor is estimated by using the step signal response method in order to obtain the control gains of the PID controller to comply with the design parameters. The angular velocity can be approximated by using a discrete derivative term, as shown in Equation (7). The angular velocity is given by (18).
ω ( n ) = θ ( n ) θ ( n 1 ) T s
The step response of the DC motor and the transfer function parameters are shown in Figure 15, where ω = 0.5369   rad s = 5.126   rpm is approximately the rated speed reported in the DC motor datasheet, as shown in Table 3.
The obtained mathematical model of the DC motor at no load is described by (19).
G M ( s ) = Θ M ( s ) V a M ( s ) = 0.31275 s 2 + 13.68925 s
Finally, the control gains of the PID controller were obtained by using the Matlab Sisotool Toolbox. A rising time of 0.075 s and an overshoot of less than 5% were chosen as conditions of the output signal of the PID controller in order to accomplish with the design requirements and produce a smooth control signal to reduce the energy consumption for the DC motors. The control gains of the PID controller are shown in Table 2.
The transfer functions of the DC motors connected to the heliostat axes were also obtained with the same method. The mathematical models of the azimuth and elevation axes are described by (20) and (21), respectively.
G A ( s ) = Θ A ( s ) V a A ( s ) = 0.01316 s 2 + 4.03225 s
G E ( s ) = Θ E ( s ) V a E ( s ) = 0.02417 s 2 + 7.40740 s

2.4.2. Setpoint Values

Because of the position of the sun in the sky changes by 1 degree every 4 min, it is not necessary to modify the orientation of the heliostat every second of the day. Therefore, the values of the reference angles are discretized every minute, as shown in Figure 16 for the parameters of Table 4.
To reduce the error due to the resolution of the rotary encoders, the discrete reference value is converted from radians to encoder steps and is rounded to the closest integer value to obtain a final reference value that corresponds to a value in the encoder steps. Therefore, when the heliostat angles reach the desired position, the error signal will be zero. The values of the error between the final and desired reference of the heliostat axes are shown in Figure 17.

3. Results and Discussion

The orientation control system was implemented in the heliostat shown in Figure 18, whereas the printed circuit board (PCB) of the embedded system and the motor driver are shown in Figure 19. It is an azimuth–elevation mechanism heliostat, with a worm drive mechanism driven by a DC gear motor model ZYT6590-01 at each axis. The heliostat has a gap which allows directing the facets to the ground. The parameters of the heliostat and the DC motors are presented in Table 3.
As mentioned already, the control algorithms were designed for the position control of a DC motor at no load. Afterwards, the control algorithms were implemented in the orientation control of the heliostat using the same controller parameters of the position control of the DC motor at no load.
Figure 20 shows the comparison of the consumption time of the PID controller (Figure 20a) and the FLC using the CoS (Figure 20b) and the CoG (Figure 20c) defuzzification methods, where the period of the signals represents the sampling time of the control algorithms. The results show that the FLC with the CoG defuzzification method does not accomplish with the design parameters because of its computational complexity.
The output response of the control algorithms for the position control of a DC motor at no load is shown in Figure 21 for the minimum change in the reference value of 0.087 degrees (1.533 mrad) and a reference value of 180 degrees (π rad). Both control algorithms accomplish with the design parameters for the position control of the DC motor at no load. However, Figure 21d shows that the FLC control signal decreases when the position of the DC motor is reaching the reference value.
Finally, Figure 22 and Figure 23 show the output response of the control algorithms for the orientation control for the DC motors at no load and the axes of the heliostat, respectively. The desired angles of the heliostat were calculated using the parameters of Table 4, whereas the error values are shown in Table 5.
The experimental results show a similar Mean Squared Error (MSE) for the orientation control of the DC motors at no load and a similar output response between the orientation control of the heliostat and the final reference value for the FLC (Figure 23a) and the PID controller (Figure 23b), despite the load of the wind over the mechanical structure and the backlash in the axis mechanisms. However, for the orientation control of the heliostat, the FLC shows less dispersed error values (Figure 23c) and smaller final reference error values (Figure 23e) than the PID controller (Figure 23d,f).

4. Conclusions

The orientation control of a heliostat using an FLC was implemented on an embedded system based on a low-cost microcontroller. Also, the comparison against a traditional PID controller was performed. The advantage of the FLC is the fact that it is not necessary to know the mathematical model of the system, because it only uses the experience of an operator, which is easy to incorporate into the controller.
The results show that both controllers exhibit a similar output response for the position control of a DC motor. However, the FLC has a better performance than the PID controller for the orientation control of the heliostat by using the same control parameters for the position control of the DC motor at no load. The FLC has higher flexibility since it is robust in front of changes in the dynamics of the process, whereas for a better output response of the PID controller, the control gains must be tuned for the mathematical models of the heliostat axes. The results also exhibit a smaller MSE of the FLC compared to the PID controller for the orientation control of the heliostat by using only a nine-rule rule base and a fuzzy set of three membership functions in each input and output signal in order to reduce the computational effort of the controller. Additionally, the center of the sums defuzzification method complies with the design parameter of 10 ms sample time, showing a faster response than the center of the gravity defuzzification method.
In a central tower power plant that uses traditional PID controllers for the orientation control of the heliostats, the control gains of the controller of all the heliostats must be adjusted in order to avoid oscillations due to wrong controller parameters tuning. Therefore, the proposed control system can be applied in order to control an entire heliostat field by using the same controller parameters for all the heliostat. The system can also be adjusted to control other sun tracking systems, such as a photovoltaic, solar dish, or parabolic trough systems, which only need the solar tracker system.

Author Contributions

Conceptualization, E.S.-P. and M.T.-A.; Methodology, E.S.-P. and R.V.C.-S.; Project administration, M.T.-A.; Software, E.S.-P.; Validation, E.S.-P. and R.V.C.-S. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Acknowledgments

The authors would like to thank Consejo Nacional de Ciencia y Tecnología (CONACYT-México) for supporting this research.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

CoGCenter of Gravity
CoSCenter of Sums
DSPDigital Signal Processor
FLCFuzzy Logic Controller
FPGAField-Programmable Gate Array
LCDLiquid Crystal Display
MCUMicrocontroller Unit
MDSMicroprocessor Driver System
MSEMean Squared Error
PCPersonal Computer
PCBPrinted Circuit Board
PIDProportional–Integral–Derivative
PVPhoto-Voltaic
PWMPulse Width Modulation
RTCReal-Time Clock
SDS Sensor Driver System
STSSun Tracking System
UARTUniversal Asynchronous Receiver-Transmitter
θ Angular position of the DC motor
ω Angular velocity of the DC motor
τ Time constant of the system
K Steady-state gain of the system
e Controller error signal
d e Controller change of error signal
u Controller output signal
T s Controller sampling time
V m a x Controller maximum output voltage
S Solar vector
T Target vector
N Normal vector of the heliostat
S ^ Solar unit vector
T ^ Target unit vector
A s Solar vector azimuth angle
E s Solar vector elevation angle
A t Target vector azimuth angle
E t Target vector elevation angle
A h Heliostat azimuth angle
E h Heliostat elevation angle

References

  1. Camacho, E.F.; Berenguel, M.; Rubio, F.R.; Martínez, D. Control of Solar Energy Systems; Springer: London, UK, 2012; p. 414. [Google Scholar]
  2. Al-Rousan, N.; Isa, N.A.M.; Desa, M.K.M. Advances in solar photovoltaic tracking systems: A review. Renew. Sustain. Energy Rev. 2018, 82, 2548–2569. [Google Scholar] [CrossRef]
  3. Grena, R. Five new algorithms for the computation of sun position from 2010 to 2110. Sol. Energy 2012, 86, 1323–1337. [Google Scholar] [CrossRef]
  4. Soufi, N.J. Design and implementation of fuzzy position control system for tracking applications and performance comparison with conventional pid. IAES Int. J. Artif. Intell. (IJ-AI) 2012, 1, 31–44. [Google Scholar]
  5. Paul-l-Hai, L.; Sentai, H.; Chou, J. Comparison on fuzzy logic and pid controls for a dc motor position controller. In Proceedings of the 1994 IEEE Industry Applications Society Annual Meeting, Denver, CO, USA, 2–6 October 1994; pp. 1930–1935. [Google Scholar]
  6. Bal, G.; Bekiroǧlu, E.; Demirbaş, Ş.; Çolak, İ. Fuzzy logic based dsp controlled servo position control for ultrasonic motor. Energy Convers. Manag. 2004, 45, 3139–3153. [Google Scholar] [CrossRef]
  7. Wang, H.-P. Design of fast fuzzy controller and its application on position control of dc motor. In Proceedings of the 2011 International Conference on Consumer Electronics, Communications and Networks, XianNing, China, 16–18 April 2011; pp. 4902–4905. [Google Scholar]
  8. Chermitti, A.; Zeghoudi, A. A comparison between a fuzzy and pid controller for universal motor. Int. J. Comput. Appl. 2014, 104, 32–36. [Google Scholar]
  9. Meena, P.K.; Bhushan, B. Simulation for position control of dc motor using fuzzy logic controller. Int. J. Electron. Electr. Comput. Syst. 2017, 6, 188–191. [Google Scholar]
  10. Rahman, Z.-A.S.A. Design a fuzzy logic controller for controlling position of dc motor. Int. J. Comput. Eng. Res. Trends 2017, 4, 285–289. [Google Scholar]
  11. Lim, C.M. Implementation and experimental study of a fuzzy logic controller for dc motors. Comput. Ind. 1995, 26, 93–96. [Google Scholar] [CrossRef]
  12. Ko, J.S.; Youn, M.J. Simple robust position control of bldd motors using integral-proportional plus fuzzy logic controller. Mechatronics 1998, 8, 65–82. [Google Scholar] [CrossRef]
  13. Pravadalioglu, S. Single-Chip fuzzy logic controller design and an application on a permanent magnet dc motor. Eng. Appl. Artif. Intell. 2005, 18, 881–890. [Google Scholar] [CrossRef]
  14. Namazov, M.; Basturk, O. Dc motor position control using fuzzy proportional-derivative controllers with different defuzzification methods. Turk. J. Fuzzy Syst. 2010, 1, 36–54. [Google Scholar]
  15. Natsheh, E.; Buragga, K.A. Comparison between conventional and fuzzy logic pid controllers for controlling dc motors. Int. J. Comput. Sci. Issues 2010, 7, 128–134. [Google Scholar]
  16. Manikandan, R.; Arulmozhiyal, R. Position control of dc servo drive using fuzzy logic controller. In Proceedings of the 2014 International Conference on Advances in Electrical Engineering (ICAEE), Vellore, India, 9–11 January 2014; pp. 1–5. [Google Scholar]
  17. Yousef, H.A. Design and implementation of a fuzzy logic computer-controlled sun tracking system. In Proceedings of the IEEE International Symposium on Industrial Electronics, Bled, Slovenia, 12–16 July 1999; pp. 1030–1034. [Google Scholar]
  18. Belkasmi, M.; Bouziane, K.; Akherraz, M.; Sadiki, T.; Faqir, M.; Elouahabi, M. Improved dual-axis tracker using a fuzzy-logic based controller. In Proceedings of the 3rd International Renewable and Sustainable Energy Conference (IRSEC), Marrakech, Morocco, 10–13 December 2015; pp. 1–5. [Google Scholar]
  19. Zakariah, A.; Jamian, J.J.; Yunus, M.A.M. Dual-Axis solar tracking system based on fuzzy logic control and light dependent resistors as feedback path elements. In Proceedings of the 2015 IEEE Student Conference on Research and Development (SCOReD), Kuala Lumpur, Malaysia, 13–14 December 2015; pp. 139–144. [Google Scholar]
  20. Toylan, H. Performance of dual axis solar tracking system using fuzzy logic control a case study in Pinarhisar, Turkey. Eur. J. Eng. Nat. Sci. 2017, 2, 130–136. [Google Scholar]
  21. Ataei, E.; Afshari, R.; Pourmina, M.A.; Karimian, M.R. Design and construction of a fuzzy logic dual axis solar tracker based on dsp. In Proceedings of the 2nd International Conference on Control, Instrumentation and Automation, Shiraz, Iran, 27–29 December 2011; pp. 185–189. [Google Scholar]
  22. Batayneh, W.; Owais, A.; Nairoukh, M. An intelligent fuzzy based tracking controller for a dual-axis solar pv system. Autom. Constr. 2013, 29, 100–106. [Google Scholar] [CrossRef]
  23. Baran, N.; Sinha, D. Fuzzy logic-based dual axis solar tracking system. Int. J. Comput. Appl. 2016, 155, 13–18. [Google Scholar]
  24. Huang, C.-H.; Pan, H.-Y.; Lin, K.-C. Development of intelligent fuzzy controller for a two-axis solar tracking system. Appl. Sci. 2016, 6, 130. [Google Scholar] [CrossRef] [Green Version]
  25. Zeghoudi, A.; Hamidat, A.; Takilalte, A.; Debbache, M. Contribution to the control of a tracker solar using hybrid controller and artificial intelligence systems. In Proceedings of the 4th International Seminar on New and Renewable Energies, Ghardaïa, Algeria, 24–25 October 2016; pp. 1–9. [Google Scholar]
  26. Benzekri, A.; Azrar, A. FPGA-based design process of a fuzzy logic controller for a dual-axis sun tracking system. Arab. J. Sci. Eng. 2014, 39, 6109–6123. [Google Scholar] [CrossRef]
  27. Ardehali, M.M.; Emam, S.H. Development, design and experimental testing of fuzzy-based controllers for a laboratory scale sun-tracking heliostat. Fuzzy Inf. Eng. 2011, 3, 247–257. [Google Scholar] [CrossRef]
  28. Zeghoudi, A.; Chermitti, A. Speed control of a dc motor for the orientation of a heliostat in a solar tower power plant using artificial intelligence systems (flc and nc). Res. J. Appl. Sci. Eng. Technol. 2015, 10, 570–580. [Google Scholar] [CrossRef]
  29. Zeghoudi, A.; Chermitti, A.; Benyoucef, B. Contribution to the control of the heliostat motor of a solar tower power plant using intelligence controller. Int. J. Fuzzy Syst. 2015, 18, 741–750. [Google Scholar] [CrossRef]
  30. Bedaouche, F.; Gama, A.; Hassam, A.; Khelifi, R.; Boubezoula, M. Fuzzy pid control of a dc motor to drive a heliostat. In Proceedings of the 2017 International Renewable and Sustainable Energy Conference, Tangier, Morocco, 4–7 December 2017; pp. 1–6. [Google Scholar]
  31. Jirasuwankul, N.; Manop, C. A lab-scale heliostat positioning control using fuzzy logic based stepper motor drive with micro step and multi-frequency mode. In Proceedings of the 2017 IEEE International Conference on Fuzzy Systems (FUZZ-IEEE), Naples, Italy, 9–12 July 2017; pp. 1–6. [Google Scholar]
  32. Dorf, R.C.; Bishop, R.H. Modern Control Systems, 12th ed.; Pearson Education, Inc.: Upper Saddle River, NJ, USA, 2011. [Google Scholar]
  33. Aguado, A.B.; Martínez, M.I. Identificación y Control Adaptativo; Pearson Educación, S.A.: Madrid, Spain, 2003. [Google Scholar]
  34. Lilly, J.H. Fuzzy Control and Identification, 1st ed.; John Wiley & Sons, Inc.: Hoboken, NJ, USA, 2010; p. 231. [Google Scholar]
  35. Eminoğlu, İ.; Altaş, İ.H. The effects of the number of rules on the output of a fuzzy logic controller employed to a pm dc motor. Comput. Electr. Eng. 1998, 24, 245–261. [Google Scholar] [CrossRef]
  36. Abdalla, M.; Al-Jarrah, T. Optimal fuzzy controller: Rule base optimized generation. Control. Eng. Appl. Inform. 2018, 20, 76–86. [Google Scholar]
  37. Ross, T.J. Fuzzy Logic with Engineering Applications, 3rd ed.; John Wiley & Sons Ltd.: Chichester, UK, 2010; p. 585. [Google Scholar]
  38. Grena, R. An algorithm for the computation of the solar position. Sol. Energy 2008, 82, 462–470. [Google Scholar] [CrossRef]
Figure 1. Orientation control diagram.
Figure 1. Orientation control diagram.
Applsci 10 01598 g001
Figure 2. Equivalent model of a permanent magnet brushed DC motor.
Figure 2. Equivalent model of a permanent magnet brushed DC motor.
Applsci 10 01598 g002
Figure 3. Components of the FLC.
Figure 3. Components of the FLC.
Applsci 10 01598 g003
Figure 4. Fuzzy logic controller algorithm.
Figure 4. Fuzzy logic controller algorithm.
Applsci 10 01598 g004
Figure 5. Center of Gravity (a) and Center of Sums (b) defuzzification methods.
Figure 5. Center of Gravity (a) and Center of Sums (b) defuzzification methods.
Applsci 10 01598 g005
Figure 6. Solar vector (a) and vectors and angles of the heliostat (b).
Figure 6. Solar vector (a) and vectors and angles of the heliostat (b).
Applsci 10 01598 g006
Figure 7. Block diagram of the embedded system.
Figure 7. Block diagram of the embedded system.
Applsci 10 01598 g007
Figure 8. Embedded system algorithm.
Figure 8. Embedded system algorithm.
Applsci 10 01598 g008
Figure 9. PID controller algorithm.
Figure 9. PID controller algorithm.
Applsci 10 01598 g009
Figure 10. Fuzzy logic controller algorithm with the center of gravity defuzzification method.
Figure 10. Fuzzy logic controller algorithm with the center of gravity defuzzification method.
Applsci 10 01598 g010
Figure 11. Fuzzy logic controller algorithm with the center of sums defuzzification method.
Figure 11. Fuzzy logic controller algorithm with the center of sums defuzzification method.
Applsci 10 01598 g011
Figure 12. Block diagram of the fuzzy logic controller.
Figure 12. Block diagram of the fuzzy logic controller.
Applsci 10 01598 g012
Figure 13. Fuzzy sets of the fuzzy logic controller.
Figure 13. Fuzzy sets of the fuzzy logic controller.
Applsci 10 01598 g013
Figure 14. FLC control surface.
Figure 14. FLC control surface.
Applsci 10 01598 g014
Figure 15. Step response of the DC motor.
Figure 15. Step response of the DC motor.
Applsci 10 01598 g015
Figure 16. Setpoint values of the orientation control for the azimuth axis (a), the elevation axis (b) and both axes (c).
Figure 16. Setpoint values of the orientation control for the azimuth axis (a), the elevation axis (b) and both axes (c).
Applsci 10 01598 g016
Figure 17. Final reference error values of the orientation control for the azimuth axis (a), the elevation axis (b) and both axes (c).
Figure 17. Final reference error values of the orientation control for the azimuth axis (a), the elevation axis (b) and both axes (c).
Applsci 10 01598 g017
Figure 18. Heliostat.
Figure 18. Heliostat.
Applsci 10 01598 g018
Figure 19. Printed circuit board of the embedded system (a) and the motor driver (b).
Figure 19. Printed circuit board of the embedded system (a) and the motor driver (b).
Applsci 10 01598 g019
Figure 20. Consumption time of the PID controller (a), and the fuzzy logic controller with the CoS (b) and the CoG (c) defuzzification methods.
Figure 20. Consumption time of the PID controller (a), and the fuzzy logic controller with the CoS (b) and the CoG (c) defuzzification methods.
Applsci 10 01598 g020
Figure 21. Output response (a) and control signal (c) of the DC motor at no load at a minimum reference value. Output response (b) and control signal (d) of the DC motor at no load at a reference value of 180 degrees (π rad).
Figure 21. Output response (a) and control signal (c) of the DC motor at no load at a minimum reference value. Output response (b) and control signal (d) of the DC motor at no load at a reference value of 180 degrees (π rad).
Applsci 10 01598 g021
Figure 22. Output response of the orientation control of the DC motors at no load for the azimuth axis (a) and the elevation axis (b).
Figure 22. Output response of the orientation control of the DC motors at no load for the azimuth axis (a) and the elevation axis (b).
Applsci 10 01598 g022
Figure 23. Output response of the orientation control for the azimuth axis (a) and the elevation axis (b) of the heliostat. Desired reference error values of the orientation control of the heliostat for the fuzzy logic controller (c) and the PID controller (d). Final reference error values of the orientation control of the heliostat for the fuzzy logic controller (e) and the PID controller (f).
Figure 23. Output response of the orientation control for the azimuth axis (a) and the elevation axis (b) of the heliostat. Desired reference error values of the orientation control of the heliostat for the fuzzy logic controller (c) and the PID controller (d). Final reference error values of the orientation control of the heliostat for the fuzzy logic controller (e) and the PID controller (f).
Applsci 10 01598 g023
Table 1. Rule base of the fuzzy logic controller.
Table 1. Rule base of the fuzzy logic controller.
e N Z P
d e
N N N Z
Z N Z P
P Z P P
Table 2. Control gains of the PID controller for the DC motor at no load.
Table 2. Control gains of the PID controller for the DC motor at no load.
KpKiKd
2250.00.025110.0
Table 3. Parameters of the heliostat and DC motors.
Table 3. Parameters of the heliostat and DC motors.
ParameterValueUnit
Total height5.24m
Pedestal height2.85m
Elevation axis length4.43m
Gap between support frames0.70m
Number of facets16-
Mirror face size1.2 × 1.2m
Heliostat mirror area23 m 2
DC Motors Rated Voltage24V
DC Motors Rated Current≤5A
DC Motors Rated Torque100N·m
DC Motors No Load Speed5rpm
DC Motors Gear Ratio710.5-
Table 4. Parameters of the orientation control test.
Table 4. Parameters of the orientation control test.
ParameterValue
DateFriday, 13 September 2019
Time13:00:00–14:00:00
Latitude20.590636° N
Longitude100.413226° W
Monthly Mean Atmospheric Pressure819.795 mbar
Monthly Mean Temperature20.3 °C
Maximum Wind Speed8 m/s (28.8 km/h)
Target Height30.0 m
Heliostat Height2.85 m
East-West distance to the target15 m East
North-South distance to the target35 m North
Table 5. Reference error values of the orientation control.
Table 5. Reference error values of the orientation control.
ParameterFinal Ref MSEDesired Ref MSE
DC Motor at no loadPID Azimuth0.0°0.068610°
PID Elevation0.0°0.026349°
FLC Azimuth0.0°0.068610°
FLC Elevation0.0°0.026349°
HeliostatPID Azimuth0.153941°0.168669°
PID Elevation0.051032°0.048347°
FLC Azimuth0.131647°0.146435°
FLC Elevation0.039328°0.047251°

Share and Cite

MDPI and ACS Style

Salgado-Plasencia, E.; Carrillo-Serrano, R.V.; Toledano-Ayala, M. Development of a DSP Microcontroller-Based Fuzzy Logic Controller for Heliostat Orientation Control. Appl. Sci. 2020, 10, 1598. https://doi.org/10.3390/app10051598

AMA Style

Salgado-Plasencia E, Carrillo-Serrano RV, Toledano-Ayala M. Development of a DSP Microcontroller-Based Fuzzy Logic Controller for Heliostat Orientation Control. Applied Sciences. 2020; 10(5):1598. https://doi.org/10.3390/app10051598

Chicago/Turabian Style

Salgado-Plasencia, Eugenio, Roberto V. Carrillo-Serrano, and Manuel Toledano-Ayala. 2020. "Development of a DSP Microcontroller-Based Fuzzy Logic Controller for Heliostat Orientation Control" Applied Sciences 10, no. 5: 1598. https://doi.org/10.3390/app10051598

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop