LED - RGB Addressable, PTH, 5mm Clear (5 Pack)

We know this looks like a lot of our other LEDs, but it's not! This is a PTH Addressable RGB LED with a WS2812 (or "NeoPixel") control IC built right into the LED. This PTH version is incredibly similar to its SMD cousin, except it is a lot simpler to solder into your project and is in a clear 5mm package. This RGB LED has the control IC moved into the actual LED, so we wanted to offer this amazing product to you! They’re great when you need a lot of color from not a lot of board space, now more so than ever.

If you are looking for a great addressable LED in the more common LED form factor, then this is the perfect choice for you.

Note: Comes in packs of 5.

  • Power Supply: DC 4.5V - 6V
  • Internal Frequency: 800kHz
  • Single Wire Single Transmission

LED - RGB Addressable, PTH, 5mm Clear (5 Pack) Product Help and Resources

WS2812 Breakout Hookup Guide

July 24, 2013

How to create a pixel string with the WS2812 and WS2812B addressable LEDs!

LED Pinout

The datasheet for the WS2812 addressable through-hole LEDs is not clear with the pinout. For reference, you can refer to the bulb’s flat edge and the length of the terminals as indicated below.

Pinout


Core Skill: Programming

If a board needs code or communicates somehow, you're going to need to know how to program or interface with it. The programming skill is all about communication and code.

2 Programming

Skill Level: Rookie - You will need a better fundamental understand of what code is, and how it works. You will be using beginner-level software and development tools like Arduino. You will be dealing directly with code, but numerous examples and libraries are available. Sensors or shields will communicate with serial or TTL.
See all skill levels


Core Skill: Electrical Prototyping

If it requires power, you need to know how much, what all the pins do, and how to hook it up. You may need to reference datasheets, schematics, and know the ins and outs of electronics.

3 Electrical Prototyping

Skill Level: Competent - You will be required to reference a datasheet or schematic to know how to use a component. Your knowledge of a datasheet will only require basic features like power requirements, pinouts, or communications type. Also, you may need a power supply that?s greater than 12V or more than 1A worth of current.
See all skill levels


Comments

Looking for answers to technical questions?

We welcome your comments and suggestions below. However, if you are looking for solutions to technical questions please see our Technical Assistance page.

  • Member #606730 / about 8 months ago / 2

    What's the viewing angle of these? Thank you

  • SebDE / about 8 years ago / 1

    Hi,

    I've worked for a while with these LEDs and have a important notice if you would like to drive a large number (>60 leds) on one line. The integrated chips are not WS2811/WS2812 and have a different timing (compare the datasheets with WS2812). The used frequency of this leds is ~ 585kHz. If you use only a small number there are no conflicts with the neopixel library, but if you use a large number you will get funny flickering (on the last leds). Befor your waste your time to proof your power-supply or your used cap - keep in mind that you need to adapt the timing of the neopixel-library. After that I had no problems.

    Dear sparkfun team please put a note to your product. I've invested one weekend only to find these difference and now I'm very happy with these beautiful leds.

    If anyone need the adapted neopixel library code, reply and i will post it.

  • Member #414620 / about 9 years ago * / 2

    This is not your typical RGB LED like the WS2812, It is coded GRB instead. I have altered the definitions file for the WS2812 to properly work with this specific LED. You can grab the file here APA_106 Definitions.h Hope this helps to get the correct colors you want.

  • Member #591973 / about 10 years ago / 2

    i like this i need it

  • Harrkev / about 10 years ago / 2

    Hmmm. To make a 320x240 (QVGA) display out of these things would cost $36,249.60.

    • Rigby / about 10 years ago * / 1

      Your math is off, I think. $181,248.

      320x240 = 76,800. 76,800 * 2.36 = $181,248.

      edit: i was wrong. they're in 5 packs. d'oh.

      • HungryCow / about 10 years ago / 1

        Actually, Harrkev is right. They're $2.36 per 5 pack, not per LED.

      • Occam / about 10 years ago / 1

        Only if you INSIST on paying 2.36 each ;-)

    • M-Short / about 10 years ago / 1

      Sounds reasonable to me :)

    • bpereira / about 10 years ago / 1

      And if you pack them as tight as possible it's only 1600x1200mms. Not much of a jumbotron for 36K. But you could do some pretty cool POV display stuff. I'm thinking a full color bicycle wheel display would be cool. Maybe 32 or 64 in a string. Maybe two strings spaced 180 degrees apart to give a high refresh rate since bike wheels don't rotate too fast. Yeah might have to grab some of these for testing.

      • barrylongstocking / about 10 years ago / 1

        for POV, these will work but wont be crisp, due to the timing based protocol, they don't end up properly in sync unfortunately.

        • XLT_Frank / about 10 years ago / 1

          Mee_N_Mac had a long conversation about how WS2812 would not work for POV... https://forum.sparkfun.com/viewtopic.php?f=42&t=36536

  • Lil Dutchie / about 9 years ago / 1

    Anyone measured these guys' typical current draw? The datasheet is about as unhelpful as it gets

  • Hi! I'm trying to control these leds (12 in total) with an arduino pro mini 3.3V 8Mhz powered by a LiPo Battery (3.7V 1100mAh) . I'm using Adafruit Neopixel Library on digital pin 4 but they turn up blue and stay that way. I tried the same strip on a typical 5V arduino uno and works perfectly (so the connections are not a problem) . It's about voltage, right? I'm connecting the v+ input of leds to the raw pin where I have the battery connected. Curiously, I also have a 12 leds strip of these ones: https://www.sparkfun.com/products/13282 and they work perfectly on arduino pro 3.3v 8Mhz . Is there anything that I can try or just consider moving to SMD? Thanks!

  • Condor42 / about 9 years ago / 1

    Does anyone have a sample setup and code I can use? I am a noob at these and want to know how to use them properly. Thanks!

  • RichardBronosky / about 10 years ago / 1

    I was able to power and drive a 5mm Diffused Addressable RGB LED https://www.sparkfun.com/products/12986 using a SparkFun 3.3v Arduino Pro Micro. However, I found that pins 5, 7, and the analog pins DO NOT WORK to drive this (at least with the Adafruit library). See more at http://forums.adafruit.com/viewtopic.php?f=47&t=61188

  • Member #572779 / about 10 years ago / 1

    I bought some of these from Adafruit awhile ago and they work great! I am running them off an ATTiny85 and 4 AA cells and I had to back the brightness off. If you follow the NeoPixel guide you will be in great shape. Do be careful when you connect them, I toasted a couple when I accidentally bumped my power supply voltage up to 7.2 volts from 5 volts! It was not pretty! I like the water clear version because it is much brighter! And you cannot beat the price! I paid $4.95 a pack from Adafruit when they had them.

  • rub0t / about 10 years ago / 1

    I don't see anything in the datasheet regarding a current limiting resistor. Do I need one? I think the SMD version has constant current control built in. Is it the same for these?

  • moxtronics / about 10 years ago / 1

    Are there plans to keep these around? I got some from Adafruit recently and was seriously distressed because they've been discontinued over there. These are PERFECT for 90% of the projects I've got in the works because tiny! (wearables!) thru-hole! (props!) and MOST importantly clear! (for fiber optics!) There are plenty of ways to diffuse an led but exactly zero ways to un-diffuse one.

    I need to know because if this is the only stock you plan on having I may need to clean you out (actually not joking).

  • XLT_Frank / about 10 years ago / 1

    The question is when these will be incorporated into a new revision of this: https://www.sparkfun.com/products/8033 ? Obviously you just need to take the inputs over SPI and have the Neopixel library handle the one wire of the WS2812.

  • Member #298958 / about 10 years ago / 1

    The data sheet is almost use less!! Spark, did you bother to check what is needed to transmit the data path format for using it???

    Here (from another site) is a better description of HOW TO USE it

    "The data are sent in a sequence containing 24 of those bits — 8 bits for each color — followed by a low Reset pulse of at least 50µs. The channels are in the order Green, Red, Blue.

    The larger the value of a specific color is, the brighter it will be. If every color is set to 0, the LED will be off. If every color is set to max (255) the LED will be brightest white.

    Because the interface is so time-specific, you will need a real-time processor like an Arduino or Propeller to run the LEDs. Microprocessors like those on the Raspberry Pi or pcDuino can't give you a reliably-timed pulse; even if one bit is less than a microsecond off, that could mean the difference between purple and maroon."

    Same goes for the 5mm version, without the above, your just getting a very tiny doorknob!

  • Member #341079 / about 10 years ago / 1

    Has anybody else noticed that the pinout designsations and the application note schematic don't match on the datasheet?

    Which one is correct?

  • Member #279780 / about 10 years ago / 1

    Hi! These look cool but the data sheet says "timing waveforms" have pulses 0.35 usec and 1.36 usec +/- 150 NANOseconds.

    How to do that with an AVR or similar?

    Thanks Doug

    • sirkha / about 10 years ago / 1

      These are based off the same chip that the newer Adafruit Neopixels use. They have developed a great library and many hook up guides, etc, for this product.

  • Member #15428 / about 10 years ago / 1

    Does anyone have a typical hookup for this?

  • sparkus / about 10 years ago / 1

    With the clear, don't expect to be able to "see" the color from the LED without a diffuser. i.e. a wall that its aimed at or some sort of opaque medium. These are great, but that is a limitation of this particular form factor.

    • slandis / about 10 years ago / 1

      You can see most of the colors well enough without a diffuser, but no doubt it would help. I have 5 dozen of these purchased from another site, and they're pretty darn bright even in daylight!

  • LightManCA / about 10 years ago / 1

    How is this different from COM-12986?

Customer Reviews

4 out of 5

Based on 3 ratings:

Currently viewing all customer reviews.

9 of 9 found this helpful:

Work well, with one caveat.

These LEDs work well with the NeoPixel library, are super bright, and a lot of fun to play with.

Theres one thing to know though, that can slip past you if you dont know about it:

The adafruit best practices list the following: a 300 - 500 ohm resister in line with the data pin (as close to the LED itself), and a 1000uf 6.3v capacitor or better across the power supply + and -.

I did not know about this at first, and wound up burning out an LED as a result. When I messaged Sparkfun about this they confirmed this was needed, and pointed out they mentioned this fact...in a hookup guide for the WS2812b. This hookup guide isnt linked here.

Im somewhat dissapointed that this isnt mentioned anywhere here on the page for this product, and the hookup guide isnt even linked here.

Without these in place, running example sketches with the NeoPixel library stands a HIGH chance of burning out the first LED in the string.

For reference, here is the hookup guide for the 2812b, and pretty much all the information also applies to these LEDS: https://learn.sparkfun.com/tutorials/ws2812-breakout-hookup-guide

Overall, pleased with the product, a little let down that crucial information wasnt provided here.

1 of 1 found this helpful:

Remarkable LED, but get a few extra

This is my first time working with the WS2812 and I am extremely impressed. I did fry one trying some things out before I read enough documentation but the information is out there and not complex--so buyer beware, read up before you plug in.

There are a number of other projects that I will likely incorporate these into, but as already assembled strips or rings, not single LEDs.

I wish I could have gotten away with using a strip of these for my current project but the through-hole type is the only thing that will work. That said I am glad that I can acquire and control single LEDs the same as the NeoPixel strips.

These are a little more complex than regular LEDs as you have the 4 pins to deal with time and time after time but the Adafruit NeoPixel library is super easy to use, so once they're wired up control is a breeze.

I am excited to try the strips, rings and matrices when those will be appropriate to the project, as the major complication (4 pins over and over and over again) will be eliminated by using an assembled package.

It looks as if a small percentage of the "pixels" may not perform as expected; 2 or 3 of the 65 that I purchased seem to have bad data pins. I usually buy about 10% more than I need of things like this, so I am covered, and I would recommend that anyone who is planning on using these also acquires a few more for contingencies.

1 of 1 found this helpful:

Brilliant little LEDs

Pros: Control an entire line with 1 I/O Pin Bright Easy to use with the NeoPixel Library Examples make learning to use them easy

Cons: Library seems to be a bit buggy: Sometimes the LEDS wouldn't light correctly(every once and a while), The library as is takes G,R,B order for setting a pixel color but the definition file defined is R,G,B meaning you have to change the library or definitions to get them to work correctly, neither of which I have attempted.