To download NI software, including the products shown below, visit ni.com/downloads.
Sun tracking can increase the power output for PV solar power plants by about 25% to 40%, depending on the geographic location. (The high number is for desert areas like the Mojave desert where the sunlight is very direct and not very diffuse.) In Austin, Texas USA a single axis tracker will increases power output by 26% compared to a fixed angle system, while a dual axis tracker increases power by 32%. (That’s why single axis trackers are more common that dual axis trackers.) Single axis trackers follow the sun from East to West, while two axis trackers also track the sun altitude (up/down). In solar thermal collectors such as parabolic dish collectors, sun tracking is required and the power output is very sensitive to sun angle.
Software
Hardware
LabVIEW Real-Time Application
The real-time application calculates the current sun position based on GPS location coordinates and the date/time and time zone. The sun position is then used as the set point for two proportional-integral-derivative (PID) control functions. One PID function controls the azimuth (east/west) position of the tracker, while another controls the altitude (up/down) position of the tracker. The actual altitude and azimuth position of the tracker is calculated in the FPGA. These values are the process variable inputs to the PID loops, which then output a pulse width modulation (PWM) duty cycle command that adjusts the amount of power given to the motors by the CompactRIO NI 9505 brushed DC motor drive modules.
Note: This control approach is designed to position the PV cells to point directly into the sun. For mirror tracking (heliostat) applications, additional algorithms would be required to calculate the proper position set point to direct the sun light onto the collector.
LABVIEW FPGA Application
The FPGA application begins with enabling the drive modules. Then a pulse width modulation (PWM) signal is generated for each of the motors based on the duty cycle command. This determines how much power is sent to the motors. There is also a direction control. When the user hits, the Stop button, the drives are disabled. FPGAs are fast, parallel and reliable. Data acquisition for the sine-cosine encoder sensors that runs at 200 kHz. LabVIEW FPGA supports fixed point data for I/O nodes, so the values are in Volts rather than integer units. The sine-cosine position sensor decoder algorithm converts these peak level signals into the Azimuth and Altitude position signals in degrees.
Sine-Cosine Position Sensor Decoding Algorithm (LabVIEW FPGA)
The FPGA-based position calculation algorithm converts the raw analog signals from a sine/cosine encoder into a angular position measurement in degrees. The algorithm converts the analog signals to position by performing a fixed-point arctangent function. Various signal processing techniques are used to make the algorithm robust to signal noise. This decoding algorithm could be used independently for any application that requires sine-cosine decoding. In this particular application, a custom Peak Trigger algorithm is used to detect the peak level of each signal, since the particular sine-cosine encoder used in this application produces pulses that strobe at a 500 Hz rate. If you are using a standard industrial sine-cosine encoder with a DC voltage output (rather than pulsed output) you can eliminate the peak level detection VI.
Assembly Instructions
Assembly instructions are included for building an educational sun tracker based on a low cost commercially available telescope base. However, this hardware configuration is intended for exploring concepts, teaching and research but there are some limitations: Although ruggedized waterproof enclosures for CompactRIO are available, the system described in the assembly instructions is not weatherized for outdoor use. As it is implemented in this configuration, the microprocessor powering the sine-cosine encoders goes to sleep after 10 minutes-- modifications would be required for continuous long term tracking. This particular mechanical configuration is by no means intended for unattended use outdoors or commercial use.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.