Skip to main content

Shy and retiring flouncing peacock

“I am shy and retiring 95% of the time and a flouncing peacock the other 5%”

MattUnlitSmall1_fb1c517ca5d50a3923229136a333b1ff9e9b54e8.jpg

My friend Matthew sent me this message and a request for help. He and his partner Hannah have been together for twenty years. They were not going to get married. However, they were going to have a party to celebrate.

Hannah’s dress for the party was a surprise. So Matthew wanted to surprise her with what he was wearing too.

“I want a suit – I want a really different suit – I want to hide LEDs in a suit and control them in a dramatic way. I want something hidden until it is switched on.”

Definitely a problem I could get my teeth in to. I wanted to make it!

 


Matthew – the shy and retiring flouncing peacock

A month or so later, Matthew bought a new suit and sent it to me. It was beautifully tailored. I was a little scared to hack it!

TailoredsuitSmall2_5d6cbfedcaa38ef2c5c35b70353db03f9b43574d.jpg

Suit – straight from the shop  

As the trousers were only a single layer of material thick, I could try different things without cutting any material. I played around with various lighting effects. Electro-luminescent or EL wire wasn’t bright enough to shine through the fabric. Fibre optics poked through the material and gave the suit a rough “5 ‘o’clock shadow” feel.

Eventually, I realised there was no “quick fix, easy way” and that the addressable LEDs called Neopixels were the way forward.

As I just wanted something that would switch on or off I didn’t need connectivity from Bluetooth or Wi-Fi. But I wanted the lights to do different patterns. Which made it an ideal project for the Adafruit Gemma (124-5508) .

The first step was to program the Gemma using the Arduino IDE. (Adafruit have a great tutorial on how to set up the IDE and how to add the Adafruit Gemma board here: https://learn.adafruit.com/introducing-gemma/introduction)

I have used the Arduino IDE a few times before, and something that took me a long time to work out was that although I saw that Gemma didn’t have a “serial console” capability, I didn’t realise that this meant that I didn’t need to select the “port” in the “Tools” menu. It had to be left unselected.  And the “programmer” needed to be changed to USBTinyISP.

The other stumbling block I found was that when I connected the Gemma board to my laptop via a USB cable, the red light flashes brightly for 10 seconds and then goes dim. You can only upload the program if it is flashing brightly – if it has stopped, pressing the onboard reset button starts it again.

Once I had the onboard LED flashing, I disconnected the cable and connected some neopixels using crocodile clips and ran the examples strand test example file (File, Examples, Adafruit Neopixel, strandtest). I needed to change the pin number and the number of pixels, but this was relatively simple.

Now I knew I could control some LEDs using the Gemma, I started to work out how to put them in the suit.

For the cuff of the sleeve, I wanted the lights to go all the way around, but also up the sleeve buttons. I used Adafruit skinny neopixels but had to take them out of their sleeve as they were too bulky.

I put tape on the back of the strip to protect it slightly.

NeopixelsTape_cropped_c959455c576439482c2161ca112f9f8f82d9e2be.jpgTape on the Neopixels – cutting the excess off was interesting 


For the cuff buttons, I used four individual neopixels (124-5440) and soldered them together with wire.

Cuffbuttons1_copy_58065555c2df055fadba9af161cab523753dbfbb.jpg

Cuff Buttons  


 Buttonandcuffneopixels1_69af47d0575305641750e62ef380d4a46da70972.jpg

Button Neopixels hard-wired to the cuff skinny Neopixel strip 

 

Cuffnudelit_3c59025cb374140bc0959bc253d189b637c24c84.jpgTesting the Neopixel buttons and cuff  

 

Having proved all the electronics worked, I had to take the scissors to the suit.

CuffInsideBefore_62225cc5aab22c062af21915a5c662f376f71aff.jpg

The inside of the cuff – Before inserting the Neopixels  


I cut the seam of the lining and with much manual dexterity (and swearing) threaded the neopixels and roughly sewed (tacked) them into position.

Cuffinside1_b5e3dcf04397f0c8846a8815b2b48d00350e784f.jpg

The inside of the cuff 


The three wires (5V, Ground and Data in) from the Neopixels went up the sleeve and out of the armpit. The other end of the wires I connected to JST 3pin connectors, so I could disconnect the Gemma and leave the Neopixels in place.

Sewing_ea6494e4820490eca6c969eb8d8e1f72a2876ed9.jpg

Serviceable sewing  

 

I then did exactly the same on the other sleeve, but ran the wired through the inside of the back of the jacket, so they came out of the same armpit.

As I wanted both cuffs to do the same thing, I soldered six wires to the Gemma (two sets of three wires for the VOut, Gnd and D1). The other ends were connected to JST 3pin connectors.

GemmaAndConnectors_f70716f812c57563163e098ce4007a268af4599d.jpgGemma and JST 3pin connectors

I used a LiPo battery to power the Gemma and Neopixels – and these fitted neatly into the inside breast pocket.

WiresArmpitPocket2_159d6b5e750caae6bcd11a9cc1cb3512744ba54a.jpg

The left-hand cuff wires ran up the sleeve through the innards of the back of the jacket, and out of the right armpit  

 

CuffLit_e5397f431cfea8b865b447b438e18c048f83263f.jpgOne sleeve completed

 

Lapels

For the lapels I used the regular neopixel strips (adafruit 1460)

I cut two parts – one for going up the lapel, one for going across, and soldered, wired and taped these together. I also added another couple of single neopixels for the jacket buttons.

Everything was done through a few holes in the seam of the lining to the jacket.  Once I was sure it worked, I tacked them in place.

I did exactly the same for the other lapel (but without the buttons). I had forgotten about the buttonhole though, and this needed extra work to get the LEDs into place.

LapelLitSmall_fc8773a6885297f44af7cb5ec23b713d7c0a7190.jpgLapel lit – before fixing in place


InsideWiredJacket_ec3691fec95a356a045ad38100b64d12e22bf8d3.jpgThe lapels both went to the left breast pocket, the cuffs to the right


InsideJacketasWorn_68f6fb4a00532a647ae001e4ddaf5dba024cc335.jpg

The Gemma and the batteries fitted in the jacket pockets


From the outside, you couldn't see what was going on inside the jacket.

JacketunlitcufflapelSmall2_09007a598ba40d71584312f9082e4054d5fecfc0.jpgAll LEDs are hidden 

 

The finished jacket – turned off and turned on

JacketUnlitSmall_06786115bc46a4bc083864d902ae7a0c5a1d7a5c.jpg
Shy and Retiring  


JacketLitSmall_948cc6b7cb16239f4127345a3573ddded0a06ad5.jpgFlouncing Peacock 

Verdict – Hannah guessed something was going on as she could feel the wires, but all the guests were surprised and loved it! I had also secretly made Hannah a necklace – so she wouldn't be out-blinged.

Hannah_Necklace_a3825b67b089ba7f4eeb1d3dfe0c16b5a6c6e621.jpg

Neopixel Necklace for Hannah 

Note: Article on creating a neopixel necklace will follow soon!

Closeup_Necklace_a93f65fe137f546746e124366c432d5c02a40043.jpgClose up of Hannah’s necklace 


MandHLit_685f2e55e37114d1d78e601c075ce527de905928.jpgHappily not-wed couple  

 

Congratulations Matt and Hannah – it was an honour to be part of your celebrations.


Parts list

Item Supplier Stock number
Adafruit Gemma RS Components (124-5508)
Skinny Neopixels Adafruit 2964
Neopixel Strip Adafruit 1460
Adafruit Individual Neopixels RS Components (124-5440)
Lithium Ion Polymer Battery – 3.7v 2500mAh Pi Supply -
JST 3pin SM plug and receptacle set Adafruit 1663
I am an inventor, engineer, writer and presenter. Other stuff: Royal Academy of Engineering Visiting Professor of Engineering: Creativity and Communication at Brunel University London; Fellow of the Institution of Mechanical Engineers and have a PhD in bubbles; Judge on BBC Robot Wars.
DesignSpark Electrical Logolinkedin