Hi, I am working on a project and I have planned to use a 74hc595 for multiplexing part of my work and a TLC5940 for rgb led driving. I have just added on my breadboard the TLC, wrote some basic lines of code -using the acLeone library- AND nothing works anymore.

Trying to exclude part of the code I see that the 595 alone works and that the 5940 alone works, but they don't work together in the same sketch.

How do you want to connect the two?Do you have them chained together? Or do you use them for different components? Tlc5940 for the negatives and the 595 for the positives?

A bit more information would be nice to see if this can work or not.

If you have them linked together I don't think it'll work. Both chips are completely different.And then again, you can just as easily daisy chain a couple of 5940 or 595's together to have more connections.

Thanks for helping ^_^I use the two ICs for different component, I am going to use the 5940 ust for driving some RGB led and I am going to use the 595 for multiplexing another part of my circuit. Basically I am not using just 5940 and multiplexing with them because I already spent lot of nights and many posts on this forum without being able to succeed.

Anyway...

So they are not linked together, they just should work on the same arduino. I have also a piece of (bad) code, when I set the Tlc.init() the shiftOut funcion stop working, but the Tlc works. If I don't set the part of the code for the 5940, the shiftOut works...

The sn74141pilot is a function for sending data to another IC, a 74141 chip, and the blank function is a wrapper for human being to send an HIGH signal to this 74141ic.This is a part of the code that doesn't change the response that I have from the 74hc595 and the TLC5940

After more test I notice that simply having the 595 and the TLC wired as described by my pinout, creates problems. When I call Tlc.init() the shiftOut function stops responding. I don't know about the pin 12, it is the one used in the shiftOut tutorial: http://www.arduino.cc/en/Tutorial/ShiftOutI'd like to test a different pin as soon as possible...

Since you didn't need to read data in from your SPI device, you didn't need to connect the "master in" pin, and it looked like a free pin you could use. But alas, using it seems like to confuse the SPI infrastructure.