Creative Commons images are CC BY-NC-SA 3.0

5.95

added to your
shopping cart

quantity
In stock 148 in stock
5.95 1+ units
5.36 10+ units
4.76 100+ units

Description: The TLC5940 is a 16 channel PWM unit with 12 bit duty cycle control (0 - 4095), 6 bit current limit control (0 - 63), and a daisy chainable serial interface. It is handy for expanding the number of PWM outputs available.

Features:

  • 16 Channels
  • 12 bit (4096 steps) Grayscale PWM Control
  • Serial Data Interface
  • 30MHz Data Transfer Rate
  • CMOS Level I/O
  • Drive Capability (Constant-Current Sink)
    • 0mA to 60mA (VCC < 3.6V)
    • 0mA to 120mA (VCC > 3.6V)
  • 3V to 5.5V VCC

Documents:

Comments 28 comments

  • did a sort of a beginner’s approach type tutorial on this IC. Definitely not as good (or polished) as some of the written guides, but it could be supplementary: http://www.youtube.com/watch?v=FehBLNHMlfo

  • I wrote and published a free book that explains how to turn the datasheet and application notes for the TLC5940 into an unencumbered C library for use with an AVR microcontroller.
    The library uses the CLKO pin of the AVR to drive the GSCLK pin of the TLC5940 at up to 20 MHz, which allows you to update the grayscale values at up to 4882.8125 Hz (or even higher if you operate the TLC5940 in 11, 10, 9, or 8-bit modes).
    It also supports multiplexing common cathode (or common anode) RGB LEDs.
    The book, source code, Makefiles, schematics, and example projects are available here: https://sites.google.com/site/artcfox/demystifying-the-tlc5940

    • Excellent resource, thanks!

      I used your library to make a MIDI keyboard visualiser: http://mechinations.wordpress.com/2013/10/20/midi-keyboard-visualiser/

    • Thank you for posting this!! Very nice to have folks contributing to the community, I am currently de-mystifying the TLC5940 thanks to you. :)
      Cheers,
      Kris

    • I read your book with great interest, thank you for publishing it. Like everyone else who bites off more than they can chew, I’m trying to build an LED music display. I’m hoping to use common anode RGB LEDs and assume that I use the schematic “usart_mspim-no_border_multiple.pdf” and wire up each LED to consecutive outputs of the 5940 ie 28-R, 1-G and 2-B and so on. I also have a nice 12V 4A power supply and want to use 3 LEDs in parallel for each “line” is this too much for the 5940 and would I still set the current to 20mA or use 60mA. I have lots of N channel mosfets, could I use these to wire it up as per the common cathode schematic? Thank for helping a beginner.

  • I prefer the TLC 5952, it has an internal oscilator and 24 channels to boot.

  • Hi, just a tip: You can get this as free samples from Texas instruments, they will give you up to 5 of these, along with up to 5 of each of other 4 chips, each time!
    no need to pay $6 for 1, even the shipping is free, and fast, for me it take 3 days, and I live in Mexico!

  • I don’t like how this chip cannot do PWM on its own. It doesn’t have an oscillator, and when it counts to 0xFFF, it stops, shuts off outputs and needs to be reset via BLANK.
    I got it working by using a TLC555 in 50% duty cycle configuration to provide GSCLK and capacitive coupling one of the outputs to BLANK to reset the counter. I used a 4.7 kohm pullup at the output, a 2.2 nF capacitor between the output and GSCLK, and a 100 kohm pulldown on GSCLK. I also added diodes to clip the signal at GSCLK to the power supply rails; those are probably unnecessary. It works reliably once started, but I’m not recommending this except as a temporary hack. I’m planning to use a microcontroller to generate the necessary signals.

  • Does anyone know if this is comparable to the A6276EA from Allegro Microsystems? My goal is to build a 8x8x8 led cube with an Uno. I guess I’m just wondering if this will do that. Do you have any docs or instructions from someone that’s already tried it?

    Thanks in advance, A fellow geek

  • I’m trying to comprehend the datasheeet, but there’s on thing I can’t figure out:
    Does this IC have have a total max output current of 120mA, or is it 120mA per channel?

    • It is 120mA per channel with VCC > 3.6V and 60 mA per channel with VCC < 3.6 V. For larger currents, channels can be connected in parallel. There’s also a power dissipation limit of 2456mW at TA < 25°C and less at higher temperatures.

  • You should check this out http://micromegacorp.com/umpwm1.html
    8PWM in, 8PWM out!

  • RichardInVA: Is the serial protocol for this device proprietary? I’d like to use this with a PICAXE because I don’t want to pot an Arduino, but I’m not sure the PICAXE would be able to generate the serial signal for it.
    The protocol is fully documented in the datasheet.

  • Is the serial protocol for this device proprietary? I’d like to use this with a PICAXE because I don’t want to pot an Arduino, but I’m not sure the PICAXE would be able to generate the serial signal for it.

    • The first micro project I built was 48ch led controller, used 3 of these and a Picaxe 28X1 so I know for fact that these work with Picaxe but I did need to uses a decade counter to generate all the necessary clocking signals because of the inability of the Picaxe to generate 2 different frequency of PWM.

  • Yay! I’m just getting started with physical computing stuff, and as such am doing a lot of LED-based projects. I have a few of these that I ordered from Mouser but their site assumes a lot of knowledge and is a bit intimidating (to me). I prefer to order from Sparkfun and Adafruit, so I’m glad to see these here!

    • Uh, how is ordering from Mouser or digi-key any harder than sparkfun? You just type in the part number, add it to your cart and check out… Just like here… I would say its nice to support sparkfun’s other products by throwing a couple of these in my cart when ordering something else. That I can understand and use to justify the markup.

      • I don’t think it’s so much ordering the part as it is finding the part. Both Mouser and Digikey assume that you know the exact part you need and that you know the “industry” name of your part. Sparkfun assumes much less technical knowledge and is thus much more attractive for the hobbyist or someone who is still learning.

  • Awesome! Next step: Get the SMD version!
    …please?

  • Great to see you carrying this sometimes-hard-to-get chip!

    • Why are these TLC5940NT chips hard to get, even sometimes? You can get some for free through TI’s sampling program, and they’re in abundance and substantially cheaper when buying them from the larger parts distributors like Mouser.

      • Agree with that. Free or $2 cheaper… But hey, people love to throw money away.

        • I admit it would be nice to see these at ~$5 but props to Sparkfun for carrying these and exposing peeps to them. Shipping costs are another factor so its not black n white as made out to be. Lastly, most people will only need one or two of these ICs I imagine.

  • These are a great IC, very simple to use with Arduino and can sink current from LEDs without each having their own resistor. More at http://wp.me/pQmjR-Ey

    • Yeah, but there is a problem with that. The more LEDs you turn on, the dimmer they will all be. Having all your LEDs connected with their own resistors means that the brightness will not be affected by the number of LEDs on at that moment.

      • Because of the current regulation, you don’t need any external resistors. Each TLC5940 output has its own current regulation, so brightness won’t depend on the number of LEDs that are on. The only things you need to consider are the per channel current limit and the per chip power dissipation limit.


Related Products