In progress Halloween – PART 2

Hi Guys!

Here is a little insight into how my Halloween costume is going.

The soldering of the Neopixels was harder then I had expected and, with having to leave town this weekend for family needs, I needed to adjust my end plans and make my LED circuit into a glowing neck pendant. I also ran into some issues with uploading code from my computer to the Gemma board (apparently the new macs need a new cord to be compatible).

Despite all of this, things were going well and I was finishing up the construction and trying to learn/understand code when… my soldering snapped.  🙁

#include

#define PIN 6

#define NUM_LEDS 6

#define BRIGHTNESS 50

// Parameter 1 = number of pixels in strip
// Parameter 2 = pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_RGB Pixels are wired for RGB bitstream
// NEO_GRB Pixels are wired for GRB bitstream, correct if colors are swapped upon testing
// NEO_RGBW Pixels are wired for RGBW bitstream
// NEO_KHZ400 400 KHz bitstream (e.g. FLORA pixels)
// NEO_KHZ800 800 KHz bitstream (e.g. High Density LED strip), correct for neopixel stick
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, PIN, NEO_GRB + NEO_KHZ800);

uint32_t Gold = strip.Color(255,206,0);
uint32_t Turq = strip.Color(41,196,204);
uint32_t Green = strip.Color(22,142,42);
uint32_t White = strip.Color(75,75,75);
uint32_t Blank = strip.Color(0,0,0);
uint8_t count;

void setup() {
strip.begin();
strip.show(); // initialize all pixels to “off”
}

//Main program box
void loop() {
Fade(Gold);
delay(200);
Fade(Turq);
delay(200);
Fade(Green);
delay(200);

for (count = 0; count < 5; count++) {
Snake(White);
}
delay(200);
}

// Brightness Function
void Fade(uint32_t color) {
uint16_t i, j;

//Increase brightness sub-loop
for (j = 0; j < 75; j++) {
for (i = 0; i < strip.numPixels(); i++) { strip.setPixelColor(i, color); strip.setBrightness(j); } strip.show(); delay(50); } // Decrease brightness sub-loop for (j = 75; j > 0; j–) {
for (i = 0; i < strip.numPixels(); i++) {
strip.setPixelColor(i, color);
strip.setBrightness(j);
}
strip.show();
delay(50);
}

}

// Snake Function
void Snake(uint32_t color) {
uint16_t i;

for (i = 0; i < strip.numPixels(); i++) {
strip.setPixelColor(i, Blank); //Clears pixel memory to start Snake
strip.show();
delay(25);
}
strip.setBrightness(50); //Resets brightness after Fade
//Snake loop
for (i = 0; i < strip.numPixels(); i++) {
if(i<1){
strip.setPixelColor(i, color);
strip.show();
delay(100);
}
strip.setPixelColor(i, Blank);
strip.setPixelColor(i+1, color);
strip.show();
delay(100);

}
}
I’ve included my code below to share with you all and hope that tomorrow I can fix the soldering and show you in person!

IMG_0552IMG_0555IMG_0561IMG_0562

so far so good

iri6hg

Here are the essential parts for my costume in progress: the SHARP IR distance sensor which supports a distance of 1-5 meters, a speaker that could play sound files saved in the sd card, a bunch of LEDs (which are not shown in this photo because it is so much) and an arduino board (which is the one we’ve been always using).

Here is the to-do list for the coming week:

  • figure out the code and build the circuit
  • make a case for the circuit so that it can be taken anywhere
  • design and 3d-print the “!”

hideo-kojima-point-d-exclamation-mgsv

Halloween in Progress

Hi guys!

Here’s the progress on my Crypt Cat costume so far. I started with the physical construction of the hood as I will be out of town this weekend for family matters. I figured it would be good to start of the stuff I can’t really travel with. 🙂 I have my LEDs and My Gemma board and Battery pack so all that’s left is:

  • Solder LEDs and circuits.
  • Finish soft hood construction (i.e. ears)
  • Mount LEDs on structure inside the ears and marry the circuit with the hood construction.
  • CODE WORK! I am aiming to have the LED’s on a pattern loop so I need to figure out the timings and colors and all that jazz.

IMG_0484

 

Thanks!

Stephanie

Don’t Be Noisy Broomstick

Hello, for Halloween project I decided to make a witch’s broomstick. This broomstick is for the witches who do not like noisy places, and witches use this to scare off the people who are being loud. The broomstick will change the colors of the leds according to the noise level of surroundings.

This week I started making my broomstick and gathered materials for the lights. Last week we talked about buying the broomstick that’s already been made, but I thought it would be easier for me to make changes to the broomstick(when I am putting lights and so on) if I make it by myself. (and definitely more fun!) I am using a dowel and raffias for the broomstick.

 

(I forgot to take the last photo, but my broomstick is not this messy now:) )

Below are my codes in progress.

	


 
	1.	#define SAMPLE_WINDOW 33 // Sample window width in mS (33 mS = 
                ~30 Hz)
	2.	#define LED_PIN        0 // DIGITAL pin # where LEDs are connected
	3.	#define MIC_PIN       A1 // ANALOG pin # where microphone "OUT" is connected
	4.	 uint32_t color1 = strip.Color(0, 255, 0, 0); //Green
                 uint32_t color2 = strip.Color(173, 255, 0, 0); //Yellow
                 uint32_t color3 = strip.Color(255, 0, 0); //Red

	5.	void setup() {
	6.       pinMode(MIC_PIN, INPUT); 
                 pinMode(LED_PIN, OUTPUT);
	7.	}
	8.	 
	9.	void loop() {
	10.	  // Listen to mic for short interval, recording min & max signal
	11.	  unsigned int signalMin = 1023, signalMax = 0;
	12.	  unsigned long startTime = millis();
	13.	  while((millis() - startTime) < SAMPLE_WINDOW) {
	14.	    int sample = analogRead(MIC_PIN);
	15.	    if(sample < signalMin) signalMin = sample; 	
        16.	    if(sample > signalMax) signalMax = sample;
	17.	  }

For the circuit, I got Mic Amplifier, arduino gemma, RGBW neopixel jewel, 3xAAA battery pack.

This week I will finish my broomstick, build my circuit and finish writing the code.

 

 

Fiber Optic Wing Progress

Current wing state of affairs:

A. Wire structure for wings almost complete

IMG_6230.jpg     IMG_6232.jpg

B. Circuit laid out in TinkerCad (replace Arduino board with Flora micro-controller in real life) and started playing with coding a little bit. Contemplated doing the wings with one LED strip, but decided to have the animations and color changes symmetrical on the wings, so I broke it into 2 strips. Also mapped out what LEDs and fiber optic cables will be assigned to which wing parts.

IMG_6231.jpg

Halloween Wings Circuit.png

C. Most of my supplies have come in, but I’m still waiting on a few.

Project to do list:

  1. Finish wire frame for wings.
  2. Attach tights to wings.
  3. Build circuit with LEDs.
  4. Build code for wing animations.
  5. Create couplings for fiber optic cables to LEDs.
    • Likely
  6. Create housing for circuits and cable couplings.
  7. Create pouch to hold battery pack and circuit housing attached to wings.
  8. Lay out Fiber optic cable pattern and sew onto wings.
  9. Make method of attachment for wings to body:
    • Either elastic straps over shoulders or a piece to insert into a corset like in the tutorial referenced in my brainstorming post.

 

Excited to see how this turns out!

Catherine

Week 7 Halloween Costume Check In

For my go-go dancer halloween costume, I have sewn on all the fringes to the top. No I am ready to start detailing and soldering the led lights together and make sure they work. That will be a long process that will require attention to detail.

 

IMG_3482

fringes cut up and hot glued together.

 

img_3532.jpg

 

Fringes attached to the shirt.

img_3535.jpg

 

Wires separated to be soldered to LEDs.

Week 7 Costume

This week I focus on both the circuit and the physical Lanternfish. My neopixel and other items are still on the way, so I use Tinkercad to test it. Here is the circuit.

ultrasonic sonar sensor

And I am trying to figure out how to measure the exact piece and make it fit into the head. Here are some photos of the process. I tried different kinds of methods to draw and cut. It is very difficult because I have no experience before. But it is a very interesting and special experience.

IMG_8889.JPG

Here’s my To-Do for the next week:

  1. Cut the actual size on flannel fabric.
  2. Finish sewing the whole mask. Add teeth, fin, tail, and eyes.
  3. Solder the circuit and make it work.
  4. Put circuit into the lantern fish.

TWO FRIDAS – Seona and Pantea

Here are our initial brainstorming.

IMG_8161IMG_8162

Frida props:

  1. Hearts pulsing – We created a code for our hearts and here’s the video of the two LEDs fading in and out.

int led = 9; // the pin that the LED is attached to
int led2 = 8;
int brightness = 0; // how bright the LED is
int fadeAmount = 5; // how many points to fade the LED by

// the setup routine runs once when you press reset:
void setup() {
// declare pin 9 to be an output:
pinMode(led, OUTPUT);
pinMode(led2, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
// set the brightness of pin 9:
analogWrite(led, brightness);
analogWrite(led2, brightness);

// change the brightness for next time through the loop:
brightness = brightness + fadeAmount;

// reverse the direction of the fading at the ends of the fade:
if (brightness == 0 || brightness == 255) {
fadeAmount = -fadeAmount ;
}
// wait for 30 milliseconds to see the dimming effect
delay(30);
}

Here is the image of the heart we are going to embroider onto each of our hearts.

53b3dd0fc5b9d3f48c5da575b9a5a335.jpeg

 

2. LED Strips – we are still working on the code of the LED lights going back and forth between the hearts.

3. Flower hairband

 

Supplies

We are going to be using one small LittleTiny Arduino board, red LEDs, 5V NeoPixel Strips, a tube to link up the LEDs. We may choose to get another arduino board for the separate heart LED if we think the link between the LEDs doesn’t work. We are also going to be using the power bank instead of the battery packs.

 

 

Costume WIP

For this week, I’m testing out components and also tweaking code in TinkerCad.  Since my partner works in lighting, I’m trying to take advantage of his treasure trove of leftover LED strips and parts.

As I was searching through his pile, I came across a bunch of LED strips but he let me know that they probably weren’t ideal since they were meant for FastLED.  I wanted to be able to practice working with the NeoPixel library, so I decide to rule these out.  Then, we found something really special…

He had a leftover NeoPixel library-compatible LED strip that glows in different kinds of white based on the different RGB inputs as well as a gorgeous amber color that you see in the video.  I went with this because these lights felt very emotional. My hope is that once I cut them up and spread them out throughout my lining fabric, the different kinds of white and amber will show.

To quickly show me the kind of light patterns that are possible, my partner hooked it up to industry-standard mapping software, called MadMapper.   Here’s a nifty video of it below:

To test out my circuit, I turned to TinkerCad

Brilliant Curcan-Robo.png

I referenced code from a nifty website that has code for a lot of different patterns.

Here’s my code for rainbow twinkles below:

 #include 
#define PIN 6
#define NUM_LEDS 48
// Parameter 1 = number of pixels in strip
// Parameter 2 = pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
//   NEO_KHZ800  800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
//   NEO_KHZ400  400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
//   NEO_GRB     Pixels are wired for GRB bitstream (most NeoPixel products)
//   NEO_RGB     Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2)
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
  strip.begin();
  strip.show(); // Initialize all pixels to 'off'
  
}

void loop() {
  TwinkleRandom(20, 100, false);
}

void TwinkleRandom(int Count, int SpeedDelay, boolean OnlyOne) {
  setAll(0,0,0);
  
  for (int i=0; i<Count; i++) {
     setPixel(random(NUM_LEDS),random(0,255),random(0,255),random(0,255));
     showStrip();
     delay(SpeedDelay);
     if(OnlyOne) { 
       setAll(0,0,0); 
     }
   }
  
  delay(SpeedDelay);
}

void showStrip() {
 #ifdef ADAFRUIT_NEOPIXEL_H 
   // NeoPixel
   strip.show();
 #endif
}

void setPixel(int Pixel, byte red, byte green, byte blue) {
 #ifdef ADAFRUIT_NEOPIXEL_H 
   // NeoPixel
   strip.setPixelColor(Pixel, strip.Color(red, green, blue));
 #endif
 #ifndef ADAFRUIT_NEOPIXEL_H 
   // FastLED
   leds[Pixel].r = red;
   leds[Pixel].g = green;
   leds[Pixel].b = blue;
 #endif
}

void setAll(byte red, byte green, byte blue) {
  for(int i = 0; i < NUM_LEDS; i++ ) {
    setPixel(i, red, green, blue); 
  }
  showStrip();
}

I had originally thought about having two separate strips coming out of different outputs so that the left and right side of the body could be doing different things, but I’ll be keeping it simple!

Here’s my To-Do for the next week:
Cut 2nd lining for coat
Cut LED Strips
Write switch into the code
Determine layout for all LEDs.  I think I will come down a bit in number of LEDs since 48 separate LEDs might be a bit much!  I may cluster some of the LEDs to reduce the number of solder joints I’ll have to make.  Still working on this part…
Sew circuit into my lining
Sew lining back into coat

I have quite a bit of work ahead but I’m really excited about this project, especially since my partner gave me really beautiful LEDs to work with.