2.34k likes | 5.07k Views
Dual-Axis Solar Tracking System. Ryan Courtney Senior Design II Advisor: Junkun Ma. Abstract. Design Dual-Axis Solar Tracking System Feedback Control Light Intensity Sensor Microcontroller (Arduino) Dual-Motor Setup Wireless Communication XBee Radio. Purpose.
E N D
Dual-Axis Solar Tracking System Ryan Courtney Senior Design II Advisor: Junkun Ma
Abstract • Design Dual-Axis Solar Tracking System • Feedback Control • Light Intensity Sensor • Microcontroller (Arduino) • Dual-Motor Setup • Wireless Communication • XBee Radio
Purpose • Position a solar panel to receive maximum light intensity • Integrate wireless communication • Achieve positioning using two axis of freedom as opposed to one
Overview • Software • Arduino Programming Environment • Algorithm • Hardware • Light Sensor • Frame • Microcontroller • Wireless Modules • Motors and H-bridges • PWM to Analog • Low-Pass Filter Design
Software • Arduino Programming Environment • Based on language known as Processing • Processing based on C++ • Allows for composition and troubleshooting of Arduino code known as “sketches” • www.arduino.cc
Software • Algorithm • Broken into two major pieces • Sender • Receiver
Sender Functions • Startup • Position at 45º angle • Initial Check • Average Sensors • Wireless Sender (Horizontal Motor) • Control Vertical • Control Horizontal • Check Dark (not for use indoors) • Delay (when balanced)
Wireless Sender • Sends numeric codes to wireless module for horizontal motor control
Receiver Functions • Error Check • Main loop • Stop Horizontal Motor
Error Check • Keeps motor at halt if no data is available • Ensures code sent is within the correct range • Returns code when correct
Hardware • Light Sensor • Frame • Microcontroller • Wireless Modules • Motors and H-bridges • PWM to Analog • Low-Pass Filter Design
Light Sensor • Use property of photoresistors • Layout in grid pattern • Use comparisons of resistors • Balance sensors on most intense light
Frame • Use plywood for structure • Two degrees of freedom • Maximum vertical adjustment is 63º • Minimum vertical adjustment is 23º • Horizontal adjustment is 360º
Microcontroller • Arduino Uno/Duemilanove (x2)
Wireless Modules • Use Wireless Shield to snap to Arduino (top) • Use XBee radios snapped to wireless shields (bottom) • Wireless communication via serial commands
Motors and H-Bridges • 24 VDC Slewing Drive motor for horizontal motion (top) • 12 VDC Linear Actuator with potentiometer feedback for vertical motion (bottom)
Motors and H-Bridges • Sabertooth 2x25 (top) and 2x12 (bottom) used as H-Bridges • 0-5V input from microcontroller • 0-2.5V input signal for reverse • 2.5V for stop • 2.5-5V input signal for forward
PWM to Analog • Pulse Width Modulation (PWM) is digital representation of analog signal in square wave form • Sabertooth H-Bridge cannot accept digital/PWM signal • Sabertooth H-Bridge can accept analog signal • Use low-pass filter to condition PWM signal to smooth analog signal
Low-Pass Filter Design • 1 KΩ resistor • 1 uF capacitor • F = 1/2πRC to calculate Frequency of filter • Filter frequency is 15.9 Hz • Frequency is sufficient for the rate of change of the project
Final System • Wireless communication between Arduinos • Dual-Axis movement • Tracks light intensity • Balance on most intense light
Deliverables • Light Sensor (Single Component) • Control of Two Individual Motors • Wireless Communication • Single System • Source Code • Block Diagram