{"product_id":"3088-addressable-rgb-150-led-strip-5v-5m-sk9822","title":"Addressable RGB 150-LED Strip, 5V, 5m (SK9822)","description":"\u003cp\u003eThis LED strip has a length of \u003cstrong\u003e5 m\u003c\/strong\u003e and contains \u003cstrong\u003e150 RGB LEDs\u003c\/strong\u003e that can be individually addressed using an easy-to-control SPI interface, allowing you full control over the color of each RGB LED. The flexible, waterproof strip runs on 5 V and can be chained with additional SK9822 strips to form longer runs or cut apart between each LED for shorter sections.\u003c\/p\u003e\n\u003cbr\u003e\u003ch2\u003eOverview\u003c\/h2\u003e\n\u003ctable class=\"picture_with_caption right\"\u003e\n\u003ctr\u003e\n\u003ctd style=\"max-width: 250px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J7779.1200.jpg?86bfdd318a7c745d0cc6d98b417e946e\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id up of one segment an sk9822-based led strip with the red green and blue leds on at a low brightness. data-picture-id=\"0J7779\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J7779.250.jpg?86bfdd318a7c745d0cc6d98b417e946e\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 250px\"\u003e\u003cp\u003eClose up of one segment of an SK9822-based LED strip, with the red, green, and blue LEDs on at a low brightness.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003ctable class=\"picture_with_caption right\"\u003e\n\u003ctr\u003e\u003ctd style=\"max-width: 250px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J7780.1200.jpg?90de63ed78e5a2bb1aede292e407c3be\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id up of an sk9822 with the red green and blue leds on at a low brightness. data-picture-id=\"0J7780\" data-picture-longest_side=\"900\" src=\"https:\/\/a.pololu-files.com\/picture\/0J7780.250.jpg?90de63ed78e5a2bb1aede292e407c3be\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 250px\"\u003e\u003cp\u003eClose up of an SK9822, with the red, green, and blue LEDs on at a low brightness.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp\u003eThese flexible RGB LED strips based on the SK9822 LED\/driver IC are an easy way to add complex lighting effects to a project.  Each LED has an integrated driver that allows you to control the color and brightness of each LED.  The SK9822 has constant current control, so voltage drops caused by the resistance in long power connections have little effect on the SK9822’s color and brightness as long as the voltage stays above 3.5 V.\u003c\/p\u003e\n\u003cp\u003eIn contrast to the SK6812 used in some of our \u003ca href=\"https:\/\/www.pololu.com\/category\/180\/sk6812-ws2812b-based-led-strips\"\u003eother similar LED strips\u003c\/a\u003e, which use a specialized one-wire control interface and require strict timing, the SK9822 uses a standard SPI interface for control (with separate data and clock signals) and has no specific timing requirements, making it much easier to control. Another useful feature of the SK9822 is an additional 5-bit brightness control register that allows you to dim your LED strip while still having 24-bit color control.  See below for a more detailed comparison of the SK9822 and SK6812.\u003c\/p\u003e\n\u003cp\u003eThese SK9822-based LED strips work as a drop-in replacement for our older APA102C-based strips in many applications.  However, due to slight color differences, we generally do not recommend using the SK9822 and APA102C together in the same project.  Also, due to a slight difference in the protocol, you might have to update your code to handle the SK9822.  See below for a more detailed comparison of the SK9822 and APA102C.\u003c\/p\u003e\n\u003cp\u003eWe offer several different kinds of SK9822 LED strips with different LED densities and lengths.  Our strips with \u003cstrong\u003e30 LEDs per meter\u003c\/strong\u003e are available in three lengths:\u003c\/p\u003e\n\u003cul\u003e\n\t\u003cli\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/3086\"\u003e1 meter, 30 LEDs\u003c\/a\u003e\u003c\/li\u003e\n\t\u003cli\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/3087\"\u003e2 meters, 60 LEDs\u003c\/a\u003e\u003c\/li\u003e\n\t\u003cli\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/3088\"\u003e5 meters, 150 LEDs\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eWe also offer denser SK9822 LED strips that have \u003cstrong\u003e60 LEDs per meter\u003c\/strong\u003e:\u003c\/p\u003e\n\u003cul\u003e\n\t\u003cli\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/3089\"\u003e1 meter, 60 LEDs\u003c\/a\u003e\u003c\/li\u003e\n\t\u003cli\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/3090\"\u003e2 meters, 120 LEDs\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eOur highest-density strips have the SK9822 LEDs packed together as tightly as possible, resulting in \u003cstrong\u003e144 LEDs per meter\u003c\/strong\u003e:\u003c\/p\u003e\n\u003cul\u003e\n\t\u003cli\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/3091\"\u003e0.5 meters, 72 LEDs\u003c\/a\u003e\u003c\/li\u003e\n\t\u003cli\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/3095\"\u003e1 meter, 144 LEDs\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ctable class=\"picture_with_caption center wide\"\u003e\n\u003ctr\u003e\n\u003ctd style=\"max-width: 600px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J6566.1200.jpg?f82ed8907ec706bae269b3cdc98e54dd\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"wide zoomable\" data-gallery-pictures=\"[{\" id side of the sk9822 or apa102c addressable led strips showing leds and data-picture-id=\"0J6566\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J6566.600.jpg?f82ed8907ec706bae269b3cdc98e54dd\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 600px\"\u003e\u003cp\u003eLED side of the SK9822 or APA102C addressable LED strips, showing 30 LEDs\/m (top), 60 LEDs\/m (middle), and 144 LEDs\/m (bottom).\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp\u003eWe also have SK9822 LEDs available in \u003ca href=\"https:\/\/www.pololu.com\/category\/199\/sk9822-apa102c-based-led-panels\"\u003epanels\u003c\/a\u003e.\u003c\/p\u003e\n\u003ch2\u003e\nDetails for item #3088\n\u003c\/h2\u003e\n\u003cp\u003eThis strip is \u003cstrong\u003e5 meters\u003c\/strong\u003e long and has \u003cstrong\u003e150 LEDs\u003c\/strong\u003e with a density of \u003cstrong\u003e30 LEDs per meter\u003c\/strong\u003e.\u003c\/p\u003e\n\u003ctable class=\"side_by_side_pics\"\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e\u003ctable class=\"picture_with_caption center\"\u003e\u003ctr\u003e\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J6556.1200.jpg?f7ffc2ceb2630dd89731c399b4d8e994\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id rgb strip or sk9822 data-picture-id=\"0J6556\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J6556.275.jpg?f7ffc2ceb2630dd89731c399b4d8e994\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/td\u003e\n\t\t\u003ctd\u003e\u003ctable class=\"picture_with_caption center\"\u003e\u003ctr\u003e\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J6557.1200.jpg?d180af2c8674d502b8ab671e924b6452\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id rgb strip or sk9822 on the included reel. data-picture-id=\"0J6557\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J6557.275.jpg?d180af2c8674d502b8ab671e924b6452\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003ch3\u003eFeatures and specifications\u003c\/h3\u003e\n\u003cul\u003e\n\t\u003cli\u003eIndividually addressable RGB LEDs (30, 60, or 144 LEDs per meter)\u003c\/li\u003e\n\t\u003cli\u003e24-bit color control\u003c\/li\u003e\n\t\u003cli\u003eAdditional 5-bit brightness control; 32 brightness steps per pixel\u003c\/li\u003e\n\t\u003cli\u003eSPI control interface\u003c\/li\u003e\n\t\u003cli\u003e5 V operating voltage\u003c\/li\u003e\n\t\u003cli\u003eColor and brightness are mostly voltage-independent down to 3.5 V\u003c\/li\u003e\n\t\u003cli\u003eEach RGB LED draws approximately 50 mA with red, green, and blue at full brightness\u003c\/li\u003e\n\t\u003cli\u003e12 mm width (30 LEDs\/m) or 14 mm width (60 or 144 LEDs\/m),  4 mm thickness\u003c\/li\u003e\n\t\u003cli\u003eFlexible, waterproof silicone rubber sheath (\u003ca href=\"http:\/\/en.wikipedia.org\/wiki\/IP_Code\"\u003eIP65 protection rating\u003c\/a\u003e)\u003c\/li\u003e\n\t\u003cli\u003eIncludes flexible silicone mounting brackets\u003c\/li\u003e\n\t\u003cli\u003eBlack strip color\u003c\/li\u003e\n\t\u003cli\u003ePower\/data connectors on both strip ends for easy chaining, and the input side includes an additional power and ground wire for alternate power connections\u003c\/li\u003e\n\t\u003cli\u003eStrips can be cut apart along the lines between each RGB LED segment to separate them into usable shorter sections\u003c\/li\u003e\n\t\u003cli\u003eExample code available for Arduino\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003eUsing the LED strip\u003c\/h2\u003e\n\u003ctable class=\"picture_with_caption right\"\u003e\n\u003ctr\u003e\n\u003ctd style=\"max-width: 300px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J6568.1200.jpg?e1b32a3eff07afb645c3955046ee5edf\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id connectors and power wires for our sk9822 apa102c led strips. on the left is input end of strip right output end. data-picture-id=\"0J6568\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J6568.300.jpg?e1b32a3eff07afb645c3955046ee5edf\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 300px\"\u003e\u003cp\u003eThe connectors and power wires for our SK9822 and APA102C LED strips. On the left is the input end of the strip and on the right is the output end.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp\u003eEach LED strip has three connection points: the input connector, the auxiliary power wires, and the output connector.  These can be seen in the adjacent picture, from left to right: auxiliary power wires, input connector, output connector.  The strip uses 4-pin JST SM connectors.\u003c\/p\u003e\n\u003cp\u003eThe \u003cstrong\u003einput connector\u003c\/strong\u003e has four male pins inside of a plastic connector shroud, each separated by about 0.1″.  The black wire is ground, the green wire is the data signal input, the yellow wire is the clock signal input, and the red wire is the power line.\u003c\/p\u003e\n\u003cp\u003eThe  \u003cstrong\u003eauxiliary power wires\u003c\/strong\u003e are connected to the input side of the LED strip and consist of stripped black and red wires.  The black wire is ground, and the red wire is the power line.  This provides an alternate (and possibly more convenient) connection point for LED strip power.\u003c\/p\u003e\n\u003cp\u003eThe \u003cstrong\u003eoutput connector\u003c\/strong\u003e is on the other end of the strip and is designed to mate with the input connector of another LED strip to allow LED strips to be chained.  The black wire is ground, the green wire is the data output, the yellow wire is the clock output, and the red wire is the power line.\u003c\/p\u003e\n\u003cp\u003eAll three black ground wires are electrically connected, and all three red power wires are electrically connected.\u003c\/p\u003e\n\u003ctable class=\"picture_with_caption center wide\"\u003e\n\u003ctr\u003e\n\u003ctd style=\"max-width: 600px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J6569.1200.jpg?4912c86a8058d33eef0a1317aecdede9\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"wide zoomable\" data-gallery-pictures=\"[{\" id close-up of the jst sm connectors for our sk9822 and apa102c led strips. data-picture-id=\"0J6569\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J6569.600.jpg?4912c86a8058d33eef0a1317aecdede9\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 600px\"\u003e\u003cp\u003eA close-up of the JST SM connectors for our SK9822 and APA102C LED strips.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003ch3\u003eIncluded hardware\u003c\/h3\u003e\n\u003cp\u003eThese LED strips ship with flexible silicone brackets and screws.  Strips with lengths of 1 m or greater include five brackets and ten screws \u003cem\u003eper meter\u003c\/em\u003e.  Our 0.5 m high-density strip ships with a total of two brackets and four screws.  The brackets fit over the waterproof sheath and can be used to mount the LED strip.  The LED strip also ships on a plastic reel.\u003c\/p\u003e\n\u003ctable class=\"picture_with_caption center\"\u003e\n\u003ctr\u003e\n\u003ctd style=\"max-width: 400px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J4997.1200.jpg?d110ad9bde9acb7c323553916ba0c0f1\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id and addressable led strips include five mounting brackets per meter the strip includes total brackets. data-picture-id=\"0J4997\" data-picture-longest_side=\"800\" src=\"https:\/\/a.pololu-files.com\/picture\/0J4997.400.jpg?d110ad9bde9acb7c323553916ba0c0f1\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 400px\"\u003e\u003cp\u003eThe 1m, 2m, and 5m addressable LED strips include five mounting brackets per meter; the 0.5m strip includes 2 total brackets.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp class=\"note\"\u003e\u003cstrong\u003eNote:\u003c\/strong\u003e The strips with 30 LEDs per meter are slightly narrower than the denser strips, and the brackets included with those strips are accordingly slightly narrower than the ones included with the denser strips.\u003c\/p\u003e\n\u003ctable class=\"picture_with_caption right\"\u003e\n\u003ctr\u003e\n\u003ctd style=\"max-width: 300px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J6570.1200.jpg?75672714d3050872c6038bc346aa1e89\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id an apa102c or sk9822 addressable rgb led strip with a-star prime sv and powering it from a wall power adapter. data-picture-id=\"0J6570\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J6570.300.jpg?75672714d3050872c6038bc346aa1e89\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 300px\"\u003e\u003cp\u003eControlling an APA102C or SK9822 addressable RGB LED strip with an A-Star 32U4 Prime SV and powering it from a 5V wall power adapter.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003ch3\u003eConnecting the LED strip\u003c\/h3\u003e\n\u003cp\u003eTo control the LED strip from a microcontroller, three wires from the input connector should be connected to your microcontroller.  The LED strip’s ground (black) should be connected to ground on the microcontroller, and the LED strip’s data input line (green) and clock input line (yellow) should each be connected to one of the microcontroller’s I\/O lines.  The male pins inside the input connector fit the female terminations on our \u003ca href=\"https:\/\/www.pololu.com\/category\/65\/premium-jumper-wires\"\u003epremium jumper wires\u003c\/a\u003e and \u003ca href=\"https:\/\/www.pololu.com\/category\/71\/wires-with-pre-crimped-terminals\"\u003ewires with pre-crimped terminals\u003c\/a\u003e.  If you are connecting the LED strip to a breadboard or a typical Arduino with female headers, you would want to use \u003ca href=\"https:\/\/www.pololu.com\/category\/67\/male-female-premium-jumper-wires\"\u003emale-female wires\u003c\/a\u003e.\u003c\/p\u003e\n\u003cp\u003eWe generally recommend powering the LED strip using the auxiliary power wires.  Our \u003ca href=\"https:\/\/www.pololu.com\/product\/1461\"\u003e5 V wall power adapters\u003c\/a\u003e work well for powering these LED strips and a \u003ca href=\"https:\/\/www.pololu.com\/product\/2449\"\u003eDC Barrel Jack to 2-Pin Terminal Block Adapter\u003c\/a\u003e can help you make the connection between the adapter and the strip.  However, you might need a \u003ca href=\"https:\/\/www.pololu.com\/product\/1922\"\u003ewire stripper\u003c\/a\u003e to strip off some more insulation from the power wires.\u003c\/p\u003e\n\u003cp\u003eIt is convenient that the power wires are duplicated on the input side because you can connect the auxiliary power wires to your 5 V power supply and then the power will be available on the data input connector and can be used to power the microcontroller that is controlling the LED strip.  This means you can power the microcontroller and LED strip from a single supply without having to make branching power connections.\u003c\/p\u003e\n\u003ch3\u003eMaking a custom cable\u003c\/h3\u003e\n\u003cp\u003eIf you do not want to use our \u003ca href=\"https:\/\/www.pololu.com\/category\/65\/premium-jumper-wires\"\u003epremium jumper wires\u003c\/a\u003e to connect to the LED strip’s input, it is possible to make a custom cable.\u003c\/p\u003e\n\u003cp\u003eOne option for making a custom cable is to cut off the unused output connector on the last LED strip in your chain.  This can then be plugged into the input connector of the first LED strip.  The wires on the output and input connectors are 20 AWG, which is too thick to easily use with our crimp pins and housings, but you could solder the wires to header pins.\u003c\/p\u003e\n\u003cp\u003eAlternatively, you can get your own JST SM connectors and make a custom cable using those.  The parts you would need to get are the SMP-04V-BC and the SHF-001T-0.8BS, which are described in the \u003ca href=\"http:\/\/www.jst-mfg.com\/product\/pdf\/eng\/eSM.pdf\"\u003eSM Connector datasheet\u003c\/a\u003e from JST.  These can be purchased from several places, including \u003ca href=\"http:\/\/heilind.com\/\"\u003eHeilind\u003c\/a\u003e.  You will also need some 22–28 AWG \u003ca href=\"https:\/\/www.pololu.com\/category\/139\/stranded-wire\"\u003estranded wire\u003c\/a\u003e and a \u003ca href=\"https:\/\/www.pololu.com\/product\/1923\"\u003ewire stripper\u003c\/a\u003e.  We do not know of a great way to crimp wires onto the JST crimp pins, but we were able to successfully do it using our \u003ca href=\"https:\/\/www.pololu.com\/product\/1929\" title=\"item #1929\"\u003enarrower crimping tool\u003c\/a\u003e and \u003ca href=\"https:\/\/www.pololu.com\/product\/150\"\u003epliers\u003c\/a\u003e.  (With the wider crimping tool, it is hard to avoid crimping parts of the pin that should not be crimped.)  Before crimping, use pliers to bend the outer set of tabs a little bit so that they can hold on to the insulation of the wire.  This makes it easier to position the crimp pin and the wire.  Next, you should be able to follow the instructions on the \u003ca href=\"https:\/\/www.pololu.com\/product\/1929\"\u003ecrimping tool product page\u003c\/a\u003e to crimp the wire.  After that, you will probably need to squeeze the crimp pin with pliers to get it to fit into the JST plug housing.  On the other end of the cable you could make a custom connector using our \u003ca href=\"https:\/\/www.pololu.com\/category\/19\/connectors\"\u003ecrimp pins\u003c\/a\u003e and \u003ca href=\"https:\/\/www.pololu.com\/category\/70\/crimp-connector-housings\"\u003ecrimp connector housings\u003c\/a\u003e, which will allow you to plug it directly into a breadboard or 0.1″ header pins.\u003c\/p\u003e\n\u003ch3\u003eCurrent draw\u003c\/h3\u003e\n\u003cp\u003eEach SK9822 LED draws approximately 50 mA when it is set to full brightness.  This means that for every 30 LEDs you turn on, your LED strip could be drawing as much as 1.5 A.  Be sure to select a power source that can handle your strip’s current requirements.\u003c\/p\u003e\n\u003cp\u003eThe SK9822 has built-in constant current control.  For any given color command, the SK6812’s actual color and brightness are largely independent of its supply voltage as long as the voltage is between 3.5 V and 5 V. This means that voltage drops caused by the resistance in long power connections are less likely to affect the color or brightness of the light emitted.\u003c\/p\u003e\n\u003ch3\u003eColor\u003c\/h3\u003e\n\u003cp\u003eThe hue of the light emitted by the SK9822 becomes less red and more green as the 5-bit brightness value is lowered.  Also, the SK9822 has some unit-to-unit variation in the brightness of its red channel which can be noticed when the 5-bit brightness value is low but is usually hard to see when the 5-bit brightness value is high.\u003c\/p\u003e\n\u003ch3\u003eChaining\u003c\/h3\u003e\n\u003cp\u003eMultiple LED strips can be chained together by connecting input connectors to output connectors.  When strips are chained this way, they can be controlled and powered as one continuous strip.  Please note, however, that as chains get longer, they will require more power.  If this becomes an issue, you can chain the data lines while separately powering shorter subsections of the chain.\u003c\/p\u003e\n\u003ctable class=\"picture_with_caption center\"\u003e\n\u003ctr\u003e\n\u003ctd style=\"max-width: 500px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J6571.1200.jpg?700bdd448215146662e534317b867506\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id addressable sk9822 or apa102c rgb led strips connected. data-picture-id=\"0J6571\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J6571.500.jpg?700bdd448215146662e534317b867506\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 500px\"\u003e\u003cp\u003eTwo addressable SK9822 or APA102C RGB LED strips connected.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp class=\"note_warning\"\u003eWe recommend chains of LEDs powered from a single supply not exceed 180 total RGB LEDs. It is fine to make longer chains with connected data lines, but you should power each 180-LED section separately.  If you are powering each section from a different power supply, you should cut the power wires between the sections so you do not short the output of two different power supplies together.\u003c\/p\u003e\n\u003ch3\u003eCutting\u003c\/h3\u003e\n\u003cp\u003eThe LED strip is divided into segments, with each segment containing one RGB LED. The strip can be cut apart on the lines between each segment to separate it into usable shorter sections. The data connection is labeled \u003cstrong\u003eDO\u003c\/strong\u003e or \u003cstrong\u003eDI\u003c\/strong\u003e, the clock connection is labeled \u003cstrong\u003eCO\u003c\/strong\u003e or \u003cstrong\u003eCI\u003c\/strong\u003e, the positive power connection is labeled \u003cstrong\u003eVCC\u003c\/strong\u003e or \u003cstrong\u003e5V\u003c\/strong\u003e, and the ground connection is labeled \u003cstrong\u003eGND\u003c\/strong\u003e.  Each LED in the picture below is at the center of its own segment; there are lines printed on the PCB silkscreen where the segments can be cut.\u003c\/p\u003e\n\u003ctable class=\"picture_with_caption center\"\u003e\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J6567.1200.jpg?33c0271ee62516d09b258b174a2bc8eb\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id side of the apa102c or sk9822 addressable led strips showing leds and data-picture-id=\"0J6567\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J6567.400.jpg?33c0271ee62516d09b258b174a2bc8eb\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\u003c\/table\u003e\n\u003ch3\u003eProtocol\u003c\/h3\u003e\n\u003cp\u003eThese LED strips are controlled through an SPI protocol on the data and clock input lines.  The protocol is documented in the \u003ca href=\"\/file\/0J1234\/sk9822_datasheet.pdf\"\u003eSK9822 datasheet\u003c\/a\u003e (476k pdf), but we describe it below with some modifications that we have found to work better.\u003c\/p\u003e\n\u003cp\u003eThe default, idle state of the clock signal line is low, and the data signal is read on each rising edge of the clock.  To update the LED colors, you need to toggle the clock line while driving the data line with the value of each bit to send; this can be done through software (bit-banging), or it can be handled by a hardware SPI peripheral in a microcontroller. There is no minimum clock frequency, although using a lower frequency means that it will take longer to update the entire sequence of LEDs (especially when controlling a large number of LEDs), so you will probably want to use the fastest practical clock speed to get the best update rate.\u003c\/p\u003e\n\u003ctable class=\"picture_with_caption center wide\"\u003e\n\u003ctr\u003e\n\u003ctd style=\"max-width: 600px\"\u003e\u003cimg alt=\"\" class=\"wide\" data-gallery-pictures=\"[{\" id signal timing diagram for the sk9822 and apa102c. data-picture-id=\"0J6577\" data-picture-longest_side=\"600\" src=\"https:\/\/a.pololu-files.com\/picture\/0J6577.600.png?f2071ae9f33b8071ff69dd3a118b7ef1\"\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 600px\"\u003e\u003cp\u003eControl signal timing diagram for the SK9822 and APA102C.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp\u003eThe data for each LED is encoded as a sequence of 32 bits (4 bytes) called an LED frame. The first 3 bits of the LED frame should be ‘1’.  The next 5 bits are a “global” brightness value (0–31) that is applied to all three color channels.  The remaining 24 bits are the color values, in BGR (blue-green-red) order.  Each color value uses 8 bits (0–255).  The most significant bit of each value is transmitted first.  The first LED frame transmitted applies to the LED that is closest to the data input connector, while the second color transmitted applies to the next LED in the strip, and so on.\u003c\/p\u003e\n\u003cp\u003eTo update all the LEDs in the strip, you should send a “start frame” of 32 ‘0’ bits, then a 32-bit “LED frame” for each LED, and finally an “end frame”.\u003c\/p\u003e\n\u003cp class=\"math\"\u003eThe SK9822 datasheet recommends that the end frame be composed of 32 ‘1’ bits, but we have found this does not work reliably in certain situations and can sometimes lead to glitches.  This can be avoided by using an end frame that consists of at least ``(n – 1)`` extra clock edges, where ``n`` is the number of LEDs, with ‘0’ on the data line. It is often easiest to round up to a multiple of 16 clock edges so that you are counting bytes instead (there are 2 clock edges in a bit and 8 bits in a byte); you would therefore send ``((n – 1) \/\/ 16)`` bytes (rounded up to the next whole number). For a more detailed explanation, see the comments in the source code of our Arduino library, discussed below.\u003c\/p\u003e\n\u003ctable class=\"picture_with_caption center wide\"\u003e\n\u003ctr\u003e\n\u003ctd style=\"max-width: 600px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J6578.1200.png?43cdc8b658def752351be635ab28978e\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"wide zoomable\" data-gallery-pictures=\"[{\" id format for the sk9822 and apa102c. data-picture-id=\"0J6578\" data-picture-longest_side=\"800\" src=\"https:\/\/a.pololu-files.com\/picture\/0J6578.600.jpg?43cdc8b658def752351be635ab28978e\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 600px\"\u003e\u003cp\u003eData format for the SK9822 and APA102C.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp\u003eFor example, to update all 30 LEDs on a 1-meter strip, you should send a 4-byte start frame, thirty 4-byte LED frames, and a 2-byte end frame, for a total of 126 bytes. If multiple strips are chained together with their data connectors, they can be treated as one longer strip and updated the same way (two chained 1-meter strips behave the same as one 2-meter strip).\u003c\/p\u003e\n\u003cp\u003eEach RGB LED receives data on its data input line and passes data on to the next LED using its data output line.  The update rate is generally limited only by the speed of the controller; our Arduino library below can update 60 LEDs in about 1.40 milliseconds, so it is possible to update 700 LEDs at 60 Hz.  However, constant updates are not necessary; the LED strip can hold its state indefinitely as long as power remains connected.\u003c\/p\u003e\n\u003cp class=\"note\"\u003e\u003cstrong\u003eNote:\u003c\/strong\u003e The minimum logic high threshold for the data and clock signals is not specified in the SK9822 datasheet, so you should consider using level shifters if you want to control these strips from 3.3 V systems. In our tests, we were able to control the LEDs directly with 3.3 V signals, but that is not guaranteed to always work.\u003c\/p\u003e\n\u003ch3\u003eSample code\u003c\/h3\u003e\n\u003cp\u003eTo help you get started quickly, we provide an \u003ca href=\"https:\/\/github.com\/pololu\/apa102-arduino\"\u003eAPA102 Arduino library\u003c\/a\u003e.  Our APA102 library supports both the SK9822 and the APA102 (an LED\/driver IC that has a nearly identical interface).   The library also works with our Arduino-compatible \u003ca href=\"https:\/\/www.pololu.com\/category\/149\/a-star-programmable-controllers\"\u003eA-Star modules\u003c\/a\u003e.\u003c\/p\u003e\n\u003cp\u003eAdditionally, the \u003ca href=\"https:\/\/github.com\/adafruit\/Adafruit_DotStar\"\u003eDotStar Arduino library\u003c\/a\u003e and \u003ca href=\"https:\/\/github.com\/adafruit\/Adafruit_DotStar_Pi\"\u003eRaspberry Pi Python module\u003c\/a\u003e from Adafruit should work with these strips since the DotStars are based on similar LEDs. The \u003ca href=\"http:\/\/fastled.io\/\"\u003eFastLED Arduino library\u003c\/a\u003e is another option that focuses on performance and provides advanced functionality like color correction.\u003c\/p\u003e\n\u003cp\u003eSince the SK9822 protocol is compatible with the APA102 protocol, most code written for the APA102 should work with the SK9822.\u003c\/p\u003e\n\u003ch2\u003eComparison with SK6812 LED Strips\u003c\/h2\u003e\n\u003cp\u003eLike the SK9822, the SK6812 used in \u003ca href=\"https:\/\/www.pololu.com\/category\/180\/sk6812-ws2812b-based-led-strips\"\u003esome of our LED strips\u003c\/a\u003e also combines an RGB LED and driver into a single 5050-size package.  However, while the SK6812 uses a one-wire control interface with strict timing requirements, the SK9822 uses a standard SPI interface, with separate data and clock signals that lets it accept a wide range of communication rates; the trade-off is that two I\/O lines are required to control it instead of just one.\u003c\/p\u003e\n\u003cp\u003eThe SK9822 provides a 5-bit brightness control that is not available on the SK6812.  This feature can be used to dim the LED strip while still retaining 24-bit color control.\u003c\/p\u003e\n\u003cp\u003eFor more information about the ICs, see the \u003ca href=\"\/file\/0J1233\/sk6812_datasheet.pdf\"\u003eSK6812 datasheet\u003c\/a\u003e (459k pdf) and the \u003ca href=\"\/file\/0J1234\/sk9822_datasheet.pdf\"\u003eSK9822 datasheet\u003c\/a\u003e (476k pdf).\u003c\/p\u003e\n\u003cp\u003eWhile our SK6812 strips and SK9822 strips are physically very similar, they are \u003cstrong\u003enot\u003c\/strong\u003e functionally compatible with each other.  The easiest way to tell them apart is to look at the strips’ end connectors and the connections between each LED segment: SK6812 strips have three connections (power, data, and ground), while SK9822 strips have four (power, clock, data, and ground).\u003c\/p\u003e\n\u003ch2\u003eComparison with APA102C LED Strips\u003c\/h2\u003e\n\u003cp\u003eThe SK9822 is very similar to the APA102C used in some of our older LED products, and can be used as a drop-in replacement in almost any application.  LED products based on the SK9822 and APA102C can be chained together.\u003c\/p\u003e\n\u003cp\u003eThe SK9822 has voltage-independent brightness over a wide voltage range, as described in the “Current draw” section, which means that the colors of the LEDs should not be affected by a drop in the supply voltage as much as they are on the APA102C.\u003c\/p\u003e\n\u003cp\u003eThe colors generated by the SK9822 look different from the colors generated by the APA102C.  In particular, the SK9822’s red channel is relatively less bright, which makes it have a blue-green tint when compared to the APA102C.  While the APA102C’s brightness register allows you to control the brightness of each LED independently of its color, we have noticed that the colors from the SK9822 become less red and more green as the 5-bit brightness value is lowered.  Also, the SK9822 has some unit-to-unit variation in the brightness of its red channel, which can be noticed when the 5-bit brightness value is low but is usually hard to see when the 5-bit brightness value is high.\u003c\/p\u003e\n\u003cp\u003eThe SK9822 can be distinguished from the APA102C by visual inspection.  The pictures below show what each IC looks like:\u003c\/p\u003e\n\u003ctable class=\"side_by_side_pics\"\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e\u003ctable class=\"picture_with_caption center\"\u003e\n\u003ctr\u003e\u003ctd style=\"max-width: 250px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J7780.1200.jpg?90de63ed78e5a2bb1aede292e407c3be\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id up of an sk9822 with the red green and blue leds on at a low brightness. data-picture-id=\"0J7780\" data-picture-longest_side=\"900\" src=\"https:\/\/a.pololu-files.com\/picture\/0J7780.250.jpg?90de63ed78e5a2bb1aede292e407c3be\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 250px\"\u003e\u003cp\u003eClose up of an SK9822, with the red, green, and blue LEDs on at a low brightness.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\u003c\/td\u003e\n\t\t\u003ctd\u003e\u003ctable class=\"picture_with_caption center\"\u003e\n\u003ctr\u003e\u003ctd style=\"max-width: 250px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J6565.1200.jpg?edcbb7dd2c05e367641ea5aea61caa0c\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id up of an apa102c with the red green and blue leds on at a low brightness. data-picture-id=\"0J6565\" data-picture-longest_side=\"820\" src=\"https:\/\/a.pololu-files.com\/picture\/0J6565.250.jpg?edcbb7dd2c05e367641ea5aea61caa0c\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 250px\"\u003e\u003cp\u003eClose up of an APA102C, with the red, green, and blue LEDs on at a low brightness.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\u003c\/table\u003e","brand":"Unspecified","offers":[{"title":"2-4 Settimane","offer_id":47696777052505,"sku":"POL-3088","price":121.44,"currency_code":"EUR","in_stock":true},{"title":"1 Giorno","offer_id":47886022476121,"sku":"POL-3088\/A","price":121.44,"currency_code":"EUR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/0J6556.1200_34352712-6e04-42dc-9ece-75638f3612b9.jpg?v=1705457787","url":"https:\/\/xernuqvalzi.pro\/products\/3088-addressable-rgb-150-led-strip-5v-5m-sk9822","provider":"Robot Italy","version":"1.0","type":"link"}