e-Textile Project using LilyPad Arduino Protosnap components (sewn on felt)
Programming Protosnap Componentsafter snapping them from the board• Reconnect the board after snapping the components• Go to hardware and select LilyPad Simple 328• The LilyPad Simple will appear, but with the variouscomponents of the Protosnap at the side (Slide 2)• Assign the components to the PINS accordingly. This isusually dependent on your sketch (Slide 2)• You may need to adjust the code you programmedoriginally while the components are on the board.• See my sketch and sewing on the next two slides
I did not assign the RGB light. Iprogrammed it by assigning specificPINS to be output for the RGB,and used the Digital Write Function(see code on Slide 5.
Sewinghttp://www.youtube.com/watch?v=3V-13Qs_7r8I ran out of thread for the LEDs…This is where my beads will mysewn. I realize this is too long for abracelet. Hence I will put it on myT-shirt. The buzzer will be damagedif washed, so I intend to either usefabric glue or simple stitches to getthis onto the shirt.
CodesSwitch function works onceassigned.I used two lights from theRGB here. PIN 9 and 10 wereconnected to Blue and Redspecifically. We need to setpinMode PIN 9 and 10 to beOutput.Note that for RGB,DigitaWrite PIN# LOW meansON.DigitaWrite PIN# HIGH meansOFF.This is opposite to the LEDs.
Other Points• The battery can be charged while the board isconnected to the USB. The switch on theboard will function unless detached from theUSB• Be careful – do not leave the batteryunattached. It can burn out and cause a fire.