Halloween Forum banner

41 - 60 of 61 Posts

·
Registered
Joined
·
430 Posts
Excellent! Glad to hear it.

It sounds like you should save all your Arduino sketches to another folder, then uninstall all Arduino stuff and libraries and clean everything out. Use a utility that will clean out the computer and the registry, on the PC it's CCleaner.

Then do a reinstall. Somewhere along the way, folders got mixed up and the config files remember.
 

·
Registered
Joined
·
430 Posts
I got my Mokungit LED strand today. These things look great in person, better than in the pictures!

I've made a couple of tweaks to the code. This does a few things:

- The lights are actually WS2811-type, Vater's code is set up for WS2812B-type, so when used with the Mokungkit lights, the colors are off.
- I adjusted a couple of the colors after seeing how they looked in this strand. I was using a regular strip of WS2812B lights and the colors are a bit different, especially the yellow.
- Vater also didn't have the LEDs at the maximum brightness, I've bumped them up to that.

Code:
// Stranger Things Alphabet Wall
// From a Halloween Forum discussion:
// http://www.halloweenforum.com/halloween-props/152337-my-stranger-things-alphabet-wall.html
// Original code by Vater

// The Mokungit RGB addressable LEDs come with 50 pixels in the string, so this code
// has been set up to start the alphabet at the end of the string (pixel #50)
// with the LEDs winding back and forth on the wall.  
// To convert this to a different number of LEDs, put together a diagram showing
// the layout and the pixel number of each letter.  Change reference numbers in
// switch case section to match length and location of pixels in the strand.

// When you have the LEDs and letters on the wall, uncomment the "abcedefgh" 
// and other messages below to check alignment with the letters.  Then comment
// them back out when you're done.

// Updated 10/4/2016 to move "all on" and "flicker" effects into their own functions.
// This makes timing the entire effect easier, and restarts the whole effect each time
// all the messages have been shown.  Also added test strings of letters.

// Updated 10/18/2016 to change type of LED, tweak colors, and increase brightness.

#include <FastLED.h>
#define DATA_PIN 6    // LED pin.  Change this for your setup if needed.

template<typename T, size_t N> constexpr size_t countof(const T(&)[N]) { return N; }

// Set this to match the number LEDs in the string.  Originally 50.
CRGB leds[50];  

// Only a few colors
CRGB colors[] = {
  // Orig set of colors
//  0xEEEEEE,
//  0xFFDD11,
//  0x00BBFF,
//  0xFF66FF

  //red
  0xFF0000,      // Moved this up in the list so the PRNG would show red more.
  //yellow
  0xFFA500,      // Better match to the show's screenshots
  //blue
  0x0000FF,
  //aqua
  0x00FFFF,
  //white
  0xFFFFFF,
  //green
  0x008000
};

uint8_t index[countof(leds)];



void setup() {
  
 for (auto &color : colors) napplyGamma_video(color, 2.2);
 for (auto &i : index) i = random8(countof(colors));  // Uses FastLED's randomizer
  
  FastLED.addLeds<WS2811, DATA_PIN, RGB>(leds, countof(leds));
  FastLED.setBrightness(255);
}

// The loop controls the main effect.  Change pauses to get the timing you want.

void loop() {

  LiteUp();     // Light up the strand of LEDs
  delay(5000);  // Wait five seconds 
  Flicker();    // Flicker them
  delay(1500);  // Wait 1.5 seconds before the first message is shown
  
//  write("abcdefgh");  // Uncomment these to test your setup
//  write("ijklmnop");
//  write("qrstuvwxyz");

  write("Help me ");   // Change messages in quotes to whatever you want
  delay(1000);
  write("Im trapped");
  delay(5000);   // Wait five seconds after the last message before it starts again
}

int getIndex(char c) {    
  c = toUpperCase(c);
  switch (c) {

// For 50-pixel strand

    case 'A'...'H':
      return 50 - (c - 'A');  

    case 'I'...'P':
      return 30 + (c - 'I');  

    case 'Q':     
      return 39;

    case 'R'...'Y':  
      return 26 - (c - 'R');

    case 'Z':   
      return 17;

// For 30-pixel strand

//    case 'A'...'H':
//      return 30 - (c - 'A');  
//
//    case 'I'...'P':
//      return 13 + (c - 'I');  
//
//    case 'Q'...'Z':  
//      return 10 - (c - 'R');
//
//    default:
//      return 0;
  }
}

void write(char c) {
  if (isAlpha(c)) {
    // Get index and convert to 0-based indexing
    int i = getIndex(c)-1;  // (c)-2 gets to first pixel in strand if needed
    
    leds[i] = colors[index[i]];
    FastLED.show();
    delay(750);
    
    leds[i] = CRGB::Black;
    FastLED.show();
    delay(250);
  } else if (isSpace(c)) {
    delay(1000);
  }
}

void write(const char *str) {
  while (*str) write(*str++);
} 

void LiteUp(){        // Turn all on
  for (size_t i = 0; i < countof(leds); i++) leds[i] = colors[index[i]];
  FastLED.show();
}

void Flicker (){      // Flicker the strand

  for (int i = 0; i < 128; i++) {
    if (random8() > ease8InOutQuad(i*2))
      FastLED.show();
    else
      // To prevent having to repopulate leds[], we
      // simply show black instead of clearing the array.
      FastLED.showColor(CRGB::Black);

    delay(33);
  }
  FastLED.clear();
}
 

·
Registered
Joined
·
2 Posts
Do you think it would be possible to use a keypad like this (rasmicro.com/25_keypad+Arduino.htm) to control the lights directly? I'm thinking of turning this into a wearable Halloween costume, and it'd be really cool to be able to input messages directly.

I'm thinking with a 25-input keypad you could do A-Y and just leave Z off, but I'm not entirely sure if that's even feasible. Any suggestions?
 

·
Registered
Joined
·
4 Posts
Hi everyone, just had to join the forum to say thanks! Using a lot of the ideas here, I've set up my own version of these lights, pulling in a lot of features from the other projects around the internet.

My version, which I'm still working on but is available on my github, uses the code by Vader and Jeff, with a couple of modifications by me. I also changed the colours a bit, but also added a fade in from black after the message has been sent. I also start the lights a bit dimmer, but bump it up when they start to flicker to try and bring people's attention to it.

All the messages that are displayed are provided by a modified version of the sparkfun script. It looks for a specific hashtag on Twitter and then sends the message to the arduino, which displays it immediately, unless a message is already being written.

If no messages are found on Twitter after 5 minutes (adjustable), it displays a random message from a list of pre-written messages.

I'd never have done this without the kick start and inspiration from this forum, so even though this is my first post, I've been here for a month because of you guys.

Thanks a lot for your help. If you'd like any info on it, let me know.
 

·
Registered
Joined
·
430 Posts
Flyerfan - Post the code! I'm sure others will want to see what you did (including me).

And Windsorgent - Please put up a link to your github, I'd like to take a look at what you did.

Tonight (Thursday, 10/27) my version had its premiere at the California Academy of Sciences (in Golden Gate Park, San Francisco) at their "Creatures of the Night" party. I made it so it was portable, because we had to set it up and take it down in one night, along with a bunch of other props and electronics. This is a screen grab from a video I made, to give you an idea of how it looks.

Stranger Things wall at Academy.jpg
 

·
Registered
Joined
·
430 Posts
Look at this section of the code:

Code:
// For 50-pixel strand

    case 'A'...'H':
      return 50 - (c - 'A');  

    case 'I'...'P':
      return 30 + (c - 'I');  

    case 'Q':     
      return 39;

    case 'R'...'Y':  
      return 26 - (c - 'R');

    case 'Z':   
      return 17;
Look at this part:

case 'A'...'H':
return 50 - (c - 'A');

It means, "If the letter is A, light pixel #50." And then there's subtraction to move down the line of pixels with B, C, etc.

You want to change it so that A = 0, and then add for the additional letters, instead of subtracting. And so on for the rest of the letters. Note the I - P accounts for the string winding back to the left, so it shows you the format for adding to go down the line.

Set up the lights and start playing with the values and it should make sense.
 

·
Registered
Joined
·
6 Posts
cool thank you!

this worked:


case 'A'...'H':
return 1 + (c - 'A');

case 'I'...'Q':
return 17 - (c - 'I');

case 'R'...'Z':
return 18 + (c - 'R');
 

·
Registered
Joined
·
1 Posts

Hey everyone! I wanted to say thanks to Vater, JeffHaas, and everyone else for the code, instructions, and ideas on the alphabet wall. I think our wall turned out really well. I ended up spending most of my time cutting and splicing the 100ft of wire needed to make the wall full size. Also, I had ordered the Mokgunit leds that were listed here, however, the USPS either didn't ever deliver them, or left them out by the road where they were stolen, so I had to order some different leds which didn't have the C7 light covers. I ended up buying a set of C7 led lights from Wal-Mart and just hot-glued the covers to these lights. Also ended up using an empty Eggo box on a shelf to house the Arduino.

I'll try to post all the other stuff we did for our Stranger Things themed party. Happy Halloween!!
 

·
Registered
Joined
·
6 Posts
ok everyone, my brother came to me asking if i can create him the stranger things wall. heres an update my version of this wall.

https://youtu.be/R-as2w_Qx0g
https://youtu.be/9dUD4mS1f1E

I created the wall using items from amazon, frys, hobby lobby, and home depot. so after buying the LED's from amazon i realized that the distance between each led was too short. so i decided to rewire each led using black wire and distance between each light so it can fit on a 8 foot wide cubicle wall. i also created the letters using the exact letters from the show. photoshopped out the wallpaper and brought up the levels to clean out the blacks. then printed it using laser printer transparent sheets. taped it to the wall using clear double sided tape.

the wallpaper was tricky, i didnt want to just tape the wallpaper to the cubicle wall, so i flipped it over and lined it with adhesive book cover. which gave it its durability when its hung. so after wiring up the leds i had to make this whole thing portable so that my brother can set it all up by himself. so i used an s video type connector for the less to the arduino box.

i also wanted the full wall effect so i added wood panel paper to the bottom to give it a nice effect. so my brother dressed up as Winona Ryder (the wig, jacket, shirt, etc) so he asked me to create a separate led set that dims. so i took battery powered LED’s from home depot (ya i could of created them my self but i wanted that battery box). i added a potentiometer to the ground so as he spoke to the LED all bunched up in his hands, he could dim it as he gets a reply from the other side.

i added an IR receiver to the arduino/box so that you can select other sayings from the show. once I’m done with that code, i just have to email it and my brother will load it

http://ricestudios.com/strangerthings/14859338_10206982042623912_836648933_o.jpg
http://ricestudios.com/strangerthings/14859448_10206982042463908_499895688_o.jpg
http://ricestudios.com/strangerthings/14876029_10206982042903919_339557604_o.jpg
http://ricestudios.com/strangerthings/14881295_10206981576652263_214487061_o.jpg
http://ricestudios.com/strangerthings/14881334_10206982041583886_261092789_o.jpg
http://ricestudios.com/strangerthings/14894610_10206982042383906_202651552_o.jpg

Heres the items i used:

https://www.amazon.com/gp/product/B00DBRM5UW/ref=oh_aui_detailpage_o04_s00?ie=UTF8&psc=1
https://www.amazon.com/gp/product/B00Z7S4ZZQ/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1
https://www.amazon.com/gp/product/B00KW8852K/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1
https://www.amazon.com/Frey-Scientific-581148-Conductor-Coated/dp/B00FGDV9WY
https://www.amazon.com/Uxcell-Sleev...id=1477889858&sr=8-2&keywords=heat+shrink+3mm
https://www.amazon.com/Magic-Cover-...89771&sr=8-1-spons&keywords=magic+cover&psc=1
https://www.amazon.com/gp/product/B00MECZ06G/ref=oh_aui_detailpage_o02_s01?ie=UTF8&psc=1
https://www.amazon.com/gp/product/B0047Y072Q/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1
https://www.amazon.com/gp/product/B00KW8852K/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1

Thank you JeffHaas and Vater!
 

·
Registered
Joined
·
46 Posts
Discussion Starter · #58 ·
These walls are looking great. Nice job guys! Glad we could help.

ok everyone, my brother came to me asking if i can create him the stranger things wall. heres an update my version of this wall.

https://youtu.be/R-as2w_Qx0g
https://youtu.be/9dUD4mS1f1E

I created the wall using items from amazon, frys, hobby lobby, and home depot. so after buying the LED's from amazon i realized that the distance between each led was too short. so i decided to rewire each led using black wire and distance between each light so it can fit on a 8 foot wide cubicle wall. i also created the letters using the exact letters from the show. photoshopped out the wallpaper and brought up the levels to clean out the blacks. then printed it using laser printer transparent sheets. taped it to the wall using clear double sided tape.

the wallpaper was tricky, i didnt want to just tape the wallpaper to the cubicle wall, so i flipped it over and lined it with adhesive book cover. which gave it its durability when its hung. so after wiring up the leds i had to make this whole thing portable so that my brother can set it all up by himself. so i used an s video type connector for the less to the arduino box.

i also wanted the full wall effect so i added wood panel paper to the bottom to give it a nice effect. so my brother dressed up as Winona Ryder (the wig, jacket, shirt, etc) so he asked me to create a separate led set that dims. so i took battery powered LED’s from home depot (ya i could of created them my self but i wanted that battery box). i added a potentiometer to the ground so as he spoke to the LED all bunched up in his hands, he could dim it as he gets a reply from the other side.

i added an IR receiver to the arduino/box so that you can select other sayings from the show. once I’m done with that code, i just have to email it and my brother will load it

Thank you JeffHaas and Vater!
Man you went all out! That is really cool. Great job and thanks for sharing all the details behind it.

I also came across these lights which are 7.5" spaced apart as opposed to the Mokungit lights spaced at about 4" apart.
http://www.environmentalled.com/RGB---C9-Opaque-WS2811-Pixels-50-Count-Black-Wire-p2279.html
 

·
Registered
Joined
·
46 Posts
Discussion Starter · #59 ·

Hey everyone! I wanted to say thanks to Vater, JeffHaas, and everyone else for the code, instructions, and ideas on the alphabet wall. I think our wall turned out really well. I ended up spending most of my time cutting and splicing the 100ft of wire needed to make the wall full size. Also, I had ordered the Mokgunit leds that were listed here, however, the USPS either didn't ever deliver them, or left them out by the road where they were stolen, so I had to order some different leds which didn't have the C7 light covers. I ended up buying a set of C7 led lights from Wal-Mart and just hot-glued the covers to these lights. Also ended up using an empty Eggo box on a shelf to house the Arduino.

I'll try to post all the other stuff we did for our Stranger Things themed party. Happy Halloween!!
Looks great! Awesome idea using the eggo box haha. Looking forward to seeing more pics.
 

·
Registered
Joined
·
6 Posts
41 - 60 of 61 Posts
Top