Interactive LED Wall - Arduino Code Explained

Sdílet
Vložit
  • čas přidán 7. 12. 2019
  • UPDATE: I've made some changes and added a new mode for anyone replicating this project!
    Check out my github page linked below for the new code and a full list of changes!
    My code: github.com/mrme88/Interactive...
    Check out the build video if you haven't seen it: • How I Made an INTERACT...
    This video is a walk through of the code I wrote for my LED wall. I cover the Arduino libraries used, the set-up, the main loop function, and each of the modes that the wall currently has.
    FastLED Library: github.com/FastLED/FastLED
    Keypad Library: playground.arduino.cc/Code/Ke...
    As always, leave a comment if you'd like to see something specific and subscribe to stay up to date with my latest projects.
  • Věda a technologie

Komentáře • 49

  • @redfoothedude3350
    @redfoothedude3350 Před 4 lety +1

    Great tutorial. Thanks for the code walk through and explaining your process 🤘

  • @DeathFromChocolatte
    @DeathFromChocolatte Před 4 lety +3

    I love this idea! I want to make this into a 16x16 or 32x32 version of this! I would just need to work on the multiplexer for something that size. I think making a memory game would be really cool with some sounds. I just subscribed hoping to see more projects in the future! Keep it up friend!

    • @TheTechRandom
      @TheTechRandom  Před 4 lety +1

      Memory is a great idea! I'm back from break so I plan to upload an update video soon

  • @AxelYates
    @AxelYates Před 3 lety +1

    I know this is a year old, but I actually made this. 4'x4' with 144 tiles and 864 LEDs. Thank you for the instructable, the little bit to connect the 4 tiles together was genius, I wouldn't have thought about that but it was a very good way to glue them to the board. I tried posting on your instructable page but idk if it took. Hope you're doing well

    • @AxelYates
      @AxelYates Před 3 lety

      That being said, I didn't have use for the switches so mine just takes Arduino code and runs it through the LEDs. I applaud you doing the switches lol.

    • @TheTechRandom
      @TheTechRandom  Před 3 lety

      Glad you were able to make this! I love when people share their success stories!

  • @djlogic937
    @djlogic937 Před 3 lety

    Hey Chris, I just stumbled across your channel last week and I'm impressed! Thank you for the great instructional content. I'm very familiar with low voltage pixels, but very novice when it comes to programming and micro controllers, so I appreciate your walk-throughs. Have you done the additional modes you mentioned in your vid or checkers & Tic-Tac-Toe? I'm going to attempt to follow your tutorial and I'll holler if I get stuck. Thanks again!

    • @TheTechRandom
      @TheTechRandom  Před 3 lety +1

      I made a few games and I was going to put out a video on it a couple weeks ago but a bunch of the footage got corrupted. I still want to make a video on more but I’m not sure when it will be. Feel free to ask any questions though! I’m glad you found the channel

  • @stelockh
    @stelockh Před 3 lety

    Thank you so much! I'm trying to figure out how to build a table like your wall but I wasnt planning on making it interactive but now you have me thinking. I'm wanting to build a 8ft x 2ft table with 2in squares for the grid. Im planning on using the same leds but the 60/meter instead of the 30 which I believe you used. This will give me 3 leds inside a 2x2 square. I will then cover the whole grid (8ftx2ft) with translucent plastic (55%). I was having a hard time figuring out how to get three leds to light like what you did for each square but it looks like your code may be the answer! I know it's going to be a lot of leds 1800 or so. Do you have any advice on which controller I should use? I'm not sure the arduino mega could handle it? It might. Any help or guidance would be much appreciated as I start down this path. Thanks again!!

  • @assaultassault782
    @assaultassault782 Před 3 lety

    Great job,like your video!

  • @2012jordanat
    @2012jordanat Před 2 lety

    Man, this is very well done, and I can't tell you how much I appreciate the detailed videos!
    I'm trying to build one of these for a local children's museum as a part of an exhibit. The two FOR loops in the light_tile is throwing me for such a loop (ha, punny...). I can't seem to wrap my head around what it's doing even though I understand the intent. I've tried making sense of this in Excel using the math you're doing, but I can't get it to where the match shows all of the LED addresses in the same tile. Has anyone else had this much trouble?

    • @lucidmoses
      @lucidmoses Před rokem

      Yes, there are defiantly better ways to do it but what he's doing it setting the two sets of three in a row lights in two different loops. It's for sure not terrible for his little project but if you want something a little more readable and faster to execute. I'd make a indirect lookup table at compile time (or load time if you need it to be flexible to size). Then just do one loops of the six lights via the indirect setting. In fact. Since it's only six items I'd save memory, cpu overhead of the loop and just do the six sets in code one after the other. It will be faster and smaller.

  • @JohnBomboy
    @JohnBomboy Před rokem

    Would it be possible to add midi support? I have a Monome Norns and I'd love the idea of using something like this to make an interactive Monome grid for my live art shows where the audience can interact with the music I'm playing at shows.

    • @TheTechRandom
      @TheTechRandom  Před rokem

      I’m sure you could find an arduino library that adds midi support! Programming all of the animations for each midi command will need a lot of effort though

  • @kennmossman8701
    @kennmossman8701 Před 4 lety +2

    Better to explicitly cast stuff like location/10,
    FP math is slow with division the slowest, so location * 0.1 is faster

  • @haleykern5604
    @haleykern5604 Před 2 lety

    hello absolutely love this project and im working on a similar project. How would you change the code from the group of six relative LED's to two relative LED's (only one on the right and one on the left)? many thanks!

    • @haleykern5604
      @haleykern5604 Před 2 lety

      I'm also having problems with which rows and columns go into the relative arduino pins

  • @kennmossman8701
    @kennmossman8701 Před 4 lety +1

    I thought you said the libraries are the most important thing (agree) but is there a library walk-thru?

    • @TheTechRandom
      @TheTechRandom  Před 4 lety

      This video was already very long so I only talked about the functions I was currently using. In the future I can make a video talking about the other uses of the fastLED library!

  • @thevicious_dawg5601
    @thevicious_dawg5601 Před 3 lety +1

    Is it possible to buy any generic led strip then write a code to have it complete an RGB wave like the strips in the background?

    • @TheTechRandom
      @TheTechRandom  Před 3 lety

      The strip around my ceiling is the same one I’m using in this video (ws2812b). It’s controlled with a wemos d1 mini running WLED. A few google searches should point you in the right direction

    • @thevicious_dawg5601
      @thevicious_dawg5601 Před 3 lety

      Tech Random DIY thank you

  • @kennmossman8701
    @kennmossman8701 Před 4 lety +1

    The LEDs are hard-coded to the tiles? Is that the best idea?

    • @TheTechRandom
      @TheTechRandom  Před 4 lety

      Not sure exactly what you mean by this. The light tile function makes it easy to turn a whole tile one color but the LEDs can still be addressed individually as shown in the Christmas mode.

    • @kennmossman8701
      @kennmossman8701 Před 4 lety

      @@TheTechRandom Yep understand that. Let me try again. For a tile there are LEDs which correspond to that tile. If the strip had a different density or one had more length of a strip under it or the tiles were a different size would the code work as is? What time zone are you in???

    • @TheTechRandom
      @TheTechRandom  Před 4 lety

      Oh I understand. In the next version I'll make sure to include definitions for the number of LEDs under each tile so the code can be more easily manipulated.

  • @kennmossman8701
    @kennmossman8701 Před 4 lety +1

    In "Actual Code" no need to have.......++mode in each Case. Good idea to have a DEFAULT to cover all the bases

    • @TheTechRandom
      @TheTechRandom  Před 4 lety

      This was how I changed the modes in the early stages of development so they’re redundant now. They’ve already been removed in my newer version of the code.

  • @fredericaacademy1
    @fredericaacademy1 Před 3 lety

    What pins connect from the Arduino to the LED lights?

    • @TheTechRandom
      @TheTechRandom  Před 3 lety

      I have the LEDs connected to digital pin 8

    • @fredericaacademy1
      @fredericaacademy1 Před 3 lety

      Tech Random DIY Thank you. I see it in the code now. I am building this with students. We might have more questions!

    • @TheTechRandom
      @TheTechRandom  Před 3 lety

      @@fredericaacademy1 Glad you like the project, good luck!

    • @fredericaacademy1
      @fredericaacademy1 Před 3 lety

      @@TheTechRandom We connected one LED strip to the Arduino with your code loaded and we only get 5 solid red lights. What do you think that means?

    • @TheTechRandom
      @TheTechRandom  Před 3 lety

      Make sure everything is connected to the same ground. If your strip is connected to the ground of the power supply but your arduino isn’t you’ll have some weird bugs

  • @kennmossman8701
    @kennmossman8701 Před 4 lety +1

    Odd that you have #define BRIGHTNESS 255 but use hard-coded values through-out

    • @TheTechRandom
      @TheTechRandom  Před 4 lety

      Good catch, I’m using that value for brightness control now, haven’t decided exactly how to implement it yet though.

  • @anthonyralph3101
    @anthonyralph3101 Před 2 lety +1

    Do you sell these

    • @TheTechRandom
      @TheTechRandom  Před 2 lety

      I wish I could sell them but it was wayyyy too much work to build. I’ve been working on and off for a year developing a modular version that I could sell but I’m still in school so progress is slow. My goal is to have something available to buy through my website by the holiday season next year. Fingers crossed I can get there because I know a lot of people are interested in something like this.

  • @architecturaltiledesigns7729

    Are you interested in collaborating on a project?

    • @TheTechRandom
      @TheTechRandom  Před 3 lety

      I'd love to hear your idea! E-mail me at chparkertech(at)gmail.com

  • @kennmossman8701
    @kennmossman8701 Před 4 lety

    I can NOt see the code on the video

    • @djlogic937
      @djlogic937 Před 3 lety

      You sure complained about it enough in your other FIVE comments. Apparently you must have been able to see something...

    • @kennmossman8701
      @kennmossman8701 Před 3 lety

      @@djlogic937 WOW a Comment Nazi !
      I looked up the source code - OBVIOUSLY.
      I did not complain - I commented - big difference. Or do Comment Nazis not allow comments? I think I offered positive remarks - mostly on how to improve the code. Maybe even you learned something. I am sure you are counting - this is number SIX?
      Maybe you can offer something positive instead of bashing others.