The Yawn

Made by djayaswa, Lauren Romero and Mark Byrne

Found in Ambient Affect

The yawn tells you when you need to go to bed and get more sleep.

0

Product Summary

The Yawn is for personal use in someone’s house to help users know how much sleep they have gotten. This way the user will know if he should go to bed early. The motion of the device is an opening and closing of a four bar linkage. This gesture represents fatigue as it reminds the viewer of a yawn. A black and grey color scheme was used to convey the mood. Users need only to glance at the moving sculpture to see how much sleep they have gotten based on how much the shape opens up. Additionally, a light will change as the user sleeps more going from bright white to signify energy and having enough sleep to purple, signifying the need to sleep more.

0

Process

Our team decided to focus on fatigue. We first made a mood board of this feeling.


0

Next, we made a model using Legos that included a four bar linkage with a track to deliver the wanted shapes with the power of a servo.  

0
Lego Model of Project
0205171629 %281%29
0

Next, we made a model out of foamcore to be more aesthetically pleasing. 

0
Process of foamcore modeling
0208170918
1
Final Prototype
0208172042
0

Components

  1. RGB LED
  2. Servo
  3. 3 1K Ohm resistors
  4. 12 jumpers
  5. Foamcore
  6. 4 Lego linkages and connector pieces  
0
Product used in context
0208172042a %281%29
0
Image of circuit
0208170918a
0
Circuit Diagram
Circuit2
0
int servoPin = A5;
Servo myServo;
int servoPos = 0;

int redPin = A4;    // RED pin of the LED to PWM pin **A4**
int greenPin = D0;  // GREEN pin of the LED to PWM pin **D0**
int bluePin = D1;   // BLUE pin of the LED to PWM pin **D1**
int redValue = 255; // Full brightness for an Cathode RGB LED is 0, and off 255
int greenValue = 255; // Full brightness for an Cathode RGB LED is 0, and off 255
int blueValue = 255;

int pos = 10;
int SleepLost;

void setup() {
  // attaches the servo on the A7 pin to the servo object
  myServo.attach( A5 );
  //Register our Particle to control the servo
  Particle.function("servo", servoControl);
  // Keep a cloud variable for the current position
  //Particle.variable(  "servoPos" , &servoPos , INT );
  Particle.variable(  "SleepLost" , &SleepLost , INT );
  pinMode( redPin, OUTPUT);
  pinMode( greenPin, OUTPUT);
  pinMode( bluePin, OUTPUT);
  }
void loop() {
 }

int servoControl( String command )
{
    // Convert
   int hours = command.toInt();
   if ( hours > 8)
   {
     pos = 83;
     servoWrite ( pos );
     blueValue = 255;
 		 analogWrite(bluePin, blueValue);
   }
   else if ( hours > 6)
   {
     pos = 75;
     servoWrite ( pos );
     blueValue = 204;
 		 analogWrite( bluePin, blueValue);
   }
   else if( hours > 4 )
   {
     pos = 60;
     servoWrite ( pos );
     blueValue = 153;
 		 analogWrite( bluePin, blueValue);
   }
   else if( hours > 2)
   {
     pos = 45;
     servoWrite ( pos );
     blueValue = 102;
 		 analogWrite( bluePin, blueValue);
   }
   else
   {
     pos = 20;
     servoWrite ( pos );
     blueValue = 0;
 		 analogWrite( bluePin, blueValue);
   }
   return 1;
}

void servoWrite( int a ){
  // Convert
  int newPos = a;
  // Make sure it is in the right range
  // And set the position
  servoPos = constrain( newPos, 0 , 180);
  // Set the servo
  myServo.write( servoPos );
  // done
}
Click to Expand
0

Storyboard

0
  1. The user puts on his Fitbit before bed. He goes to sleep at 1:00 am.
  2. The user wakes up at 6:00 am. This puts him in a sleep deficit of 3 hours.
  3. Because the user needs more sleep, the sleep sense opens larger and the light slightly dims.
  4. The next day the user goes to sleep at 1:30 am.
  5. Then he wakes up at 7:30 am, adding 2 hours to his deficit.
  6. This causes the sleep sense to open even larger and make the light very dim.
  7. The user can see that his sleep sense is very large now.
  8. He decides to take a nap, which reduces his sleep deficit and makes the sleep sense go down and the light grow brighter.
0

Video

0

YAWN from Mark Byrne on Vimeo.

x
Share this Project

Courses

49-713 Designing for the Internet of Things

· 26 members

A hands-on introductory course exploring the Internet of Things and connected product experiences.


About

The yawn tells you when you need to go to bed and get more sleep.

Created

February 8th, 2017