t r o n i x s t u f f

fun and learning with electronics

Kit Review – the LoL Shield

Hello readers

Another month, so time for another kit review. In this article we exame the LoL Shield by Jimmie P. Rodgers. So what’s all this about? Simple – the Lol Shield is a shield with nine rows of fourteen 3mm diameter LEDs, available in red or green. The shield has many uses, from being another form of hypnotising blinking LEDs, to displaying messages, artwork, data in visual form, or perhaps the basis for a simple computer game. More on that later – first, let’s see how it goes together.

As is becoming the norm lately, the kit arrives in a resealable anti-static bag:

The contents are few in type but huge in number, the PCB:

… at which point you start to think – “Oh, there goes the evening”. And the LEDs confirm it:

You will need 126 LEDs. There was a surplus of seven in my bag, a nice thought by the kit assemblers. There isn’t too much to worry about to start off with, just remember the anodes for the LEDs are on the left-hand side, and start soldering. The greatest of shields starts with a single LED:

However after a while you get into the swing of it:

At this point, one wonders if there is a better way to solder all these in. If you diagonally stagger the LEDs as such:

the legs stay well apart making soldering a little easier:

… however one still needs to take care to keep the LEDs flush with the PCB. I wouldn’t want to do this for a living… Still, many more to solder in:

And – we’re done!

Phew – that’s a lot of LEDs. An inspection of the other side of the PCB to check for shorts in the soldering is a prudent activity during the soldering process. The final step was to now solder in the shield header pins:

And – we’re done! This example took me just over one hour, includind a couple of stretch and breathe breaks. When soldering a large amount, always try to have good ventilation and hopefully a solder fume extractor as well. Furthermore, pause to check your work every now and then, you don’t want to install the lot and find one LED is in the wrong way. To control the 126 LEDs the LoL Shield uses a technique called Charlieplexing. Furthermore, the creator has documented his design process and how this works very well on his website located here.

From a software perspective – there is a library to download and install, it can be found in the downloads section of this site. Don’t forget to use the latest version if you’re using Arduino v1.0 or greater. This will also introduce some demonstration sketches in the File>examples section of the Arduino IDE. The first one to try is basic test, as it fires up every LED. Here is a short video of this example:

Now that we have seen some blinking action, how do we control the shield? As mentioned earlier, you will need the library installed. Now consider the following basic sketch – it shows how we can individually control each LED (download sketch):

/*
  Basic demonstration of LoL shield
 http://tronixstuff.wordpress.com/kitreviews > LoL Shield
 Needs library from http://code.google.com/p/lolshield/
 */

#include  

int ad=20; // used for arbitrary delay

void setup()
{
  LedSign::Init();  // initializes the screen
}

void loop()
{
  for (int x=0; x<14; x++)
  {
    for (int y=0; y<9; y++)
    {
      LedSign::Set(x,y,1); // turns on LED at x,y
      delay(ad);
    }
  }
  delay(500);
  for (int x=0; x<14; x++)
  {
    for (int y=0; y<9; y++)
    {
      LedSign::Set(x,y,0); // turns on LED at x,y
      delay(ad);
    }
  }
  delay(500);
}

As you can see in the sketch above we need to include the “Charlieplexing” library, and create an instance of LedSign in void setup().  Then each LED can be easily controlled with the function LedSign::Set(x,y,z) - where x is 1~14, y is 1~9 and z is 1 for on, or 0 for off. Here is a short video of the example above in action:

If you want to display animations of some sort – there is a tool to help minimise the work required to create each frame. Consider the example sketch Basic_Test that is included with the LoL Shield library – take note of the large array described before void setup();. This array contains data to describe each frame of the animation in the demonstration sketch. One can create the variables required for each frame by using the spreadsheet found here. Open the spreadsheet (Using OpenOffice.org or Libre Office), then go to the “Test Animation” tab as such:

You can define the frame on the left hand side, and the numbers required for the Arduino sketch are provided on the right. Easy. So for a final example, here is my demonstration animation. You can download the sketch, and the spreadsheet file used to create the variables to insert into the sketch.

However, thanks to an interesting website – there is a much, much easier way to create the animations. Head over to the LoL Shield Theatre web site. There you can graphically create each slide of your animation, then download the Arduino sketch to make it work. You can even test your animations on the screen just for fun. For example, here is something I knocked out in a few minutes – and the matching sketch. And the animation in real life:

So there you have it – another fun and interesting Arduino shield that won’t break the bank. For further questions about the Digit Shield visit the website. My LoL Shield came from Little Bird Electronics and is also available from the usual resellers.

As always, thank you for reading and I look forward to your comments and so on. Furthermore, don’t be shy in pointing out errors or places that could use improvement. Please subscribe using one of the methods at the top-right of this web page to receive updates on new posts, follow me on twitter,  facebook or Google+, or join our Google Group for further discussion. No pre-teen girls were used in this kit review.

High resolution images are available on flickr.

[Note - The kit was ordered by myself and reviewed without notifying the manufacturer]

Otherwise, have fun, be good to each other – and make something! 

September 7, 2011 - Posted by | arduino, kit review, review | , , , , , , , , , , , , , ,

6 Comments »

  1. this looks really nice, but what happens if only one led is on? wont it burn out?

    Comment by James | September 9, 2011 | Reply

  2. Nice review. I have one of these and it’s been fun to play with.

    BTW, I discovered another way to generate animations (and share them with others) some time ago. You and your readers may find this enjoyable.

    http://falldeaf.com/lolshield/

    I like your blog a lot in general, thanks and please keep doing it.

    Steve

    Comment by Steve in Bloomington | September 11, 2011 | Reply

    • Hi Steve
      Glad you like the blog.
      We used the LoL Shield theatre in the last section of that review – see the final video in the article and the paragraph before it.
      cheers
      john

      Comment by John Boxall | September 11, 2011 | Reply

  3. What’s the measured power draw of this, with all LEDs on, full brightness? Or is there a reliable calculation?

    Nothing on the Rodger’s website. I know it must be a fraction of LED max current, due to multiplexing and flicker. The LED color will matter (I’m building Red, green uses same power as red correct? Curious about potential power estimate for blue)

    Just bought one… Wondering if one of my Mintyboosts will work as a PS and for how long.. Cheers.

    Comment by ScottInNH | September 14, 2011 | Reply

    • As it is comfortably powered from an Arduino board it has to be less than 800mA :) Hit up Jimmie on twitter and ask him – @jprodgers
      Different colour LEDs can have different current draws, so check the data sheet for your LEDs.

      Comment by John Boxall | September 14, 2011 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 3,835 other followers

%d bloggers like this: