Integrated-Project-2-2021-UVic-UCC / sun-tracking

This is an integrated project of sun tracking solar panel. It contains the development of the software to control electronical and moving devices.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Structure of the code #8

Closed XavierPlatas closed 3 years ago

XavierPlatas commented 3 years ago

Structure of the code

XavierPlatas commented 3 years ago

@moises-garin @XaviMico17 It is the first version of the code, can you take a look?

XavierPlatas commented 3 years ago

Structure_Code_v1.pdf Second Version of the structure of the code. Improvements:

moises-garin commented 3 years ago

Some comments:

  1. One hour is a lot of time. May be wake up every 10 minutes? The important is to set at time that limits the sun movement to a certain number of degrees.
  2. The logic would be to move according the sun sensor if the amount light is enough. This means, if the panel is already facing the sun (more or less) and the sky is clear. In this situation, the calculation of the sun position might be useful to detect a malfunction of the system (error too high between real sun position and calculations).
  3. If the sun sensor is not giving reliable data, move according to the calculations.

B.R.