Online Test Banks
Score higher
See Online Test Banks
eLearning
Learning anything is easy
Browse Online Courses
Mobile Apps
Learning on the go
Explore Mobile Apps
Dummies Store
Shop for books and more
Start Shopping

LED Cube Pattern Generator

For the LED cube, you have to write the correct code to generate the animation. But writing all of those 1s and 0s can be really tedious. To make things easier, use the LED Cube pattern generator to create sequences of animation frames and play them back. Here’s how to use it:

  1. Click on the gray boxes to turn them orange.

    This means the corresponding LED will be illuminated in that frame of the animation sequence, once you have uploaded the code to your cube. You can preview the results in an isometric preview window on the right.

  2. Click on the insert button at the lower right to create a new frame and determine which of its LEDs are turned on.

  3. When you are happy with your frame, set its duration and click the Apply button.

    By default, each frame lasts for 100 milliseconds, so 10 frames of animation will take 1 second to play back on your cube.

  4. Keep going until you’ve created your animation sequence.

  5. Click the Play button, when you’re ready to preview the animation.

    The animation will be played at approximately the same speed you’ll see when it’s uploaded to your cube.

  6. When you are satisfied with the animation, click on the Get code button.

    This displays the necessary code in a pop-up window.

  7. Cut and paste the results in the textbox directly into your Arduino sketch!

  8. Upload your code to your LED cube and watch the three-dimensional show!

Get the code:

You can download the files to your computer and run them there and even customize the code if you are feeling inspired. The files that generate the LED cube animation are simply made up of some web pages and Javascript. Click here to get these files.

  • Add a Comment
  • Print
  • Share
blog comments powered by Disqus
Advertisement

Inside Dummies.com

Dummies.com Sweepstakes

Win $500. Easy.