Converts sun angles and drives two linear motors for horizontal and vertical sun-tracking.
Copyright (C) 2013 Felix Gottwald, HTW Dresden
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/
Contact: info@labor-elektrische-mobilitaet.de
- calculating step count from given sun angle (azimut, elevation)
- evaluates hall-sensor-controlled step counter
- drives half-bridges (freescale 33926) for linear motors (SatControl SM4S520M1) to given angles
- safety functions
- I²C slave adresse:
0x13 - ERROR CODES:
0x50ERR_STAUS_FLAG0x51ERR_ILLEGAL_END0x52ERR_STEPCOUNTER_OVERFLOW
- COMMANDS:
0x02CMD_SET_ANGLE0x04CMD_GOTO_REFERENCE0x06CMD_STOP0x08CMD_RESET0x33CMD_TERMINATED
- I²C Register Definition:
I²C_Data[1]- commands / errors - vertical motorI²C_Data[2]- commands / errors - horizontal motorI²C_Data[3]- data - vertical motorI²C_Data[4]- data - horizontal motor
- ATMega88(Atmel)
- 33926(freescale)
- SM4S520M1(SatControl)