loading

Step 8: program your jacket

.
Decide on the behavior you want.

I wanted the left switch to turn on the left turn signal for 15 seconds or so, and the right switch to do the same thing for the right signal. Pressing a switch when the corresponding turn signal is on should turn the signal off. Pressing both switches at the same time should put the jacket into nighttime flashing mode. The wrist mounted LEDs should provide feedback about the current state of the jacket. Here's the code I wrote to get that behavior.

Program your jacket

To program your garment, copy and paste my code into an Arduino window and load it onto the LilyPad. You may have to make some small adjustments first depending on where you attached lights and switches. Play with delays to customize your blinking patterns. Follow my LilyPad introduction instructions if you need more information on how to program the LilyPad or how to make sense of my code.

Plug your battery back in and see if it works and...go biking!

Insulate the rest of your traces

Cover the rest of your traces with puffy fabric paint. Again, don't coat anything until you're sure it works.

About washing

Your creation is washable. Remove the battery and wash the garment by hand with a gentle detergent.

Note: silver coated threads will corrode over time and their resistance will gradually increase with washing and wear. To limit the effects of corrosion, insulate and protect your traces with puffy fabric paint or some other insulator. You can also revive exposed corroded traces with silver polish. Try this on a non-visible area first to see what it does to your fabric!
<p>you have the code to turn the left signal off and the right on and off to flash but for the left signal do you just do the same have the right turned off and the left on and off for flashing and do you just input the code under the loop or what</p>
<p>Dude, just loop the codes for right signal to off and left signal on :)</p>
hello sir i am new here and in arduino so iwant to learn arduino programing and every thing about arduino so if you khow about programing so please help me to learn arduino sorry for my poor english thanks in advance i am very thankful to you please give me replay to my email<br><br>my email:-zainulislam23@gmail.com<br>skype id:-zainulislam49<br>
<p>is the info about the power supply all you need to know for the power requirements for all the components or is there more power reqs needed</p>
<p>The power supply is enough for 3-4 hours and if u buy a rechargeable lithium battery, you can recharged it . There is no more power supply require.</p>
<p>What a great idea!</p>
<p>Yup, indeed :)</p>
<p>is this waterproof (i'm buying it and i don't know)</p>
<p>Does anyone have had any luck on the full code, its not working for me, and thats kind of frustrating</p>
<p>Fantastic idea! I was wondering what use those Lilypads would be good for. Now I know.</p>
<p>Hello, can you please make me one and I will pay.. I want to give this to my son for high school project. Thank you (email me at: coachdukedo@gmail.com) Thanks</p>
Can you make one for me let me know email is Benjamen.smith7@gmail.com
<p>Nice idea. However the link to your webpage gives a 404 Page Not Found error and why on earth do I need to pay for the instructable if you are already making money from the components?</p>
<p>I THINK THE JACKET IS VERY VERY NICE I MIGHT MAKE ONE CUSTMIED.</p>
<p>Hi, I've added your project to the &quot;Top 5 Incredible Bike Projects&quot;</p><p>This is the link If you are interested:</p><p><a href="http://www.instructables.com/id/Top-5-Incredible-Bike-Projects/" rel="nofollow">http://www.instructables.com/id/Top-5-Incredible-B...</a></p>
<p>compre el lilypad que tiene la fuente de alimentacion conectada como hago para las conexiones de los pulsadores y demas elementos, es de la misma manera?</p>
<p>If there's anyone wondering about the links that aren't working, I've found them here:</p><p><a href="http://web.media.mit.edu/~leah/LilyPad/build/turn_signal_jacket.html" rel="nofollow">http://web.media.mit.edu/~leah/LilyPad/build/turn_...</a></p><p>And for the code:</p><p>http://web.media.mit.edu/~leah/LilyPad/build/turn_signal_code.txt</p><p>Now the link is hosted at MIT. </p><p>Also, wonderful project! If here in brazil would be easy to buy those boards, for sure I would do it!</p>
<p> I've been commuting, racing and touring since 1978. Honestly? This is really cute for nightclubs, but in the real world of urban riding it's waste of time. Drivers who actually pay attention see hand signals, but this? It's only going to be visible at night, and assuming drivers are actually paying attention. Better you all learn how to manage traffic, as in looking over your shoulder to see what's behind you, looking at drivers eyes to see if they see you, all the skills an urban rider already has. This garment will only promote sloppy dangerous riding and get people killed. It's not a new idea. LED turn signals on helmets have already died in the marketplace out of apathy - it's heavy high maintenance stuff that costs a lot of cash for little benefit. And at least those wouldn't be a stinking gamey mess after a ride. How do you wash this? What about rain? How do you intend to deal with high temperature weather with fabrics that won't support all this stuff? Where I live we wear all cotton t shirts to ride in half the year because of hot weather. That won't support the lights and wires. Then there's sweat corrosion. Then there's the plain old who needs the hassle of a complicated shirt when a spread of AA battery blinky lights on bike and helmet works better to be visible.</p><p>Sorry if this sounds harsh, It's not meant to be, but my years as messenger taught me a lot about city riding and extra high maintenance stuff you can't wash is useless. The brain is our best tech - watch behind you for cars and turn when there's room. The cagers won't pay any attention to this. Bike turn signals date back to at least the 1920's. They'd be standard if they did any good.</p><p>I can think of a bunch of other apps for this tech in sporting goods, but the problems of sweat and complicated maintenance would need to be addressed. And the power unit.</p>
<p>Okay, does it have street homologation or is it only for offroad ? </p>
<p>I haven't been on a bike for years but this is one of the best ideas yet.<br>Take it to Shark Tank ASAP</p>
<p>How far/often do you ride, what type of bike do u have ?</p>
<p>A wonderful idea! :)</p>
<p>I've done a similar project only with a professional cycling shirt:</p><p>https://www.youtube.com/watch?v=UWFkxcJ9KR4</p>
<p>Did anyone already suggest adding reflective tape in a fashionable way so that drivers see you first? I noticed that these jackets used are dark which is for the contrasting &quot;arrow board&quot; to be noticed but not for instances of poor visibility such as rain or fog. Great project though.</p>
any one please help me to learn arduino i want to learn arduino i send you money of classes my email<br>is <br>:-zainulislam23@gmail.com
<p>Well, get one of these http://shooln.co.uk/bike-led-signal-jacket.html. Both the jacket and remote control are waterproof, wireless remote control, got 4 buttons (rather than 2 like in this article), and less hassle to buy stuffs, program and build. I bought one from them and couldn't be happier!</p>
<p>FTDI serves to put the program in Lilypad</p>
<p>hi i am new to this stuff and just wondered what the FTDI connector is used for sorry ia m reserching for a project</p>
<p>Hello, I was wondering if we can use a two ply conductive thread however a four ply one. Thaaaanks!!</p>
How do we make this project waterproof? I understand it not being machine washable, of course, but I need some way to clean it, some insurance that it's not going to short and burn me because it started raining...
<p>I can't believe I had to scroll all the way down here to find this concern. I like the idea, but the first thing that came to mind when I saw it was rain.</p>
I WAS going to suggest Liquipel (http://www.thedailyserge.com/2012/03/tech-tuesdays-vol-25-waterproof.html?spref=fb) until I remembered that Liquipel is more of a SERVICE than a product. Add to that I don't even know if the machinery is equipped for clothing. NEVER FEAR: The solution is once again back into the capable hands of the DIY-er:<br><br>http://www.floatingpath.com/2012/02/18/nano-tech-waterproof/<br><br>This Never Wet superhyrophobic stuff works great with clothing.<br><br>Hope that the product reaches retail soon.
<p>Excellent, problem is with the battery pack</p>
<p>highly practical, you couls sell a ton of these to the mountain biking and running world.</p>
<p>We will see, a variation has already been productized. - http://www.visijax.com/</p>
i love this project, but how much did all these arduino bits cost to make the project? please dont think im having a go, but when i saw it i immedietly thought this kit would work just as well using a simple oscillator circuit, using a few capacitors and resistors with a rocker switch on each handle bar, maybe $4 worth of bits.

About This Instructable

482,952views

1,739favorites

License:

More by leahbuechley:turn signal biking jacket 
Add instructable to: