This shows you the differences between two versions of the page.
|
pm:prj2026:jan.vaduva:ioana.vatasescu [2026/05/21 19:56] ioana.vatasescu |
pm:prj2026:jan.vaduva:ioana.vatasescu [2026/05/21 20:13] (current) ioana.vatasescu |
||
|---|---|---|---|
| Line 100: | Line 100: | ||
| ===== Software Design ===== | ===== Software Design ===== | ||
| + | |||
| + | I implemented this project in C, using platformIO. | ||
| The clock is implemented as a finite state machine, having the following states with distinct operating loops: | The clock is implemented as a finite state machine, having the following states with distinct operating loops: | ||
| Line 129: | Line 131: | ||
| **Alarm state** | **Alarm state** | ||
| + | On entering this state, the device generates a question along with its answer and displays the question on the LCD. Then, it listens for user inputs and if they have entered the correct number with the keypad, the number of consecutive correct answers will be incremeted. When this number reaches three, the clock goes back into normal state. | ||
| + | |||
| + | The questions can be a calculation (using any of: +, -, *, /), an ecuation or a sequence that the user has to continue. The type of question as well as the exact values are chosen randomly every time a question is generated. In order to simulate randomness, when the clock is activated, it generates a random seed, based on the exact time it was activated. | ||
| ===== Rezultate Obţinute ===== | ===== Rezultate Obţinute ===== | ||