Power Pants!

Power Pants are the pants that make you proud of getting dressed in the morning! They’re not your average pants. They provide you with a nice sense of accomplishment every time you put them on!

Coming soon to a store near you!


What’s in a Power Pant?!

The tech:

Power Pants are built on Arduino, using a simple piezo and pulse width modulation to create audio from chosen frequencies. What you see above is one of two functions coded into the Arduino. The second function is the longer musical bit you hear in the video at the top. It uses the contact in the same way to trigger the sound.

Here’s the code:

[code]
int ledPin = 13;
int inputPin1 = 2;
int inputPin2 = 5;
int val1 = 0;
int val2 = 0;
int counter1 = 0;
int counter2 = 0;
int speakerPin = 9;
char notesA[] = "azbC"; // a space represents a rest
int lengthA = sizeof(notesA);
int beatsA[] = {2,3,3,12};
int tempoA = 80;
char notesB[] = "Cbza"; // a space represents a rest
int beatsB[] = { 2,3,3,4};
int tempoB = 80;
char notesC[] = "gabygabyxzCDxzCDabywabywzCDEzCDEbywFCDEqywFGDEqi";
int lengthC = sizeof(notesC);
int beatsC[] = { 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1};
int tempoC = 150;

void setup() {
pinMode(speakerPin, OUTPUT);
pinMode(inputPin1, INPUT);
pinMode(inputPin2, INPUT);
Serial.begin(9600);
}

void loop(){
val1 = digitalRead(inputPin1);
val2 = digitalRead(inputPin2);
if(val1 == LOW && counter1 == 0) {
counter1++;
for (int i = 0; i < lengthA; i++) {
playNote(notesA[i], beatsA[i] * tempoA);
}
}

if(val1 == HIGH && counter1 == 1) {
counter1 –;
for (int j = 0; j < lengthA; j++) {
playNote(notesB[j], beatsB[j] * tempoB);
}}
if(val2 == LOW && counter2 == 0) {
counter2++;
for (int k = 0; k < lengthC; k++) {
playNote(notesC[k], beatsC[k] * tempoC);
}
}
if(val2==HIGH && counter2 == 1){
counter2=0;
}

else{ digitalWrite(speakerPin, LOW);

}
Serial.print(counter2);
}

void playTone(int tone, int duration) {
for (long i = 0; i < duration * 1000L; i += tone * 2) {
digitalWrite(speakerPin, HIGH);
delayMicroseconds(tone);
digitalWrite(speakerPin, LOW);
delayMicroseconds(tone);
}
}

void playNote(char note, int duration) {
char names[] = {‘c’, ‘d’, ‘e’, ‘f’, ‘g’, ‘x’, ‘a’, ‘z’, ‘b’, ‘C’, ‘y’, ‘D’, ‘w’, ‘E’, ‘F’, ‘q’, ‘G’, ‘i’ };
int tones[] = { 1898, 1690, 1500, 1420, 1265, 1194, 1126, 1063, 1001, 947, 893, 843, 795, 749, 710, 668, 630, 594 };

// play the tone corresponding to the note name
for (int i = 0; i < 20; i++) {
if (names[i] == note) {
playTone(tones[i], duration);
}
}
}

[/code]

IMG_0744IMG_0746 IMG_0745

The simple wire contact activation was converted to a switch using conductive thread stitched into the button holes and around the button. This way, the button itself acts as the switch.

IMG_0747

For the demonstration, extensions were added out the legs where the audio would normally be wired directly into the Power Pants themselves.

This is the future of pants!

Gameboy Color TEARDOWN!

FullSizeRender 21

The Gameboy Color in Teal!

The only tool and technique you will need to open this is a small flathead screwdriver and, well… screw driving skills.  There is some finagling with the external screws, but you can get it!  It’s pretty simple and compact in there!

On that note:  Two interesting things!  One, It’s super compact with lots of hard soldering on the inside.  I point this out because I think it’s a huge factor in what makes it feel like a simple object on the outside, molded to closely contain everything inside.  The other is what you will later see int he buttons.  They’re just silicone rubber and molded plastic!  I was hoping to find some button I could appropriate, but instead, just little nubbins!  But I suppose this was done to save on damageable parts and space, making the contact points directly in the fiberglass board.  Anyway, read on!  It’s kinda neat how simple it appears on a large scale, but how complicated it is on the board.

My guess is the casing you see is injection molded.  Flip it over and look at the back.

FullSizeRender 22

You’ll have to remove these ridiculous tri-wing screws with a tiny flathead if you can’t get a tri-wing driver in a timely manner.  That’s what I did.  You have to jimmy them around until they slowly turn with the weak torque you can provide.  (P.S.  My gameboy was missing it’s battery case.  I used aluminum tape for years…  AA batteries.)

FullSizeRender 4

Pop the case off!

FullSizeRender 25

FullSizeRender 5

Then this plate from the back side that holds the game steady in the access point with four phillips head screws.  Plate appears to be stainless.  All the screws look like galvanized steel.  Three on the interior may be brass.  But it is unclear

FullSizeRender 8

Now look at the fiberglass circuit board.

FullSizeRender 9

It’s held into place by three phillips screws.  These are the ones that may be brass.  Pull those out and you can pull out the board and flip it!  Note: At the top of the board is the connection point for the game cartridge.

FullSizeRender 13

FullSizeRender 14

Before you remove the board, detach the LCD screen. There are little black switches to pop out on either side of that red tape. Then just pull out the tab.

FullSizeRender 7

Board removed:

FullSizeRender 17

This reveals the active side of the speaker that plays MIDI tones in the bottom right hand of the board, and the underside of the buttons on the face of the gameboy. FullSizeRender 10

FullSizeRender 11

Also removable is the cover of the power button and the infrared sensor cover.

FullSizeRender 23

Power Switch

FullSizeRender 18

Infrared on right, power indicator in red LED at top.

FullSizeRender 12

Power switch and LED covers both present on the side of the object (left to right).

FullSizeRender 20

The black dots on the back of the buttons appear to be magnets or something conductive to make contact with these components in the white portion of the board.

FullSizeRender 6

Here too is the volume knob.

You can remove the LCD screen with a black foam padding on the back by prying it lightly with anything flat and sturdy with rounded edges (so as not to damage the thin steel casing).  I used a really old flathead screwdriver that wasn’t sharp at all.

FullSizeRender 16

FullSizeRender 24

The LCD Screen.  That’s the last part to remove!

Other parts on the board include a lot of hard soldered stuff.

FullSizeRender 19

This includes an optical inverter (right), the CPU (center), regulated power supply module (top left), SHARP chip of some identifiable kind based on number (center left), and an integrated circuit (bottom right).

And here it is all exploded and knolled!

FullSizeRender 4

Thanks for looking!

-Will-