EPS@ISEP | The European Project Semester (EPS) at ISEP


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
report [2018/06/25 17:19] – [1.5 Requirements] team4report [2018/06/27 16:06] (current) – [7.6 Tests and Results] team4
Line 2041: Line 2041:
 <WRAP centeralign> <WRAP centeralign>
 <figure Electsche> <figure Electsche>
-{{ :electrical_schematics_1_esquema.png?nolink&600 |}}+{{ :36391988_2102571203105495_112453887465619456_n.png?nolink&800 |}}
 <caption>Electrical Schematics</caption> <caption>Electrical Schematics</caption>
 </figure> </figure>
Line 2084: Line 2084:
 <WRAP centeralign> <WRAP centeralign>
 <figure prototype> <figure prototype>
-{{ :flowchart_algorithm.png?nolink&1000 |}} +{{ :algorithm_chart123.png?nolink&800 |}}
-<caption>Flowchart of the algorithm</caption>+
 </figure> </figure>
 </WRAP> </WRAP>
Line 2091: Line 2090:
  
  
- +After plugging in the SetSun shader the system will calculate where the cloth part of the shader should move to over the structure based on the time of day and the physical placement of the SetSun in the world. The NREL's Solar Position Algorithm (SPA) calculates the position of the sun given the correct time of day (provided by the RTC) and by the correct position of the SetSun shader (inputted as latitude and longitude by team member at time of programming) at this point the controller, after receiving this information, then sends a signal to the motor in order to position the shader in the correct place.
-After plugging in the SetSun shader the system will calculate where the cloth part of the shader should move to over the structure based on the time of day and the physical placement of the SetSun in the world. The NREL's Solar Position Algorithm (SPA) calculates the position of the sun given the correct time of day which is given by the Real Time Clock and by the correct position of the SetSun shader (inputted as latitude and longitude by team member at time of programming) at this point the controller, after receiving this information, then sends a signal to the motor in order to position the shader in the correct place.+
  
 The time of day is provided to the system by the Real Time Clock that is connected up to the Arduino and whilst this continuously updates throughout the day and even if the SETSUN is unplugged or moved at any point there is a backup battery plugged into the Real Time Clock to keep accurate time in the system. The time of day is provided to the system by the Real Time Clock that is connected up to the Arduino and whilst this continuously updates throughout the day and even if the SETSUN is unplugged or moved at any point there is a backup battery plugged into the Real Time Clock to keep accurate time in the system.
 +The placement of the cloth over the structure is determined by; the location of the structure in the world (which country/city/time-zone it is in) and also, which position the sun would be in above the given country/city depending on the time of year or time of day. This information is provided by the algorithm that will be uploaded to our prototype/product by our team. Each day when the sun is rising, the algorithm informs the system as to which position the cloth section of the shader should be in and in turn sends a signal to the motor to rotate for a certain amount of time to move the cloth into the correct position in order to shade the people sitting underneath it. After a relevant portion of time has passed and the code has calculated a new position of the sun the controller will again instruct the motor to move for a set time to move the shader to a new position. This process will repeat a few times throughout the day to provide continuous shade to the user’s underneath. At the end of its cycle, the motor will be signalled to move the cloth back to the top of the structure and return to its zero-point. This means that when the shader is instructed to move the following day it needs only to move the same amount of time as it did the previous day as, due to the sensors recognising the cloth has moved back to its original position. This reduces the risk of the shader being in a place it is not supposed to be in.
  
-The placement of the cloth over the structure is determined by; the location of the structure in the world (which country/city/time-zone it is in) and also, which position the sun would be in above the given country/city depending on the time of year or time of day.  +At the end of the day, as mentioned previously, the team place in the code an instruction that informs the motor to turn in the correct direction until the cloth returns back to its zero-point (where the sensors meet) throughout the night and wait until the next day to begin again. The proximity sensors which reside in the top corners of the structure are there to ensure that when the cloth moves to its default position at night both proximity sensors are activated and the motor stops turning and the cloth stops moving until the next day when it starts up and moves to the first position at the beginning of the sunrise.
-This information is provided by the algorithm that will be uploaded to our prototype/product by our team.  +
-Each day when the sun is risingthe algorithm informs the system as to which position the cloth section of the shader should be in and in turn sends a signal to the motor to spin for a certain amount of time to move the cloth into the correct position in order to shade the people sitting underneath it. After a relevant portion of time has passed and the code has calculated a new position of the sun the controller will again instruct the motor to move for a set time to move the shader to a new position. This process will repeat a few times throughout the day to provide continuous shade to the user’s underneath. +
- +
-At the end of the day we place in the code an instruction that informs the motor to turn in the correct direction until the cloth returns back to its zero-point (where the sensors meet) throughout the night and wait until the next day to begin again. The proximity sensors which reside in the top corners of the structure are there to ensure that when the cloth moves to its default position at night both proximity sensors are activated and the motor stops turning and the cloth stops moving until the next day when it starts up and moves to the first position at the beginning of the sunrise.+
  
 ==== - Tests and Results ==== ==== - Tests and Results ====
Line 2134: Line 2129:
  
 **APP REPOSITIONING:** To test the app repositioning, it is important to check if the app code is well written and the chosen device is well connected to the Bluetooth receiver. It is expected the values provided by the app will override the algorithm values and so the canvas will move accordingly to the values provided by the app. **APP REPOSITIONING:** To test the app repositioning, it is important to check if the app code is well written and the chosen device is well connected to the Bluetooth receiver. It is expected the values provided by the app will override the algorithm values and so the canvas will move accordingly to the values provided by the app.
 +
 +Each individual part of the sun positioning algorithm work independently but when all parts of the code were placed together the code did not work as initially expected. The team were unable to rectify this problem due to finding out this problem very late on in the testing phase and a lack of specialised knowledge in the field to be able to ensure it would work.
  
 ==== - Conclusion ==== ==== - Conclusion ====
QR Code
QR Code report (generated for current page)