A program using Astropy library and Raspberry Pi to control a servo to get maximum sun exposure, it involves tracking the position of the sun in the sky and adjusting a servo motor to align a solar panel or other device with the sun's rays.
To use this solar tracker you will need Python 3.7 or later. You will also need to install the astropy library with pip, as well as pytest to run the test code.
pip install -r requirements.txt
- To use Solar Tracker you will need two devices:
- Raspberry PI and a Servo.
- You will need to ssh into your Raspberry PI in order to control the servo
ssh <IP address>
- Then you will need to clone the repository onto your device
git clone https://github.com/sshokoor/solarTracker.git
- Astropy : astropy documentation for using date and time
- Solar Calculator : solar calculator we used for reference to test our azimuth and altitude calculations
- Servo Documentation : documentation for the Servo Driver HAT