Showing posts with label gemma. Show all posts
Showing posts with label gemma. Show all posts

Monday, December 14, 2015

Program an Ugly Christmas Sweater with CodeBender

My daughter recently asked me to transform a red sweater vest into an ugly Christmas sweater for a special event at her school. Using a Gemma microprocessor and four neopixels, I made one that flashes and changes colors at the push of a button.  I originally used my PC to program the microprocessor, but a friend prompted me to see whether the same results could be achieved with CodeBender and a Chromebook. I'm pleased to report that the Chromebook worked like a charm. I simply connected the Gemma to the USB port, selected the buttoncycler sketch from the Adafruit Neopixel library, modified the code to match the pins on the Gemma and the number of neopixels used, and voila'.  In the past, I have found the Gemma to be a little finicky when programming in the cloud, but CodeBender is constantly improving.




In the process, I learned:

1.  how to program a Gemma with CodeBender (even though no ports were detected)

2.  how to use a multimeter

3.  the importance of using a stabilizer when sewing with conductive thread on a loosely woven material

Unfortunately, I had to learn a couple of lessons the hard way when threads in the stretchy sweater kept shorting out!

In order to increase the versatility of this sweater, I sewed the Gemma to three tiny snaps sewn to a piece of felt. When folded up, the felt supports the battery and fits into the sweater pocket.  This connects to three more snaps to complete the circuit.


I sewed the neopixels to a ribbon.


Originally, I sewed the neopixels directly to the sweater.  That didn't work out well, because I didn't stabilize the back of the fabric first, requiring me to have to rip out all of the stitches.

Afterward, I used what I learned from Adafruit's chameleon scarf tutorial to sew the neopixels onto a ribbon that I later sewed to the sweater using non-conductive thread.

I applied self-adhesive stabilizer on the back.


Saturday, May 16, 2015

Fun With Neopixels!


I've been playing around with paint and a Gemma microcontroller (to learn how to program individually addressable neopixel LEDs).

Gemma would be incredibly valuable for teaching students about eTextiles, because they are less expensive than LilyPad Arduino boards, as well as being smaller, and quite easy to program!

For this purse, I used a Gemma, a LilyPad push button, three sewable snaps, conductive thread, and 2 coin cell batteries (in a holder) to power up nine neopixels.

From start to finish the process took three days.   This was largely due to the fact that I had to strip the leather and hand punch all of the holes that I sewed conductive thread through.

Using the Adafruit Neopixel library, and the button cycler code, I was able to customize the colors to match my bag.


Here are some pictures of the purse that I just finished transforming!  (In the event that you are wondering about the process or supplies that I used to paint and seal the leather, you may want to check out Sassyfeet.com.)  If you'd like to know where I got my inspiration for creating an "electronic handbag" check out:  http://www.electronicfashion.co.uk/

Black leather purse
Random Rainbow Pattern
I used Lumiere leather paint to make my design!

Sewable Snaps Inside Purse Create a Switch
Sewable Snaps on Back of Pocket





Complete Circuit: Attach Pocket Using Snaps

Gemma Sewn to Inside of a Pocket