FLOWER DRESS

Project:

This is a dress which can change its form under light.

Without light it is just a simple white dress.

However, it will change to a dress full with purple flowers under light.

dress sketch.jpeg

Circuit:

Use the photosensitive resistor as the input and the servo as the output.

Code:

#include <Servo.h>

Servo myservo; // create servo object to control a servo
// twelve servo objects can be created on most boards

int pos = 0; // variable to store the servo position
int val;
int potpin = 9;
void setup() {
myservo.attach(6); // attaches the servo on pin 9 to the servo object

pinMode(pos, OUTPUT);
Serial.begin(9600);
}

void loop() {
val = analogRead(potpin); // read the value of voltage 0~1023
Serial.println(val);
if (val >800){

myservo.write(-180); // tell servo to go to position in variable ‘pos’
delay(15); // waits 15ms for the servo to reach the position
}

else{
myservo.write(180); // tell servo to go to position in variable ‘pos’
delay(15); // waits 15ms for the servo to reach the position
}
}

Example Showing:

 

Problems:

1/ To open and close the flower, it requires to pull enough thread. However, my micro servo  can only rotate 180 degree. It can only work on the flower of small size.

——hack the servo

2/ The threads under the dress are total in a mess.

——-use some tube to hold them

3/ While the servo motor pulls the thread, because of the interactive force, the fabric will wrinkle together and it is hard to keep the balance of the servo.

——Put the servo into a container

IMG_6753.JPG

Use some tough material to support the fabric

IMG_6760.JPG

4/ It is really hard to measure the length of thread between the flower and the servo to make the flower perfectly open and close.

5/ The servo will become extremely hot soon after turning on the switch.

6/ The shape of flower while it is close is really awful.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s