Category:

Arduino

Title:

Status Reporting Glove with Ardunio Lilypad

Ardunio Lilypad is a microcontroller designed to develop wearable technologies. In fact, although a very wide range of usage, it can be said that it is a bit more difficult to use than other Ardunio derivatives. Because it also requires sewing embroidery. Lilypad can be used at T-shirts, pants, shirts, bracelets, belts etc. You can develop a project for all kinds of clothes you can think of. This example was developed for children who cannot express themselves. With this glove, children can express their emotions or needs with the help of the colors in the glove. The colors here mean:

  • Red; "negative", "I feel bad", "I need", "I don't understand" situations,
  • Blue; "paositive-negative", "understood a little", "I need a non-urgent" situations,
  • Green; "positive", "feel good", "understood" situations.

Of course, this glove can also be used for different purposes, such as traffic light gloves or lighting glove.

Used materials

  • Ardunio Lilypad
  • Lilypad Push Button
  • 2 x Lilypad RGB led
  • FDTI module (for installing code to Lilypad)
  • Lilypad conductive yarn

In addition, the following code can be obtained in white light. The scheme of this project is as follows:

To load the source code into Lilypad, you need the FDTI module. The connection of the FDTI module is shown in the diagram. You may also see the connections in the photo below:

Deek-Robot FDTI module was used in this project. The driver of the FDTI module needs to be installed before installing the source code. The drive connection of the FDTI module used here is as follows:

https://www.ftdichip.com/Drivers/D2XX.htm

Tip: When installing the source code in Lilypad, if you are using a clone like here, you need to define it as normal UNO in the Ardunio IDE else code does not load.

Of course, this may differ from the clone to clone. 

The source code of the project is as follows:

int buttonPin = A2;  //In Lilypad buttons using analog pins
int durum = 0;       //Using for changing stuations whwn the button ispressed
//Defining pins of RGB leds
int RGB_red = 9;
int RGB_green = 11;
int RGB_blue = 10;

void setup()
{
  pinMode(buttonPin, INPUT_PULLUP);   //In Lilypad we need to specify the button entry this way
  pinMode(RGB_red, OUTPUT);
  pinMode(RGB_green, OUTPUT);
  pinMode(RGB_blue, OUTPUT);

}

void loop()
{

    if(digitalRead(buttonPin)==LOW)  //LOW should be here especially if not the button doesn't function
  {
     durum +=1;

     if(durum>4)
     {
       durum=0;
     }
       
  }
        
    switch(durum)
{
  
  case 0:   
  analogWrite(RGB_red,LOW);     //White
  analogWrite(RGB_green,LOW);
  analogWrite(RGB_blue,LOW);
  break;
  case 1:     
  analogWrite(RGB_red,255);   // red
  analogWrite(RGB_green,0);
  analogWrite(RGB_blue,255);
  break; 
  case 2: 
  analogWrite(RGB_red,0);     //Blue
  analogWrite(RGB_green,255);
  analogWrite(RGB_blue,255);
  break;
  
  case 3: 
  analogWrite(RGB_red,255);     // Green
  analogWrite(RGB_green,255);
  analogWrite(RGB_blue,0);
  break; 

  case 4:         //Turning off leds
  pinMode(RGB_red, INPUT);
  pinMode(RGB_green, INPUT);
  pinMode(RGB_blue, INPUT);
  break; 
} 
delay(1000);
}

And there are photos of project:




413 views
COMMENTS
komaar
good idea it can be upgrade