Musad's Spy Machine Costume Prop

by udubinsky in Craft > Costumes & Cosplay

660 Views, 7 Favorites, 0 Comments

Musad's Spy Machine Costume Prop

temp_-270341630.jpg

This is a prop for a spy costume I made.

Downloads

What It Does

temp_73669259.jpg
temp_1212503115.jpg
Technically its a bunch of lights, switches and nobs that lights up and play white noise through a piezzo buzzer.

Parts List

temp_-127829386.jpg

- 7 LEDs, 2 reds, green, blue, 3 yellow.
- Potentiometer and a knob
- 3 on/off switches
- 9 220 ohm resistors
- 18650 lithium battery charging module
-Piezzo Buzzer
- lithium battery
- Arduino pro micro (Leonardo)
- Copper Tape
- 2 wood boxes (on smaller then the other)

Diagram

Ethan_Spy_bb.jpg

I used two strips of Copper tape to solder to, one for GND the other for 5v.

Each led is connected to ground at the anode (-) side and to a 220 ohm resistor at the cathode side and then to the corresponding pin on the Arduino (pins 4-8), the two "screen" back light are connected to ground and to 5v through a 220ohm resistor

Two of the switches are connected on 5v on one side and to the corresponding pin on the Arduino (pins 2,3) on the other side but also to a 220 ohm resistor connected to ground (pull down)

The piezzo buzzer is connected to the Arduino (pin 9) on the cathode side and to GND on the anode side.

The last switch (main On/Off switch is connected to the RAW pin on the Arduino and to the 18650 lithium battery charging module on the cathode (+)

The potentiometer is conected to ground (1st pin) and 5v (3rd pin) and arduino analog pin 3

The anode of the 18650 is connected to the Arduino GND.

The lithium battery is connected straight to the 18650 at the bat + and - signs.

I bought tow wooden boxes, one a bit smaller then the other and used the smaller one lid as the inside of the suitcase.
I added a printed symbol of the Musad, painted some other details like serial number and buttons labels.
I cut a window and stiched a printed leminated "screen" containing the mision details (two of the yellow lights are its back light)

that's it, hope I didn't forget anything.

Code

logo_arduino.jpg
const int BT1 = 2;
const int BT2 = 3;
const int pot = 3;  //A3
const int LLeft = 4;
const int LRight = 5;
const int L1 = 6;
const int L2 = 7;
const int L3 = 8;
const int snd = 9;
void setup() {
  pinMode (BT1, INPUT);
  pinMode (BT2, INPUT);
  pinMode (LLeft, OUTPUT);
  pinMode (LRight, OUTPUT);
  pinMode (L1, OUTPUT);
  pinMode (L2, OUTPUT);
  pinMode (L3, OUTPUT);
  pinMode (snd, OUTPUT);
  
  Serial.begin (9600);
}
void loop() {
  /*if (digitalRead (BT1)) {
    digitalWrite (L3, HIGH);
  } else {
    digitalWrite (L3, LOW);
  }
  
  if (digitalRead (BT2)) {
    digitalWrite (L1, HIGH);
  } else {
    digitalWrite (L1, LOW);
  }*/
  
  digitalWrite (LLeft, digitalRead (BT1));
  digitalWrite (LRight, digitalRead (BT2));
  switch (map (analogRead (pot), 0, 1023, 0, 3)) {
    case 0 :
      digitalWrite (L1, LOW);
      digitalWrite (L2, LOW);
      digitalWrite (L3, LOW);
    break;
    
    case 1:
      digitalWrite (L1, HIGH);
      digitalWrite (L2, LOW);
      digitalWrite (L3, LOW);
    break;
    
    case 2:
      digitalWrite (L1, HIGH);
      digitalWrite (L2, HIGH);
      digitalWrite (L3, LOW);
    break;
    
    case 3:
      digitalWrite (L1, HIGH);
      digitalWrite (L2, HIGH);
      digitalWrite (L3, HIGH);
    break;
  }
  
  if (digitalRead (BT1) && digitalRead (BT2)) {
    tone (9, random (100, 3000));
  } else {
    noTone(9);
  }
}