3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

3D LED Charlieplex Cube from Chrismas Tree Lights

Step 4The video and last words

The video and last words
Now we have 80 LEDs connected into a 5x4x4 cube. Consisting of 14 charlieplex lines.

Those of you who actually read the referenced articles in the intro will note this is a sparse charlieplex matrix. With 14 lines, I could theoretically connect 13x14=182 LEDs.....however the wiring would have been more complex.

The remaining part of the circuit was simply the charlieplex line current limiting resistors, a very simple PSU (7805 regulator) and a PIC with an IR receiver connected. When the silly season is over I'll hopefully be releasing the PIC program, but it basically sends random PWM signals down the lines, an IR remote can control the speed and distribution of the PWM patterns.

Note this isn't strictly charlieplex driving, I'm not addressing each individual LED one by one, switching lines tri-state as needed. However random PWM signals seem to work great with charlieplex grids....if you like randomly pulsing LEDs that is. Too close to Christmas to finish that part of the setup.

One thing to notice if you don't properly tristate lines when driving a charlieplex grid, is that one LED will light brightly, and several others will light up dimly. It's a little unpredictable, however for random patterns this is no problem because an element of randomness is what you want.

Coming next article will be a proper charlieplex driving scheme where individual LEDs can be lit up and some more interesting patterns made. I'm hoping to do a sort of 3D game of life unit, and perhaps re-do the grid with nicer, larger, neater sections made of pet cage mesh. I was only slightly whelmed by how it turned out with hand soldering the grid.

For now here is a pretty video (warning 9Mb).....sorry I didn't have time to youtube it.

Hopefully this brief article has shown how to make use of the charlieplexing method of driving LEDs and will put those old LED christmas string lights to good use.
« Previous StepDownload PDFView All StepsNext Step »
2 comments
Dec 27, 2008. 9:57 AMRMahnA2 says:
Check out this article to see a way to group the anodes and cathodes with resistors in series with, say, that cathodes that will if only a single CPU pin is driven high at a time allow multiple LEDs to be controlled at a time without ghosting.
I'm not sure how much it will complicate the layout.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
26
Followers
7
Author:rgbphil
update later