Posts

Showing posts with the label LED multiplexing

How to Build a Simple LED Cube 4x4x4 - Part 4

Software The software is derived from my earlier LED cube, the charlieplexed version. Of course the "hardware layer" had to be changed, because physical control of the LEDs is different. But the rest is very similar. To add a bit more structure, I partitioned it into several files. There is the main routine (in LEDCube444.c), the file HWControl.c for low level hardware support and a collection

How to Build a Simple LED Cube 4x4x4 - Part 3

Connecting the Electronics There isn't much, really. First, solder the microcontroller's socket to the perfboard, then the socket of the driver. I didn't use a socket for the driver initially, which I regretted later... Here is a schematic. If you do this in a clever way, there will not be too much effort in connecting the driver to the controller. Port B controls the common cathodes,

How to Build a Simple LED Cube 4x4x4 - Part 2

Building the Cube Structure In part one we prepared all LEDs for the assembly of the cube. Now, we start in earnest... Step2: Build the groups Each group consists of eight LEDs. Here they are: You need a template to assemble the LED groups. My LEDs are 5mm, so I drilled a set of 8 5mm-holes in two rows with 4 holes each into a piece of wood. Insert 4 LEDs in the upper row of the

How to Build a Simple LED Cube 4x4x4 - Part 1

Project Features Easy to build Only two active components (apart from the LEDs, of course) Includes detailed build instructions, schematics and software Introduction When I posted my charlieplexed 4x4x4 LED cube I did so in order to show an alternative implementation for such a cube. Its unique feature is that it only uses 9 controller ports. For some reason it gets a lot of interest

The Charlie Cube Mark II: 4x4x4 - Update

Update Build this simpler version instead! Introduction When I wrote my post on my charlieplexed LED cube, I never meant to publish build instructions. There are plenty of instructions around and a regular LED cube is much easier to make. Instead, I wanted to show that it is possible to use charlieplexing for such a cube. And I wanted to share my thoughts on how I got there. So I never

A Charlieplexed Knight Rider Light

Features Low cost and low part count Four different flashing patterns, easily modifyable Speed control and pattern switching via pot Introduction This is nothing special, really. "Knight Rider lights" or "Larson Scanners" seem to be very popular microcontroller projects. I guess they are the next step right after the blinking LED (a.k.a. the "Hello World" program for microcontrollers). I

The Charlie Cube Mark II: 4x4x4

Project Features Minimal hardware Wiring more complex than standard led cubes LED duty cycle 1/8 Update: There is a schematic and part list available here. WARNING: Do not build this cube unless you know what you are doing! It uses minimal hardware but is difficult to understand. There is a new design which is much easier to build with a very low part count.

Musings on Charlieplexing

Some time ago I stumbled over an article about charlieplexing on hackaday.com. Charlieplexing is basically a method to control n * (n-1) LEDs using only n I/O ports of a microcontroller. Say you have 5 I/O ports, then you can control 5 x 4 = 20 LEDs independently! Find more details in Wikipedia. I was fascinated, because I had never thought it was possible to control so many LEDs with so little