Week 3 Summary

In week 3, we are all starting to finalise our parts of the project.

Here is Abdul Wahab's summary for week 3:

In the third week and after conducting a research in how to get more accurate responses from the Arduino code, the most accurate function to use is the if + else if statement and combine this function with the Boolean logic OR & AND statements. The final code was more accurate and it can to certain degree know which level that have been passed by knowing the mathematically measured values and compare it with the values that have been measure in the analog input. Moreover, in order to get more accurate feedback from the Arduino code, the code should have a range of values that was calculated by getting the error from these and were implemented in the code. 

Adam completed all 3 Levels for the game code, heres his summary:

Level 3 consists of a RC circuit, and involves finding the resistance of the resistor that will result in the capacitor being charged to a certain voltage in a specific amount of time. This is the hardest level of the 3, and will require the student to use the natural log, which they may not have been taught in GCSE's. In regards to organising the game code. Erik told me about a method used in Visual Studio. It involves having a C++ file for all the function defintions, a header file for all the function declarations, and a final C++ file for the main body, which will be calling functions from the functions.cpp file. The header file is included in fuinctions.cpp and main.cpp so they can be used together. With visual studio, these files are all stored inside one "project". Heres a photo of the layout:


Erik's week 3 progress:

The code no longer hangs when trying to connect to a device that is not an Arduino. Initially I attempted to run the checks on a new thread, however. The solution I have used to solve the issue involves editing the source code of the library I am using to add a line that throws a runtime error if the connected device is incompatible, which will progress to the next port when caught.




Comments

Popular posts from this blog

Week 4 summary