User:Truongdat120891/enes100/illuminate clothing 2ND PROJECT

Link to project.T2C 2ND PROJECT team page.

Give instructor top 3 project choice list

 * Illuminate clothes
 * Water jet
 * Helicopter

Write problem statement
trying to improve the program for the lilypad, they way i wrote the program right now is pretty long and complicated, and it doesn't do much except for control the timing of the lilypad

Assign Task1
write a program that can make the led dim and go off slowly

Compare actual work done to Task1
I have got some clue where should i start with the RGB LED Strip. I got a ideal for designing the RBG strip.

Week1 Narrative
This is the design i made for the RGB strip and led, and here is the link where i get all the information about circuit. Because i don't have the arduino for now so i can't test out anything. As soon as i receive the arduino and material i will start on loading the code i have from research and learn. I had amazing ideal about making a box so we can fit everything in and then cover it up with silk. I had the right silk and i had the wood but i can't cut the wood in half. Even with the saw and knife. It's turn out ugly so i decided to order some from the place my father work.
 * http://fritzing.org/projects/arduino-knight-rider-with-8-blue-12v-led-modules/



Assign Task2
I will plan on finishing what I was doing in week1.

Week2 Activities
===Compare actual work done to Task2= the RGB led is working perfectly and i can write a code to let the led fade and then change the color differently.

Week2 Narrative
By using the arduino uno, i was be able to controle the RGB led and with 5 volt the led is pretty bright, and by using the code that i wrote, i can make the led fading slowly to change from this color to the other. http://www.youtube.com/watch?v=HCiCnfOLDk4 this is the behavior i got.

Assign Task3
i will try to combine the button switch and rgb led

Compare actual work done to Task3
I can control the RBG led with a button switch and used the button switch to change the RGB led's pattern

Week3 Narrative
I was trying to control the RGB led with button switch, but i met a few problem. On the first test, i wasn't be able to get the arduino working, it keeping reset when i pull the switch, after hours of researching and find out what is the problem, i found out the switch can't be run with a high voltage, so all i did was just put on a resistor for the switch.Then i met another problem is, i can't get the switch to turn off the led or change the pattern, i can manage to turn on the RGB led right away, but it took me a thousand of times pressing the button to make it stop blinking.It turned out that the delay time in my code and the pattern of the led can't be complicated, it must be simple to be able to turned the led right away from this pattern to the other pattern. This is the video when i was working with the led. http://www.youtube.com/watch?v=do-3Fj8O6cs&feature=youtu.be And this is the first code i wrote base on a sample code
 * code1
 * this is the final code i wrote to get that final behavior
 * code2

Assign Task4
I will complete what i was doing with the button switch and i will make the led strip working.

Compare actual work done to Task4
I can made a circuit include the rgb led using a case.

Week4 Narrative
I was trying to assemble everything into a final product, which i would include the rgb led. wire, the arduino,a switch, and a case for everything. I opened up a car strip led, remove everything inside. then wire up the led into a strip of led. by measuring the distance between the hole, i cut up a wire a little bit longer than that( about 1 cm). i dont want the led to move a round so i used a hard wire, then i used a scisor to bend the wire.(i used my hands to bend the leg of the led because i dont want to twist and broke the leg of the led). i connected 3 of the led then i tried to fit it in the case for good measure. But it turned out the wire was too hard, so it wasn't flexible for me to fix the distance, and when i twist it up with the led, it is actually bend and the distance i was measure wasn't long enough. After a few times, trying to twist and bend, i gave up on using the hard wire, instead i used the copper wire which is really flexible. Now i can used my hand to do everything, it was much easier to used a copper wire to wire the led up, and i can fixed the distance between two led also. but when everything is ready. i put it in the case, because of it is too soft so the wire of this wire touch the other. i used a couple chop stick ,i measured the distance, then i cutted the chopstick up and tried to fit in the case( i made the chopstick really thin so it doesn't take much space in the case). Basicly i just made a wall between 4 lines of wire. by using a scold gun, i glue them up to the case. i put everything together closed the case and then connect the wire to the arduino. IT WASN'T WORKING. i was so frutrating, i took everything apart again, and test the led, it was working fine. But when i closed them, they were completely dark, not even a single light come up.