Week_12_Documentation & Reflection

Junxian Chen - Sun 21 June 2020, 2:55 pm
Modified: Sun 21 June 2020, 3:47 pm

Implement of hardware and functions

In this week's work, I mainly focused on the complete the product in hardware and functions. In this week's work, I mainly added the snooze function to the product and replaced the pressure sensor on the bracelet with the button.

At the same time, I started trying to make a webpage that shows products for exhibition week.

The addition of Button

In this week's work, I replaced the pressure sensor with a button. At the same time, in order to achieve the snooze function, I added an additional button to specifically control the snooze function. In the original plan, the "start timing" function and the "snooze" function is integrated into the same button. Under this scenario, when the bracelet is not in the counting state, pressing the button will start the counting. When the bracelet is in the alarm state, pressing the same button will trigger the snooze state. However, in the actual implementation process, I found that this function is difficult to achieve at the code level. The main reason is that the bracelet and the base station are in a cycle of continuous transmission and reception of signals, In this case, there is no effective way to determine whether the user will trigger the "start timer" function or the "snooze" function when the button is pressed. Therefore, I can only use two different buttons to control the "start timer" And "snooze" separately.

The addition of Snooze function

In the previous test, I also received some feedback that the buzzer sound from the base station is too noisy, and expect to reduce some of the volumes. This gave me the inspiration to add the snooze function. Snooze is a function that allows users to delay the alarm from the base station. When the base station starts alarming, if the user has urgent work to be completed, or the user is in another situation which the user cannot leave the desk, the user can choose to use the snooze function. After pressing the snooze button, the current alarm state of the base station will be temporarily cancelled, then entering a waiting state, the waiting time is set to about 5 minutes, users can use this period of time to complete unfinished work and leave the desktop when the alarm sounds again.

In order to achieve the snooze function, I use a counting function similar to the trigger alarm function. However, unlike the alarm state, which is achieved by the signal exchange between the bracelet and the base station, the timing state of the Snooze function is completely on the bracelet Realized. By turning on the snooze state, the bracelet sends a "normal working" signal to the base station, and at the same time, cancels the vibration of the bracelet itself and resets the LED light status. After the snooze time is over, the base station sends the "time out" again to trigger the alarm, the base station triggers the alarm after receiving the signal, and responds to the bracelet "time out" signal, then the bracelet starts to vibrate, and the LED light enters the alarm state.

Web page creation and problems

In order to better display my products, I think that using a good color scheme is the beginning of designing a webpage. After consultation with other members of the group, we unanimously decided to use gray and black as the main colors of our webpage, and Choose one other color as the characteristic color to distinguish each of us.