Jurek and the Amazing Techno, Colored DreamWall

Jurek and the Amazing Techno, Colored DreamWall

The title is mostly a placeholder, as I haven't really figured out a name for it yet. This project is a wall hanging that consists of semi-large triangular pixels using discrete RGB LED's and PWM to control intensity levels of each LED, resulting in a 4096-color display.

Tuesday, April 18, 2006

Success after bug fixing

Well, I spent quite a few hours reducing code and trying to identify problem areas and in the end, I finally figured out the root of my problems.
I had a "while" loop that was supposed to be updating the data to be written out on the TWI bus each cycle, but with the mode that the driver chips were put in for 8 consecutive bytes being written, the while loop wasn't getting executed really at all. So it was basically writing the same first 1-byte register to each of the 8 1-byte registers. I had to disable, rework, and hard-code lots of sections until I figured this out, but after a quick code fix (the data to write is updated after the previous data is ACK'ed in the interrupt handler), this is now working wonderfully.

Unfortunately, there really isn't a whole lot to show yet. I was hoping to have a few nice videos for everyone of everything blinking nicely, but as it is right now, it's just a bunch of LEDs on the ends of wires. Once I get some holes drilled into the wall section, then I can actually get some pixel visualization and snazzyness.

Until then, lots of soldering left to do. I've decided that this next batch of 17 will use only a 6" piece of 4-conductor wire instead of a 12" piece. I'm still not entirely sure what lengths I'll need for where, so I'm not going to go off and make 200 triplets with 12" 4-conductor segments. So hopefully, this will give me a little bit better testing possibilities.



Post a Comment

Links to this post:

Create a Link

<< Home