System input and output

From Control Systems Technology Group
Revision as of 22:21, 6 March 2016 by S141268 (talk | contribs)
Jump to navigation Jump to search

Back to main page: PRE2015_3_Groep4

To input: Input

To code: Code

To output: Output

The user must be able to adjust various settings of the Smart Bedroom to fit his own needs. In addition to that, the system must provide its user with information about how he slept and the user must be able to provide feedback, which the Smart Bedroom can take into account during the following nights. For this project, however, we won’t be able to implement all features the way we imagined it, if at all. In addition to that, we don’t know yet whether we will make a NetLogo simulation or a real, functioning prototype with an Arduino, so options for both of them have been listed. We’re not so experienced yet with working with the Arduino, so the descriptions for that may be a bit vague.

System input

Input Dream NetLogo simulation Arduino prototype
Setting or keeping track of the time and date. The Smart Bedroom uses the time and date according to your smartphone. The time is irrelevant, but the day of the year (between 1 and 365) can be typed into an input box. Built-in timekeeper or the time according to your laptop. The date is irrelevant.
Temperature in the bedroom. A simple thermostat is placed in the Smart Bedroom. A simple model simulates the temperature in the bedroom. N/A

(The Arduino has no temperature control.)

Brightness in the bedroom. A sensor placed in the bedroom measures the brightness. A simple model simulates the brightness in the bedroom. N/A

(The Arduino won’t take the brightness into account.)

Brightness outside. A sensor placed on the outside wall measures the brightness. A simple model simulates the brightness outside as a function of the date and time. N/A

(The Arduino won’t take the brightness into account.)

Choose between no alarm, standard alarm and smart alarm. The choice is made with a drop-down menu on the mobile app for the Smart Bedroom. N/A

(Focus is on smart alarm.)

N/A

(Focus is on smart alarm.)

Indication of when the user is going to sleep. The user presses a big ‘Start’ or ‘Sleep’ button on the app. An input box for typing in the time the ‘user’ goes to sleep. Starting the program.
Choose when you want to wake up. With the standard alarm the user selects the exact time he wants to be woken up, with the smart alarm he chooses the start and end of the period in which he wants to be woken up. Two input boxes: one in which you can type the start of the period in which the ‘user’ needs to be woken up, in the other box you type the end. The program asks the user for two numerical input values: one for the start of the ‘wake up period’ and the other one for the end.
Choose what the Smart Bedroom controls (lights, blinds, heater). Checkboxes on the app can be used to toggle the use of lights, the blinds and the heater. The temperature in the room during the night must be adjustable, but default would be about 18 °C. Switches for toggling the lights, blinds and the heater. We’ll only be able to let the Arduino control a light, so the program could ask the user for a Boolean value for toggling this.
Sound control (volume and type of sound). The volume can be adjusted with the volume control buttons of the phone itself. The type of sound can be chosen from a database from the app itself or from the personal folders on the phone. Sound is simulated, but the volume is expressed in terms of how effective it is in waking the user up. The effectiveness can be typed into an input box, but we don’t know yet how the model will use it or what the range is. The program could ask the user for a percentage, where 0% mutes the sound and 100% means maximum sound volume, but this also depends on the speaker. The type of sound is a standard repetitive alarm tone.
Sleep cycle (how deep the user sleeps). There exists an app already that can translate the sounds the user makes when sleeping (breathing and moving) into a sleep cycle. The Smart Bedroom will do the same. The sleep cycle is calculated by a mathematical model and is given directly as an input. The program uses a microphone to find the frequency of the user’s breathing and translates that into a sleep cycle.