System input and output: Difference between revisions
No edit summary |
No edit summary |
||
Line 67: | Line 67: | ||
| width="200" | '''Output''' | | width="200" | '''Output''' | ||
| width="400" | '''Dream''' | | width="400" | '''Dream''' | ||
| width="300" | '''Arduino prototype''' | | width="300" | '''Arduino prototype''' | ||
|- | |- | ||
| Temperature control. | | Temperature control. | ||
| The Smart Bedroom controls the heater and keeps the temperature constant at a pleasurable level for the user to sleep, default at about 18 °C. Just before the alarm goes up, the temperature needs to rise to a level set by the user. | | The Smart Bedroom controls the heater and keeps the temperature constant at a pleasurable level for the user to sleep, default at about 18 °C. Just before the alarm goes up, the temperature needs to rise to a level set by the user. | ||
| N/A | | N/A | ||
(The Arduino won’t be able to control the heater.) | (The Arduino won’t be able to control the heater.) | ||
Line 78: | Line 76: | ||
| Control of the blinds. | | Control of the blinds. | ||
| From the start of the ‘wake up period’, the brightness in the bedroom needs to be gradually increased to help the user wake up. The system uses as much natural light as possible, so if the brightness outside is high enough, the blinds will slowly open up. If the user is fully awake or hasn’t woken up yet during the ‘wake up period’, the blinds will open up completely. | | From the start of the ‘wake up period’, the brightness in the bedroom needs to be gradually increased to help the user wake up. The system uses as much natural light as possible, so if the brightness outside is high enough, the blinds will slowly open up. If the user is fully awake or hasn’t woken up yet during the ‘wake up period’, the blinds will open up completely. | ||
| N/A | | N/A | ||
(The Arduino won’t control the blinds.) | (The Arduino won’t control the blinds.) | ||
Line 84: | Line 81: | ||
| Control of the lights. | | Control of the lights. | ||
| If it’s still too dark outside, the Smart Bedroom will gradually turn on the lights instead. If the user is fully awake or hasn’t woken up yet during the ‘wake up period’, the lights will turn on completely. | | If it’s still too dark outside, the Smart Bedroom will gradually turn on the lights instead. If the user is fully awake or hasn’t woken up yet during the ‘wake up period’, the lights will turn on completely. | ||
| The Arduino will gradually turn on a small light, but won’t measure the brightness because it doesn’t add much to this project. | | The Arduino will gradually turn on a small light, but won’t measure the brightness because it doesn’t add much to this project. | ||
|- | |- | ||
| Alarm sound. | | Alarm sound. | ||
| In case of the standard alarm, of if the user hasn’t woken up yet during the ‘wake up period’, the smartphone produces a generic repetitive alarm tone at the time set by the user. In case of the smart alarm, the phone produces a more natural sound when it’s the right time to wake up the user, like birds tweeting or waves crashing. The volume will increase over time to ensure the user wakes up. | | In case of the standard alarm, of if the user hasn’t woken up yet during the ‘wake up period’, the smartphone produces a generic repetitive alarm tone at the time set by the user. In case of the smart alarm, the phone produces a more natural sound when it’s the right time to wake up the user, like birds tweeting or waves crashing. The volume will increase over time to ensure the user wakes up. | ||
| The Arduino produces a natural sound for the smart alarm similar to how it’s described with the dream. | | The Arduino produces a natural sound for the smart alarm similar to how it’s described with the dream. | ||
|- | |- | ||
| A graph of the entire sleep cycle of that night. | | A graph of the entire sleep cycle of that night. | ||
| The graph is shown the moment the user turns off the alarm and is stored in a database for later use. | | The graph is shown the moment the user turns off the alarm and is stored in a database for later use. | ||
| We will try to make the Arduino plot the sleep cycle in a graph on the laptop. | | We will try to make the Arduino plot the sleep cycle in a graph on the laptop. | ||
|} | |} | ||
Line 104: | Line 98: | ||
| width="200" | '''Feedback''' | | width="200" | '''Feedback''' | ||
| width="400" | '''Dream''' | | width="400" | '''Dream''' | ||
| width="300" | '''Arduino prototype''' | | width="300" | '''Arduino prototype''' | ||
|- | |- | ||
| Temperature during sleep. | | Temperature during sleep. | ||
| The user can rate the temperature by choosing between ‘Too cold’, ‘Chilly’, ‘Alright’, ‘Warm’ and ‘Too hot’. The Smart Bedroom uses this information to adjust the temperature during sleep in the following nights accordingly. | | The user can rate the temperature by choosing between ‘Too cold’, ‘Chilly’, ‘Alright’, ‘Warm’ and ‘Too hot’. The Smart Bedroom uses this information to adjust the temperature during sleep in the following nights accordingly. | ||
| N/A | | N/A | ||
(The Arduino won’t control the temperature.) | (The Arduino won’t control the temperature.) | ||
Line 115: | Line 107: | ||
| Brightness when waking up. | | Brightness when waking up. | ||
| The user can rate the brightness by choosing between ‘Too dark’, ‘Dark’, ‘Alright’, ‘Bright’ and ‘Too bright’. The Smart Bedroom uses this information to adjust the blinds and lights accordingly. | | The user can rate the brightness by choosing between ‘Too dark’, ‘Dark’, ‘Alright’, ‘Bright’ and ‘Too bright’. The Smart Bedroom uses this information to adjust the blinds and lights accordingly. | ||
| The program asks the user for a numerical input. -1 means too dark, 0 means alright and 1 means too bright. The Arduino adjusts the brightness of the light during the following experiments accordingly. | | The program asks the user for a numerical input. -1 means too dark, 0 means alright and 1 means too bright. The Arduino adjusts the brightness of the light during the following experiments accordingly. | ||
|- | |- | ||
| Sound volume. | | Sound volume. | ||
| The user can rate the sound volume by choosing between ‘Too soft’, ‘Soft’, ‘Alright’, ‘Loud’ and ‘Too loud’. The Smart Bedroom uses this information to adjust the sound volume accordingly. Furthermore, the user can change what kind of sound the system makes if it didn’t please him. | | The user can rate the sound volume by choosing between ‘Too soft’, ‘Soft’, ‘Alright’, ‘Loud’ and ‘Too loud’. The Smart Bedroom uses this information to adjust the sound volume accordingly. Furthermore, the user can change what kind of sound the system makes if it didn’t please him. | ||
| The program asks the user for a numerical input. -1 means too soft, 0 means alright and 1 means too loud. The Arduino adjusts the volume of the sound during the following experiments accordingly. | | The program asks the user for a numerical input. -1 means too soft, 0 means alright and 1 means too loud. The Arduino adjusts the volume of the sound during the following experiments accordingly. | ||
|} | |} |
Revision as of 15:20, 30 March 2016
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. The temperature during sleep is 18 *C and after waking up 21 *C.
System input
Input | Dream | Arduino prototype |
Setting or keeping track of the time and date. | The Smart Bedroom uses the time and date according to your smartphone. | 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. | N/A
(The Arduino has no temperature control.) |
Brightness in the bedroom. | A sensor placed in the bedroom measures the brightness. | N/A
(The Arduino won’t take the brightness into account.) |
Brightness outside. | A sensor placed on the outside wall measures the brightness. | 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.) |
Indication of when the user is going to sleep. | The user presses a big ‘Start’ or ‘Sleep’ button on the app. | 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. | 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. | 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. | 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 program uses a microphone to find the frequency of the user’s breathing and translates that into a sleep cycle. |
System output
Output | Dream | Arduino prototype |
Temperature control. | The Smart Bedroom controls the heater and keeps the temperature constant at a pleasurable level for the user to sleep, default at about 18 °C. Just before the alarm goes up, the temperature needs to rise to a level set by the user. | N/A
(The Arduino won’t be able to control the heater.) |
Control of the blinds. | From the start of the ‘wake up period’, the brightness in the bedroom needs to be gradually increased to help the user wake up. The system uses as much natural light as possible, so if the brightness outside is high enough, the blinds will slowly open up. If the user is fully awake or hasn’t woken up yet during the ‘wake up period’, the blinds will open up completely. | N/A
(The Arduino won’t control the blinds.) |
Control of the lights. | If it’s still too dark outside, the Smart Bedroom will gradually turn on the lights instead. If the user is fully awake or hasn’t woken up yet during the ‘wake up period’, the lights will turn on completely. | The Arduino will gradually turn on a small light, but won’t measure the brightness because it doesn’t add much to this project. |
Alarm sound. | In case of the standard alarm, of if the user hasn’t woken up yet during the ‘wake up period’, the smartphone produces a generic repetitive alarm tone at the time set by the user. In case of the smart alarm, the phone produces a more natural sound when it’s the right time to wake up the user, like birds tweeting or waves crashing. The volume will increase over time to ensure the user wakes up. | The Arduino produces a natural sound for the smart alarm similar to how it’s described with the dream. |
A graph of the entire sleep cycle of that night. | The graph is shown the moment the user turns off the alarm and is stored in a database for later use. | We will try to make the Arduino plot the sleep cycle in a graph on the laptop. |
Feedback mechanism
Feedback | Dream | Arduino prototype |
Temperature during sleep. | The user can rate the temperature by choosing between ‘Too cold’, ‘Chilly’, ‘Alright’, ‘Warm’ and ‘Too hot’. The Smart Bedroom uses this information to adjust the temperature during sleep in the following nights accordingly. | N/A
(The Arduino won’t control the temperature.) |
Brightness when waking up. | The user can rate the brightness by choosing between ‘Too dark’, ‘Dark’, ‘Alright’, ‘Bright’ and ‘Too bright’. The Smart Bedroom uses this information to adjust the blinds and lights accordingly. | The program asks the user for a numerical input. -1 means too dark, 0 means alright and 1 means too bright. The Arduino adjusts the brightness of the light during the following experiments accordingly. |
Sound volume. | The user can rate the sound volume by choosing between ‘Too soft’, ‘Soft’, ‘Alright’, ‘Loud’ and ‘Too loud’. The Smart Bedroom uses this information to adjust the sound volume accordingly. Furthermore, the user can change what kind of sound the system makes if it didn’t please him. | The program asks the user for a numerical input. -1 means too soft, 0 means alright and 1 means too loud. The Arduino adjusts the volume of the sound during the following experiments accordingly. |
Possible Netlogo interface
The picture below is a possible interface for the NetLogo simulation of the Smart Bedroom. The "Setup" button sets up the program, the "Go" button runs the program and the "Start" button starts a new night while taking the feedback from the previous night into account (unless it's the first night). The time the 'user' goes to sleep and the boundaries of the time period he needs to wake up are given as one number, so in this case the time the 'user' goes to sleep is 21:30 and he needs to wake up between 6:30 and 7:00. The day of the year in this example is the 365th day, so the 31st of December. The Smart Bedroom is allowed to control blinds, the lights and the heater. The effect of the alarm sound on the user is set to 1, but we don't know yet what this will mean. Three plots keep track of how deep the 'user' sleeps and what the temperature and the brightness in the room are. Finally, after a night, feedback can be given using three choosers. We're not sure yet what will be shown on the display, but we're thinking of an image of a virtual bedroom.