Posting Comment for "Charlieplexed 16 LED Animated Christmas Tree"

*Author Name
Email Address
Website URL

About Posting a Comment

Comments are moderated before they will appear on the website, this is a manual process and may take some time. Please be patient.

Author Name is a required field.

Email Address is optional, but without one I won't be able to contact you back. It is never shown or linked on the website. You can always just email me if you'd rather not post a public comment. I generally reply in-line with a comment rather than email you back, unless I want to discuss something in private or off topic. Please check back to see when I reply.

Website URL is optional, if supplied the Author Name will be hyperlinked to this URL.

You may use wikitext in the body, preview may be handy here. Don't worry if you can't figure them out, just give me a hint what you want linked to what and I'll do it during moderation. Wikitext is not BBcode!

Spammers: Please don't bother wasting your time scripting up posts to this form. Everything is moderated, your post will never be seen on the web even transiently, there is no way to even view it by its internal ID, it will never be indexed. I will simply delete your post in the moderation interface. If I'm your target audience you're really on the wrong track; I'll never click on a URL in your garbage. The post content is not emailed to me (and I don't use a Win32 mail client anyway), I view the posts in plain text in the moderation interface so no clever tricks of any kind will make anything you type be interpreted by anything other than me, a human. Just give up and go elsewhere please!


14th December 2009 12:01

Alan Yates wrote...

G'day again Tomas,

Yes, driving up to 20 LEDs with just 5 lines seems magic doesn't it. It is a compromise of course, each LED actually flashes very briefly at a high rate so it is suitable for human consumption only (you can see the multiplexing pulses on some of the video frames I took in the dark where they overload the camera part way through the sensor scanning - this makes the final product hard to capture in its full glory). The rate is well above the human flicker fusion frequency, and even slow movement across your visual field is acceptable.

Obviously a larger MCU could drive the LEDs in a more straight forward manner (or more LEDs charlieplexed), but the wiring harness gets very complicated. With 5 lines it isn't too bad to deal with physically, each line connects to 4 separate reverse-parallel pairs. The back of the star project shows the general construction approach well, I'll post more about it once the software is closer to completion.

I haven't supplied a circuit diagram because the exact pin-to-LED mappings I did not record. I simply sketched the K5 graph and wrote down one possible (arbitrary) edge numbering scheme. From that I derived a wiring list and built it physically. The 5 drive lines were twisted up into a bundle and terminated on a 5-pin plug. I then injected a current-limited signal into the pins in turn to discover the pin-to-LED mappings which where written into the led mappings table in the firmware. The LED numbering scheme is arbitrary, but I chose anti-clockwise from the top-down so each nibble encodes one level of the tree and each vertical column has the same bit order within the nibble so I can design the frames easily.

The design GUI I may make web-based as that would allow other people to use it regardless of their PC platform. If I make it generic enough it can be used for any kind of display design problem.

Regards,

Alan

14th December 2009 09:27

Tomas ok4bx wrote...

First time seeing christmas blinking star/tree with such small chip with 5 IO lines. Thanks for mention of charlieplexing. Also idea about GUI on PC is impressive to me !

Nice to read you again!

GL 73