3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Disco pants!

Disco pants!
I've been invited to go to a friends 40th birthday party and want to take a present that will be appreciated. He is a bit of a tech head and has also been known to get drunk and shout PANTS! a lot. So I've decided to make him a pair of flashing LED disco pants.

The idea is that the LEDs will be controlled by an Arduino so they can be flashed in sequence. To achieve this each LED on the pants will be separately addressable but to do this without a large number of unnecessary wires in the undergarment I will be using the Charlieplexing method to power them. There will be four strings of 12 charlieplexed LEDs
and each string of 12 LEDs will only need  4 wires. So a total of 12 wires will be needed to control the whole array of 48 LEDs.

The other advantage of multiplexing a Charliplexed array of LEDs is that only one LED per array will be ON at any one time. The down side to this is that they will have to be rapidly flashed or multiplexed to give the illusion that more than one is on at a time and that is more complex code on the arduino. However the big benefit is in power saving as there will be a potential of 4 LEDs on at any one time (one for each 12 LED string) which will lower battery consumption enough to get away with using a 9 volt battery.




Pants.avi(160x120) 1 MB
 
Remove these adsRemove these ads by Signing Up
 

Step 1Materials

Materials
I only had this idea a week before the party so I had to use materials I had in my junk pile and 'left over bits' box. I'm glad I buy LEDs in bulk numbers.

Materials
Pants, Good old fashioned Y fronts are the best
LEDs Blue (36) and Red (12)
Resistors (Red 130 Ohm) (Blue 80 Ohm)
Arduino
9V battery
Battery clip
Coloured wire
Heat shrink tubing.

Tools
Soldering iron
Computer and Arduino IDE
Pre-programmed arduino processor.
Big assed needles
Sewing machine (but you could probably sew by hand as an alternative)

Plus the usual small workshop tools.

« Previous StepDownload PDFView All StepsNext Step »
9 comments
Oct 11, 2010. 7:45 PMjessyratfink says:
Yes. Just yes.
Oct 16, 2010. 9:06 AMlogan996 says:
Why did you used a Arduino Duemilanove module? wouldn't it have been more reliable to use some perfboard and a simple bit of componets soldering it might have taken a extra day or 2 but would have been way more flexible because of lack of parts to be bent/snapped off, also those duemilanove boards are like $30 aren't they? Other than that this is a really nice project!
Oct 12, 2010. 10:55 AMSparrowhawk says:
Nice, but was disappointed in the video...

I was hoping for some older bald guy (with a beer belly) doing the Saturday Night Fever dance with nothing on but these :(
Oct 11, 2010. 8:42 PMfungus amungus says:
Totally awesome.
Oct 11, 2010. 6:12 PMgamegenie2k says:
Blinking undergarments, that's a brilliant idea! You know in case you're jogging at night.......in your underwear!
Oct 11, 2010. 3:46 PMcaitlinsdad says:
I thought you would have also wired up a disposable camera taser circuit to it for your friend. It's not going to hurt a bit.
Oct 11, 2010. 6:04 PMThe Ideanator says:
That's a great idea!
Oct 11, 2010. 3:24 PMThe Ideanator says:
The Flux Capacitor, now in underpants! Although running at 88 miles per hour could be troublesome..

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
8
Followers
3
Author:o0mouse0o
I'm a keen motorcyclist with a collection of post-apocalyptic looking bikes and sidecars. I enjoy touring about for my holidays with my dog who is always keen to get into the sidecar so her ears can f...
more »