Arduino Mega2560 + Sparkfun TLC5940 LED Driver Not Working

Hello. I am trying to control the RGB Channels of my LEDs using the Sparkfun TLC5940 breakout board and Arduino Mega2560.

I am following the exact setup below except I do not have Servos connected. Only LEDs:

I am using the SparkFun TLC5940 Library. (I also tried Tlc5940 but no luck)

My code is super simple. Just trying to turn the LED connected to channel 0 on but I am not seeing anything.

#include "Arduino_Mega.h"
#include "SparkFun_Tlc5940.h"

void setup()
{
  Tlc.init();
}
void loop()
{
    Tlc.set(0, 4095); 
    Tlc.update();
}

Has anyone had any luck with this LED driver? Did you do anything to the code to make it work? Mind sharing code snippets?

Thanks

How are these LEDs and their associated resistors wired.
This is the data sheet:-
TLC5940 LED PWM Driver.pdf (932.4 KB)

If you look at page 8 you will see that the output can behave in a few different ways. This will determine how you have to wire up your LEDs and resistors.

This is a rather old chip, almost obsolete now.

Your wiring diagram shows no other connections you need to drive this chip.

I am sure you are missing other stuff like setting which output configuration to use.

@sketsamanian ,

Your topic was moved to its current location as it is more suitable.

Could you also take a few moments to Learn How To Use The Forum.

It will help you get the best out of the forum in the future.

Thank you

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.