Sep 232011
 

As prep for future projects, I’ve built a simple 2D array of individually addressable LEDs. This canvas will ultimately serve as the platform for some games (snake, pong, etc), but I’m hopeful that other people will find this useful and come up with some cool applications.

The Hardware
I previously wrote about different types of LED strips. For this project, I went with the cheaper (HL1606-based) strip, because I am probably going to use up a lot of the ribbon, and it’s significantly cheaper. The downside to using this over the more expensive strip is that I’ll have fewer colors, but I think that’ll be ok for the projects I have in mind. To make the array, I cut an LED strip into 8-LED segments, and then wired those segments serially. Electrically this means there was no change, but it allowed me to lay the strips side-by-side, to form an 8 LED by 8 LED canvas, where each LED is individually controllable by a microcontroller.

The Protocol (Low Level)
Because the strips alternatively go up and down, I am able to use adafruit’s HL1606strip library. The only difference is that every other segment gets written backwards, since it is oriented in the opposite direction.

The Library
I’ve introduced an additional layer of abstraction for this platform: HL1606grid (requires the external library HL1606strip). The API is (hopefully) straightforward. Once you instantiate the grid, you set a particular LED like: grid.setLEDcolor(row, col, RED);. If you’re familiar with the 1D HL1606strip library, that should look familiar.

Example
The library comes with an example project, which you can see running above.

Get The Code
The code is open source, on github. If you make something cool, please let me know. Bug reports & pull requests encouraged!

  13 Responses to “Addressable LED Grid”

  1. [...] was prepping for some future projects he had in mind, for which he will need a simple 2D array of addressable LEDs. While it is certainly possible for him to build his own LED array and control hardware, he thought [...]

  2. Thanks for this; will be very useful for my EMDR work (see URL). I have got much further than the video on that page: http://www.youtube.com/watch?v=XQ8X_m60GqU

    I use a IR remote control to change the patterns. I’m just about to go away for a couple of weeks, but when I get back I’m happy to share the code, if you’re interested.

    James

  3. [...] was prepping for some future projects he had in mind, for which he will need a simple 2D array of addressable LEDs. While it is certainly possible for him to build his own LED array and control hardware, he thought [...]

  4. [...] pentru unele proiecte de viitor, el avea în minte, pentru care el avea nevoie de un simplu matrice de LED-uri 2D adresabile. Cu toate că este cu siguranţă posibil pentru el de a construi propria lui matrice LED-uri şi [...]

  5. [...] 留言板 $("#home-loading div").animate({width:"30%"}) 您的位置 » 首页 » 创意无限 » 简单的阵列LED灯 简单的阵列LED灯 2011.09.28 / 标签: / 分类: 创意无限 春妞 [帕特里克]预备一些未来的项目,他的想法,他需要一个简单的二维数组寻址的LED,虽然这肯定是可以为他建立自己的LED阵列和控制硬件,他以为他会尝试一些现成的产品,看到的东西,如果可能会满足他的需要。 [...]

  6. [...] Addressable LED Grid at techspeak [...]

  7. [...] was prepping for some future projects he had in mind, for which he will need a simple 2D array of addressable LEDs. While it is certainly possible for him to build his own LED array and control hardware, he thought [...]

  8. Nice project! If you plan to interface to a PC and maybe combine multiple different grids, you might want to follow wiki.niftylight.de …

  9. That’s very cool, I definately made to make a grid with the 1606s I have. They are just collecting space right now, do you think you could program this grid to display scrolling text like from an RSS feed using processing or something off a computer?

  10. So is it possible to program these addressable strips to display not just a specific series of colors but the exact timing of the display of colors, creating a “routine”? For example, timing the display to music? For a really long strip, say 100 meters, are there limitations on either electrical power or the ability of the available software to program that many LEDs?

  11. [...] Patrick Schless wrote an update to the Adafruit addressable LED strip library so you can alternate r… As prep for future projects, I’ve built a simple 2D array of individually addressable LEDs. This canvas will ultimately serve as the platform for some games (snake, pong, etc), but I’m hopeful that other people will find this useful and come up with some cool applications. [...]

  12. Cool — Similar to my LED t-shirt project, which is now a 10×10 array I hang inside a plain white t-shirt.
    I ran the power wires along one edge, instead of looping them along side the others – mostly because I had 4 wire ribbon for the top. …

    http://www.mauimakers.com/blog/2012/04/sewing-electronics-at-hawaii-stem-conference/

    Biggest downside is the connections are fragile. Shirt/grid needs fixes after every wearing.
    I’ll look into your source soon.

  13. [...] following article gives an overview of the simple 2D array of individual addressable LEDs. Read on to know more about [...]

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>