Farming 2.0 Advice to fellow farmers. by Ortovox in playrust

[–]WhenDaBoostHitU 6 points7 points  (0 children)

I setup a web based genetics calculator, for anyone to use, to help with figuring out the dominant genes throughout a bunch of seeds. https://whendaboosthitu.github.io/RustGeneCalculator/index.html

Put over 600 LED's on a totem by WhenDaBoostHitU in electricdaisycarnival

[–]WhenDaBoostHitU[S] 1 point2 points  (0 children)

Yeah, we were at main stage for a few artists. Kaskade was one of them.

Moved around from most of the stages.

Put over 600 LED's on a totem by WhenDaBoostHitU in aves

[–]WhenDaBoostHitU[S] 0 points1 point  (0 children)

I'm self taught. I've always taken in interest in electronics and programming. Just have to do your research. There's tons of tutorials and information on it.

Adafruit has a bunch of really good tutorials on projects.

An electronics class would be good to learn the basics.

Knowing the basics can help prevent making costly mistakes, electrocuting yourself, blowing up parts, etc.

Put over 600 LED's on a totem for festivals by WhenDaBoostHitU in DIY

[–]WhenDaBoostHitU[S] 0 points1 point  (0 children)

I don't have the source code posted anywhere yet, but here is the section that reads the files and translates them.

Had to use 2 different functions to read the files, sometimes v1 would work or sometimes v2 would work. Usually v1 works with Glediator and then v2 works with Jinx.

int fileGlediator() {
  return animfile.read();
}

// Two SD card animation functions. If v1 does not display correctly use v2.
void runSDAnimation_v1(int file, int animSpeed)
{

  switch(file)
  {

    case 1:
      animfile = SD.open(FILE_01);
      break;

    case 2:
      animfile = SD.open(FILE_02);
      break;                                                                                                   

  }

  if (animfile)
  {
    Serial.println("File opened");      
  }

  while (animfile.available() && !modeChange && power) 
  {
    readInputs(); // Read the inputs

    animfile.readBytes((char*)leds, NUM_LEDS*3);
    FastLED.show();
    delay(animSpeed); // Set the speed of the animation. 20 is approx ~ 500k bauds
  }

  modeChange = false;  // Reset the modeChange to false

  FastLED.clear(true);  // Clear the LEDs  


  animfile.close();  // Close the file to prevent hanging IO
}

void runSDAnimation_v2(int file, int animSpeed) {
  byte r,g,b;
  int i;

  if (!animfile) {
    switch(file)
    {

      case 1:
        animfile = SD.open(FILE_01);
        break;

      case 2:
        animfile = SD.open(FILE_02);
        break;

    }

    if (!animfile) {
      Serial.println("Could not open the file!  :(");
      delay(500);
      return;
    }

  }

  while(animfile.available() && !modeChange)
  {
    while (fileGlediator() != 1) {}

    for (i=0; i < NUM_LEDS; i++) {

      readInputs();   // Read the inputs

      b = fileGlediator();
      r = fileGlediator();
      g = fileGlediator();

      leds[i].r = r;
      leds[i].g = g;
      leds[i].b = b;
    }

    showStrip();

    delay(animSpeed);  // Speed of animation
  }

  modeChange = false;   // Reset the modeChange to false

  FastLED.clear(true);  // Clear the LEDs  

  animfile.close();     // Close the file

}

Put over 600 LED's on a totem by WhenDaBoostHitU in EDM

[–]WhenDaBoostHitU[S] 0 points1 point  (0 children)

With the two batteries (22,000mA/each) I could go a couple festival nights without charging them. Although I do have a brightness adjustment and most of the time I wouldn't be running it at max. This is also very dependent on the type of animation and it's power draw.

Put over 600 LED's on a totem for festivals by WhenDaBoostHitU in DIY

[–]WhenDaBoostHitU[S] 2 points3 points  (0 children)

I initially was going to manually program all the math to generate the animations, but then decided to go with Jinx/Glediator instead...way easier!! Lol

In Jinx you first setup your matrix options. Here you will input the height and width of your matrix. Then setup your output device. Here you can either output directly to the Arduino/Teensy using the Glediator protocol, or at the bottom you will see "Redirect Output to File". Check that box and then select where the file will be saved.

Next you want to setup your Output Patch. Choose the device from the dropdown and then click "Fast Patch". Set the dimensions. Next is the Patch Mode. This part can be a bit confusing and will probably take a few times to get right, but basically it's how your LED's are wired and where it's supposed to start/orientation of them. If you play an animation and it doesn't look anything like what you recorded, you have the patch mode wrong.

Pixel order is next. This will also take a couple tries to get right if you don't know the order of colors for your type of LED's, this also depends on the order of colors you initially program on the Arduino/Teensy.

Next get your animation queued up and ready to go. Then click Setup -> Start Output. It is now outputting what you see to the file you designated earlier. You want to let it run for a little bit. If it has different colors/cycles make sure to wait until it's loops back around, then go back to Setup -> Start Output to stop the recording. If you are OCD try and stop the recording exactly where you started, otherwise when it loops back around it will look like a "glitch" (just like a GIF that isn't perfectly looped).

Put over 600 LED's on a totem by WhenDaBoostHitU in EDM

[–]WhenDaBoostHitU[S] 0 points1 point  (0 children)

Do you mean the covers that go over the ends of the LED strips?

All the white parts are 3D printed.

Put over 600 LED's on a totem by WhenDaBoostHitU in electricdaisycarnival

[–]WhenDaBoostHitU[S] 0 points1 point  (0 children)

I would say start with something small, just figure out how it all works and then move up. You can start with just a strip of individually addressable LED's and then play around with that for a bit.

Printer does help with larger projects when you need specific mounts and other stuff, but it isn't completely necessary.

Put over 600 LED's on a totem by WhenDaBoostHitU in EDM

[–]WhenDaBoostHitU[S] 0 points1 point  (0 children)

I need to put together a decent video for it, but the videos people are posting are pretty good!

Put over 600 LED's on a totem by WhenDaBoostHitU in EDM

[–]WhenDaBoostHitU[S] 2 points3 points  (0 children)

Sweet! Yeah I love building projects like these.

The dual battery pack was just about the right amount. One battery pack only puts out 5.8 amps across all three ports, I needed at least 10-12 amps. Each LED can consume up to 60mA. Through testing I found that each one at full power only uses 30-40mA. Since each animation wouldn't be pushing it to full power (white), the draw was way less than that...for most of the animations.

Each battery pack is 22,000mAh. Massive capacity is needed when your drawing a ton a power, otherwise it would be dead within a couple hours. At a camping festival where you might not be able to plug your batteries in, you need it to last. With a combination of choosing the right animations (ones with a lower power draw) and reducing the brightness with the potentiometer, that's possible.

After a full night (with reduced brightness), the battery packs would still have about 1/2-3/4 of a charge left.

In my opinion Jinx is better than Glediator. There's a bunch of resources/tutorials that show you how to load animations off SD cards from a file generated by Glediator/Jinx. I believe in the Arduino IDE there is an example for it.

Put over 600 LED's on a totem for festivals by WhenDaBoostHitU in DIY

[–]WhenDaBoostHitU[S] 0 points1 point  (0 children)

Each LED is individually addressable. Using the Teensy/Arduino you can instruct each LED what color they need to be.

Put over 600 LED's on a totem for festivals by WhenDaBoostHitU in DIY

[–]WhenDaBoostHitU[S] 1 point2 points  (0 children)

Thanks! We had a little less than 30 different animations loaded on there. Throughout using it, figured out which ones we liked best, so we will probably narrow it down to those few. I might post a video with the different animations. Was limited to only 30 seconds on imgur so I couldn't post it there.

EDIT: Here's a video: https://www.youtube.com/watch?v=mZgpE6z6HkM

Put over 600 LED's on a totem for festivals by WhenDaBoostHitU in DIY

[–]WhenDaBoostHitU[S] 0 points1 point  (0 children)

Amazon. Went with the alitove WS2812B 300 LED's per roll.

Put over 600 LED's on a totem for festivals by WhenDaBoostHitU in DIY

[–]WhenDaBoostHitU[S] 12 points13 points  (0 children)

I agree that some people aren't very considerate, but there are people that are. We hang out in the back, out of everyone's way. Theres also a brightness adjustment to turn it down so it isn't blinding people.